Package behaviors

Class Welcome

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

public class Welcome extends Object implements lejos.robotics.subsumption.Behavior
Shows a welcome screen for the user.
Since:
2023
  • Constructor Summary

    Constructors
    Constructor
    Description
    Welcome(String version)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    On the LCD screen creates a welcome screen and waits until the button is pressed and released.Once this happens clears the screen and sets the state to BACK_UP.
    void
    Empty suppress for Welcome.
    boolean
    Takes control when the state is equal to the WELCOME state.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Welcome

      public Welcome(String version)
      Parameters:
      version -
  • Method Details

    • action

      public void action()
      On the LCD screen creates a welcome screen and waits until the button is pressed and released.Once this happens clears the screen and sets the state to BACK_UP.
      Specified by:
      action in interface lejos.robotics.subsumption.Behavior
    • suppress

      public void suppress()
      Empty suppress for Welcome.
      Specified by:
      suppress in interface lejos.robotics.subsumption.Behavior
    • takeControl

      public boolean takeControl()
      Takes control when the state is equal to the WELCOME state.
      Specified by:
      takeControl in interface lejos.robotics.subsumption.Behavior
      Returns:
      boolean