|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.swans.radio.RadioNoise
jist.swans.radio.RadioNoiseIndep
public final class RadioNoiseIndep
RadioNoiseIndep implements a radio with an independent noise model.
| Field Summary | |
|---|---|
protected double |
thresholdSNR
threshold signal-to-noise ratio. |
| Fields inherited from class jist.swans.radio.RadioNoise |
|---|
fieldEntity, macEntity, mode, radioInfo, self, signalBuffer, signalFinish, signalPower_mW, signals |
| Constructor Summary | |
|---|---|
RadioNoiseIndep(int id,
RadioInfo.RadioInfoShared sharedInfo)
Create new radio with independent noise model. |
|
RadioNoiseIndep(int id,
RadioInfo.RadioInfoShared sharedInfo,
double thresholdSNR)
Create new radio with independent noise model. |
|
| Method Summary | |
|---|---|
void |
endReceive(java.lang.Double powerObj_mW)
End message reception. |
void |
receive(Message msg,
java.lang.Double powerObj_mW,
java.lang.Long durationObj)
Start receiving message. |
void |
setThresholdSNR(double snrThreshold)
Set signal-to-noise ratio. |
| Methods inherited from class jist.swans.radio.RadioNoise |
|---|
endTransmit, getProxy, getRadioInfo, lockSignal, setFieldEntity, setMacEntity, setMode, setSleepMode, transmit, unlockSignal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double thresholdSNR
| Constructor Detail |
|---|
public RadioNoiseIndep(int id,
RadioInfo.RadioInfoShared sharedInfo)
id - radio identifiersharedInfo - shared radio properties
public RadioNoiseIndep(int id,
RadioInfo.RadioInfoShared sharedInfo,
double thresholdSNR)
id - radio identifiersharedInfo - shared radio propertiesthresholdSNR - threshold signal-to-noise ratio| Method Detail |
|---|
public void setThresholdSNR(double snrThreshold)
snrThreshold - threshold signal-to-noise ratio
public void receive(Message msg,
java.lang.Double powerObj_mW,
java.lang.Long durationObj)
msg - incoming messagepowerObj_mW - signal strength of incoming message (units: mW)durationObj - time until end of transmission (units: simtime)public void endReceive(java.lang.Double powerObj_mW)
powerObj_mW - signal strength of incoming message (units: mW)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||