|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PathSet
Class for grouping sets of path into a single unit with a single id.
| Field Summary | |
|---|---|
static int |
ADD_PATH
|
static int |
SET_TYPE
|
| 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 interface nz.ac.waikato.mcennis.rat.graph.model.Model |
|---|
addListener |
| Field Detail |
|---|
static final int ADD_PATH
static final int SET_TYPE
| Method Detail |
|---|
Path[] getPath()
Path[] getPathBySource(java.lang.String source)
source - string ID of actor used to select paths
Path[] getPathByDestination(java.lang.String destination)
destination - string ID of actor used to select paths
Path[] getPath(java.lang.String source,
java.lang.String destination)
source - string ID of actor used to select pathsdestination - string ID of actor used to select paths
void addPath(Path p)
throws NotConstructedError
p - path to be added
NotConstructedError
double getGeodesicLength(java.lang.String source,
java.lang.String destination)
source - string ID that of actor used to select pathsdestination - string ID that of actor used to select paths
void setType(java.lang.String name)
name - new ID of this PathSetjava.lang.String getType()
int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||