yab.agent
Interface Router.CostFunction

Enclosing interface:
Router

public static interface Router.CostFunction


Method Summary
 float cost(MotionlessObject from, MotionlessObject to)
          This method returns cost for reaching the to from the from.
 

Method Detail

cost

public float cost(MotionlessObject from,
                  MotionlessObject to)
This method returns cost for reaching the to from the from. When the to is a road, this method should return cost for reaching short of the road's another end-point from the from.