|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--EDU.neu.ccs.demeter.aplib.TraversalGraph
| Constructor Summary | |
TraversalGraph(ClassGraphI cg,
StrategyGraphI sg,
NameMapI map)
Compute the traversal graph for the class graph and strategy graph with the given map, which is a partial map from labels in the strategy graph to labels in the class graph. |
|
TraversalGraph(ClassGraphI cg,
StrategyGraphI sg,
NameMapI map,
boolean dbg)
|
|
| Method Summary | |
static TraversalGraph |
compute(ClassGraphI cg,
StrategyGraphI sg,
NameMapI map)
Compute the traversal graph for the class graph and strategy graph with the given map, which is a partial map from labels in the strategy graph to labels in the class graph. |
static TraversalGraph |
compute(ClassGraphI cg,
StrategyGraphI sg,
NameMapI map,
boolean dbg)
|
java.util.BitSet |
copiesOfAlternationEdge(java.lang.String source,
java.lang.String target)
A BitSet representing which copies of the given alternation edge are in the traversal graph, or null if there is no such edge. |
java.util.BitSet |
copiesOfConstructionEdge(java.lang.String source,
java.lang.String name,
java.lang.String target)
A BitSet representing which copies of the given construction edge are in the traversal graph, or null if there is no such edge. |
java.util.BitSet |
copiesOfEdge(EdgeI edge)
A BitSet representing which copies of the given edge are in the traversal graph, or null if there is no such edge. |
java.util.BitSet |
copiesOfInheritanceEdge(java.lang.String source,
java.lang.String target)
A BitSet representing which copies of the given inheritance edge are in the traversal graph, or null if there is no such edge. |
java.util.BitSet |
copiesOfVertex(java.lang.String l)
A BitSet representing which copies of the vertex labeled l are in the traversal graph, or null if there is no such vertex. |
static java.lang.String |
edgeKey(EdgeI edge)
A unique identifying string for the given edge. |
java.util.Enumeration |
edges()
Deprecated. Renamed to getEdges() to comply with bean naming convention. |
EdgeI |
getAlternationEdge(java.lang.String source,
java.lang.String target)
The given alternation edge, if it's in the traversal graph, or null. |
ClassGraphI |
getClassGraph()
The class graph used in computing this traversal graph. |
EdgeI |
getConstructionEdge(java.lang.String source,
java.lang.String name,
java.lang.String target)
The given construction edge, if it's in the traversal graph, or null. |
java.util.Enumeration |
getEdges()
An enumeration of the edges (EdgeI objects) in the traversal graph. |
EdgeI |
getInheritanceEdge(java.lang.String source,
java.lang.String target)
The given inheritance edge, if it's in the traversal graph, or null. |
java.util.Enumeration |
getIntercopyTable(EdgeI edge)
An enumeration of IntercopyTableEntry objects representing the intercopy table for the given edge. |
java.util.Enumeration |
getIntercopyTableForAlternationEdge(java.lang.String source,
java.lang.String target)
The intercopy table for the given alternation edge, or null if there is no such edge. |
java.util.Enumeration |
getIntercopyTableForConstructionEdge(java.lang.String source,
java.lang.String name,
java.lang.String target)
The intercopy table for the given construction edge, or null if there is no such edge. |
java.util.Enumeration |
getIntercopyTableForInheritanceEdge(java.lang.String source,
java.lang.String target)
The intercopy table for the given inheritance edge, or null if there is no such edge. |
NameMapI |
getNameMap()
The name map from the strategy graph to the class graph. |
java.util.Vector |
getSourceIndices(java.lang.String l)
A vector of Integer objects representing the start set of tokens (copy indices) for the source vertex labeled l. |
java.util.Enumeration |
getSources()
An enumeration of the labels (Strings) of the source vertices of the traversal graph. |
java.util.BitSet |
getStartSet(java.lang.String l)
A BitSet representing the start set of tokens (copy indices) for the source vertex labeled l. |
StrategyGraphI |
getStrategyGraph()
The strategy graph used in computing this traversal graph. |
java.util.Enumeration |
getTargets()
An enumeration of the labels (Strings) of the target vertices of the traversal graph. |
java.util.Enumeration |
getVertices()
An enumeration of the vertex labels (Strings) in the traversal graph. |
boolean |
hasAlternationEdge(java.lang.String source,
java.lang.String target)
Is the given alternation edge in the traversal graph? |
boolean |
hasAlternationEdge(java.lang.String source,
java.lang.String target,
int i)
Is the ith copy of the given alternation edge in the traversal graph? |
boolean |
hasAlternationEdge(java.lang.String source,
java.lang.String target,
int i,
int j)
Is the given alternation edge from the ith copy of its source vertex to the jth copy of its target vertex in the traversal graph? |
boolean |
hasConstructionEdge(java.lang.String source,
java.lang.String name,
java.lang.String target)
Is the given construction edge in the traversal graph? |
boolean |
hasConstructionEdge(java.lang.String source,
java.lang.String name,
java.lang.String target,
int i)
Is the ith copy of the given construction edge in the traversal graph? |
boolean |
hasConstructionEdge(java.lang.String source,
java.lang.String name,
java.lang.String target,
int i,
int j)
Is the given construction edge from the ith copy of its source vertex to the jth copy of its target vertex in the traversal graph? |
boolean |
hasEdge(EdgeI edge)
Is the given edge in the traversal graph? |
boolean |
hasEdge(EdgeI edge,
int i)
Is the ith copy of the given edge in the traversal graph? This is equivalent to hasEdge(edge, i, i). |
boolean |
hasEdge(EdgeI edge,
int i,
int j)
Is the given edge from the ith copy of its source vertex to the jth copy of its target vertex in the traversal graph? |
boolean |
hasInheritanceEdge(java.lang.String source,
java.lang.String target)
Is the given inheritance edge in the traversal graph? |
boolean |
hasInheritanceEdge(java.lang.String source,
java.lang.String target,
int i)
Is the ith copy of the given inheritance edge in the traversal graph? |
boolean |
hasInheritanceEdge(java.lang.String source,
java.lang.String target,
int i,
int j)
Is the given inheritance edge from the ith copy of its source vertex to the jth copy of its target vertex in the traversal graph? |
boolean |
hasVertex(java.lang.String l)
Is the vertex labeled l in the traversal graph? |
boolean |
hasVertex(java.lang.String l,
int i)
Is the ith copy of the vertex labeled l in the traversal graph? |
java.lang.String |
toString()
A string representation of the graph. |
java.util.Enumeration |
vertices()
Deprecated. Renamed to getVertices() to comply with bean naming convention. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public TraversalGraph(ClassGraphI cg,
StrategyGraphI sg,
NameMapI map)
public TraversalGraph(ClassGraphI cg,
StrategyGraphI sg,
NameMapI map,
boolean dbg)
| Method Detail |
public static java.lang.String edgeKey(EdgeI edge)
public java.util.Enumeration vertices()
public java.util.Enumeration getVertices()
public boolean hasVertex(java.lang.String l)
public boolean hasVertex(java.lang.String l,
int i)
public java.util.BitSet copiesOfVertex(java.lang.String l)
public java.util.Enumeration edges()
public java.util.Enumeration getEdges()
public boolean hasEdge(EdgeI edge)
public boolean hasEdge(EdgeI edge,
int i)
public boolean hasEdge(EdgeI edge,
int i,
int j)
public java.util.BitSet copiesOfEdge(EdgeI edge)
public java.util.Enumeration getIntercopyTable(EdgeI edge)
IntercopyTableEntry
public boolean hasConstructionEdge(java.lang.String source,
java.lang.String name,
java.lang.String target)
public boolean hasConstructionEdge(java.lang.String source,
java.lang.String name,
java.lang.String target,
int i)
public boolean hasConstructionEdge(java.lang.String source,
java.lang.String name,
java.lang.String target,
int i,
int j)
public java.util.BitSet copiesOfConstructionEdge(java.lang.String source,
java.lang.String name,
java.lang.String target)
public java.util.Enumeration getIntercopyTableForConstructionEdge(java.lang.String source,
java.lang.String name,
java.lang.String target)
public EdgeI getConstructionEdge(java.lang.String source,
java.lang.String name,
java.lang.String target)
public boolean hasAlternationEdge(java.lang.String source,
java.lang.String target)
public boolean hasAlternationEdge(java.lang.String source,
java.lang.String target,
int i)
public boolean hasAlternationEdge(java.lang.String source,
java.lang.String target,
int i,
int j)
public java.util.BitSet copiesOfAlternationEdge(java.lang.String source,
java.lang.String target)
public java.util.Enumeration getIntercopyTableForAlternationEdge(java.lang.String source,
java.lang.String target)
public EdgeI getAlternationEdge(java.lang.String source,
java.lang.String target)
public boolean hasInheritanceEdge(java.lang.String source,
java.lang.String target)
public boolean hasInheritanceEdge(java.lang.String source,
java.lang.String target,
int i)
public boolean hasInheritanceEdge(java.lang.String source,
java.lang.String target,
int i,
int j)
public java.util.BitSet copiesOfInheritanceEdge(java.lang.String source,
java.lang.String target)
public java.util.Enumeration getIntercopyTableForInheritanceEdge(java.lang.String source,
java.lang.String target)
public EdgeI getInheritanceEdge(java.lang.String source,
java.lang.String target)
public ClassGraphI getClassGraph()
public StrategyGraphI getStrategyGraph()
public NameMapI getNameMap()
public java.util.Enumeration getSources()
public java.util.Enumeration getTargets()
public java.util.Vector getSourceIndices(java.lang.String l)
public java.util.BitSet getStartSet(java.lang.String l)
public static TraversalGraph compute(ClassGraphI cg,
StrategyGraphI sg,
NameMapI map)
public static TraversalGraph compute(ClassGraphI cg,
StrategyGraphI sg,
NameMapI map,
boolean dbg)
public java.lang.String toString()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||