public class SoAlarmSensor extends SoTimerQueueSensor
See also:
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoAlarmSensor()
Constructor.
|
SoAlarmSensor(java.lang.Runnable task)
Build a new alarm sensor with the task to be executed when the sensor
is triggered.
|
Modifier and Type | Method and Description |
---|---|
SbTime |
getTime()
Returns the time at which the sensor is set to be triggered.
|
SbTime |
getTriggerTime()
Returns the time at which this sensor is scheduled to be triggered.
|
boolean |
isScheduled()
Returns true if this sensor has been scheduled and is waiting in a sensor queue to be triggered.
|
void |
schedule() |
void |
setDelay(long millisec)
Deprecated.
As of Open Inventor 9.5, use
setTimeFromNow(com.openinventor.inventor.SbTime)
instead. |
void |
setTime(SbTime absTime)
Sets the sensor to go off at the specified time.
|
void |
setTimeFromNow(SbTime relTime)
Sets the sensor to go off the given amount of time from now.
|
void |
unschedule() |
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoAlarmSensor()
public SoAlarmSensor(java.lang.Runnable task)
@Deprecated public void setDelay(long millisec)
setTimeFromNow(com.openinventor.inventor.SbTime)
instead.setDelay
in class SoTimerQueueSensor
public SbTime getTriggerTime()
SoTimerQueueSensor
getTriggerTime
in class SoTimerQueueSensor
public void unschedule()
unschedule
in class SoSensor
public boolean isScheduled()
SoSensor
isScheduled
in class SoSensor
public void setTime(SbTime absTime)
public void setTimeFromNow(SbTime relTime)
public SbTime getTime()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com