Package com.uppaal.model.core2
Class Query
java.lang.Object
com.uppaal.model.core2.Element
com.uppaal.model.core2.Node
com.uppaal.model.core2.Query
- All Implemented Interfaces:
Serializable,Cloneable
public class Query extends Node
The query class
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaccept(Visitor visitor)Query property has a visitorvoidaddQueryListener(QueryListener l)StringgetComment()Get the comment of the queryStringgetFormula()Get the query propertyQueryResultgetResult()Get the status of the queryStringgetShortFormula()Get the short property without line breaksbooleanhasPlots()voidremoveQueryListener(QueryListener l)voidsetComment(String comment)voidsetFormula(String formula)voidsetFormulaAndComment(String formula, String comment)Set the comment and query property.voidsetResult(QueryResult r)Set the resultStringtoString()Methods inherited from class com.uppaal.model.core2.Node
clone, getFirst, getLast, getNext, getPrevious, getXPathTag, insert, move, remove, setPrototypeMethods inherited from class com.uppaal.model.core2.Element
acceptSafe, addListener, getColor, getCommandManager, getDocument, getLocalProperty, getParent, getProperties, getProperty, getPropertyValue, getPrototype, getPrototypeFromParent, getTemplate, getX, getXMLLabelKinds, getXPath, getY, hasFlag, importInto, isPropertyLocal, removeListener, setCommandManager, setProperties, setProperty, setPropertyFromPath
-
Constructor Details
-
Method Details
-
addQueryListener
-
removeQueryListener
-
getFormula
Get the query property- Returns:
- The property string
-
getComment
Get the comment of the query- Returns:
- The comment string
-
setFormula
-
setComment
-
setFormulaAndComment
Set the comment and query property. Should be called for redo/undo.- Parameters:
formula- - the property formulacomment- - the user comment
-
setResult
Set the result- Parameters:
r- the result containing status, errors and messages.
-
getResult
Get the status of the query- Returns:
- status - checked or not checked?
-
hasPlots
public boolean hasPlots() -
getShortFormula
Get the short property without line breaks- Returns:
- short property
-
accept
Query property has a visitor -
toString
-