public class VirtualPlot
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
float |
elevation |
float |
elevationTemperature |
GeneralStation |
generalStation |
float |
geoPosEasting |
double |
geoPosLatitude |
double |
geoPosLongitude |
float |
geoPosNorthing |
java.util.List<TimestampInterval<StationProperties>> |
intervalList |
boolean |
isFocalPlot |
java.util.List<VirtualPlot> |
nearestVirtualPlots
This list is used for interpolation when similar stations are needed.
|
java.lang.String |
plotID |
protected TsDB |
tsdb |
Constructor and Description |
---|
VirtualPlot(TsDB tsdb,
java.lang.String plotID,
GeneralStation generalStation,
float geoPosEasting,
float geoPosNorthing,
boolean isFocalPlot) |
Modifier and Type | Method and Description |
---|---|
void |
addStationEntry(Station station,
StationProperties properties)
Adds one time interval of one station to this plot
|
boolean |
existData() |
boolean |
existData(java.lang.String sensorName) |
java.lang.String[] |
getSensorNames()
Creates schema of this plot that is union of all attributes of stations that are attached to this plot with some time interval.
|
java.lang.String[] |
getStationIDs() |
java.util.List<TimestampInterval<StationProperties>> |
getStationList(java.lang.Long queryStart,
java.lang.Long queryEnd,
java.lang.String[] schema)
Get list of stations with overlapping entries in time interval start - end
|
long[] |
getTimestampBaseInterval() |
long[] |
getTimestampInterval() |
java.lang.String[] |
getValidSchemaEntries(java.lang.String[] querySchema) |
java.lang.String[] |
getValidSchemaEntriesWithVirtualSensors(java.lang.String[] querySchema) |
boolean |
isValidBaseSchema(java.lang.String[] querySchema) |
boolean |
isValidSchema(java.lang.String[] querySchema) |
boolean |
isValidSchemaWithVirtualSensors(java.lang.String[] querySchema) |
void |
setElevation(float elevation) |
java.lang.String |
toString() |
protected final TsDB tsdb
public final java.lang.String plotID
public final GeneralStation generalStation
public float geoPosEasting
public float geoPosNorthing
public double geoPosLatitude
public double geoPosLongitude
public float elevation
public float elevationTemperature
public final boolean isFocalPlot
public final java.util.List<TimestampInterval<StationProperties>> intervalList
public java.util.List<VirtualPlot> nearestVirtualPlots
public VirtualPlot(TsDB tsdb, java.lang.String plotID, GeneralStation generalStation, float geoPosEasting, float geoPosNorthing, boolean isFocalPlot)
public java.lang.String[] getSensorNames()
public java.lang.String[] getValidSchemaEntries(java.lang.String[] querySchema)
public java.lang.String[] getValidSchemaEntriesWithVirtualSensors(java.lang.String[] querySchema)
public void addStationEntry(Station station, StationProperties properties)
station
- properties
- public java.util.List<TimestampInterval<StationProperties>> getStationList(java.lang.Long queryStart, java.lang.Long queryEnd, java.lang.String[] schema)
queryStart
- queryEnd
- schema
- public java.lang.String toString()
toString
in class java.lang.Object
public long[] getTimestampInterval()
public long[] getTimestampBaseInterval()
public boolean isValidSchema(java.lang.String[] querySchema)
public boolean isValidSchemaWithVirtualSensors(java.lang.String[] querySchema)
public boolean isValidBaseSchema(java.lang.String[] querySchema)
public void setElevation(float elevation)
public java.lang.String[] getStationIDs()
public boolean existData()
public boolean existData(java.lang.String sensorName)