Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | List of all members
CommNet.IRangeModel Interface Reference

The range model used by comment. Any range model needs to implement two methds: one for determining whether two nodes of the given power are in range, and one for determining what the uncorrected 0-1 strength of the link is. More...

Inheritance diagram for CommNet.IRangeModel:
CommNet.CommRangeModel

Public Member Functions

double GetMaximumRange (double aPower, double bPower)
 Returns the maximum range between the two antenna powers More...
 
double GetNormalizedRange (double aPower, double bPower, double distance)
 Return true iff the connection a<->b is in range, given the square of the distance between them sqrDistance More...
 
bool InRange (double aPower, double bPower, double sqrDistance)
 Given two antenna powers, return the 1 - distance / (their range) More...
 

Detailed Description

The range model used by comment. Any range model needs to implement two methds: one for determining whether two nodes of the given power are in range, and one for determining what the uncorrected 0-1 strength of the link is.

Member Function Documentation

double CommNet.IRangeModel.GetMaximumRange ( double  aPower,
double  bPower 
)

Returns the maximum range between the two antenna powers

Parameters
aPower
bPower
Returns

Implemented in CommNet.CommRangeModel.

double CommNet.IRangeModel.GetNormalizedRange ( double  aPower,
double  bPower,
double  distance 
)

Return true iff the connection a<->b is in range, given the square of the distance between them sqrDistance

Parameters
aPower
bPower
sqrDistance
Returns

Implemented in CommNet.CommRangeModel.

bool CommNet.IRangeModel.InRange ( double  aPower,
double  bPower,
double  sqrDistance 
)

Given two antenna powers, return the 1 - distance / (their range)

Parameters
aPower
bPower
distance
Returns

Implemented in CommNet.CommRangeModel.


The documentation for this interface was generated from the following file: