Package gov.nasa.jpl.command
Class EditActivityCommand
java.lang.Object
gov.nasa.jpl.command.EditActivityCommand
- All Implemented Interfaces:
Command
-
Constructor Summary
ConstructorsConstructorDescriptionEditActivityCommand
(String commandString) Takes in an id and set of parameter name and parameter value pairs. -
Method Summary
-
Constructor Details
-
EditActivityCommand
Takes in an id and set of parameter name and parameter value pairs. Searches for the activity instance with the given id and then edits the input parameters to be equal to the new values.- Parameters:
commandString
- - id of activity followed by parameter name/value pairs
-
-
Method Details
-
execute
This method edits an activity by its ID.- Specified by:
execute
in interfaceCommand
- Throws:
CommandException
-
unExecute
Undoes the editing of an activity.- Specified by:
unExecute
in interfaceCommand
- Throws:
CommandException
-