|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjabble.FieldCalculator
public class FieldCalculator
An object of this class is able to calculate a Field as a function of a set of other Fields. FieldCalculators allow to quickly add or remove calculation of Fields that are not critical for the stability of the solution, and might not even need to be calculated at every iteration.
| Constructor Summary | |
|---|---|
FieldCalculator(java.lang.String fieldName,
FunctionField function)
The new object will calculate the Field named fieldName according to the function given. |
|
| Method Summary | |
|---|---|
void |
processPoint(Point point)
Calculates the function at the given point and updates the value of the Field. |
void |
setupFields(java.util.List<Slice> slices)
Sets up the appropriate data stracture so that the FieldCalculator will operate on the given list of slices. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FieldCalculator(java.lang.String fieldName,
FunctionField function)
fieldName - the name of a field as specified in an EquationSetfunction - a FunctionField object
java.lang.IllegalArgumentException - if function of fieldName are null| Method Detail |
|---|
public void setupFields(java.util.List<Slice> slices)
slices - The list of slices on which to calculate the boundaries.public void processPoint(Point point)
point - the point at which to make the update of the field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||