Class ExtendedIOSignalPiece<I>

java.lang.Object
net.maswag.falcaun.IOSignalPiece<I>
net.maswag.falcaun.ExtendedIOSignalPiece<I>
Type Parameters:
I - the type of the input and output signals

public class ExtendedIOSignalPiece<I> extends IOSignalPiece<I>
A pair of input and output signals at one time step potentially with some previous output signals.

This class is used for continuous-time systems with discrete sampling.

  • Field Details

    • previousOutputSignals

      protected List<I> previousOutputSignals
      The previous output signals.
  • Constructor Details

    • ExtendedIOSignalPiece

      public ExtendedIOSignalPiece(I inputSignal, I outputSignal, List<I> previousOutputSignals)
      Constructor for the signal pieces.
      Parameters:
      inputSignal - the current step of the input signal
      outputSignal - the current step of the output signal
      previousOutputSignals - the output signals between the previous step and the current step excluding the previous step and including the current step
      Throws:
      IllegalArgumentException - if the current output signal is not the last element of previousOutputSignals
    • ExtendedIOSignalPiece

      public ExtendedIOSignalPiece(I inputStep, ValueWithTime<I> outputSignal, Double from, Double to)
      Constructor for the first signal piece.
      Parameters:
      inputStep - the current step of the input signal
      outputSignal - the entire output signal with time stamps
      from - the time when the current signal starts
      to - the time when the current signal ends. This is the same as the current signal step.