nz.ac.waikato.mcennis.rat.reusablecores
Class ActorDistanceMatrixCore

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.reusablecores.PathBaseCore
      extended by nz.ac.waikato.mcennis.rat.reusablecores.ActorDistanceMatrixCore

public class ActorDistanceMatrixCore
extends PathBaseCore

Creates a 2D matrix describing the distance between any two actors in a single mode-relation pair using a shortest-path measure of distance.


Constructor Summary
ActorDistanceMatrixCore()
           
 
Method Summary
protected  void doAnalysis(PathNode[] path, PathNode source)
           
protected  void doCleanup(PathNode[] path, Graph g)
          Any additional calculations to be performed before control returns to the scheduler
 DoubleMatrix2D getActorMatrix()
          Get the matrix describing the distances of this actor-mode pair
 int getColumn(Actor a)
          Get which column the given actor is stored in.
 void setActorMatrix(DoubleMatrix2D actorMatrix)
          Set the matrix that will be overwritten with the distance data of this mode-relation pair.
protected  void setSize(int size)
           
 
Methods inherited from class nz.ac.waikato.mcennis.rat.reusablecores.PathBaseCore
compare, execute, getMode, getProperties, getRelation, setMode, setProperties, setRelation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActorDistanceMatrixCore

public ActorDistanceMatrixCore()
Method Detail

doCleanup

protected void doCleanup(PathNode[] path,
                         Graph g)
Description copied from class: PathBaseCore
Any additional calculations to be performed before control returns to the scheduler

Specified by:
doCleanup in class PathBaseCore

doAnalysis

protected void doAnalysis(PathNode[] path,
                          PathNode source)
Specified by:
doAnalysis in class PathBaseCore

setSize

protected void setSize(int size)
Specified by:
setSize in class PathBaseCore

getActorMatrix

public DoubleMatrix2D getActorMatrix()
Get the matrix describing the distances of this actor-mode pair

Returns:

setActorMatrix

public void setActorMatrix(DoubleMatrix2D actorMatrix)
Set the matrix that will be overwritten with the distance data of this mode-relation pair.

Parameters:
actorMatrix - matrix to be overwritten

getColumn

public int getColumn(Actor a)
Get which column the given actor is stored in.

Parameters:
a - actor to be found
Returns:
integer of the column where the actor's distance vector is stored.

Get Relational Analysis Toolkit at SourceForge.net. Fast, secure and Free Open Source software downloads