Package net.solarnetwork.central.support
Class SimpleNodeGroupInformation
java.lang.Object
net.solarnetwork.central.domain.BaseIdentity
net.solarnetwork.central.support.SimpleNodeGroupInformation
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Long>,NodeGroupIdentity,NodeGroupInformation,net.solarnetwork.domain.Identity<Long>
Simple implementation of
NodeGroupInformation.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SimpleNodeGroupInformation(String name, SolarNodeGroupCapability capability, Location location) Construct with values. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGenerationCapacityWatts(Long amount) Increment the generation capacity.voidaddStorageCapacityWattHours(Long amount) Increment the storage capacity.Get a theoretical maximum power generation capacity of all group members combined.Get the location of the node.getName()Get the name of the group.Get a theoretical maximum power storage capacity of all group members combined.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
-
SimpleNodeGroupInformation
public SimpleNodeGroupInformation()Default constructor. -
SimpleNodeGroupInformation
public SimpleNodeGroupInformation(String name, SolarNodeGroupCapability capability, Location location) Construct with values.- Parameters:
name- the namecapability- the capabilitylocation- the location
-
-
Method Details
-
getLocation
Description copied from interface:NodeGroupInformationGet the location of the node.- Specified by:
getLocationin interfaceNodeGroupInformation- Returns:
- location
-
getName
Description copied from interface:NodeGroupInformationGet the name of the group.- Specified by:
getNamein interfaceNodeGroupInformation- Returns:
- the group name
-
addGenerationCapacityWatts
Increment the generation capacity.- Parameters:
amount- the amount to add
-
addStorageCapacityWattHours
Increment the storage capacity.- Parameters:
amount- the amount to add
-
getGenerationCapacityWatts
Description copied from interface:NodeGroupInformationGet a theoretical maximum power generation capacity of all group members combined.- Specified by:
getGenerationCapacityWattsin interfaceNodeGroupInformation- Returns:
- the generationCapacityWatts
-
getStorageCapacityWattHours
Description copied from interface:NodeGroupInformationGet a theoretical maximum power storage capacity of all group members combined.- Specified by:
getStorageCapacityWattHoursin interfaceNodeGroupInformation- Returns:
- the storageCapacityWattHours
-