Package org.yamcs.simulator.pus
Class PusSimulator
- java.lang.Object
-
- com.google.common.util.concurrent.AbstractService
-
- org.yamcs.simulator.AbstractSimulator
-
- org.yamcs.simulator.pus.PusSimulator
-
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
public class PusSimulator extends AbstractSimulator
PUS (Packet Utilisation Standard) simulator. Supports services:- ST[01] - request verification
- ST[03] - housekeeping
- ST[05] - event reporting - TODO
- ST[06] - memory management - TODO
- ST[09] - time management - only sending the time packet
- ST[11] - time based schedule - TODO
- ST[12] - on-board monitoring - TODO
- ST[13] - large packet transfer - TODO
- ST[15] - on-board storage and retrieval - TODO
- ST[23] - file management - TODO
-
-
Field Summary
Fields Modifier and Type Field Description protected BlockingQueue<PusTcPacket>pendingCommands
-
Constructor Summary
Constructors Constructor Description PusSimulator(File dataDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PusTmPacketack(PusTcPacket commandPacket, int subtype)protected voiddoStart()protected voiddoStop()protected PusTmPacketnack(PusTcPacket commandPacket, int subtype, int code)voidprocessTc(SimulatorCcsdsPacket tc)protected voidsetLosLink(TcpTmTcLink losLink)protected voidsetTm2Link(TcpTmTcLink tm2Link)protected voidsetTmLink(TcpTmTcLink tmLink)voidtransmitCfdp(CfdpPacket 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 Detail
-
pendingCommands
protected BlockingQueue<PusTcPacket> pendingCommands
-
-
Constructor Detail
-
PusSimulator
public PusSimulator(File dataDir)
-
-
Method Detail
-
doStart
protected void doStart()
- Specified by:
doStartin classcom.google.common.util.concurrent.AbstractService
-
doStop
protected void doStop()
- Specified by:
doStopin classcom.google.common.util.concurrent.AbstractService
-
transmitCfdp
public void transmitCfdp(CfdpPacket packet)
- Specified by:
transmitCfdpin classAbstractSimulator
-
processTc
public void processTc(SimulatorCcsdsPacket tc)
- Specified by:
processTcin classAbstractSimulator
-
ack
protected PusTmPacket ack(PusTcPacket commandPacket, int subtype)
-
nack
protected PusTmPacket nack(PusTcPacket commandPacket, int subtype, int code)
-
setTmLink
protected void setTmLink(TcpTmTcLink tmLink)
- Specified by:
setTmLinkin classAbstractSimulator
-
setTm2Link
protected void setTm2Link(TcpTmTcLink tm2Link)
- Specified by:
setTm2Linkin classAbstractSimulator
-
setLosLink
protected void setLosLink(TcpTmTcLink losLink)
- Specified by:
setLosLinkin classAbstractSimulator
-
-