|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnz.ac.waikato.mcennis.rat.graph.model.ModelShell
nz.ac.waikato.mcennis.rat.graph.algorithm.OptimizedPathBase
public abstract class OptimizedPathBase
Class that calculates geodesic paths using Djikstra's spanning tree algorithm Hooks are provided for subclasses to use each spanning tree for one actor so that the algorithms can become linear in space rather than O(n2).
| Field Summary | |
|---|---|
protected java.util.LinkedList<IODescriptor> |
input
|
protected java.util.LinkedList<IODescriptor> |
output
|
protected PropertiesInternal |
parameter
|
protected PathNode[] |
path
|
| Fields inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
|---|
listener |
| Constructor Summary | |
|---|---|
OptimizedPathBase()
Creates a new instance of OptimizedCloseness |
|
| 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.util.List<IODescriptor> |
getInputType()
The input type describes all the different kinds of graph objects that are utilized (and hence required) by this object. |
java.util.List<IODescriptor> |
getOutputType()
The output type describes all the different kinds of graph objects that are created during the execution of this algorithm. |
Properties |
getParameter()
List of all parameters this component accepts. |
Parameter |
getParameter(java.lang.String param)
Returns the specific parameter identified by its key-name. |
abstract void |
init(Properties map)
Parameters to be initialized. |
abstract Algorithm |
prototype()
All Components implement the prototype pattern. |
protected abstract void |
setSize(int size)
|
| 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 |
| Methods inherited from interface nz.ac.waikato.mcennis.rat.graph.model.Model |
|---|
addListener |
| Field Detail |
|---|
protected PropertiesInternal parameter
protected java.util.LinkedList<IODescriptor> input
protected java.util.LinkedList<IODescriptor> output
protected PathNode[] path
| Constructor Detail |
|---|
public OptimizedPathBase()
| Method Detail |
|---|
public void execute(Graph g)
execute in interface Algorithmg - graph to be modified
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 -
protected void compare(PathNode current,
PathNode next,
Link link)
public java.util.List<IODescriptor> getInputType()
Component
getInputType in interface ComponentIODescriptorpublic java.util.List<IODescriptor> getOutputType()
Component
getOutputType in interface ComponentIODescriptorpublic Properties getParameter()
Component
getParameter in interface Componentpublic Parameter getParameter(java.lang.String param)
Component
getParameter in interface Componentparam - key-name of the parameter
public abstract void init(Properties map)
init in interface Componentmap - map of the given properties naming parameters and their values in a stringpublic abstract Algorithm prototype()
Component
prototype in interface Componentprototype in interface Algorithm
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||