|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.totem.domain.model.impl.PathImpl
public class PathImpl
Represent a Path in a Domain and is used by a LSP
Creation date: 20-Jan-2005 10:45:08
| Constructor Summary | |
|---|---|
PathImpl(Domain domain)
|
|
| Method Summary | |
|---|---|
boolean |
containsLink(Link link)
Return true if the path contains the link Link |
void |
createPathFromLink(java.util.List<Link> path)
Create a Path from a list of Link |
void |
createPathFromNode(java.util.List<Node> path)
Create a Path from a list of Node |
boolean |
equals(java.lang.Object o)
|
boolean |
equals(Path path)
Return true if the path is equal to the given Path |
Node |
getDestinationNode()
Get the destination node |
java.util.List<Link> |
getLinkPath()
Get the path as a List of Link |
java.util.List<Node> |
getNodePath()
Get the path as a List of Node |
Node |
getSourceNode()
Get the source node |
float |
getSumLinkMetrics()
Get the cost of the path |
int |
hashCode()
|
java.lang.String |
toLinksString()
Get a String displaying the path as link ids |
java.lang.String |
toNodesString()
Get a String displaying the path as node ids |
java.lang.String |
toString()
Get a String displaying the path as node id |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PathImpl(Domain domain)
| Method Detail |
|---|
public void createPathFromLink(java.util.List<Link> path)
throws NodeNotFoundException,
InvalidPathException
createPathFromLink in interface Pathpath -
NodeNotFoundException
InvalidPathException - When the path is not continuous
public void createPathFromNode(java.util.List<Node> path)
throws NodeNotFoundException,
InvalidPathException
createPathFromNode in interface Pathpath -
NodeNotFoundException
InvalidPathException - When the path is not continuouspublic java.util.List<Link> getLinkPath()
getLinkPath in interface Pathpublic java.util.List<Node> getNodePath()
getNodePath in interface Pathpublic Node getSourceNode()
getSourceNode in interface Pathpublic float getSumLinkMetrics()
getSumLinkMetrics in interface Pathpublic Node getDestinationNode()
getDestinationNode in interface Pathpublic boolean containsLink(Link link)
containsLink in interface Pathlink -
public boolean equals(Path path)
equals in interface Pathpath -
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface PathtoString in class java.lang.Objectpublic java.lang.String toNodesString()
Path
toNodesString in interface Pathpublic java.lang.String toLinksString()
Path
toLinksString in interface Path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||