|
||||||||||
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 Path
path
-
NodeNotFoundException
InvalidPathException
- When the path is not continuouspublic void createPathFromNode(java.util.List<Node> path) throws NodeNotFoundException, InvalidPathException
createPathFromNode
in interface Path
path
-
NodeNotFoundException
InvalidPathException
- When the path is not continuouspublic java.util.List<Link> getLinkPath()
getLinkPath
in interface Path
public java.util.List<Node> getNodePath()
getNodePath
in interface Path
public Node getSourceNode()
getSourceNode
in interface Path
public float getSumLinkMetrics()
getSumLinkMetrics
in interface Path
public Node getDestinationNode()
getDestinationNode
in interface Path
public boolean containsLink(Link link)
containsLink
in interface Path
link
-
public boolean equals(Path path)
equals
in interface Path
path
-
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface Path
toString
in class java.lang.Object
public java.lang.String toNodesString()
Path
toNodesString
in interface Path
public 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 |