public interface Model extends ModelComponent, Disposable, HasState
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibility| Modifier and Type | Field and Description | 
|---|---|
static int | 
STATE_IS_VOLATILE
Flag for  
advance(double, double, int) indicating that the model's state may have been
 changed or restored immediately prior to the method call. | 
| Modifier and Type | Method and Description | 
|---|---|
StepAdjustment | 
advance(double t0,
       double t1,
       int flags)
Advances this model from time t0 to time t1. 
 | 
void | 
dispose()
Called when the model is discarded. 
 | 
double | 
getMaxStepSize()
Returns the maximum step by which this object should be advanced within a
 simulation loop. 
 | 
void | 
initialize(double t)
Causes this model to initialize itself at time t. 
 | 
StepAdjustment | 
preadvance(double t0,
          double t1,
          int flags)
Prepares this model for advance from time t0 to time t1. 
 | 
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetAllPropertyInfo, getPropertygetChildren, hasChildrenpostscanisWritable, writecreateState, getInitialState, getState, setStatestatic final int STATE_IS_VOLATILE
advance(double, double, int) indicating that the model's state may have been
 changed or restored immediately prior to the method call. This means that
 advance(double, double, int) may wish to perform its computations in a way as to
 ensure precise numeric repeatability if this is the case.void initialize(double t)
HasState.setState(artisynth.core.modelbase.ComponentState), in which case t may have an arbitrary value.t - initialization time (seconds)StepAdjustment preadvance(double t0, double t1, int flags)
If the method determines that the step size should be
 reduced, it can return a StepAdjustment object indicating
 the recommended reduction. Otherwise, the method may return 
 null
 
 
The flags argument gives additional information that may
 be relevant when advancing the model. Currently implemented
 flags include STATE_IS_VOLATILE.
t0 - current time (seconds)t1 - new time to advance to (seconds)flags - additional information relevant to the advanceStepAdjustment advance(double t0, double t1, int flags)
If the method determines that the step size should be
 reduced, it can return a StepAdjustment object indicating
 the recommended reduction. Otherwise, the method may return 
 null
 
The flags argument gives additional information that may
 be relevant when advancing the model. Currently implemented
 flags include STATE_IS_VOLATILE.
t0 - current time (seconds)t1 - new time to advance to (seconds)flags - rdditional information relevant to the advancedouble getMaxStepSize()
void dispose()
dispose in interface Disposable