Class DoubleStoredSignalSource

java.lang.Object
eu.bandm.sig.adlib2.AbstractProcess
eu.bandm.sig.adlib2.DoubleStoredSignalSource
All Implemented Interfaces:
AbstractClockedSignalSource, AbstractSignalSource, Component, DoubleClockedSignalSource, DoubleSignalSource, Process, DoubleSupplier
Direct Known Subclasses:
DoubleClockedSignalSource.AbstractRandom, DoubleDelay, DoubleEnvelope, DoubleFMOsci, DoubleFractionalDelay, DoubleMultiDelay, DoubleOctaveRepeatingTabledTuning, DoubleProcessMux, DoubleSaH, DoubleTableOscillator, DoubleUpsamplingSignalSource

@Generated(generator="eu.bandm.tools.expander", version="1.3.1", timestamp="2026-10-23T14:02:07") public abstract class DoubleStoredSignalSource extends AbstractProcess implements DoubleClockedSignalSource
Common base class for signal (time-dependent value) sources of primitive type double 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 double out
      The stored value of this signal source.
  • Constructor Details

    • DoubleStoredSignalSource

      protected DoubleStoredSignalSource(Optional<ConstantRealtimeContext> realtimeContext)
      Creates a new instance of a derived class with a fixed realtime context.

      The given realtime context is actually ignored by this constructor. It exists for purposes of regularity.

      Parameters:
      realtimeContext - an optional realtime context
    • DoubleStoredSignalSource

      public DoubleStoredSignalSource()
      Creates a new instance.
  • Method Details

    • getAsDouble

      public final double getAsDouble()
      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:
      getAsDouble in interface DoubleSignalSource
      Specified by:
      getAsDouble in interface DoubleSupplier
      Returns:
      the current value of out