Class SimpleDatumLocation
java.lang.Object
net.solarnetwork.node.domain.datum.SimpleDatumLocation
- All Implemented Interfaces:
DatumLocation
- Direct Known Subclasses:
PriceLocation,WeatherLocation
Basic implementation of
DatumLocation.- Version:
- 1.0
- Author:
- matt
-
Field Summary
Fields inherited from interface net.solarnetwork.node.domain.datum.DatumLocation
DAY_TYPE, PRICE_TYPE, WEATHER_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a unique ID of this location.Get a name for this location.net.solarnetwork.domain.datum.GeneralDatumMetadataGet metadata about the location.Get a unique ID of the source of this location.net.solarnetwork.domain.datum.GeneralLocationSourceMetadataGet the source metadata.Get the name of the source of this location.voidsetLocationId(Long locationId) Set the location ID.voidsetLocationName(String locationName) Set the location name.voidsetSourceId(String sourceId) Set the source ID.voidsetSourceMetadata(net.solarnetwork.domain.datum.GeneralLocationSourceMetadata sourceMetadata) Set the source metadata.voidsetSourceName(String sourceName) Set the source name.
-
Constructor Details
-
SimpleDatumLocation
public SimpleDatumLocation()Default constructor.
-
-
Method Details
-
getLocationId
Description copied from interface:DatumLocationGet a unique ID of this location.- Specified by:
getLocationIdin interfaceDatumLocation- Returns:
- the location ID
-
setLocationId
Set the location ID.- Parameters:
locationId- the ID to set
-
getLocationName
Description copied from interface:DatumLocationGet a name for this location.- Specified by:
getLocationNamein interfaceDatumLocation- Returns:
- the location name
-
setLocationName
Set the location name.- Parameters:
locationName- the location name to set
-
getSourceId
Description copied from interface:DatumLocationGet a unique ID of the source of this location.- Specified by:
getSourceIdin interfaceDatumLocation- Returns:
- the source ID
-
setSourceId
Set the source ID.- Parameters:
sourceId- the source ID to set
-
getSourceName
Description copied from interface:DatumLocationGet the name of the source of this location.- Specified by:
getSourceNamein interfaceDatumLocation- Returns:
- the source name
-
setSourceName
Set the source name.- Parameters:
sourceName- the name to set
-
getMetadata
public net.solarnetwork.domain.datum.GeneralDatumMetadata getMetadata()Description copied from interface:DatumLocationGet metadata about the location.- Specified by:
getMetadatain interfaceDatumLocation- 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
-