Class Sine


public class Sine extends SimFunction<VDouble>
Function to simulate a signal shaped like a sine. The warning limits are set at 80% of the range and the alarm at 90% the range. All values are going to have no alarm status, with the timestamp set at the moment the sample was generated.
  • Constructor Details

    • Sine

      public Sine(Double min, Double max, Double samplesPerCycle, Double secondsBetweenSamples)
      Creates a sine shaped signal between min and max, updating every interval seconds with samplesPerCycles samples every full sine cycle.
      Parameters:
      min - minimum value
      max - maximum value
      samplesPerCycle - number of samples for each full cycle (each 2 Pi)
      secondsBetweenSamples - interval between samples in seconds
    • Sine

      public Sine(Double min, Double max, Double secondsBeetwenSamples)
      Creates a sine shaped signal between min and max, updating every interval seconds with 10 samples every full sine cycle.
      Parameters:
      min - minimum value
      max - maximum value
      secondsBeetwenSamples - interval between samples in seconds
    • Sine

      public Sine()
      Creates a sine shaped signal between -5 and 5, updating every second with 10 samples every full sine cycle.