|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nz.ac.waikato.mcennis.rat.graph.model.ModelShell nz.ac.waikato.mcennis.rat.reusablecores.FindStronglyConnectedComponentsCore
public class FindStronglyConnectedComponentsCore
Class for finding only components that are strongly connected. A strongly connected component is a sub-graph where their exists a path from every actor in the component to every actor in the component.
Field Summary |
---|
Fields inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
---|
listener |
Constructor Summary | |
---|---|
FindStronglyConnectedComponentsCore()
|
Method Summary | |
---|---|
void |
execute(Graph g)
Creates sub-graphs consisting of all strongly connected componenents in the graph. |
Graph[] |
getGraph()
Array of newly created subgraphs. |
protected Graph |
getGraph(Graph g)
|
java.lang.String |
getGraphClass()
return the string representing the class of sub-graph to create |
java.lang.String |
getGraphPrefix()
Return the prefix used to name new graph-ids |
java.lang.String |
getMode()
Which mode of actors in the graph should be used in calculations |
java.lang.String |
getRelation()
Relation of link in the graph to use in calculations |
void |
setGraphClass(java.lang.String g)
Set the string determining the class of sub-graph to create |
void |
setGraphPrefix(java.lang.String g)
Set the string prefix used to generate ids for new sub-graphs |
void |
setMode(java.lang.String m)
Set which mode of actors in the graph are to be used |
void |
setRelation(java.lang.String r)
Set which relation of links in the graph to use |
protected void |
strongConnect(Actor start,
Graph g)
|
Methods inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
---|
addListener, fireChange |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FindStronglyConnectedComponentsCore()
Method Detail |
---|
public void execute(Graph g)
g
- graph to be analyzedprotected void strongConnect(Actor start, Graph g)
protected Graph getGraph(Graph g)
public void setRelation(java.lang.String r)
r
- relation of links to utilizepublic void setMode(java.lang.String m)
m
- mode of actors to utilizepublic java.lang.String getRelation()
public java.lang.String getMode()
public Graph[] getGraph()
public void setGraphPrefix(java.lang.String g)
g
- new prefix for graph idspublic java.lang.String getGraphPrefix()
public void setGraphClass(java.lang.String g)
g
- class of sub-graph to createpublic java.lang.String getGraphClass()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |