Class RcfServiceProvider

    • Constructor Detail

      • RcfServiceProvider

        public RcfServiceProvider​(FrameDownlinker frameDownlinker)
    • Method Detail

      • init

        public void init​(SleProvider provider)
        Description copied from interface: SleService
        Called at the beginning. to initialize the service.
      • processData

        public void processData​(com.beanit.jasn1.ber.BerTag berTag,
                                InputStream is)
                         throws IOException
        Description copied from interface: SleService
        Called each time a message is received from the peer (SLE user) which cannot be processed by the SleProvider.

        The messages are not necessary valid. The service can always call the SleProvider.peerAbort() operation on the provider if it thinks the SLE user went awry.

        Throws:
        IOException
      • processSleStopInvocation

        protected void processSleStopInvocation​(SleStopInvocation sleStopInvocation)
      • sendStatusReport

        public void sendStatusReport()
      • sendFrame

        public void sendFrame​(CcsdsTime ert,
                              Constants.FrameQuality frameQuality,
                              int dataLinkContinuity,
                              byte[] data,
                              int dataOffset,
                              int dataLength)
        Called by the FrameDownlinker to send a new frame.
        Specified by:
        sendFrame in class RacfServiceProvider
        Parameters:
        ert -
        frameQuality -
        dataLinkContinuity - from CCSDS spec:
        • a value of ‘–1’ shall indicate that this is the first frame after the start of production;
        • a value of ‘0’ shall indicate that this frame is the direct successor to the last frame acquired from the space link by RAF production; any non-zero positive value shall indicate that this frame is not the direct successor to the last frame acquired from the space link: a non-zero positive value further indicates an estimate of the number of frames that were missed since the last frame acquired before this frame;
        • a value of ‘1’ may be used if no better estimate is available.
        data - frame data
        dataOffset - where in the data the buffer the frame starts
        dataLength - the length of the frame data
      • abort

        public void abort()
        Description copied from interface: SleService
        Called by the SleProvider when the connection has been abruptly terminated. The Service has to do necessary cleanup operation.
      • unbind

        public void unbind()
        Description copied from interface: SleService
        Called by the SleProvider when the user sent an UNBIND request. The provider will verify that the service is in the State.READY when calling this method.