Package behaviors
Class Welcome
java.lang.Object
behaviors.Welcome
- All Implemented Interfaces:
lejos.robotics.subsumption.Behavior
Shows a welcome screen for the user.
- Since:
- 2023
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.void
suppress()
Empty suppress for Welcome.boolean
Takes control when the state is equal to the WELCOME state.
-
Constructor Details
-
Welcome
- 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 interfacelejos.robotics.subsumption.Behavior
-
suppress
public void suppress()Empty suppress for Welcome.- Specified by:
suppress
in interfacelejos.robotics.subsumption.Behavior
-
takeControl
public boolean takeControl()Takes control when the state is equal to the WELCOME state.- Specified by:
takeControl
in interfacelejos.robotics.subsumption.Behavior
- Returns:
- boolean
-