java.lang.Object
de.grogra.xl.impl.base.RuntimeModel
de.grogra.xl.impl.simple.RuntimeModel
- All Implemented Interfaces:
RuntimeModel
-
Field Summary
Fields inherited from class de.grogra.xl.impl.base.RuntimeModel
BRANCH_EDGE, branchIn, CONTAINMENT_EDGE, CONTAINMENT_END_EDGE, copyIn, copyInNoRefine, copyOut, copyOutNoRefine, MARK_EDGE, MIN_NORMAL_BIT_INDEX, MIN_USER_EDGE, REFINEMENT_EDGE, SPECIAL_MASK, SUCCESSOR_EDGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEdgeBits
(Object source, Object target, int bits) Adds a set of edge bits from asource
node to atarget
node.createEdgeIterator
(Object node, EdgeDirection dir) Creates an iterator over the edges ofnode
.int
getEdgeBits
(Object source, Object target) Return the edge bits between asource
node and atarget
node.Specifies the base type of nodes of this runtime model.Methods inherited from class de.grogra.xl.impl.base.RuntimeModel
currentGraph, edgeBitsIntersection, edgeBitsRemove, edgeBitsUnion, getStandardEdgeFor, initialize, isNode, isWrapperFor, setCurrentGraph, testEdgeBits, unwrapBoolean, unwrapByte, unwrapChar, unwrapDouble, unwrapFloat, unwrapInt, unwrapLong, unwrapObject, unwrapShort
-
Constructor Details
-
RuntimeModel
public RuntimeModel()
-
-
Method Details
-
getNodeType
Description copied from class:RuntimeModel
Specifies the base type of nodes of this runtime model. This should return the same type asCompiletimeModel.getNodeType()
for the correspondingCompiletimeModel
implementation.- Specified by:
getNodeType
in classRuntimeModel
- Returns:
- base type of nodes
-
addEdgeBits
Description copied from class:RuntimeModel
Adds a set of edge bits from asource
node to atarget
node.- Specified by:
addEdgeBits
in classRuntimeModel
- Parameters:
source
- the source node of the edgetarget
- the target node of the edgebits
- the edge bits that are to be added
-
getEdgeBits
Description copied from class:RuntimeModel
Return the edge bits between asource
node and atarget
node. If there is no edge at all, 0 is returned.- Specified by:
getEdgeBits
in classRuntimeModel
- Parameters:
source
- the source node of the edgetarget
- the target node of the edge- Returns:
- the edge bits
-
createEdgeIterator
Description copied from class:RuntimeModel
Creates an iterator over the edges ofnode
. The iterator is set to the first edge of the node, if any. The directiondir
has to be respected by the iterator.- Specified by:
createEdgeIterator
in classRuntimeModel
- Parameters:
node
- the node whose edges are to be iterateddir
- direction in which edges are traversed (seen fromnode
)- Returns:
- an edge iterator
-