| 
 | ||||||||||
| 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.RadioNoiseAdditive
public class RadioNoiseAdditive
RadioNoiseAdditive implements a radio with an additive noise model.
| Field Summary | |
|---|---|
| protected  BERTable | berbit-error-rate table. | 
| static byte | BERbit-error-rate error model constant. | 
| static byte | SNRsignal-to-noise error model constant. | 
| protected  float | thresholdSNRthreshold signal-to-noise ratio. | 
| protected  double | totalPower_mWtotal signal power. | 
| protected  byte | typeradio type: SNR or BER. | 
| Fields inherited from class jist.swans.radio.RadioNoise | 
|---|
| fieldEntity, macEntity, mode, radioInfo, self, signalBuffer, signalFinish, signalPower_mW, signals | 
| Constructor Summary | |
|---|---|
| RadioNoiseAdditive(int id,
                   RadioInfo.RadioInfoShared shared)Create new radio with additive noise model. | |
| RadioNoiseAdditive(int id,
                   RadioInfo.RadioInfoShared shared,
                   BERTable ber)Create a new radio with additive noise model. | |
| RadioNoiseAdditive(int id,
                   RadioInfo.RadioInfoShared shared,
                   float snrThreshold_mW)Create a new radio with additive 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 | setBERTable(BERTable ber)Register a bit-error-rate table. | 
| 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 | 
|---|
public static final byte SNR
public static final byte BER
protected byte type
protected float thresholdSNR
protected BERTable ber
protected double totalPower_mW
| Constructor Detail | 
|---|
public RadioNoiseAdditive(int id,
                          RadioInfo.RadioInfoShared shared)
id - radio identifiershared - shared radio properties
public RadioNoiseAdditive(int id,
                          RadioInfo.RadioInfoShared shared,
                          float snrThreshold_mW)
id - radio identifiershared - shared radio propertiessnrThreshold_mW - threshold signal-to-noise ratio
public RadioNoiseAdditive(int id,
                          RadioInfo.RadioInfoShared shared,
                          BERTable ber)
id - radio identifiershared - shared radio propertiesber - bit-error-rate table| Method Detail | 
|---|
public void setBERTable(BERTable ber)
ber - bit-error-rate table
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 | |||||||||