Interface NodeDatum
- All Superinterfaces:
Cloneable,net.solarnetwork.domain.datum.Datum
- All Known Subinterfaces:
AcDcEnergyDatum,AcEnergyDatum,AtmosphericDatum,DayDatum,DcEnergyDatum,EnergyDatum,EnergyStorageDatum,MutableNodeDatum,PriceDatum
- All Known Implementing Classes:
SimpleAcDcEnergyDatum,SimpleAcEnergyDatum,SimpleAtmosphericDatum,SimpleDatum,SimpleDayDatum,SimpleDcEnergyDatum,SimpleEnergyDatum,SimpleEnergyStorageDatum,SimpleNodeControlInfoDatum,SimplePriceDatum
Basic persistable domain object API.
- Since:
- 2.0
- Version:
- 1.0
- Author:
- matt
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA sample data key for agetUploaded()value, as alongepoch value.Fields inherited from interface net.solarnetwork.domain.datum.Datum
DATUM_TYPE_PROPERTY, DATUM_TYPES_PROPERTY, OP_STATE, OP_STATES, REVERSE_ACCUMULATING_SUFFIX_KEY, SOURCE_ID, TIMESTAMP -
Method Summary
Modifier and TypeMethodDescriptionclone()Public clone method.copyWithId(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.Get the date this object was uploaded to SolarNet.Methods inherited from interface net.solarnetwork.domain.datum.Datum
asSampleOperations, asSimpleMap, getKind, getObjectId, getSampleData, getSourceId, getTimestamp
-
Field Details
-
TIMESTAMP_UPLOAD
A sample data key for agetUploaded()value, as alongepoch value.- Since:
- 1.4
- See Also:
-
-
Method Details
-
getUploaded
Instant getUploaded()Get the date this object was uploaded to SolarNet.- Returns:
- the upload date
-
clone
NodeDatum clone()Public clone method.- Returns:
- a copy of this instance
-
copyWithSamples
Create a copy of this instance with the sample properties replaced by a given samples instance.- Specified by:
copyWithSamplesin interfacenet.solarnetwork.domain.datum.Datum- Parameters:
samples- the samples to use for the copy- Returns:
- a new copy of this instance
-
copyWithId
Get a copy of this datum with a new ID- Specified by:
copyWithIdin interfacenet.solarnetwork.domain.datum.Datum- Returns:
- the copy with the given ID
-