Package org.yamcs.simulator
Class UdpTmFrameLink
- java.lang.Object
-
- com.google.common.util.concurrent.AbstractScheduledService
-
- org.yamcs.simulator.UdpTmFrameLink
-
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
public class UdpTmFrameLink extends com.google.common.util.concurrent.AbstractScheduledServiceSimulator link implementing the TM frames using one of the three CCSDS specs: AOS CCSDS 732.0-B-3 TM CCSDS 132.0-B-2 USLP CCSDS 732.1-B-1 Sends frames of predefined size at a configured frequency. If there is no data to send, it sends idle frames.
-
-
Constructor Summary
Constructors Constructor Description UdpTmFrameLink(String frameType, String host, int port, int frameLength, double framesPerSec, IntSupplier clcwSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidqueuePacket(int vcId, byte[] packet)queue packet for virtual channelprotected voidrunOneIteration()protected com.google.common.util.concurrent.AbstractScheduledService.Schedulerscheduler()protected voidstartUp()
-
-
-
Constructor Detail
-
UdpTmFrameLink
public UdpTmFrameLink(String frameType, String host, int port, int frameLength, double framesPerSec, IntSupplier clcwSupplier)
-
-
Method Detail
-
startUp
protected void startUp() throws Exception- Overrides:
startUpin classcom.google.common.util.concurrent.AbstractScheduledService- Throws:
Exception
-
scheduler
protected com.google.common.util.concurrent.AbstractScheduledService.Scheduler scheduler()
- Specified by:
schedulerin classcom.google.common.util.concurrent.AbstractScheduledService
-
runOneIteration
protected void runOneIteration() throws Exception- Specified by:
runOneIterationin classcom.google.common.util.concurrent.AbstractScheduledService- Throws:
Exception
-
queuePacket
public void queuePacket(int vcId, byte[] packet)queue packet for virtual channel- Parameters:
vcId-packet-
-
-