java.lang.Object
com.google.common.util.concurrent.AbstractExecutionThreadService
org.yamcs.simulator.UdpTcFrameLink
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
public class UdpTcFrameLink
extends com.google.common.util.concurrent.AbstractExecutionThreadService
Simulator TC link implementing the CCSDS 232.0-B-3 (TC SPACE DATA LINK PROTOCOL)
and partly CCSDS 231.0-B-3 (TC SYNCHRONIZATION AND CHANNEL CODING)
It receives TCs as CLTUs via UDP (one UDP frame = one CLTU)
-
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 -
Constructor Summary
ConstructorsConstructorDescriptionUdpTcFrameLink(ColSimulator simulator, int port, byte[] maybeSdlsKey, short encryptionSpi, int encryptionSeqNumWindow, boolean verifySeqNum) -
Method Summary
Methods inherited from class com.google.common.util.concurrent.AbstractExecutionThreadService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, shutDown, startAsync, state, stopAsync, toString, triggerShutdown
-
Constructor Details
-
UdpTcFrameLink
public UdpTcFrameLink(ColSimulator simulator, int port, byte[] maybeSdlsKey, short encryptionSpi, int encryptionSeqNumWindow, boolean verifySeqNum)
-
-
Method Details
-
startUp
- Overrides:
startUpin classcom.google.common.util.concurrent.AbstractExecutionThreadService- Throws:
IOException
-
run
- Specified by:
runin classcom.google.common.util.concurrent.AbstractExecutionThreadService- Throws:
Exception
-
getClcw
public int getClcw()
-