Package org.yamcs.tctm.ccsds
Class ClcwStreamHelper
- java.lang.Object
-
- org.yamcs.tctm.ccsds.ClcwStreamHelper
-
public class ClcwStreamHelper extends Object
A CLCW stream is a stream used to pass the CLCW (Command Link Control Word - see CCSDS 232.0-B-3) between the receiver and the FOP1 processor.It is just a stream where the tuples have one column, an integer.
This class provides some methods to help create, publish and subscribe to such a stream.
-
-
Constructor Summary
Constructors Constructor Description ClcwStreamHelper(String yamcsInstance, String streamName)
Creates the stream with the given name in the given yamcs instance, if it does not already exist
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onClcw(IntConsumer c)
Register a consumer to be called each time a new CLCW is receivedvoid
quit()
void
sendClcw(int clcw)
Sends the CLCW down the stream
-
-
-
Method Detail
-
sendClcw
public void sendClcw(int clcw)
Sends the CLCW down the stream- Parameters:
clcw
-
-
onClcw
public void onClcw(IntConsumer c)
Register a consumer to be called each time a new CLCW is received- Parameters:
c
-
-
quit
public void quit()
-
-