Class SimFunction<T>

java.lang.Object
org.yamcs.studio.data.sim.SimFunction<T>
Direct Known Subclasses:
Flipflop, GaussianNoise, GaussianWaveform, Noise, NoiseWaveform, Ramp, SawtoothWaveform, Sine, Sine2DWaveform, SineWaveform, Square2DWaveform, SquareWaveform, Strings, Table, TriangleWaveform

public abstract class SimFunction<T> extends Object
Base class for all simulated functions. It provide constant rate data generation facilities.
  • Field Details

    • lastTime

      public volatile Instant lastTime
  • Method Details

    • createValues

      public List<VType> createValues(TimeInterval interval)
      Computes all the new values in the given time slice by calling nextValue() appropriately.
      Parameters:
      interval - the interval where the data should be generated
      Returns:
      the new values
    • getTimeBetweenSamples

      public Duration getTimeBetweenSamples()
      Returns the time between each sample.
      Returns:
      a time duration