|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.xl.impl.base.RuntimeModel de.grogra.rgg.model.Runtime
public class Runtime
Field Summary | |
---|---|
static Runtime |
INSTANCE
|
Fields inherited from class de.grogra.xl.impl.base.RuntimeModel |
---|
BRANCH_EDGE, branchIn, CONTAINMENT_EDGE, CONTAINMENT_END_EDGE, copyIn, copyOut, MARK_EDGE, MIN_NORMAL_BIT_INDEX, MIN_USER_EDGE, REFINEMENT_EDGE, SPECIAL_MASK, SUCCESSOR_EDGE |
Constructor Summary | |
---|---|
Runtime()
|
Method Summary | |
---|---|
void |
addEdgeBits(java.lang.Object source,
java.lang.Object target,
int bits)
Adds a set of edge bits from a source node
to a target node. |
EdgeIterator |
createEdgeIterator(java.lang.Object node,
EdgeDirection dir)
Creates an iterator over the edges of node . |
RGGGraph |
currentGraph()
Returns the graph that shall be used in the context of the current thread. |
int |
getEdgeBits(java.lang.Object source,
java.lang.Object target)
Return the edge bits between a source node and a
target node. |
java.lang.Class |
getNodeType()
Specifies the base type of nodes of this runtime model. |
boolean |
isNode(java.lang.Object value)
Determines if value represents a valid node
for this run-time model. |
boolean |
isWrapperFor(java.lang.Object wrapper,
Type type)
Tests if the object is a wrapper for values of the given type. |
void |
setCurrentGraph(Graph extent)
|
void |
setCurrentGraph(GraphManager graph)
|
boolean |
unwrapBoolean(java.lang.Object wrapper)
Extracts the boolean value of a wrapper. |
byte |
unwrapByte(java.lang.Object wrapper)
Extracts the byte value of a wrapper. |
char |
unwrapChar(java.lang.Object wrapper)
Extracts the char value of a wrapper. |
double |
unwrapDouble(java.lang.Object wrapper)
Extracts the double value of a wrapper. |
float |
unwrapFloat(java.lang.Object wrapper)
Extracts the float value of a wrapper. |
int |
unwrapInt(java.lang.Object wrapper)
Extracts the int value of a wrapper. |
long |
unwrapLong(java.lang.Object wrapper)
Extracts the long value of a wrapper. |
java.lang.Object |
unwrapObject(java.lang.Object wrapper)
Extracts the Object value of a wrapper. |
short |
unwrapShort(java.lang.Object wrapper)
Extracts the short value of a wrapper. |
Methods inherited from class de.grogra.xl.impl.base.RuntimeModel |
---|
edgeBitsIntersection, edgeBitsUnion, getStandardEdgeFor, initialize, testEdgeBits |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Runtime INSTANCE
Constructor Detail |
---|
public Runtime()
Method Detail |
---|
public void addEdgeBits(java.lang.Object source, java.lang.Object target, int bits)
RuntimeModel
source
node
to a target
node.
addEdgeBits
in class RuntimeModel
source
- the source node of the edgetarget
- the target node of the edgebits
- the edge bits that are to be addedpublic EdgeIterator createEdgeIterator(java.lang.Object node, EdgeDirection dir)
RuntimeModel
node
. The iterator
is set to the first edge of the node, if any. The direction dir
has to be respected by the iterator.
createEdgeIterator
in class RuntimeModel
node
- the node whose edges are to be iterateddir
- direction in which edges are traversed (seen from node
)
public RGGGraph currentGraph()
RuntimeModel
currentGraph
in interface RuntimeModel
currentGraph
in class RuntimeModel
public int getEdgeBits(java.lang.Object source, java.lang.Object target)
RuntimeModel
source
node and a
target
node. If there is no edge at all, 0 is returned.
getEdgeBits
in class RuntimeModel
source
- the source node of the edgetarget
- the target node of the edge
public java.lang.Class getNodeType()
RuntimeModel
CompiletimeModel.getNodeType()
for the corresponding CompiletimeModel
implementation.
getNodeType
in class RuntimeModel
public boolean isNode(java.lang.Object value)
RuntimeModel
value
represents a valid node
for this run-time model.
isNode
in interface RuntimeModel
isNode
in class RuntimeModel
value
- the value to be tested
true
iff the value represents a nodepublic boolean isWrapperFor(java.lang.Object wrapper, Type type)
RuntimeModel
isWrapperFor
in interface RuntimeModel
isWrapperFor
in class RuntimeModel
wrapper
- the potential wrapper to be testedtype
- the value type
true
iff object
is a wrapper for values of type type
public void setCurrentGraph(Graph extent)
setCurrentGraph
in class RuntimeModel
public void setCurrentGraph(GraphManager graph)
public boolean unwrapBoolean(java.lang.Object wrapper)
RuntimeModel
unwrapBoolean
in interface RuntimeModel
unwrapBoolean
in class RuntimeModel
wrapper
- the wrapper
public byte unwrapByte(java.lang.Object wrapper)
RuntimeModel
unwrapByte
in interface RuntimeModel
unwrapByte
in class RuntimeModel
wrapper
- the wrapper
public char unwrapChar(java.lang.Object wrapper)
RuntimeModel
unwrapChar
in interface RuntimeModel
unwrapChar
in class RuntimeModel
wrapper
- the wrapper
public double unwrapDouble(java.lang.Object wrapper)
RuntimeModel
unwrapDouble
in interface RuntimeModel
unwrapDouble
in class RuntimeModel
wrapper
- the wrapper
public float unwrapFloat(java.lang.Object wrapper)
RuntimeModel
unwrapFloat
in interface RuntimeModel
unwrapFloat
in class RuntimeModel
wrapper
- the wrapper
public int unwrapInt(java.lang.Object wrapper)
RuntimeModel
unwrapInt
in interface RuntimeModel
unwrapInt
in class RuntimeModel
wrapper
- the wrapper
public long unwrapLong(java.lang.Object wrapper)
RuntimeModel
unwrapLong
in interface RuntimeModel
unwrapLong
in class RuntimeModel
wrapper
- the wrapper
public java.lang.Object unwrapObject(java.lang.Object wrapper)
RuntimeModel
unwrapObject
in interface RuntimeModel
unwrapObject
in class RuntimeModel
wrapper
- the wrapper
public short unwrapShort(java.lang.Object wrapper)
RuntimeModel
unwrapShort
in interface RuntimeModel
unwrapShort
in class RuntimeModel
wrapper
- the wrapper
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |