|
RoboJDETM v1.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Extends the Behavior interface.
This extended interface provides methods to enable and disable the behavior as well as manage a BehaviorListener for the behavior. See the BehaviorArbiter class for more information.
BehaviorArbiter,
Behavior,
BehaviorEvent,
BehaviorListener,
com.ridgesoft.robotics.behaviors| Method Summary | |
void |
setEnabled(boolean enabled)
Enables or disables the behavior. |
void |
setListener(BehaviorListener listener)
Sets or clears the listener for the behavior. |
| Methods inherited from interface com.ridgesoft.robotics.Behavior |
poll, setActive |
| Method Detail |
public void setEnabled(boolean enabled)
When a behavior is disabled, its polling method is still called, but it must always return false from the poll method, indicating it is not interested in controlling the robot.
enabled - true if the behavior is being enabled, otherwise falsepublic void setListener(BehaviorListener listener)
listener - the BehaviorListener, or null to clear the listener
|
RoboJDETM v1.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||