jist.swans.field
Class PathLoss.FreeSpace

java.lang.Object
  extended by jist.swans.field.PathLoss.FreeSpace
All Implemented Interfaces:
PathLoss
Enclosing interface:
PathLoss

public static final class PathLoss.FreeSpace
extends java.lang.Object
implements PathLoss

Computes free-space path loss. Equivalent to GloMoSim code.

Since:
SWANS1.0
Author:
Rimon Barr <barr+jist@cs.cornell.edu>

Nested Class Summary
 
Nested classes/interfaces inherited from interface jist.swans.field.PathLoss
PathLoss.FreeSpace, PathLoss.TwoRay
 
Constructor Summary
PathLoss.FreeSpace()
           
 
Method Summary
 double compute(RadioInfo srcRadio, Location srcLocation, RadioInfo dstRadio, Location dstLocation)
          Compute the path loss.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathLoss.FreeSpace

public PathLoss.FreeSpace()
Method Detail

compute

public double compute(RadioInfo srcRadio,
                      Location srcLocation,
                      RadioInfo dstRadio,
                      Location dstLocation)
Compute the path loss.

Specified by:
compute in interface PathLoss
Parameters:
srcRadio - source radio information
srcLocation - source location
dstRadio - destination radio information
dstLocation - destination location
Returns:
path loss (units: dB)