|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.uppaal.model.core2.Element
com.uppaal.model.core2.Node
com.uppaal.model.core2.Edge
public class Edge
Edge models discrete transitions between locations.
An Edge may have Nails as children in the Node.
Probabilistic edges are modeled by a pair of Edges connected via BranchPoint.
Edges may have labels modeled by properties: "select", "guard", "synchronisation", "assignment", "probability", "controllable", "comments", "color".
Nail,
BranchPoint,
Location,
Element.getPropertyValue(java.lang.String),
Element.hasFlag(java.lang.String),
Serialized Form| Field Summary | |
|---|---|
protected AbstractLocation |
source
|
protected AbstractLocation |
target
|
| Fields inherited from class com.uppaal.model.core2.Node |
|---|
first, next, previous |
| Fields inherited from class com.uppaal.model.core2.Element |
|---|
listeners, properties, prototype |
| Constructor Summary | |
|---|---|
Edge(Element prototype)
Constructs an Edge based on a prototype. |
|
| Method Summary | |
|---|---|
void |
accept(Visitor visitor)
Accept a visitor. |
Nail |
createNail()
Creates a nail based on prototype, the nail has to be inserted into an edge. |
Nail |
getNails()
Returns the first nail (if any). |
Element |
getPrototypeFromParent(Element parent)
Returns the #edge property value of the parent argument. |
AbstractLocation |
getSource()
Returns the source location (the beginning of the edge). |
AbstractLocation |
getTarget()
Returns the target location (the end of the edge). |
void |
setSource(AbstractLocation source)
Sets the origin of this edge. |
void |
setTarget(AbstractLocation target)
Sets the destination of this edge. |
| Methods inherited from class com.uppaal.model.core2.Node |
|---|
clone, getFirst, getLast, getNext, getPrevious, insert, move, remove, setPrototype |
| Methods inherited from class com.uppaal.model.core2.Element |
|---|
acceptSafe, addListener, getColor, getDocument, getLocalProperty, getParent, getProperties, getProperty, getPropertyValue, getPrototype, getTemplate, getX, getY, hasFlag, importInto, isPropertyLocal, removeListener, setProperties, setProperty, setPropertyFromPath |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AbstractLocation source
protected AbstractLocation target
| Constructor Detail |
|---|
public Edge(Element prototype)
prototype - the element containing default properties.Template.createEdge(),
Element.importInto(com.uppaal.model.core2.Element)| Method Detail |
|---|
public AbstractLocation getSource()
public AbstractLocation getTarget()
public Nail getNails()
public void setSource(AbstractLocation source)
source - the origin: Location or BranchPointpublic void setTarget(AbstractLocation target)
target - the destination: Location or BranchPointpublic Nail createNail()
public void accept(Visitor visitor)
throws Exception
Element
accept in class NodeExceptionpublic Element getPrototypeFromParent(Element parent)
getPrototypeFromParent in class Element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||