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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEdgeBits(Object source, Object target, int bits) Adds a set of edge bits from asourcenode to atargetnode.createEdgeIterator(Object node, EdgeDirection dir) Creates an iterator over the edges ofnode.intgetEdgeBits(Object source, Object target) Return the edge bits between asourcenode and atargetnode.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:RuntimeModelSpecifies the base type of nodes of this runtime model. This should return the same type asCompiletimeModel.getNodeType()for the correspondingCompiletimeModelimplementation.- Specified by:
getNodeTypein classRuntimeModel- Returns:
- base type of nodes
-
addEdgeBits
Description copied from class:RuntimeModelAdds a set of edge bits from asourcenode to atargetnode.- Specified by:
addEdgeBitsin 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:RuntimeModelReturn the edge bits between asourcenode and atargetnode. If there is no edge at all, 0 is returned.- Specified by:
getEdgeBitsin classRuntimeModel- Parameters:
source- the source node of the edgetarget- the target node of the edge- Returns:
- the edge bits
-
createEdgeIterator
Description copied from class:RuntimeModelCreates an iterator over the edges ofnode. The iterator is set to the first edge of the node, if any. The directiondirhas to be respected by the iterator.- Specified by:
createEdgeIteratorin classRuntimeModel- Parameters:
node- the node whose edges are to be iterateddir- direction in which edges are traversed (seen fromnode)- Returns:
- an edge iterator
-