public interface Model extends ModelComponent, Disposable, HasState
ModelComponent.NavpanelVisibility
Modifier and Type | Method and Description |
---|---|
StepAdjustment |
advance(double t0,
double t1,
int flags)
Advances this object 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 object for advance from time t0 to time t1.
|
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences
getAllPropertyInfo, getProperty
getChildren, hasChildren
isWritable, write
createState, getInitialState, getState, setState
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
t0
- current time (seconds)t1
- new time to advance to (seconds)flags
- reserved for future useStepAdjustment 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
t0
- current time (seconds)t1
- new time to advance to (seconds)flags
- reserved for future usedouble getMaxStepSize()
void dispose()
dispose
in interface Disposable