|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Behavior
Interface implemented by behaviors intended to be used in conjunction with a BehaviorArbiter. See the BehaviorArbiter class for more information.
BehaviorArbiter
,
Behavior2
,
BehaviorEvent
,
BehaviorListener
,
com.ridgesoft.robotics.behaviors
Method Summary | |
---|---|
boolean |
poll()
This method is invoked at regular intervals to determine if the behavior desires to control the robot. |
void |
setActive(boolean isActive)
Activates or deactivates the behavior. |
Method Detail |
---|
boolean poll()
If the behavior is active, it may use this method as a means to update its control of the robot. However, this is not required. The behavior may also use a separate thread or a timer to accomplish its control functions.
void setActive(boolean isActive)
When a behavior is active, it must take control of the robot. When a behavior is inactive, it must not attempt to control the robot.
isActive
- true if the behavior is being activated, otherwise false
|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |