|
||||||||||
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 org.lucci.madhoc.network.cost.LinearCostModel
public class LinearCostModel
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 |
---|
public LinearCostModel()
Method Detail |
---|
public void configure() throws java.lang.Throwable
java.lang.Throwable
public double getPriceForOneSingleByte()
public void setPriceForOneSingleByte(double priceForOneSingleByte)
public double getCost(int numberOfBytes, int history)
CostModel
getCost
in class CostModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |