public final class WakeupOnSensorEntry extends WakeupCriterion
Constructor | Description |
---|---|
WakeupOnSensorEntry(Bounds region) |
Constructs a new WakeupOnEntry criterion.
|
Modifier and Type | Method | Description |
---|---|---|
Bounds |
getBounds() |
Returns this object's bounds specification
|
Sensor |
getTriggeringSensor() |
Retrieves the Sensor object that caused the wakeup.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allElements, triggeredElements
hasTriggered
public WakeupOnSensorEntry(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
entry.Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.