Class SimpleDatumLocation

java.lang.Object
net.solarnetwork.node.domain.datum.SimpleDatumLocation
All Implemented Interfaces:
DatumLocation
Direct Known Subclasses:
PriceLocation, WeatherLocation

public class SimpleDatumLocation extends Object implements DatumLocation
Basic implementation of DatumLocation.
Version:
1.0
Author:
matt
  • Constructor Details

    • SimpleDatumLocation

      public SimpleDatumLocation()
      Default constructor.
  • Method Details

    • getLocationId

      public Long getLocationId()
      Description copied from interface: DatumLocation
      Get a unique ID of this location.
      Specified by:
      getLocationId in interface DatumLocation
      Returns:
      the location ID
    • setLocationId

      public void setLocationId(Long locationId)
      Set the location ID.
      Parameters:
      locationId - the ID to set
    • getLocationName

      public String getLocationName()
      Description copied from interface: DatumLocation
      Get a name for this location.
      Specified by:
      getLocationName in interface DatumLocation
      Returns:
      the location name
    • setLocationName

      public void setLocationName(String locationName)
      Set the location name.
      Parameters:
      locationName - the location name to set
    • getSourceId

      public String getSourceId()
      Description copied from interface: DatumLocation
      Get a unique ID of the source of this location.
      Specified by:
      getSourceId in interface DatumLocation
      Returns:
      the source ID
    • setSourceId

      public void setSourceId(String sourceId)
      Set the source ID.
      Parameters:
      sourceId - the source ID to set
    • getSourceName

      public String getSourceName()
      Description copied from interface: DatumLocation
      Get the name of the source of this location.
      Specified by:
      getSourceName in interface DatumLocation
      Returns:
      the source name
    • setSourceName

      public void setSourceName(String sourceName)
      Set the source name.
      Parameters:
      sourceName - the name to set
    • getMetadata

      public net.solarnetwork.domain.datum.GeneralDatumMetadata getMetadata()
      Description copied from interface: DatumLocation
      Get metadata about the location.
      Specified by:
      getMetadata in interface DatumLocation
      Returns:
      metadata
    • getSourceMetadata

      public net.solarnetwork.domain.datum.GeneralLocationSourceMetadata getSourceMetadata()
      Get the source metadata.
      Returns:
      the metadata
    • setSourceMetadata

      public void setSourceMetadata(net.solarnetwork.domain.datum.GeneralLocationSourceMetadata sourceMetadata)
      Set the source metadata.
      Parameters:
      sourceMetadata - the metadata to set