public class DefaultPath extends DefaultLink implements Path
DefaultLink.BuilderAbstractProjectableModel.AnnotationDriverDataLink.State, Link.TypeNO_DRIVER, NO_DRIVER_SERVICE| Constructor and Description |
|---|
DefaultPath(ProviderId providerId,
List<Link> links,
Weight 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.
|
String |
toString() |
Weight |
weight()
Returns the path cost as an weight instance.
|
builder, dst, isExpected, src, state, typeas, asData, bindAndCheckDriver, bindDriver, driver, driverService, is, locateDriver, setDriverServiceproviderIdannotationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitannotationsproviderIdas, is, projectpublic DefaultPath(ProviderId providerId, List<Link> links, Weight 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 Weight weight()
Pathpublic String toString()
toString in class DefaultLinkpublic int hashCode()
hashCode in class DefaultLinkpublic boolean equals(Object obj)
equals in class DefaultLink