Package gov.nasa.jpl.command
Class MoveActivityCommand
java.lang.Object
gov.nasa.jpl.command.MoveActivityCommand
- All Implemented Interfaces:
Command
-
Constructor Summary
ConstructorsConstructorDescriptionMoveActivityCommand
(String commandString) Takes in an id and a time, which is surrounded by parenthesis. -
Method Summary
-
Constructor Details
-
MoveActivityCommand
Takes in an id and a time, which is surrounded by parenthesis. Instantiates a new version of the activity at the given time, storing the old activity instance for undo.- Parameters:
commandString
- - id of activity followed by a new start time
-
-
Method Details
-
execute
Change the start time of an activity and store the current start time.- Specified by:
execute
in interfaceCommand
- Throws:
CommandException
-
unExecute
Changes back the start time to the old value.- Specified by:
unExecute
in interfaceCommand
- Throws:
CommandException
-