Package amadeus
Class Amadeus
java.lang.Object
amadeus.Amadeus
The main entry point for the Amadeus chatbot system.
This class handles user input, processes commands, and manages the execution flow of the chatbot. It initializes the interaction loop, continuously listens for user commands, and executes the corresponding actions until the exit command is received.
The chatbot uses the following components:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
scanner
Scanner object for reading user input from the console.
-
-
Constructor Details
-
Amadeus
public Amadeus()
-
-
Method Details
-
awaken
public static void awaken()Awakens the Amadeus chatbot, initializing the interaction loop.This method displays a welcome message and continuously listens for user commands. Each command is parsed and executed until the exit command is received. Errors during command execution are caught and displayed to the user.
The interaction loop includes the following steps:
- Read user input from the console.
- Parse the input into a
Commandobject. - Execute the command.
- Check if the command is an exit command.
-
main
The main method that serves as the program's entry point.This method starts the chatbot by calling the
awaken()method.- Parameters:
args- command-line arguments (not used in this application).
-