Class SimulatorHistorianQuery.PathGenerator
- java.lang.Object
-
- com.inductiveautomation.gateway.tags.history.simulator.SimulatorHistorianQuery.PathGenerator
-
- All Implemented Interfaces:
java.lang.Comparable<SimulatorHistorianQuery.PathGenerator>
- Enclosing class:
- SimulatorHistorianQuery
protected static class SimulatorHistorianQuery.PathGenerator extends java.lang.Object implements java.lang.Comparable<SimulatorHistorianQuery.PathGenerator>
-
-
Constructor Summary
Constructors Constructor Description PathGenerator(int index, java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SimulatorHistorianQuery.PathGenerator o)
IndexedQualifiedValue
generate(long ts)
Generates a value for the closest preceeding resolution boundary.int
getIndex()
long
getResolution()
long
untilNext(long ts)
Given a time, returns how many ms we should wait until it'll be time to publish (next resolution boundary)
-
-
-
Method Detail
-
getIndex
public int getIndex()
-
getResolution
public long getResolution()
-
untilNext
public long untilNext(long ts)
Given a time, returns how many ms we should wait until it'll be time to publish (next resolution boundary)
-
generate
public IndexedQualifiedValue generate(long ts)
Generates a value for the closest preceeding resolution boundary.
-
compareTo
public int compareTo(@NotNull SimulatorHistorianQuery.PathGenerator o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<SimulatorHistorianQuery.PathGenerator>
-
-