Class RegularCommand

java.lang.Object
ca.mcscert.jpipe.commands.RegularCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
AddElement, AddSupport, CreateAbstractSupport, CreateConclusion, CreateEvidence, CreateJustification, CreateStrategy, CreateSubConclusion, CreateTemplate, ImplementsTemplate, RegisterAlias, RemoveElement, RewireStrategySupport

public abstract class RegularCommand extends Object implements Command
Base class for commands that execute directly on a Unit.

Subclasses implement doExecute(Unit) rather than execute. This class logs each execution at DEBUG level under the concrete subclass name before delegating.

  • Constructor Details

    • RegularCommand

      public RegularCommand()
  • Method Details

    • execute

      public final void execute(Unit context)
      Specified by:
      execute in interface Command
    • doExecute

      protected abstract void doExecute(Unit context)