Class ReplayCommand

java.lang.Object
fr.istic.aco.editor.commands.ReplayCommand
All Implemented Interfaces:
Command

public class ReplayCommand extends Object implements Command
The ReplayCommand class implements the functionality for replaying a sequence of previously recorded commands.
  • Constructor Details

    • ReplayCommand

      public ReplayCommand(Recorder recorder)
      Constructs a ReplayCommand with the specified dependencies.
      Parameters:
      recorder - the command recorder for saving and replaying the command.
  • Method Details

    • execute

      public void execute()
      Executes the replay operation.

      This method invokes the Recorder.replay() method to replay the sequence of recorded commands.

      Specified by:
      execute in interface Command