public final class WakeupOnSensorExit extends WakeupCriterion
| Constructor and Description |
|---|
WakeupOnSensorExit(Bounds region)
Constructs a new WakeupOnExit criterion.
|
| Modifier and Type | Method and Description |
|---|---|
Bounds |
getBounds()
Returns this object's bounds specification
|
Sensor |
getTriggeringSensor()
Retrieves the Sensor object that caused the wakeup.
|
hasTriggeredallElements, triggeredElementspublic WakeupOnSensorExit(Bounds region)
region - the region that will trigger a wakeup if a Sensor
intersects.public Bounds getBounds()
public Sensor getTriggeringSensor()
java.lang.IllegalStateException - if not called from within
a behavior's processStimulus method which was awoken by a sensor
exit.