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

public interface NodeDatum extends net.solarnetwork.domain.datum.Datum, Cloneable
Basic persistable domain object API.
Since:
2.0
Version:
1.0
Author:
matt
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    A sample data key for a getUploaded() value, as a long epoch 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 Type
    Method
    Description
    Public clone method.
    copyWithId(net.solarnetwork.domain.datum.DatumId id)
    Get a copy of this datum with a new ID
    copyWithSamples(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

  • 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

      NodeDatum copyWithSamples(net.solarnetwork.domain.datum.DatumSamplesOperations samples)
      Create a copy of this instance with the sample properties replaced by a given samples instance.
      Specified by:
      copyWithSamples in interface net.solarnetwork.domain.datum.Datum
      Parameters:
      samples - the samples to use for the copy
      Returns:
      a new copy of this instance
    • copyWithId

      NodeDatum copyWithId(net.solarnetwork.domain.datum.DatumId id)
      Get a copy of this datum with a new ID
      Specified by:
      copyWithId in interface net.solarnetwork.domain.datum.Datum
      Returns:
      the copy with the given ID