Package com.uppaal.model.core2
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 Summary
Fields Modifier and Type Field Description protected QueryList
newQueryList
protected QueryList
queryList
The query list -
Constructor Summary
Constructors Constructor Description AppendQueriesCommand(QueryList queryList, QueryList newQueryList)
Append the imported queries into the model xml file -
Method Summary
Modifier and Type Method Description void
execute()
Element
getModifiedElement()
void
undo()
-
Field Details
-
queryList
The query list -
newQueryList
-
-
Constructor Details
-
AppendQueriesCommand
Append the imported queries into the model xml file- Parameters:
queryList
- - The old queriesnewQueryList
- - The imported queries
-
-
Method Details
-
execute
public void execute() -
undo
public void undo() -
getModifiedElement
- Returns:
- the modified element or its closest relative (sibling or parent) if the element is not displayed.
-