TableValuesSpec
TableValuesSpec
- Superclass
- ValueCollection
- Subclasses
- TableRowSpec, TableInterfaceSpec, TableInterfacesSpec
- Referenced By
- none
This is an abstract class. In addition to individual components (in the instance variable
components), it holds the total value, which should be based on the calculation of the
components. The default is that the total equals the sum of its components, but this
default can be changed. It can be changed in two ways. One is to give it a row of
components. Another is to specify the operations of each components to get the total
value.
In addition, it defined dependent components. For example, component 3 can be made to be
the sum of component 1 and component 2. In that case, component 3 is calculated
internally, while the other two components are obtained from the outside. The
specification, in an array, is as follows: #(DependentColumn FirstColumn SecondColumn
Operator). Note that the number of columns that can be involved is limited to two.
Instance variables:
totalValue <RowSpecCollection> Holds the total, which is always a row creator.
operationsArray <Collection of: Symbol> The collection of method symbols for calculating the total componentsDict. The size of this collection should be same as that of the components.
elementSpecs <ElementSpec> The object that stores the information for creating the values of the components.
dependentColumns <Collection> Look above to see the structure of the array. It holds the specification for the dependent columns.
hasAllValues <Boolean> If all the values of the components have been calculated and no more calculation is necessary, it is true.
columnSize <Number> The number of columns
Developed By: Joseph W. Yoder (yoder@cs.uiuc.edu) and Jee Ku (jku@cat.ncsa.uiuc.edu)
- Potential problems with this comment:
Instance variable commented but not in class definition -
elementSpecs
Instance variable not commented -
elementsDict
Variable has invalid type -
#('totalValue' 'RowSpecCollection')