com.rubecula.jquantity
Interface CompoundModel

All Known Implementing Classes:
Compound

public interface CompoundModel

Class

Since:
V_0_4
Version:
$Revision: 1.1 $
Author:
Robin Hillyard

Method Summary
 int[] getDimensions()
          Method to get the maximumum indices for each dimension.
 BaseNumber getElement(int[] indices)
          Method to get the value of the element specified by the indices given.
 void setElement(int[] indices, BaseNumber element)
          Method to set the value of the element specified by the indices given.
 

Method Detail

getElement

public BaseNumber getElement(int[] indices)
Method to get the value of the element specified by the indices given.

Parameters:
indices - an array of integers giving the indices in the 0th, 1st, ... (n-1)th dimensions of the Compound, respectively.
Returns:
the value of element [i,j,k,...] where the i,j,k,... are given in the array indices.

setElement

public void setElement(int[] indices,
                       BaseNumber element)
Method to set the value of the element specified by the indices given.

Parameters:
indices - an array of integers giving the indices in the 0th, 1st, ... (n-1)th dimensions of the Compound, respectively.

getDimensions

public int[] getDimensions()
Method to get the maximumum indices for each dimension.

Returns:
an array of integers giving the max value for the 0th, 1st, ... (n-1)th dimensions of the Compound, respectively.