C# Class openHistorian.Data.PeriodicScanner

Show file Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Public Methods

Method Description
GetParser ( System.DateTime startTime, System.DateTime endTime, uint sampleCount ) : SeekFilterBase
GetParser ( System.DateTime startTime, System.DateTime endTime, ulong samplesPerDay ) : SeekFilterBase
PeriodicScanner ( int samplesPerSecond ) : System

Creates a periodic scanner

PeriodicScanner ( int samplesPerSecond, System.TimeSpan windowTolerance ) : System
SuggestSamplesPerDay ( System.DateTime startTime, System.DateTime endTime, uint sampleCount ) : long

Private Methods

Method Description
CalculateDownSampleRates ( int samplesPerSecond ) : void

Populates m_downSampleRates and m_downSampleTicks with all of the necessary valid downsample rates

FactorNumber ( int number ) : List

Gets all of the factors for the number.

RoundDownToNearestSample ( long startTime, long samplesPerDay, long interval ) : long

Rounds the provided timestamp down to the nearest valid time sample.

RoundUpToNearestSample ( long startTime, long samplesPerDay, long interval ) : long

Rounds the provided timestamp up to the nearest valid time sample.

Method Details

GetParser() public method

public GetParser ( System.DateTime startTime, System.DateTime endTime, uint sampleCount ) : SeekFilterBase
startTime System.DateTime
endTime System.DateTime
sampleCount uint
return SeekFilterBase

GetParser() public method

public GetParser ( System.DateTime startTime, System.DateTime endTime, ulong samplesPerDay ) : SeekFilterBase
startTime System.DateTime
endTime System.DateTime
samplesPerDay ulong
return SeekFilterBase

PeriodicScanner() public method

Creates a periodic scanner
public PeriodicScanner ( int samplesPerSecond ) : System
samplesPerSecond int
return System

PeriodicScanner() public method

public PeriodicScanner ( int samplesPerSecond, System.TimeSpan windowTolerance ) : System
samplesPerSecond int
windowTolerance System.TimeSpan
return System

SuggestSamplesPerDay() public method

public SuggestSamplesPerDay ( System.DateTime startTime, System.DateTime endTime, uint sampleCount ) : long
startTime System.DateTime
endTime System.DateTime
sampleCount uint
return long