|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.datalink.DatalinkEquipment
public class DatalinkEquipment
This class encapsulates the functionality of the datalink
Equipment on an Aircraft
| Field Summary | |
|---|---|
private Aircraft |
aircraft
|
private static boolean |
autoWilco
|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
private java.util.List<Dmsg> |
dmsgList
|
private static DatalinkRep |
drep
|
private DatalinkMsgMgr |
mgr
|
private static java.lang.String |
WILCO
|
| Constructor Summary | |
|---|---|
DatalinkEquipment(Aircraft ac)
Constructor |
|
| Method Summary | |
|---|---|
void |
addDcUpMsgListener(DcUpMsgListener lis)
Registers a DcUpMsgListener to receive a data com up link message |
SimulationTime |
getCurrentSimTime()
Returns current sim time |
void |
handleFlightTerminatedEvent(FlightTerminatedEvent evt)
Respond to incoming flight terminated Event |
void |
newDmsgToAircraft(Dmsg dmsg)
Sends a new datalink message to an aircraft |
protected void |
processCmds(int refMsgNum,
java.lang.String cmds)
processes given commands |
boolean |
processDatalinkMessage(int messageNum,
TgfResponseType response)
Process data link message |
private boolean |
removeMessageFromAc(int msgNum)
Remove message from internal list |
void |
sendDownlinkMsgFromAircraft(DownlinkRequestInterface request)
send down link message from aircraft |
protected void |
sendEvent(java.lang.String orgMsg,
SimulationTime orgMsgRecievedTime,
RpDmsg responseMsg)
Send message to listeners |
RpDmsg |
sendResponseFromAircraft(int msgNum,
java.lang.String msg)
Send response message from Aircraft |
static void |
setAutoWilco(boolean boo)
Set whether auto wilco is enabled |
static void |
setDatalinkRep(DatalinkRep dr)
Set the Datalink Rep |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CVS_VERSION_ID
private java.util.List<Dmsg> dmsgList
private Aircraft aircraft
private DatalinkMsgMgr mgr
private static DatalinkRep drep
private static boolean autoWilco
private static final java.lang.String WILCO
| Constructor Detail |
|---|
public DatalinkEquipment(Aircraft ac)
ac - - the aircraft this equipment is for| Method Detail |
|---|
public static void setDatalinkRep(DatalinkRep dr)
dr - - the DatalinkReppublic static void setAutoWilco(boolean boo)
boo - - whether auto wilco is enabledpublic void newDmsgToAircraft(Dmsg dmsg)
dmsg - - the message to sendprivate boolean removeMessageFromAc(int msgNum)
msgNum - - the number of the message to remove
public RpDmsg sendResponseFromAircraft(int msgNum,
java.lang.String msg)
msgNum - - the number of the message to respond tomsg - - the message response text
public void sendDownlinkMsgFromAircraft(DownlinkRequestInterface request)
request - - the requestpublic void addDcUpMsgListener(DcUpMsgListener lis)
lis - - the listener to addpublic void handleFlightTerminatedEvent(FlightTerminatedEvent evt)
handleFlightTerminatedEvent in interface FlightTerminatedListener
protected void processCmds(int refMsgNum,
java.lang.String cmds)
refMsgNum - - the number of the message that contained the commandscmds - - the commands to process
public boolean processDatalinkMessage(int messageNum,
TgfResponseType response)
messageNum - - the message numberresponse - - how to respond to message
protected void sendEvent(java.lang.String orgMsg,
SimulationTime orgMsgRecievedTime,
RpDmsg responseMsg)
orgMsg - - text of orginal messageorgMsgRecievedTime - - time orginal message recievedresponseMsg - - the responsepublic SimulationTime getCurrentSimTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||