|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.neu.ccs.demeter.aplib.sg.Strategy
|
+--edu.neu.ccs.demeter.aplib.sg.SimpleStrategy
|
+--edu.neu.ccs.demeter.aplib.sg.StrategyGraph
| Field Summary | |
protected edu.neu.ccs.demeter.aplib.sg.SGEdge_SList |
edges
|
| Fields inherited from class edu.neu.ccs.demeter.aplib.sg.SimpleStrategy |
parsedNameMap |
| Constructor Summary | |
StrategyGraph()
|
|
StrategyGraph(edu.neu.ccs.demeter.aplib.sg.NameMap parsedNameMap,
edu.neu.ccs.demeter.aplib.sg.SGEdge_SList edges)
|
|
| Method Summary | |
void |
addEdge(edu.neu.ccs.demeter.aplib.sg.SGEdge edge)
|
edu.neu.ccs.demeter.aplib.sg.SGEdge_SList |
get_edges()
|
ConstraintMapI |
getConstraintMap()
The constraint map B. |
Object |
getEdgeSource(int i)
The source node of edge number i. |
Object |
getEdgeTarget(int i)
The target node of edge number i. |
Collection |
getIncomingEdges(Object v)
A Collection of indices (Integer objects) of edges coming into node v. |
Collection |
getNames(Object v)
The set N(v), a collection of symbolic names (strings) corresponding to node v in the strategy graph S. |
Collection |
getNodes()
A Collection of nodes in the strategy graph. |
Collection |
getOutgoingEdges(Object v)
A Collection of indices (Integer objects) of edges going out of node v. |
Collection |
getSources()
The source set s, a collection of nodes in the strategy graph S. |
StrategyGraphI |
getStrategyGraph()
The strategy graph S. |
Collection |
getTargets()
The target set t, a collection of nodes in the strategy graph S. |
boolean |
meetsConstraint(int i,
EdgeI e,
NameMapI N)
Is the element predicate for the ith edge in the strategy graph true for the class graph edge e, using name map N? |
boolean |
meetsConstraint(int i,
Object v,
NameMapI N)
Is the element predicate for the ith edge in the strategy graph true for the class graph node v, using name map N? |
boolean |
meetsConstraint(Object a,
EdgeI e,
NameMapI N)
Is the element predicate for the node a in the strategy graph true for the class graph edge e, using name map N? |
boolean |
meetsConstraint(Object a,
Object v,
NameMapI N)
Is the element predicate for the node a in the strategy graph true for the class graph node v, using name map N? |
int |
numEdges()
The number of edges in the strategy graph. |
static StrategyGraph |
parse(InputStream in)
|
static StrategyGraph |
parse(Reader in)
|
static StrategyGraph |
parse(String s)
|
void |
set_edges(edu.neu.ccs.demeter.aplib.sg.SGEdge_SList new_edges)
|
SimpleStrategyI |
toSimpleStrategy()
|
String |
toString()
|
| Methods inherited from class edu.neu.ccs.demeter.aplib.sg.SimpleStrategy |
get_parsedNameMap, getAllNames, getSourceNames, getTargetNames, isSimpleStrategy, set_parsedNameMap |
| Methods inherited from class edu.neu.ccs.demeter.aplib.sg.Strategy |
__trav_attachEnv, clone, fromString, fromString, isStrategyCombination, readFrom, readFrom, readFrom, readFrom, toStrategyCombination |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.neu.ccs.demeter.aplib.StrategyI |
isSimpleStrategy, isStrategyCombination, toStrategyCombination |
| Field Detail |
protected edu.neu.ccs.demeter.aplib.sg.SGEdge_SList edges
| Constructor Detail |
public StrategyGraph(edu.neu.ccs.demeter.aplib.sg.NameMap parsedNameMap,
edu.neu.ccs.demeter.aplib.sg.SGEdge_SList edges)
public StrategyGraph()
| Method Detail |
public edu.neu.ccs.demeter.aplib.sg.SGEdge_SList get_edges()
public void set_edges(edu.neu.ccs.demeter.aplib.sg.SGEdge_SList new_edges)
public static StrategyGraph parse(Reader in)
throws ParseException
ParseException
public static StrategyGraph parse(InputStream in)
throws ParseException
ParseExceptionpublic static StrategyGraph parse(String s)
public void addEdge(edu.neu.ccs.demeter.aplib.sg.SGEdge edge)
public SimpleStrategyI toSimpleStrategy()
toSimpleStrategy in interface StrategyItoSimpleStrategy in class Strategypublic StrategyGraphI getStrategyGraph()
SimpleStrategyI
getStrategyGraph in interface SimpleStrategyIpublic Collection getSources()
SimpleStrategyI
getSources in interface SimpleStrategyIpublic Collection getTargets()
SimpleStrategyI
getTargets in interface SimpleStrategyIpublic Collection getNames(Object v)
SimpleStrategyI
getNames in interface SimpleStrategyIpublic ConstraintMapI getConstraintMap()
SimpleStrategyI
getConstraintMap in interface SimpleStrategyIpublic Collection getNodes()
StrategyGraphI
getNodes in interface StrategyGraphIpublic Collection getIncomingEdges(Object v)
StrategyGraphI
getIncomingEdges in interface StrategyGraphIpublic Collection getOutgoingEdges(Object v)
StrategyGraphI
getOutgoingEdges in interface StrategyGraphIpublic int numEdges()
StrategyGraphI
numEdges in interface StrategyGraphIpublic Object getEdgeSource(int i)
StrategyGraphI
getEdgeSource in interface StrategyGraphIpublic Object getEdgeTarget(int i)
StrategyGraphI
getEdgeTarget in interface StrategyGraphI
public boolean meetsConstraint(int i,
Object v,
NameMapI N)
ConstraintMapI
meetsConstraint in interface ConstraintMapI
public boolean meetsConstraint(int i,
EdgeI e,
NameMapI N)
ConstraintMapI
meetsConstraint in interface ConstraintMapI
public boolean meetsConstraint(Object a,
Object v,
NameMapI N)
ConstraintMapI
meetsConstraint in interface ConstraintMapI
public boolean meetsConstraint(Object a,
EdgeI e,
NameMapI N)
ConstraintMapI
meetsConstraint in interface ConstraintMapIpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||