Class DoubleMultiDelay

All Implemented Interfaces:
AbstractClockedSignalSource, AbstractSignalSource, Component, DoubleClockedSignalSource, DoubleSignalSource, Process, Register, DoubleSupplier

@Generated(generator="eu.bandm.tools.expander", version="1.3.1", timestamp="2026-10-23T14:02:07") public class DoubleMultiDelay extends DoubleStoredSignalSource implements Register
A component that forwards the value from a signal source delayed by a specified number of clock ticks.

A single instance of this class is operationally equivalent to a chain of single-step delay operators. However, the computational costs of the former per clock tick are constant, whereas for the latter they grow linearly with the length of the chain.

  • Constructor Details

    • DoubleMultiDelay

      public DoubleMultiDelay(double... initial)
      Creates a new instance without a valid input source.

      The method setInput(DoubleSignalSource) must be invoked before this signal source can be used.

      The length of the delay is specified by the length of the array of initial values. Initial values are produces in ascending index order: initial[0] in the first step, etc.

      The array of initial values is copied by this constructor; the original may be reused freely by the caller.

      Parameters:
      initial - the initial values of this signal source
    • DoubleMultiDelay

      public DoubleMultiDelay(double[] initial, DoubleSignalSource in)
      Creates a new instance with an independent input source.

      The length of the delay is specified by the length of the array of initial values. Initial values are produces in ascending index order: initial[0] in the first step, etc.

      The array of initial values is copied by this constructor; the original may be reused freely by the caller.

      Parameters:
      initial - the initial values of this signal source
      in - the input signal source
    • DoubleMultiDelay

      public DoubleMultiDelay(double[] initial, Function<? super DoubleMultiDelay,? extends DoubleSignalSource> in)
      Creates a new instance with a feedback-looped input source.

      The length of the delay is specified by the length of the array of initial values. Initial values are produces in ascending index order: initial[0] in the first step, etc.

      The array of initial values is copied by this constructor; the original may be reused freely by the caller.

      A reference to the new delay signal source d under construction is passed to the function object in in order to create the feedback loop. This reference may only be used by passing to other signal source constructions. Behavior is unspecified if any behavioral method is invoked on d before in.apply(d) has returned.

      Parameters:
      initial - the initial values of this signal source
      in - a function that constructs the input signal source when applied to this delayed signal source
  • Method Details

    • setInput

      @Undocumented public void setInput(DoubleSignalSource in)
    • getLoadPhase

      public Process getLoadPhase()
      Returns the load phase of this register.
      Specified by:
      getLoadPhase in interface Register
      Returns:
      the load phase of this register
    • getStorePhase

      public Process getStorePhase()
      Returns the store phase of this register.
      Specified by:
      getStorePhase in interface Register
      Returns:
      the store phase of this register