Package org.yamcs.simulator
Class ColSimulator
java.lang.Object
com.google.common.util.concurrent.AbstractService
org.yamcs.simulator.AbstractSimulator
org.yamcs.simulator.ColSimulator
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
Simulator working with Columbus/ISS kind of packet structure
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ColumbusCcsdsPacket
ackPacket
(ColumbusCcsdsPacket commandPacket, int stage, int result) void
deleteLosDataFile
(String filename) protected void
doStart()
protected void
doStop()
void
dumpLosDataFile
(String filename) this runs in a separate thread but pushes commands to the main TM threadboolean
isLOS()
int
void
protected ColumbusCcsdsPacket
void
setAOS()
void
setCfdpSender
(CfdpSender cfdpSender) void
setLOS()
void
setLosLink
(TcpTmTcLink losLink) void
void
setTcFrameLink
(UdpTcFrameLink tcFrameLink) void
setTm2Link
(TcpTmTcLink tm2Link) void
setTmFrameLink
(UdpTmFrameLink tmFrameLink) void
setTmLink
(TcpTmTcLink tmLink) void
transmitCfdp
(CfdpPacket packet) void
protected void
transmitTM2
(byte[] packet) Methods inherited from class com.google.common.util.concurrent.AbstractService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, doCancelStart, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toString
-
Field Details
-
pendingCommands
-
-
Constructor Details
-
ColSimulator
-
-
Method Details
-
setCfdpSender
- Overrides:
setCfdpSender
in classAbstractSimulator
-
getLosDataRecorder
this runs in a separate thread but pushes commands to the main TM thread -
isLOS
public boolean isLOS() -
getLastLosStart
-
getLastLosStop
-
setAOS
public void setAOS() -
setLOS
public void setLOS() -
transmitRealtimeTM
-
transmitTM2
protected void transmitTM2(byte[] packet) -
dumpLosDataFile
-
deleteLosDataFile
-
ackPacket
-
setTmLink
- Specified by:
setTmLink
in classAbstractSimulator
-
setTm2Link
- Specified by:
setTm2Link
in classAbstractSimulator
-
processTc
- Specified by:
processTc
in classAbstractSimulator
-
readLosPacket
-
setLosLink
- Specified by:
setLosLink
in classAbstractSimulator
-
setTmFrameLink
-
setTcFrameLink
-
doStart
protected void doStart()- Specified by:
doStart
in classcom.google.common.util.concurrent.AbstractService
-
doStop
protected void doStop()- Specified by:
doStop
in classcom.google.common.util.concurrent.AbstractService
-
transmitCfdp
- Specified by:
transmitCfdp
in classAbstractSimulator
-
setPerfPacketGenerator
-
maxTmDataSize
public int maxTmDataSize()- Specified by:
maxTmDataSize
in classAbstractSimulator
-