jist.swans.field
Interface PathLoss

All Known Implementing Classes:
PathLoss.FreeSpace, PathLoss.TwoRay

public interface PathLoss

Interface for performing pathloss calculations.

Since:
SWANS1.0
Version:
$Id: PathLoss.java,v 1.22 2004/06/23 17:15:54 barr Exp $
Author:
Rimon Barr <barr+jist@cs.cornell.edu>

Nested Class Summary
static class PathLoss.FreeSpace
          Computes free-space path loss.
static class PathLoss.TwoRay
          Computes two-ray path loss.
 
Method Summary
 double compute(RadioInfo srcRadio, Location srcLocation, RadioInfo dstRadio, Location dstLocation)
          Compute the path loss.
 

Method Detail

compute

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

Parameters:
srcRadio - source radio information
srcLocation - source location
dstRadio - destination radio information
dstLocation - destination location
Returns:
path loss (units: dB)