Class FloatPfg

All Implemented Interfaces:
CompilableControlFlow, CompilableDataFlow, FloatSignalSource, FloatSupplier, Realtime, SignalSource<Float>, Runnable, Supplier<Float>

public class FloatPfg extends FloatClockedSignalSource
  • Field Details

    • freq

      protected final float freq
    • period

      protected final float period
    • fin

      protected final float[] fin
    • inc

      protected final float[] inc
      is inc-value per run()-call. But in mode==2 it is time in seconds.
    • mode

      protected final int[] mode
      1=upward -1=downward 0=zero 2=timed
    • size

      protected final int size
    • write

      protected int write
    • read

      protected int read
    • loop

      protected int loop
    • time

      protected float time
  • Constructor Details

    • FloatPfg

      public FloatPfg(float freq, int size)
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • run

      public void run()
      Description copied from interface: Realtime
      Processes an event.

      Any implementation of this method should complete promptly and normally. In particular it must not block indefinitely.

    • clear

      public void clear()
    • markLoop

      public void markLoop()
      Must be called before the first add_inc(..)/add_timed(..).
    • set

      public void set(float out)
    • clear

      public void clear(float out)
    • complete

      protected void complete()
    • complete2

      protected void complete2()
    • add_inc

      public boolean add_inc(float v_inc, float v_fin)
    • add_timed

      public boolean add_timed(float duration, float v_fin)
    • _add

      protected boolean _add(float _inc, float _fin, int _mode)