Package org.graphwalker.core.model
Class Edge.RuntimeEdge
java.lang.Object
org.graphwalker.core.model.RuntimeBase
org.graphwalker.core.model.Edge.RuntimeEdge
- All Implemented Interfaces:
Element
- Enclosing class:
Edge
RuntimeEdge
Immutable class for Edge This class is used in models. It guarantees that that the internal states of the instance will not change after it's construction.-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ElementVisitor visitor) TODO Needs documentationbooleanGets the dependency of the edge.doubleGets the dependency of the edge.getGuard()Gets the guard of the edge.Gets the source vertex.Gets the target vertex of the edge.Gets the weight of the edge.booleanhasGuard()inthashCode()Methods inherited from class org.graphwalker.core.model.RuntimeBase
getActions, getId, getName, getProperties, getProperty, getRequirements, hasActions, hasId, hasName, hasProperties, hasProperty, hasRequirements
-
Method Details
-
getSourceVertex
Gets the source vertex.- Returns:
- The source vertex.
- See Also:
-
getTargetVertex
Gets the target vertex of the edge.- Returns:
- The vertex.
- See Also:
-
getGuard
Gets the guard of the edge.- Returns:
- The guard.
- See Also:
-
hasGuard
public boolean hasGuard() -
getWeight
Gets the weight of the edge.- Returns:
- The weight as double.
- See Also:
-
accept
TODO Needs documentation -
hashCode
public int hashCode()- Overrides:
hashCodein classRuntimeBase
-
equals
- Overrides:
equalsin classRuntimeBase
-
getDependency
Gets the dependency of the edge.- Returns:
- The dependency as Integer.
- See Also:
-
getDependencyAsDouble
public double getDependencyAsDouble()Gets the dependency of the edge.- Returns:
- The dependency as Double.
- See Also:
-