Sim
Class SimulationParameters

java.lang.Object
  extended by Sim.SimulationParameters

public class SimulationParameters
extends java.lang.Object

SimulationParameters holds global Simulation parameters.


Constructor Summary
SimulationParameters(double idlePowerUse, double transmitPowerUse, double transferRate, double noiseRate, double simDuration, int randomSeed)
          Constructs a new SimulationParameters
 
Method Summary
 double getIdlePowerUse()
          Amount of power used per second while idling.
 double getNoiseRate()
          Percentage of packets lost due to noise at the receiver.
 int getRandomSeed()
          Gets the random number generator seed.
 double getSimDuration()
          Gets the duration of simulation in seconds.
 double getTransferRate()
          Wireless network transfer speed in bits per second.
 double getTransmitPowerUse()
          Amount of power used per second while transmitting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulationParameters

public SimulationParameters(double idlePowerUse,
                            double transmitPowerUse,
                            double transferRate,
                            double noiseRate,
                            double simDuration,
                            int randomSeed)
Constructs a new SimulationParameters

Parameters:
idlePowerUse - amount of power used per second while idling
transmitPowerUse - amount of power used per second while transmitting
transferRate - wireless network transfer speed in bits per second
noiseRate - percentage of packets lost due to noise at the receiver
simDuration - duration of simulation in seconds
randomSeed - random number generator seed
Method Detail

getIdlePowerUse

public double getIdlePowerUse()
Amount of power used per second while idling.


getTransmitPowerUse

public double getTransmitPowerUse()
Amount of power used per second while transmitting.


getTransferRate

public double getTransferRate()
Wireless network transfer speed in bits per second.


getNoiseRate

public double getNoiseRate()
Percentage of packets lost due to noise at the receiver.


getSimDuration

public double getSimDuration()
Gets the duration of simulation in seconds.


getRandomSeed

public int getRandomSeed()
Gets the random number generator seed.