|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.aircraft.Transponder
public class Transponder
The transponder class replicates the functionality of the real world transponder in the tail of an aircraft. The beacon code and Mode C altitude are the primary data managed here.See the source: Transponder.java
| Field Summary | |
|---|---|
private BeaconCode |
beaconCode
|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
private static SimulationTime |
DEFAULT_IDENT_TIME
Default time to ident for |
private boolean |
ident
|
private SimulationTime |
identTime
|
private boolean |
modeC
|
(package private) static long |
serialVersionUID
|
private boolean |
transmitterOn
|
| Constructor Summary | |
|---|---|
Transponder()
Constructor. |
|
Transponder(Scenario scenario)
|
|
| Method Summary | |
|---|---|
Transponder |
clone()
Return a true copy of the Transponder Object. |
BeaconCode |
getBeaconCode()
The following is the accessor method for the transponder beacon code for this aircraft. |
int |
getBeaconCodeInt()
|
java.lang.String |
getBeaconCodeStr()
|
boolean |
getModeC()
|
void |
ident(Scenario scenario)
Sets ident on and schedules a SimEvent to set ident off in Ident Time seconds. |
void |
ident(SimulationTime identDuration,
Scenario scenario)
Sets ident on and schedules a SimEvent to set ident off in a given amount of time |
boolean |
isIdenting()
Returns true if Transponder is identing; false if not. |
boolean |
isTransmitterOn()
|
void |
setBeaconCode(BeaconCode beaconCode)
|
void |
setBeaconCode(int beaconInt)
|
void |
setBeaconCode(java.lang.String beaconStr)
|
void |
setIdent(boolean enable)
Turns ident on and off. |
void |
setModeC(boolean enable)
The following are the accessor methods for enabling and disabling the mode C altitude part of the transponder transmitter. |
void |
setTransmitterOn(boolean transmitterOn)
The following are the accessor methods for enabling and disabling the transponder transmitter. |
java.lang.String |
toDraText()
Returns a the transponder information in text format. |
java.lang.String |
toString()
Returns a string representation of the transponder information. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
public static final java.lang.String CVS_VERSION_ID
private BeaconCode beaconCode
private boolean transmitterOn
private boolean modeC
private boolean ident
private final SimulationTime identTime
private static final SimulationTime DEFAULT_IDENT_TIME
| Constructor Detail |
|---|
public Transponder()
public Transponder(Scenario scenario)
| Method Detail |
|---|
public Transponder clone()
clone in class java.lang.Objectpublic BeaconCode getBeaconCode()
public java.lang.String getBeaconCodeStr()
public int getBeaconCodeInt()
public void setBeaconCode(BeaconCode beaconCode)
public void setBeaconCode(int beaconInt)
public void setBeaconCode(java.lang.String beaconStr)
public void setTransmitterOn(boolean transmitterOn)
public boolean isTransmitterOn()
public void ident(Scenario scenario)
public void ident(SimulationTime identDuration,
Scenario scenario)
public void setIdent(boolean enable)
public boolean isIdenting()
public void setModeC(boolean enable)
public boolean getModeC()
public java.lang.String toDraText()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||