org.lucci.madhoc.network.cost
Class LinearCostModel

java.lang.Object
  extended by org.lucci.madhoc.network.cost.CostModel
      extended by org.lucci.madhoc.network.cost.LinearCostModel
All Implemented Interfaces:
Configurable

public class LinearCostModel
extends CostModel


Constructor Summary
LinearCostModel()
           
 
Method Summary
 void configure()
           
 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.
 double getPriceForOneSingleByte()
           
 void setPriceForOneSingleByte(double priceForOneSingleByte)
           
 
Methods inherited from class org.lucci.madhoc.network.cost.CostModel
getSimulation, setSimulation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearCostModel

public LinearCostModel()
Method Detail

configure

public void configure()
               throws java.lang.Throwable
Throws:
java.lang.Throwable

getPriceForOneSingleByte

public double getPriceForOneSingleByte()

setPriceForOneSingleByte

public void setPriceForOneSingleByte(double priceForOneSingleByte)

getCost

public double getCost(int numberOfBytes,
                      int history)
Description copied from class: CostModel
Process the price for a transfer of numberOfBytes knowing that history bytes have already been transfered by the same station.

Specified by:
getCost in class CostModel
Returns: