org.lucci.madhoc.network.cost
Class CostModel

java.lang.Object
  extended by org.lucci.madhoc.network.cost.CostModel
All Implemented Interfaces:
Configurable
Direct Known Subclasses:
LinearCostModel, ThresholdedCostModel, ZeroCostModel

public abstract class CostModel
extends java.lang.Object
implements Configurable


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

CostModel

public CostModel()
Method Detail

getCost

public 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.

Parameters:
numberOfBytes -
history -
Returns:

getSimulation

public Simulation getSimulation()

setSimulation

public void setSimulation(Simulation simulation)