All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----jDisco.Linkage | +----jDisco.Link | +----jDisco.Variable
These equations are expressed in subclasses of class Continous.
public double state
public double rate
public Variable(double initialState)
public boolean isActive()
public jDisco.Variable start()
The objcet is inserted into the list of active Variable-objects.
Calling start when the object is already active has no effect. Note that each Variable-object is inactive until its start-method has been called.
start may only be called by a discrete process. Violating this rule leads to the error message
Illegal call of start (class Variable)after which the simulation is stopped.
start returns a reference to this Variable-object. This allows the user to write as follows:
Variable v = new Variable(1234).start();
public void stop()
stop removes the object from the list of active Variable-objects.
Calling stop has no effect unless the object is active.
stop may only be called by a discrete process. Violating this rule leads to the error message
Illegal call of stop (class Variable)after which the simulation is stopped.
public double lastState()
lastState may be used to describe continuous changes defined by difference equations.
All Packages Class Hierarchy This Package Previous Next Index