Class 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 Detail

      • ClcwStreamHelper

        public ClcwStreamHelper​(String yamcsInstance,
                                String streamName)
        Creates the stream with the given name in the given yamcs instance, if it does not already exist
        Parameters:
        yamcsInstance -
        streamName -
    • 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()