|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITwigRouting
This is the base interface for one twig or "branch" of a route. It holds information related to routing.
| Method Summary | |
|---|---|
boolean |
alwaysEnd()
Return true if this twig is always the end of a limb |
boolean |
alwaysStart()
Return true if this twig is always the start of a limb |
double |
costFactor()
A multiplicative cost (price) factor for all behaviours. |
Distance |
distance(int tygi)
Return the distance incurred traversing this twig. |
Distance |
distance(int nextIndex,
int tygi)
Return the distance incurred traversing this twig then any transition to next |
boolean |
perturbHere()
Return true if route cost perturbation should be applied on this twig. |
Price |
price(int tygi)
Return the price incurred traversing this twig. |
Price |
price(int nextIndex,
int tygi)
Return the price incurred traversing this twig then any transition to next, |
IRouteClass |
routeClass()
The route class for this twig |
double |
routeDistanceFactor(IBehaviour b)
A per-behaviour multiplicative factor for distance on this twig. |
Distance |
routeLength()
The route length for this twig |
Price |
routePrice()
The route price for this twig |
double |
routePriceFactor(IBehaviour b)
A per-behaviour multiplicative factor for price on this twig. |
Speed |
routeSpeed()
The route speed for this twig |
double |
routeTimeFactor(IBehaviour b)
A per-behaviour multiplicative factor for time on this twig. |
UTime |
travelTime(int tygi)
Return the travel time incurred traversing this twig. |
UTime |
travelTime(int nextIndex,
int tygi)
Return the travel time incurred traversing this twig then any transition to next, |
| Method Detail |
|---|
IRouteClass routeClass()
Speed routeSpeed()
Distance routeLength()
Price routePrice()
Distance distance(int nextIndex,
int tygi)
UTime travelTime(int nextIndex,
int tygi)
Price price(int nextIndex,
int tygi)
Distance distance(int tygi)
UTime travelTime(int tygi)
Price price(int tygi)
double routeDistanceFactor(IBehaviour b)
double routeTimeFactor(IBehaviour b)
double routePriceFactor(IBehaviour b)
double costFactor()
routePriceFactor(IBehaviour)boolean perturbHere()
boolean alwaysStart()
boolean alwaysEnd()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||