|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.inet.tool.LinkCost
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 |
public LinkCost()
| Method Detail |
public double cost(int nodei,
int if_)
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||