Package amadeus.cognition
Class ResetCommand
java.lang.Object
amadeus.cognition.Command
amadeus.cognition.ResetCommand
Command to reset the task list.
This command clears all tasks from the task list and updates the database.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Resets the task list by clearing all tasks and updating the database.
-
Constructor Details
-
ResetCommand
public ResetCommand()
-
-
Method Details
-
execute
Resets the task list by clearing all tasks and updating the database.This method calls the
TaskList.resetList()method to perform the reset operation.- Specified by:
executein classCommand- Throws:
AmadeusException- if an error occurs while resetting the task list.
-