artisynth.core.mechmodels
Interface RequiresPrePostAdvance

All Known Implementing Classes:
MultiPointMuscle, MultiPointMuscleVia, MultiPointSpring

public interface RequiresPrePostAdvance

Indicates a component, other than a MechSystemModel, that requires processing before and/or after its containing model is advanced.


Method Summary
 void postadvance(double t0, double t1, int flags)
          Called from within the model's advance() method, after all position and velocity state has been advanced.
 void preadvance(double t0, double t1, int flags)
          Called from within the model's preadvance() method.
 

Method Detail

preadvance

void preadvance(double t0,
                double t1,
                int flags)
Called from within the model's preadvance() method.

Parameters:
t0 - current time (seconds)
t1 - new time to be advanced to (seconds)
flags - flags passed to the model's preadvance() method (reserved for future use).

postadvance

void postadvance(double t0,
                 double t1,
                 int flags)
Called from within the model's advance() method, after all position and velocity state has been advanced.

Parameters:
t0 - current time (seconds)
t1 - new time to be advanced to (seconds)
flags - flags passed to the model's advance() method (reserved for future use).