artisynth.core.driver
Class Scheduler
java.lang.Object
artisynth.core.driver.Scheduler
public class Scheduler
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
useNewAdvance
public static boolean useNewAdvance
Scheduler
public Scheduler()
addListener
public void addListener(SchedulerListener l)
removeListener
public boolean removeListener(SchedulerListener l)
setRenderProbe
public void setRenderProbe(RenderProbe probe)
getRenderProbe
public RenderProbe getRenderProbe()
setSleepProbe
public void setSleepProbe(SleepProbe probe)
getRealTimeAdvance
public boolean getRealTimeAdvance()
setRealTimeAdvance
public void setRealTimeAdvance(boolean enable)
setRealTimeScaling
public void setRealTimeScaling(double s)
getRealTimeScaling
public double getRealTimeScaling()
initialize
public void initialize()
waitForPlayingToStop
public void waitForPlayingToStop()
stopRequestPending
public boolean stopRequestPending()
setTime
public void setTime(double time)
setTime
public void setTime(WayPoint way)
reset
public void reset()
reset
public void reset(WayPoint way)
getTime
public double getTime()
rewind
public boolean rewind()
- Moves to the previous waypoint, if available.
- Returns:
- true if we have moved, false otherwise
fastForward
public boolean fastForward()
- Moves to the next waypoint, if available.
- Returns:
- true if we have moved, false otherwise
stopRequest
public void stopRequest()
play
public void play()
play
public void play(double time)
pause
public void pause()
step
public void step()
playRequest
public void playRequest(double endTime)
requestAction
public boolean requestAction(java.lang.Runnable action)
isPlaying
public boolean isPlaying()
getThread
public java.lang.Thread getThread()
invalidateInitialState
public void invalidateInitialState()
nextEvent
public double nextEvent(RootModel root,
java.util.ArrayList<Probe> probeList,
double t0,
double endTime)