artisynth.core.driver
Class Scheduler

java.lang.Object
  extended by artisynth.core.driver.Scheduler

public class Scheduler
extends java.lang.Object


Nested Class Summary
static class Scheduler.Action
           
 
Field Summary
static boolean useNewAdvance
           
 
Constructor Summary
Scheduler()
           
 
Method Summary
 void addListener(SchedulerListener l)
           
 boolean fastForward()
          Moves to the next waypoint, if available.
 boolean getRealTimeAdvance()
           
 double getRealTimeScaling()
           
 RenderProbe getRenderProbe()
           
 java.lang.Thread getThread()
           
 double getTime()
           
 void initialize()
           
 void invalidateInitialState()
           
 boolean isPlaying()
           
 double nextEvent(RootModel root, java.util.ArrayList<Probe> probeList, double t0, double endTime)
           
 void pause()
           
 void play()
           
 void play(double time)
           
 void playRequest(double endTime)
           
 boolean removeListener(SchedulerListener l)
           
 boolean requestAction(java.lang.Runnable action)
           
 void reset()
           
 void reset(WayPoint way)
           
 boolean rewind()
          Moves to the previous waypoint, if available.
 void setRealTimeAdvance(boolean enable)
           
 void setRealTimeScaling(double s)
           
 void setRenderProbe(RenderProbe probe)
           
 void setSleepProbe(SleepProbe probe)
           
 void setTime(double time)
           
 void setTime(WayPoint way)
           
 void step()
           
 void stopRequest()
           
 boolean stopRequestPending()
           
 void waitForPlayingToStop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

useNewAdvance

public static boolean useNewAdvance
Constructor Detail

Scheduler

public Scheduler()
Method Detail

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)