Class SimpleAcEnergyDatum
java.lang.Object
net.solarnetwork.domain.BasicIdentity<net.solarnetwork.domain.datum.DatumId>
net.solarnetwork.domain.datum.GeneralDatum
net.solarnetwork.node.domain.datum.SimpleDatum
net.solarnetwork.node.domain.datum.SimpleEnergyDatum
net.solarnetwork.node.domain.datum.SimpleAcEnergyDatum
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<net.solarnetwork.domain.datum.DatumId>,net.solarnetwork.domain.datum.AcEnergyDatum,net.solarnetwork.domain.datum.Datum,net.solarnetwork.domain.datum.DatumSamplesContainer,net.solarnetwork.domain.datum.DatumSamplesOperations,net.solarnetwork.domain.datum.EnergyDatum,net.solarnetwork.domain.datum.MutableDatum,net.solarnetwork.domain.datum.MutableDatumSamplesOperations,net.solarnetwork.domain.Differentiable<net.solarnetwork.domain.datum.DatumSamplesOperations>,net.solarnetwork.domain.Identity<net.solarnetwork.domain.datum.DatumId>,AcEnergyDatum,EnergyDatum,MutableNodeDatum,NodeDatum
- Direct Known Subclasses:
SimpleAcDcEnergyDatum
GeneralNodeDatum that also implements
AcEnergyDatum.- Since:
- 2.0
- Version:
- 1.0
- Author:
- matt
- See Also:
-
Field Summary
Fields inherited from interface net.solarnetwork.domain.datum.AcEnergyDatum
APPARENT_POWER_KEY, CURRENT_KEY, EFFECTIVE_POWER_FACTOR_KEY, FREQUENCY_KEY, LINE_VOLTAGE_KEY, NEUTRAL_CURRENT_KEY, PHASE_KEY, PHASE_VOLTAGE_KEY, POWER_FACTOR_KEY, REACTIVE_POWER_KEY, REAL_POWER_KEY, VOLTAGE_KEYFields inherited from interface net.solarnetwork.domain.datum.Datum
DATUM_TYPE_PROPERTY, DATUM_TYPES_PROPERTY, OP_STATE, OP_STATES, REVERSE_ACCUMULATING_SUFFIX_KEY, SOURCE_ID, TIMESTAMPFields inherited from interface net.solarnetwork.domain.datum.EnergyDatum
TAG_CONSUMPTION, TAG_GENERATION, WATT_HOUR_READING_KEY, WATTS_KEYFields inherited from interface net.solarnetwork.node.domain.datum.NodeDatum
TIMESTAMP_UPLOAD -
Constructor Summary
ConstructorsConstructorDescriptionSimpleAcEnergyDatum(String sourceId, Instant timestamp, net.solarnetwork.domain.datum.DatumSamples samples) Constructor.SimpleAcEnergyDatum(net.solarnetwork.domain.datum.DatumId id, net.solarnetwork.domain.datum.DatumSamples samples) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyWithId(net.solarnetwork.domain.datum.DatumId id) Get a copy of this datum with a new IDcopyWithSamples(net.solarnetwork.domain.datum.DatumSamplesOperations samples) Create a copy of this instance with the sample properties replaced by a given samples instance.protected String[]Methods inherited from class net.solarnetwork.node.domain.datum.SimpleDatum
clone, getUploaded, locationDatum, locationDatum, nodeDatum, nodeDatum, nodeDatum, setUploadedMethods inherited from class net.solarnetwork.domain.datum.GeneralDatum
addTag, asMutableSampleOperations, asSampleOperations, asSimpleMap, clear, createSimpleMap, findSampleValue, getKind, getObjectId, getSampleBigDecimal, getSampleData, getSampleData, getSampleDouble, getSampleFloat, getSampleInteger, getSampleLong, getSamples, getSampleString, getSampleValue, getSourceId, getTags, getTimestamp, hasSampleValue, hasSampleValue, hasTag, isEmpty, nodeDatum, putSampleValue, removeTag, setSampleData, setTags, toStringMethods inherited from class net.solarnetwork.domain.BasicIdentity
compareTo, equals, getId, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.solarnetwork.domain.datum.AcEnergyDatum
getAcPhase, getApparentPower, getCurrent, getCurrent, getEffectivePowerFactor, getFrequency, getLineVoltage, getLineVoltage, getNeutralCurrent, getPhaseVoltage, getPowerFactor, getReactivePower, getRealPower, getVoltage, getVoltageMethods inherited from interface net.solarnetwork.node.domain.datum.AcEnergyDatum
populatePhaseMeasurementProperties, setAcPhase, setApparentPower, setCurrent, setCurrent, setEffectivePowerFactor, setFrequency, setLineVoltage, setLineVoltage, setNeutralCurrent, setPhaseVoltage, setPowerFactor, setReactivePower, setRealPower, setVoltage, setVoltageMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface net.solarnetwork.domain.datum.Datum
asSampleOperations, asSimpleMap, getKind, getObjectId, getSampleData, getSourceId, getTimestampMethods inherited from interface net.solarnetwork.domain.datum.DatumSamplesOperations
differsFromMethods inherited from interface net.solarnetwork.domain.datum.EnergyDatum
getReverseWattHourReading, getWattHourReading, getWatts, isConsumption, isGenerationMethods inherited from interface net.solarnetwork.node.domain.datum.EnergyDatum
setReverseWattHourReading, setWattHourReading, setWatts, tagAsConsumption, tagAsGenerationMethods inherited from interface net.solarnetwork.domain.Identity
getId, hasIdMethods inherited from interface net.solarnetwork.domain.datum.MutableDatum
asMutableSampleOperationsMethods inherited from interface net.solarnetwork.domain.datum.MutableDatumSamplesOperations
copyFrom, mergeFrom, mergeFrom, removeTagMethods inherited from interface net.solarnetwork.node.domain.datum.MutableNodeDatum
cloneMethods inherited from interface net.solarnetwork.node.domain.datum.NodeDatum
getUploaded
-
Constructor Details
-
SimpleAcEnergyDatum
public SimpleAcEnergyDatum(String sourceId, Instant timestamp, net.solarnetwork.domain.datum.DatumSamples samples) Constructor.This constructs a node datum.
- Parameters:
sourceId- the source IDtimestamp- the timestampsamples- the samples
-
SimpleAcEnergyDatum
public SimpleAcEnergyDatum(net.solarnetwork.domain.datum.DatumId id, net.solarnetwork.domain.datum.DatumSamples samples) Constructor.- Parameters:
id- the IDsamples- the samples
-
-
Method Details
-
datumTypes
- Overrides:
datumTypesin classSimpleEnergyDatum
-
copyWithSamples
public SimpleAcEnergyDatum copyWithSamples(net.solarnetwork.domain.datum.DatumSamplesOperations samples) Description copied from interface:NodeDatumCreate a copy of this instance with the sample properties replaced by a given samples instance.- Specified by:
copyWithSamplesin interfacenet.solarnetwork.domain.datum.Datum- Specified by:
copyWithSamplesin interfaceNodeDatum- Overrides:
copyWithSamplesin classSimpleEnergyDatum- Parameters:
samples- the samples to use for the copy- Returns:
- a new copy of this instance
-
copyWithId
Description copied from interface:NodeDatumGet a copy of this datum with a new ID- Specified by:
copyWithIdin interfacenet.solarnetwork.domain.datum.Datum- Specified by:
copyWithIdin interfaceNodeDatum- Overrides:
copyWithIdin classSimpleEnergyDatum- Returns:
- the copy with the given ID
-