|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.math.CEquationFactory
public class CEquationFactory
Factory for creating CEquations and automatically scheduling their evaluate and assignment at some specified interval. All equations scheduled for the same tick will be evaluated and then they will all be assigned. The order of evaluation between is undetermined and so it is expected that the equations can be evaluated in any order without producing side-effects.
| Constructor Summary | |
|---|---|
CEquationFactory(Schedule schedule)
Creates a CEquationFactory. |
|
| Method Summary | |
|---|---|
CEquation |
createEquation(java.lang.Object target,
java.lang.String equation,
java.lang.String resultVar,
double updateInterval)
Creates and schedule a CEquation. |
CEquation |
createEquation(java.lang.Object target,
java.lang.String equation,
java.lang.String resultVar,
double initialDTValue,
double updateInterval)
Creates and schedule a CEquation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CEquationFactory(Schedule schedule)
schedule - the schedule against which to schedule created CEquations evaluation and
assignment| Method Detail |
|---|
public CEquation createEquation(java.lang.Object target,
java.lang.String equation,
java.lang.String resultVar,
double updateInterval)
target - the target from which the equations variable values are read and to which the
result is assignedequation - the equation to evaluate.resultVar - the name of the variable to assign the result toupdateInterval - the interval at which to evaluate and assign the created CEquation
CEquation
public CEquation createEquation(java.lang.Object target,
java.lang.String equation,
java.lang.String resultVar,
double initialDTValue,
double updateInterval)
target - the target from which the equations variable values are read and to which the
result is assignedequation - the equation to evaluate.resultVar - the name of the variable to assign the result toinitialDTValue - the initial value of dt to use on the first evaluation when
it would otherwise be set to 0updateInterval - the interval at which to evaluate and assign the created CEquation
CEquation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||