Package org.yamcs.yarch
Class SpeedLimitStream
- java.lang.Object
-
- org.yamcs.yarch.Stream
-
- org.yamcs.yarch.SpeedLimitStream
-
- All Implemented Interfaces:
StreamSubscriber
public class SpeedLimitStream extends Stream implements StreamSubscriber
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.yamcs.yarch.Stream
Stream.ExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static longMAX_WAIT_TIMEmaximum time to wait if SPEED is ORIGINAL meaning that if there is a gap in the data longer than this, we continue)-
Fields inherited from class org.yamcs.yarch.Stream
log, name, outputDefinition, QUITTING, RUNNING, SETUP, state, subscribers, ydb
-
-
Constructor Summary
Constructors Constructor Description SpeedLimitStream(YarchDatabaseInstance dict, String name, TupleDefinition definition, SpeedSpec speedSpec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeSpeed(SpeedSpec speedSpec)protected voiddoClose()voiddoStart()Start emitting tuples.voidonTuple(Stream s, Tuple t)voidsetSpeedSpec(SpeedSpec speedSpec)voidsetSubscribedStream(Stream s)voidstreamClosed(Stream stream)Called when the subcribed stream is closed we close this stream also.StringtoString()-
Methods inherited from class org.yamcs.yarch.Stream
addSubscriber, close, emitTuple, exceptionHandler, getColumnDefinition, getDataCount, getDefinition, getName, getState, getSubscriberCount, getSubscribers, isClosed, isRunning, quitting, removeSubscriber, setName, start
-
-
-
-
Field Detail
-
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:
- Constant Field Values
-
-
Constructor Detail
-
SpeedLimitStream
public SpeedLimitStream(YarchDatabaseInstance dict, String name, TupleDefinition definition, SpeedSpec speedSpec)
-
-
Method Detail
-
setSubscribedStream
public void setSubscribedStream(Stream s)
-
doStart
public void doStart()
Description copied from class:StreamStart emitting tuples.
-
onTuple
public void onTuple(Stream s, Tuple t)
- Specified by:
onTuplein interfaceStreamSubscriber
-
streamClosed
public void streamClosed(Stream stream)
Called when the subcribed stream is closed we close this stream also.- Specified by:
streamClosedin interfaceStreamSubscriber
-
setSpeedSpec
public void setSpeedSpec(SpeedSpec speedSpec)
-
changeSpeed
public void changeSpeed(SpeedSpec speedSpec)
-
-