Package behaviors
Class Exit
java.lang.Object
behaviors.Exit
- All Implemented Interfaces:
lejos.robotics.subsumption.Behavior
Underlying behavior in order to stop the arbitrator to exit when changing state, returns true unless within the exit state.
- Since:
- 2023
-
Constructor Details
-
Exit
public Exit()Empty constructor for Exit behavior.
-
-
Method Details
-
action
public void action()Action does nothing in Exit.- Specified by:
action
in interfacelejos.robotics.subsumption.Behavior
-
suppress
public void suppress()Suppress does nothing in Exit.- Specified by:
suppress
in interfacelejos.robotics.subsumption.Behavior
-
takeControl
public boolean takeControl()Takes control if not in the EXIT state and BehaviorData's exiting value is false.- Specified by:
takeControl
in interfacelejos.robotics.subsumption.Behavior
- Returns:
- boolean
-