|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.lucci.madhoc.network.cost.CostModel
public abstract class CostModel
Constructor Summary | |
---|---|
CostModel()
|
Method Summary | |
---|---|
abstract double |
getCost(int numberOfBytes,
int history)
Process the price for a transfer of numberOfBytes knowing that history bytes have already been transfered by the same station. |
Simulation |
getSimulation()
|
void |
setSimulation(Simulation simulation)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.lucci.madhoc.simulation.Configurable |
---|
configure |
Constructor Detail |
---|
public CostModel()
Method Detail |
---|
public abstract double getCost(int numberOfBytes, int history)
numberOfBytes
- history
-
public Simulation getSimulation()
public void setSimulation(Simulation simulation)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |