Class AggregateCombo
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.sensorthingsmanager.aggregation.AggregateCombo
-
- All Implemented Interfaces:
Comparable<AggregateCombo>
public class AggregateCombo extends Object implements Comparable<AggregateCombo>
- Author:
- scf
-
-
Field Summary
Fields Modifier and Type Field Description StringbaseNameAggregationLevellevelde.fraunhofer.iosb.ilt.sta.model.DatastreamsourceDsbooleansourceIsAggregatebooleansourceIsCollectionIndicates that observations in the source contain a list of values.de.fraunhofer.iosb.ilt.sta.model.MultiDatastreamsourceMdsde.fraunhofer.iosb.ilt.sta.model.MultiDatastreamtargetde.fraunhofer.iosb.ilt.sta.model.ThingtargetThing
-
Constructor Summary
Constructors Constructor Description AggregateCombo(de.fraunhofer.iosb.ilt.sta.model.Thing targetThing, de.fraunhofer.iosb.ilt.sta.model.MultiDatastream target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.threeten.extra.Interval>calculateIntervalsForTime(de.fraunhofer.iosb.ilt.sta.model.TimeObject phenTime)intcompareTo(AggregateCombo o)booleanequals(Object obj)StringgetBaseName()de.fraunhofer.iosb.ilt.sta.model.ObservationgetFirstForSource()de.fraunhofer.iosb.ilt.sta.model.ObservationgetLastForSource()de.fraunhofer.iosb.ilt.sta.model.ObservationgetLastForTarget()de.fraunhofer.iosb.ilt.sta.dao.BaseDao<de.fraunhofer.iosb.ilt.sta.model.Observation>getObsDaoForSource()List<de.fraunhofer.iosb.ilt.sta.model.Observation>getObservationsForSource(Instant start, Instant end)de.fraunhofer.iosb.ilt.sta.model.IdgetSourceId()StringgetSourceObsMqttPath()de.fraunhofer.iosb.ilt.sta.model.EntityTypegetSourceType()ZoneIdgetZoneId()inthashCode()booleanhasSource()org.threeten.extra.IntervalreplaceIfNotCurrent(org.threeten.extra.Interval other)Checks if the given interval is the same as the current interval.voidresolveZoneId(ZoneId dflt)StringtoString()org.threeten.extra.IntervalunsetCurrent(org.threeten.extra.Interval other)Unsets the current interval.
-
-
-
Field Detail
-
targetThing
public final de.fraunhofer.iosb.ilt.sta.model.Thing targetThing
-
target
public final de.fraunhofer.iosb.ilt.sta.model.MultiDatastream target
-
sourceDs
public de.fraunhofer.iosb.ilt.sta.model.Datastream sourceDs
-
sourceMds
public de.fraunhofer.iosb.ilt.sta.model.MultiDatastream sourceMds
-
sourceIsAggregate
public boolean sourceIsAggregate
-
sourceIsCollection
public boolean sourceIsCollection
Indicates that observations in the source contain a list of values.
-
level
public AggregationLevel level
-
baseName
public String baseName
-
-
Method Detail
-
hasSource
public boolean hasSource()
-
getSourceType
public de.fraunhofer.iosb.ilt.sta.model.EntityType getSourceType()
-
getSourceId
public de.fraunhofer.iosb.ilt.sta.model.Id getSourceId()
-
getObsDaoForSource
public de.fraunhofer.iosb.ilt.sta.dao.BaseDao<de.fraunhofer.iosb.ilt.sta.model.Observation> getObsDaoForSource()
-
getLastForTarget
public de.fraunhofer.iosb.ilt.sta.model.Observation getLastForTarget()
-
getFirstForSource
public de.fraunhofer.iosb.ilt.sta.model.Observation getFirstForSource()
-
getLastForSource
public de.fraunhofer.iosb.ilt.sta.model.Observation getLastForSource()
-
getObservationsForSource
public List<de.fraunhofer.iosb.ilt.sta.model.Observation> getObservationsForSource(Instant start, Instant end)
-
resolveZoneId
public void resolveZoneId(ZoneId dflt)
-
getZoneId
public ZoneId getZoneId()
-
getSourceObsMqttPath
public String getSourceObsMqttPath()
-
calculateIntervalsForTime
public List<org.threeten.extra.Interval> calculateIntervalsForTime(de.fraunhofer.iosb.ilt.sta.model.TimeObject phenTime)
-
replaceIfNotCurrent
public org.threeten.extra.Interval replaceIfNotCurrent(org.threeten.extra.Interval other)
Checks if the given interval is the same as the current interval. If they are not the same, the current interval is updated.- Parameters:
other- The interval to check against the current interval and to replace the current interval with if they are not the same.- Returns:
- null if the given interval is the same as the current interval, otherwise the current interval.
-
unsetCurrent
public org.threeten.extra.Interval unsetCurrent(org.threeten.extra.Interval other)
Unsets the current interval. If the given interval is the same as the current interval, null is returned. If the given interval is not the same as the current interval, the current interval is returned.- Parameters:
other- The interval to check against the current interval.- Returns:
- null if the given interval is the same as the current interval.
-
compareTo
public int compareTo(AggregateCombo o)
- Specified by:
compareToin interfaceComparable<AggregateCombo>
-
getBaseName
public String getBaseName()
-
-