public class DefaultDisjointPath extends DefaultPath implements DisjointPath
DefaultLink.BuilderAbstractProjectableModel.AnnotationDriverDataLink.State, Link.TypeNO_DRIVER, NO_DRIVER_SERVICE| Constructor and Description |
|---|
DefaultDisjointPath(ProviderId providerId,
DefaultPath path1)
Creates a disjoint path pair from single default paths.
|
DefaultDisjointPath(ProviderId providerId,
DefaultPath path1,
DefaultPath path2)
Creates a disjoint path pair from two default paths.
|
| Modifier and Type | Method and Description |
|---|---|
Path |
backup()
Gets secondary path.
|
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.
|
Path |
primary()
Gets primary path.
|
boolean |
useBackup()
Deprecated.
|
Weight |
weight()
Returns the path cost as an weight instance.
|
toStringbuilder, dst, isExpected, src, state, typeas, asData, bindAndCheckDriver, bindDriver, driver, driverService, is, locateDriver, setDriverServiceproviderIdannotationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitannotationsproviderIdas, is, projectpublic DefaultDisjointPath(ProviderId providerId, DefaultPath path1, DefaultPath path2)
providerId - provider identitypath1 - primary pathpath2 - backup pathpublic DefaultDisjointPath(ProviderId providerId, DefaultPath path1)
providerId - provider identitypath1 - primary pathpublic List<Link> links()
Pathlinks in interface Pathlinks in class DefaultPathpublic double cost()
Pathcost in interface Pathcost in class DefaultPathpublic Weight weight()
Pathweight in interface Pathweight in class DefaultPathpublic Path primary()
DisjointPathprimary in interface DisjointPathpublic Path backup()
DisjointPathbackup in interface DisjointPathpublic int hashCode()
hashCode in class DefaultPathpublic boolean equals(Object obj)
equals in class DefaultPath@Deprecated public boolean useBackup()
DisjointPathuseBackup in interface DisjointPath