public class DefaultPath extends DefaultLink implements Path
Link.State, Link.Type| Constructor and Description |
|---|
DefaultPath(ProviderId providerId,
List<Link> links,
double cost,
Annotations... annotations)
Creates a path from the specified source and destination using the
supplied list of links.
|
| Modifier and Type | Method and Description |
|---|---|
double |
cost()
Returns the path cost as a unit-less value.
|
boolean |
equals(Object obj) |
int |
hashCode() |
List<Link> |
links()
Returns sequence of links comprising the path.
|
dst, isDurable, src, state, toString, typeproviderIdannotationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitannotationsproviderIdpublic DefaultPath(ProviderId providerId, List<Link> links, double cost, Annotations... annotations)
providerId - provider identitylinks - contiguous links that comprise the pathcost - unit-less path costannotations - optional key/value annotationspublic List<Link> links()
Pathpublic double cost()
Pathpublic int hashCode()
hashCode in class DefaultLinkpublic boolean equals(Object obj)
equals in class DefaultLinkCopyright © 2015. All rights reserved.