Class SoTimerQueueSensor
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.sensors.SoSensor
-
- com.openinventor.inventor.sensors.SoTimerQueueSensor
-
- Direct Known Subclasses:
SoAlarmSensor
,SoTimerSensor
public class SoTimerQueueSensor extends SoSensor
Abstract base class for sensors dependent on time. Timer queue sensors are sensors that trigger themselves at specific times. The timer queue is normally processed as part of a program's main loop when the program is not busy doing something else. Note that processing the timer queue is not asynchronous - the program must re-enter its main loop for timers to be triggered. When the timer queue is processed, all timers scheduled to go off at or before the current time are triggered once, in order from earliest to latest.- See Also:
SoTimerSensor
,SoAlarmSensor
,SoIdleSensor
,SoOneShotSensor
,SoDataSensor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoTimerQueueSensor()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SbTime
getTriggerTime()
Returns the time at which this sensor is scheduled to be triggered.-
Methods inherited from class com.openinventor.inventor.sensors.SoSensor
isScheduled, schedule, setTask, unschedule
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
getTriggerTime
public SbTime getTriggerTime()
Returns the time at which this sensor is scheduled to be triggered. If the sensor is not scheduled the results are undefined.
-
-