Class SpeedLimitStream

java.lang.Object
org.yamcs.yarch.Stream
org.yamcs.yarch.SpeedLimitStream
All Implemented Interfaces:
StreamSubscriber

public class SpeedLimitStream extends Stream implements StreamSubscriber
  • Field Details

    • MAX_WAIT_TIME

      public static final long MAX_WAIT_TIME
      maximum time to wait if SPEED is ORIGINAL meaning that if there is a gap in the data longer than this, we continue)
      See Also:
  • Constructor Details

  • Method Details

    • setSubscribedStream

      public void setSubscribedStream(Stream s)
    • doStart

      public void doStart()
      Description copied from class: Stream
      Start emitting tuples.
      Specified by:
      doStart in class Stream
    • onTuple

      public void onTuple(Stream s, Tuple t)
      Specified by:
      onTuple in interface StreamSubscriber
    • streamClosed

      public void streamClosed(Stream stream)
      Called when the subcribed stream is closed we close this stream also.
      Specified by:
      streamClosed in interface StreamSubscriber
    • setSpeedSpec

      public void setSpeedSpec(SpeedSpec speedSpec)
    • toString

      public String toString()
      Overrides:
      toString in class Stream
    • doClose

      protected void doClose()
      Specified by:
      doClose in class Stream
    • changeSpeed

      public void changeSpeed(SpeedSpec speedSpec)