Class AppendQueriesCommand

java.lang.Object
com.uppaal.model.core2.AbstractCommand
com.uppaal.model.core2.AppendQueriesCommand
All Implemented Interfaces:
Command

public class AppendQueriesCommand
extends AbstractCommand
A transaction command for inserting queries. The transaction supports optionally setting the query, repeatedly.
  • Field Details

  • Constructor Details

    • AppendQueriesCommand

      public AppendQueriesCommand​(QueryList queryList, QueryList newQueryList)
      Append the imported queries into the model xml file
      Parameters:
      queryList - - The old queries
      newQueryList - - The imported queries
  • Method Details

    • execute

      public void execute()
    • undo

      public void undo()
    • getModifiedElement

      public Element getModifiedElement()
      Returns:
      the modified element or its closest relative (sibling or parent) if the element is not displayed.