Class SineGenerator
java.lang.Object
org.epics.archiverappliance.utils.simulation.SineGenerator
- All Implemented Interfaces:
SimulationValueGenerator
Generates a sine wave with a default period of one hour and a specifiable offset.
Used for data generation in the unit tests.
- Author:
- mshankar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSampleValue(ArchDBRTypes type, int secondsIntoYear) Get the value at a particular point in time.
-
Constructor Details
-
SineGenerator
public SineGenerator(int phasediffindegress)
-
-
Method Details
-
getSampleValue
Description copied from interface:SimulationValueGeneratorGet the value at a particular point in time. Many unit tests rely on the value being returned being absolutely reproducible given the time.- Specified by:
getSampleValuein interfaceSimulationValueGenerator- Parameters:
type- ArchDBRTypessecondsIntoYear-- Returns:
- Sample value
-