Package com.uppaal.model.core2
Class SetQueryCommand
java.lang.Object
com.uppaal.model.core2.AbstractCommand
com.uppaal.model.core2.SetQueryCommand
- All Implemented Interfaces:
Command
public class SetQueryCommand extends AbstractCommand
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
execute()
Element
getModifiedElement()
Query
getQueryProperty()
void
setText(String newFormula, String newComment)
Set the new query property and comment textvoid
undo()
-
Constructor Details
-
SetQueryCommand
public SetQueryCommand(Query query, String oldFormula, String oldComment, String newFormula, String newComment)Constructor- Parameters:
query
- - The query objectoldFormula
- - The old query formulaoldComment
- - The old query commentnewFormula
- - The new query formulanewComment
- - The new query comment
-
-
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.
-
getQueryProperty
-
setText
Set the new query property and comment text- Parameters:
newFormula
- - The new query formulanewComment
- - The new query comment
-