|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.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)
RuntimeModelsource node
to a target node.
addEdgeBits in class RuntimeModelsource - the source node of the edgetarget - the target node of the edgebits - the edge bits that are to be added
public EdgeIterator createEdgeIterator(java.lang.Object node,
EdgeDirection dir)
RuntimeModelnode. 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 RuntimeModelnode - the node whose edges are to be iterateddir - direction in which edges are traversed (seen from node)
public RGGGraph currentGraph()
RuntimeModel
currentGraph in interface RuntimeModelcurrentGraph in class RuntimeModel
public int getEdgeBits(java.lang.Object source,
java.lang.Object target)
RuntimeModelsource node and a
target node. If there is no edge at all, 0 is returned.
getEdgeBits in class RuntimeModelsource - the source node of the edgetarget - the target node of the edge
public java.lang.Class getNodeType()
RuntimeModelCompiletimeModel.getNodeType()
for the corresponding CompiletimeModel implementation.
getNodeType in class RuntimeModelpublic boolean isNode(java.lang.Object value)
RuntimeModelvalue represents a valid node
for this run-time model.
isNode in interface RuntimeModelisNode in class RuntimeModelvalue - the value to be tested
true iff the value represents a node
public boolean isWrapperFor(java.lang.Object wrapper,
Type type)
RuntimeModel
isWrapperFor in interface RuntimeModelisWrapperFor in class RuntimeModelwrapper - the potential wrapper to be testedtype - the value type
true iff object is a wrapper for values of type typepublic void setCurrentGraph(Graph extent)
setCurrentGraph in class RuntimeModelpublic void setCurrentGraph(GraphManager graph)
public boolean unwrapBoolean(java.lang.Object wrapper)
RuntimeModel
unwrapBoolean in interface RuntimeModelunwrapBoolean in class RuntimeModelwrapper - the wrapper
public byte unwrapByte(java.lang.Object wrapper)
RuntimeModel
unwrapByte in interface RuntimeModelunwrapByte in class RuntimeModelwrapper - the wrapper
public char unwrapChar(java.lang.Object wrapper)
RuntimeModel
unwrapChar in interface RuntimeModelunwrapChar in class RuntimeModelwrapper - the wrapper
public double unwrapDouble(java.lang.Object wrapper)
RuntimeModel
unwrapDouble in interface RuntimeModelunwrapDouble in class RuntimeModelwrapper - the wrapper
public float unwrapFloat(java.lang.Object wrapper)
RuntimeModel
unwrapFloat in interface RuntimeModelunwrapFloat in class RuntimeModelwrapper - the wrapper
public int unwrapInt(java.lang.Object wrapper)
RuntimeModel
unwrapInt in interface RuntimeModelunwrapInt in class RuntimeModelwrapper - the wrapper
public long unwrapLong(java.lang.Object wrapper)
RuntimeModel
unwrapLong in interface RuntimeModelunwrapLong in class RuntimeModelwrapper - the wrapper
public java.lang.Object unwrapObject(java.lang.Object wrapper)
RuntimeModel
unwrapObject in interface RuntimeModelunwrapObject in class RuntimeModelwrapper - the wrapper
public short unwrapShort(java.lang.Object wrapper)
RuntimeModel
unwrapShort in interface RuntimeModelunwrapShort in class RuntimeModelwrapper - the wrapper
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||