Package behaviors

Class Exit

java.lang.Object
behaviors.Exit
All Implemented Interfaces:
lejos.robotics.subsumption.Behavior

public class Exit extends Object implements 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 Summary

    Constructors
    Constructor
    Description
    Empty constructor for Exit behavior.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Action does nothing in Exit.
    void
    Suppress does nothing in Exit.
    boolean
    Takes control if not in the EXIT state and BehaviorData's exiting value is false.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface lejos.robotics.subsumption.Behavior
    • suppress

      public void suppress()
      Suppress does nothing in Exit.
      Specified by:
      suppress in interface lejos.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 interface lejos.robotics.subsumption.Behavior
      Returns:
      boolean