hmi.environment
Class PhysicalDemoEnvironment.PhysicsClockListener
java.lang.Object
hmi.environment.PhysicalDemoEnvironment.PhysicsClockListener
- All Implemented Interfaces:
- ClockListener
- Enclosing class:
- PhysicalDemoEnvironment
class PhysicalDemoEnvironment.PhysicsClockListener
- extends Object
- implements ClockListener
Links physics clock to the physicsTime method in which the simulation should be updated
|
Method Summary |
void |
initTime(double initTime)
initTime() is called before the Clock starts running, and sends some initial time value. |
void |
time(double currentTime)
time() is called, with the "current time" specified in seconds. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PhysicalDemoEnvironment.PhysicsClockListener
public PhysicalDemoEnvironment.PhysicsClockListener()
time
public void time(double currentTime)
- Description copied from interface:
ClockListener
- time() is called, with the "current time" specified in seconds.
- Specified by:
time in interface ClockListener
initTime
public void initTime(double initTime)
- Description copied from interface:
ClockListener
- initTime() is called before the Clock starts running, and sends some initial time value.
This will often equal the time send for the first regular time() call.
This is done on the same clock Thread that is going to send the regular time() calls.
- Specified by:
initTime in interface ClockListener