DRCL J-Sim API

drcl.inet.tool
Class LinkCost

java.lang.Object
  extended bydrcl.inet.tool.LinkCost

public class LinkCost
extends java.lang.Object

Link cost function. Subclasses should override cost(int, int). By default, it implements unity cost, i.e., cost is always 1.0.


Constructor Summary
LinkCost()
           
 
Method Summary
 double cost(int nodei, int if_)
          Returns the cost of the link from node i through interface if_.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkCost

public LinkCost()
Method Detail

cost

public double cost(int nodei,
                   int if_)
Returns the cost of the link from node i through interface if_.


DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~