jist.swans.field
Class PathLoss.TwoRay

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

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

Computes two-ray 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.TwoRay()
           
 
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.TwoRay

public PathLoss.TwoRay()
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)