|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnz.ac.waikato.mcennis.rat.reusablecores.PathBaseCore
public abstract class PathBaseCore
Core abstract class for algorithm cores that utilize shortest-path info in their algorithms. It creates shortest-path using Djikstra's algorithm for each source actor, allows performing of caluclations then, and allows algorithms to perform additional calculatio afterwards.
| Constructor Summary | |
|---|---|
PathBaseCore()
|
|
| Method Summary | |
|---|---|
protected void |
compare(PathNode current,
PathNode next,
Link link)
|
protected abstract void |
doAnalysis(PathNode[] path,
PathNode source)
|
protected abstract void |
doCleanup(PathNode[] path,
Graph g)
Any additional calculations to be performed before control returns to the scheduler |
void |
execute(Graph g)
Generates a spanning tree for a given actor. |
java.lang.String |
getMode()
Return which mode of actors are to be used for shortest path calculations |
Properties |
getProperties()
|
java.lang.String |
getRelation()
Returns which relation of links to use in path calculations |
void |
setMode(java.lang.String m)
Set the mode of actors to use for calculations |
void |
setProperties(Properties props)
|
void |
setRelation(java.lang.String r)
Set which relation of links to use in path calculations |
protected abstract void |
setSize(int size)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PathBaseCore()
| Method Detail |
|---|
public void execute(Graph g)
protected void compare(PathNode current,
PathNode next,
Link link)
protected abstract void doCleanup(PathNode[] path,
Graph g)
path - g -
protected abstract void doAnalysis(PathNode[] path,
PathNode source)
path - source - protected abstract void setSize(int size)
size - public void setRelation(java.lang.String r)
r - relation of links to utilizepublic java.lang.String getRelation()
public void setMode(java.lang.String m)
m - mode of actors to utilizepublic java.lang.String getMode()
public Properties getProperties()
public void setProperties(Properties props)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||