|
||||||||||
| 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.path.BasicPathSet
public class BasicPathSet
Class for describing a set of Paths
| Field Summary |
|---|
| Fields inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
|---|
listener |
| Fields inherited from interface nz.ac.waikato.mcennis.rat.graph.path.PathSet |
|---|
ADD_PATH, SET_TYPE |
| Constructor Summary | |
|---|---|
BasicPathSet()
Creates a new instance of BasicPathSet |
|
| Method Summary | |
|---|---|
void |
addPath(Path p)
Add a new path to this PathSet |
double |
getGeodesicLength(java.lang.String source,
java.lang.String destination)
Return the smallest cost path between the source and destination. |
Path[] |
getPath()
Return all paths in this object. |
Path[] |
getPath(java.lang.String source,
java.lang.String destination)
Return all paths that start with actor source and end with actor destination. |
Path[] |
getPathByDestination(java.lang.String destination)
Return all paths that end with an actor with this ID or null if none exist FIXME: should be by actor - not ID - as actors can have the same id if they differ in type. |
Path[] |
getPathBySource(java.lang.String source)
Return all paths that start with an actor with this ID or null if none exist. |
java.lang.String |
getType()
Returns the ID of this PathSet |
void |
setType(java.lang.String name)
Set the PathSet's ID |
int |
size()
Return total number of paths in this dataset |
| 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 |
| Constructor Detail |
|---|
public BasicPathSet()
| Method Detail |
|---|
public Path[] getPath()
PathSet
getPath in interface PathSetpublic Path[] getPathBySource(java.lang.String source)
PathSet
getPathBySource in interface PathSetsource - string ID of actor used to select paths
public Path[] getPathByDestination(java.lang.String destination)
PathSet
getPathByDestination in interface PathSetdestination - string ID of actor used to select paths
public void addPath(Path p)
throws NotConstructedError
PathSet
addPath in interface PathSetp - path to be added
NotConstructedError
public Path[] getPath(java.lang.String source,
java.lang.String destination)
PathSet
getPath in interface PathSetsource - string ID of actor used to select pathsdestination - string ID of actor used to select paths
public void setType(java.lang.String name)
PathSet
setType in interface PathSetname - new ID of this PathSetpublic java.lang.String getType()
PathSet
getType in interface PathSetpublic int size()
PathSet
size in interface PathSet
public double getGeodesicLength(java.lang.String source,
java.lang.String destination)
PathSet
getGeodesicLength in interface PathSetsource - string ID that of actor used to select pathsdestination - string ID that of actor used to select paths
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||