// with the new value of "distance."
double powerPropagationFactorValue = ((DoubleToken) powerPropagationFactor
.getToken()).doubleValue();
// Calculate the receive power.
double receivePower = transmitPower.doubleValue()
* powerPropagationFactorValue;
// Create a record token with the receive power.
String[] names = { "power" };
Token[] values = { new DoubleToken(receivePower) };