Class AbstractCommand

java.lang.Object
com.uppaal.model.core2.AbstractCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
AbstractTransaction, AppendQueriesCommand, ClearQueriesCommand, CompoundCommand, InsertQueryCommand, InsertTemplateCommand, InsertTextCommand, MoveTemplateCommand, RemoveElementCommand, RemoveLscElementCommand, RemoveQueryCommand, RemoveTemplateCommand, RemoveTextCommand, SetPropertyCommand, SetQueryCommand, SnapCommand

public abstract class AbstractCommand
extends Object
implements Command
  • Field Details

  • Constructor Details

  • Method Details

    • setVersion

      public void setVersion​(int version)
      Specified by:
      setVersion in interface Command
    • getVersion

      public int getVersion()
      Specified by:
      getVersion in interface Command
    • merge

      public boolean merge​(Command next)
      Description copied from interface: Command
      Merge the next command (meant for storage, it still needs to be executed before storage)
      Specified by:
      merge in interface Command
      Parameters:
      next - the next command
      Returns:
      true if merge is successful