|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.emulator.world.MovableObject edu.cmu.emulator.world.Antenna
public abstract class Antenna
Parent of all antennas. Contains common functionality as well as the functionality needed to interface the antenna with the DSP. antennas are stored in an array that is indexed by the order of antenna definition
Field Summary | |
---|---|
protected int |
antennaIndex
|
protected int |
elementN
|
protected int |
emulatedTransmitPower
|
protected EmuNIC |
emuNIC
|
protected int |
emuPortID
the global index of this antenna |
protected int |
hardwareTransmitPower
|
protected double |
txAmpGain
|
Fields inherited from class edu.cmu.emulator.world.MovableObject |
---|
accelerationMPS2, attributeMap, children, dirOrientation, groupWorker, ID_ACCELERATION_MPS2, ID_ORIENTATION, ID_POSITION, ID_ROTATION, ID_VELOCITY_MPS, name, navigator, OM_PARENT, OM_VELOCITY, orientation, orientationMode, parent, position, rotation, segmentEndMillis, segmentEndPos, segmentListenerManager, segmentStartMillis, segmentStartPos, uName, velocityMPS |
Constructor Summary | |
---|---|
Antenna(EmuNIC emuNIC,
int hardwareTransmitPower,
int emuPortID,
int antennaIndex,
int elementN)
Constructor |
Method Summary | |
---|---|
int |
getAntennaIndex()
|
int |
getElementN()
|
int |
getEmulatedTransmitPower()
Returns the emulated transmit power of the antenna. |
int |
getEmuPortID()
|
int |
getEmuPortIndex()
Returns the index of the physical emulator port to which the antenna is connected. |
abstract double |
getGain(double[] direction)
Abstract method that returns the Gain of the antenna in the direction specified. |
int |
getHardwareTransmitPower()
Returns the hardware transmit power of the antenna. |
EmuNIC |
getNIC()
Returns the NIC object to which the antenna is attached. |
double |
getTxAmpGain()
|
void |
setEmulatedTransmitPower(int emulatedTransmitPower)
Sets the antenna's emulated transmit power to the value specified. |
void |
setTxAmpGain(double txAmpGain)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected EmuNIC emuNIC
protected int antennaIndex
protected int emuPortID
protected int hardwareTransmitPower
protected int emulatedTransmitPower
protected double txAmpGain
protected int elementN
Constructor Detail |
---|
public Antenna(EmuNIC emuNIC, int hardwareTransmitPower, int emuPortID, int antennaIndex, int elementN)
emuNIC
- The NIC object to which this antenna is attached.hardwareTransmitPower
- The hardware transmit power of the antenna.emuPortIndex
- The physical emulator port index to which
the antenna is attached.antennaIndex
- The antenna index required by support routines which
access the antennasMethod Detail |
---|
public int getAntennaIndex()
public int getElementN()
public abstract double getGain(double[] direction)
direction
- The EVector representation of the antenna orientation
public int getEmuPortID()
public int getEmuPortIndex()
public EmuNIC getNIC()
public int getHardwareTransmitPower()
public void setEmulatedTransmitPower(int emulatedTransmitPower)
emulatedTransmitPower
- The value to which the antenna's emulated
transmit power should be set to.public int getEmulatedTransmitPower()
public double getTxAmpGain()
public void setTxAmpGain(double txAmpGain)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |