public class SoIdleSensor extends SoDelayQueueSensor
SoOneShotSensor
, except that it is only triggered when there are no timer queue sensors waiting to be triggered and there are no events waiting to be processed; that is, idle sensors will not be triggered if the delay queue is processed because the delay queue timeout expires. If the delay queue timeout is disabled (see SoDB.setDelaySensorTimeout()
.), idle and one-shot sensors are exactly the same.
Note that idle sensors do not reschedule themselves. Inventor 1 idle sensors were always scheduled; call schedule() in the callback to duplicate that behavior.
See the SoOneShotSensor
manual page for more information.
See also:
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoIdleSensor()
Default constructor.
|
SoIdleSensor(java.lang.Runnable task)
Builds a new idle sensor with the task to be run when
this sensor is triggered
|
getDefaultPriority, getPriority, isIdleOnly, setPriority
isScheduled, schedule, setTask, unschedule
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com