|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Model
Basic interface requirements for all Artisynth models
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface artisynth.core.modelbase.ModelComponent |
---|
ModelComponent.NavpanelVisibility |
Method Summary | |
---|---|
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. |
Methods inherited from interface artisynth.core.modelbase.ModelComponent |
---|
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences |
Methods inherited from interface maspack.properties.HasProperties |
---|
getAllPropertyInfo, getProperty |
Methods inherited from interface maspack.properties.HierarchyNode |
---|
getChildren, hasChildren |
Methods inherited from interface maspack.util.Scannable |
---|
isWritable, write |
Methods inherited from interface artisynth.core.modelbase.HasState |
---|
createState, getInitialState, getState, setState |
Method Detail |
---|
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 use
StepAdjustment 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 use
double getMaxStepSize()
void dispose()
dispose
in interface Disposable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |