C# Class openHistorian.Data.PeriodicScanner

Afficher le fichier Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public GetParser ( System.DateTime startTime, System.DateTime endTime, uint sampleCount ) : SeekFilterBase
startTime System.DateTime
endTime System.DateTime
sampleCount uint
Résultat SeekFilterBase

GetParser() public méthode

public GetParser ( System.DateTime startTime, System.DateTime endTime, ulong samplesPerDay ) : SeekFilterBase
startTime System.DateTime
endTime System.DateTime
samplesPerDay ulong
Résultat SeekFilterBase

PeriodicScanner() public méthode

Creates a periodic scanner
public PeriodicScanner ( int samplesPerSecond ) : System
samplesPerSecond int
Résultat System

PeriodicScanner() public méthode

public PeriodicScanner ( int samplesPerSecond, System.TimeSpan windowTolerance ) : System
samplesPerSecond int
windowTolerance System.TimeSpan
Résultat System

SuggestSamplesPerDay() public méthode

public SuggestSamplesPerDay ( System.DateTime startTime, System.DateTime endTime, uint sampleCount ) : long
startTime System.DateTime
endTime System.DateTime
sampleCount uint
Résultat long