Home | History | Annotate | Download | only in routing

Lines Matching refs:plan

61      * @param plan      the planned route
69 public int nextStep(RouteInfo plan, RouteInfo fact) {
70 if (plan == null) {
78 step = firstStep(plan);
79 else if (plan.getHopCount() > 1)
80 step = proxiedStep(plan, fact);
82 step = directStep(plan, fact);
92 * @param plan the planned route
96 protected int firstStep(RouteInfo plan) {
98 return (plan.getHopCount() > 1) ?
106 * @param plan the planned route
112 protected int directStep(RouteInfo plan, RouteInfo fact) {
116 if (!plan.getTargetHost().equals(fact.getTargetHost()))
124 // (plan.isSecure() && !fact.isSecure())
125 if (plan.isSecure() != fact.isSecure())
128 // Local address has to match only if the plan specifies one.
129 if ((plan.getLocalAddress() != null) &&
130 !plan.getLocalAddress().equals(fact.getLocalAddress())
141 * @param plan the planned route
147 protected int proxiedStep(RouteInfo plan, RouteInfo fact) {
151 if (!plan.getTargetHost().equals(fact.getTargetHost()))
153 final int phc = plan.getHopCount();
159 if (!plan.getHopTarget(i).equals(fact.getHopTarget(i)))
167 if ((fact.isTunnelled() && !plan.isTunnelled()) ||
168 (fact.isLayered() && !plan.isLayered()))
171 if (plan.isTunnelled() && !fact.isTunnelled())
173 if (plan.isLayered() && !fact.isLayered())
178 // (plan.isSecure() && !fact.isSecure())
179 if (plan.isSecure() != fact.isSecure())