Package net.solarnetwork.central.support
Class SimpleNodeInformation
java.lang.Object
net.solarnetwork.central.domain.BaseIdentity
net.solarnetwork.central.support.SimpleNodeInformation
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Long>,NodeIdentity,NodeInformation,net.solarnetwork.domain.Identity<Long>
Simple implementation of
NodeInformation.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SimpleNodeInformation(SolarNodeCapability capability, Location location) Construct with values. -
Method Summary
Modifier and TypeMethodDescriptionGet a theoretical maximum power generation capacity.Get the location of the node.Get a theoretical maximum power storage capacity.Methods inherited from class net.solarnetwork.central.domain.BaseIdentity
clone, compareTo, equals, getId, hashCode, setIdMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface net.solarnetwork.domain.Identity
getId, hasId
-
Constructor Details
-
SimpleNodeInformation
public SimpleNodeInformation()Default constructor. -
SimpleNodeInformation
Construct with values.- Parameters:
capability- the capabilitylocation- the location
-
-
Method Details
-
getLocation
Description copied from interface:NodeInformationGet the location of the node.- Specified by:
getLocationin interfaceNodeInformation- Returns:
- the location
-
getGenerationCapacityWatts
Description copied from interface:NodeInformationGet a theoretical maximum power generation capacity.- Specified by:
getGenerationCapacityWattsin interfaceNodeInformation- Returns:
- the generationCapacityWatts
-
getStorageCapacityWattHours
Description copied from interface:NodeInformationGet a theoretical maximum power storage capacity.- Specified by:
getStorageCapacityWattHoursin interfaceNodeInformation- Returns:
- the storageCapacityWattHours
-