Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## avrora.sim.radio.freespace
Class LocalAir.PowerRadioPacket

    java.lang.Object
      avrora.sim.radio.freespace.LocalAir.PowerRadioPacket

Enclosing class:
  LocalAir

public static class LocalAir.PowerRadioPacket
extends java.lang.Object

class to model a packet and transmission power

Field Summary
`protected Radio.RadioPacket` | `packet`
`protected double` | `power`
`protected Radio` | `sender`

Constructor Summary
`LocalAir.PowerRadioPacket(Radio.RadioPacket p, double pow, Radio s)` new packet

Method Summary
`double` | `getPower()` get the transmission power
`Radio.RadioPacket` | `getRadioPacket()` get the radio packet

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### packet

    protected Radio.RadioPacket packet

### power

    protected double power

### sender

    protected Radio sender

Constructor Detail

### LocalAir.PowerRadioPacket

    public LocalAir.PowerRadioPacket(Radio.RadioPacket p,
                                     double pow,
                                     Radio s)

  new packet

Parameters:
  `p` - packet
  `pow` - transmission power

Method Detail

### getRadioPacket

    public Radio.RadioPacket getRadioPacket()

  get the radio packet

  Returns:
    radio packet

### getPower

    public double getPower()

  get the transmission power

  Returns:
    power

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD