public class Simulator
extends com.google.common.util.concurrent.AbstractExecutionThreadService
| Modifier and Type | Field and Description |
|---|---|
protected BlockingQueue<CCSDSPacket> |
pendingCommands |
| Constructor and Description |
|---|
Simulator(File dataDir,
int tmPort,
int tcPort,
int losPort) |
| Modifier and Type | Method and Description |
|---|---|
protected CCSDSPacket |
ackPacket(CCSDSPacket commandPacket,
int stage,
int result) |
void |
deleteLosDataFile(String filename) |
void |
dumpLosDataFile(String filename) |
Date |
getLastLosStart() |
Date |
getLastLosStop() |
LosRecorder |
getLosDataRecorder()
this runs in a separate thread but pushes commands to the main TM thread
|
boolean |
isLOS() |
void |
processTc(CCSDSPacket tc) |
protected CCSDSPacket |
readLosPacket(DataInputStream dIn) |
void |
run() |
void |
setAOS() |
void |
setLOS() |
void |
setLosLink(TmTcLink losLink) |
void |
setTmLink(TmTcLink tmLink) |
protected void |
transmitTM(CCSDSPacket packet) |
protected BlockingQueue<CCSDSPacket> pendingCommands
public Simulator(File dataDir, int tmPort, int tcPort, int losPort)
public void run()
run in class com.google.common.util.concurrent.AbstractExecutionThreadServicepublic LosRecorder getLosDataRecorder()
public boolean isLOS()
public Date getLastLosStart()
public Date getLastLosStop()
public void setAOS()
public void setLOS()
protected void transmitTM(CCSDSPacket packet)
public void dumpLosDataFile(String filename)
public void deleteLosDataFile(String filename)
protected CCSDSPacket ackPacket(CCSDSPacket commandPacket, int stage, int result)
public void setTmLink(TmTcLink tmLink)
public void processTc(CCSDSPacket tc)
protected CCSDSPacket readLosPacket(DataInputStream dIn)
public void setLosLink(TmTcLink losLink)
Copyright © 2018 Space Applications Services. All rights reserved.