Class ByteStoredSignalSource

java.lang.Object
eu.bandm.sig.adlib2.AbstractProcess
eu.bandm.sig.adlib2.ByteStoredSignalSource
All Implemented Interfaces:
AbstractClockedSignalSource, AbstractSignalSource, ByteClockedSignalSource, ByteSignalSource, CompilableControlFlow, CompilableDataFlow, Component, Process, ByteSupplier
Direct Known Subclasses:
ByteProcessMux, ByteSaH, CompilableByteStoredSignalSource

public abstract class ByteStoredSignalSource extends AbstractProcess implements ByteClockedSignalSource
Common base class for signal (time-dependent value) sources of primitive type byte whose output is the value of a variable that is updated only as driven by a clock.

The current value is stored in the field out, which needs to be written by the method Process.step().

  • Field Details

    • out

      protected byte out
      The stored value of this signal source.
  • Constructor Details

    • ByteStoredSignalSource

      protected ByteStoredSignalSource(Optional<ConstantRealtimeContext> realtimeContext)
    • ByteStoredSignalSource

      public ByteStoredSignalSource()
  • Method Details

    • getAsByte

      public final byte getAsByte()
      Returns the current value of this signal source.

      The value may be either computed on demand, or retrieved from storage.

      Implementations of this method should have no side effect.

      Specified by:
      getAsByte in interface ByteSignalSource
      Specified by:
      getAsByte in interface ByteSupplier
      Returns:
      the current value of out