Package com.uppaal.model.core2.lsc
Class Condition
java.lang.Object
com.uppaal.model.core2.Element
com.uppaal.model.core2.Node
com.uppaal.model.core2.lsc.LscElement
com.uppaal.model.core2.lsc.AnchoredElement
com.uppaal.model.core2.lsc.Condition
- All Implemented Interfaces:
CommonConstants,LscConstants,Serializable,Cloneable
public class Condition extends AnchoredElement
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from interface com.uppaal.model.core2.CommonConstants
AREA_SELECT_COL, ARROW_ANGLE, ARROW_LENGTH, BIGFONT, BIGFONTNAME, EMPH_COL, FONT, FONTNAME, GLOBAL_DECL_COL, GLOBAL_PROCESSASSIGN_COL, GLOBAL_SYSTEM_COL, GRIDCHANGE, GRIDCOLOR, GRIDMIN, LEVEL, MOUSE_OVER_COL, MOUSE_OVER_REL_COL, PART_COV_COL, PROCESS_FILL_COL, PROCESS_OUTLINE_COL, SELECTED_COL, SNAP_PER_GRID, TEMPLATE_NAME_COL, TEMPLATE_PARAMLIST_COL, TRACE_COV_COLFields inherited from interface com.uppaal.model.core2.lsc.LscConstants
ANCHOR_PRECHART_RADIUS, ANCHOR_RADIUS, ARROW_BASE, ARROW_HEIGHT, CONDITION_COLD_COL, CONDITION_HOT_COL, CONDITION_SIDES, CONDITION_UPDATE_HEIGHT, CUT_SIDE_DISTANCE, CUT_Y_DISTANCE, FOOT_TOUCH_DISTANCE, INSTANCE_FILL_COL, INSTANCE_FOOT_HEIGHT, INSTANCE_FOOT_WIDTH, INSTANCE_HEIGHT, INSTANCE_LENGTH, INSTANCE_LINE_COL, INSTANCE_MIN_WIDTH, LOC_DISTANCE, MESSAGE_COL, MESSAGE_LABEL_COL, PRECHART_COL, PRECHART_MIN_HEIGHT, PRECHART_SIDE_DISTANCE, PRECHART_TOP_DISTANCE, TOP_DISTANCE, TOUCH_DISTANCE, TOUCH_INSTANCE_DISTANCE, UPDATE_COL -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaccept(Visitor visitor)Accept a visitor.voidaddAnchor(InstanceLine anchor)protected voidfireAnchorChanged(InstanceLine oldAnchor)InstanceLinegetAnchor()ArrayList<InstanceLine>getAnchors()ElementgetLabel()StringgetLabelValue()ElementgetPrototypeFromParent(Element parent)Return the proper prototype for this element stored in the parent.intgetWidth()String[]getXMLLabelKinds()Returns possible XML label kinds this element supports.booleanisHot()voidremoveAnchor(InstanceLine anchor)voidsetAnchor(InstanceLine anchor)voidsetAnchors(ArrayList<InstanceLine> anchors)Methods inherited from class com.uppaal.model.core2.lsc.LscElement
getColor, getTemperature, getWidth, getWidth, lighterMethods 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, getTemplate, getX, getXPath, getY, hasFlag, importInto, isPropertyLocal, removeListener, setCommandManager, setProperties, setProperty, setPropertyFromPath
-
Constructor Details
-
Condition
- Parameters:
prototype-
-
-
Method Details
-
getAnchor
- Specified by:
getAnchorin classAnchoredElement- Returns:
- the anchoring instance line.
-
setAnchor
- Specified by:
setAnchorin classAnchoredElement- Parameters:
anchor- an instance line as anchor.
-
accept
Description copied from class:ElementAccept a visitor. This method is specialized in every subclass. Part of the visitor pattern. -
getPrototypeFromParent
Description copied from class:ElementReturn the proper prototype for this element stored in the parent. This is used by importInto().- Overrides:
getPrototypeFromParentin classElement- Parameters:
parent- - The parent element- Returns:
- - The property
-
getWidth
public int getWidth() -
fireAnchorChanged
- Specified by:
fireAnchorChangedin classAnchoredElement
-
getAnchors
- Specified by:
getAnchorsin classAnchoredElement- Returns:
- list of contained anchoring instance lines.
-
addAnchor
- Parameters:
anchor- an anchoring instance line to be added.
-
removeAnchor
-
isHot
public boolean isHot()- Overrides:
isHotin classLscElement- Returns:
- if this condition is "hot".
-
setAnchors
- Parameters:
anchors- the anchors to set
-
getLabel
- Specified by:
getLabelin classAnchoredElement- Returns:
- the label element.
-
getLabelValue
- Overrides:
getLabelValuein classLscElement
-
getXMLLabelKinds
Description copied from class:ElementReturns possible XML label kinds this element supports.- Overrides:
getXMLLabelKindsin classElement- Returns:
-