Package amadeus.cognition
package amadeus.cognition
Provides the core command implementations for the Amadeus application.
This package includes classes that represent various commands supported by the application,
such as adding tasks, marking tasks as complete, searching for tasks, and more. Each command
is implemented as a subclass of the Command abstract class.
The classes in this package are responsible for parsing user input, performing the necessary
actions, and handling errors gracefully using custom exceptions from the AmadeusException class.
Key Classes
Command: Abstract base class for all commands.ByeCommand: Command to exit the application.CheckCommand: Command to filter tasks based on a date or date range.CommandList: Command to display the list of available commands.DeadlineCommand: Command to add a newDeadlinetask.EventCommand: Command to add a newEventtask.FindCommand: Command to search for tasks matching a keyword.ListCommand: Command to display the current list of tasks.MarkCommand: Command to mark a task as complete or incomplete.ResetCommand: Command to reset the task list.ToDoCommand: Command to add a newToDotask.
Usage Example
// Create and execute a command
Command command = new ToDoCommand("Buy groceries");
command.execute();
- See Also:
-
ClassesClassDescriptionCommand to exit the Amadeus application.Command to filter tasks based on a date or date range.Abstract base class for all commands in the Amadeus application.Command to display the list of available commands.Command to add a new
Deadlinetask to the task list.Command to delete a task from the task list.Command to add a newEventtask to the task list.Command to search for tasks in the task list that match a keyword.Command to display the current list of tasks.Command to mark a task as complete or incomplete.Command to reset the task list.Command to add a newToDotask to the task list.