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>

public class SimpleNodeGroupInformation extends BaseIdentity implements NodeGroupInformation
Simple implementation of NodeGroupInformation.
See Also:
  • Constructor Details

    • SimpleNodeGroupInformation

      public SimpleNodeGroupInformation()
      Default constructor.
    • SimpleNodeGroupInformation

      public SimpleNodeGroupInformation(String name, SolarNodeGroupCapability capability, Location location)
      Construct with values.
      Parameters:
      name - the name
      capability - the capability
      location - the location
  • Method Details

    • getLocation

      public Location getLocation()
      Description copied from interface: NodeGroupInformation
      Get the location of the node.
      Specified by:
      getLocation in interface NodeGroupInformation
      Returns:
      location
    • getName

      public String getName()
      Description copied from interface: NodeGroupInformation
      Get the name of the group.
      Specified by:
      getName in interface NodeGroupInformation
      Returns:
      the group name
    • addGenerationCapacityWatts

      public void addGenerationCapacityWatts(Long amount)
      Increment the generation capacity.
      Parameters:
      amount - the amount to add
    • addStorageCapacityWattHours

      public void addStorageCapacityWattHours(Long amount)
      Increment the storage capacity.
      Parameters:
      amount - the amount to add
    • getGenerationCapacityWatts

      public Long getGenerationCapacityWatts()
      Description copied from interface: NodeGroupInformation
      Get a theoretical maximum power generation capacity of all group members combined.
      Specified by:
      getGenerationCapacityWatts in interface NodeGroupInformation
      Returns:
      the generationCapacityWatts
    • getStorageCapacityWattHours

      public Long getStorageCapacityWattHours()
      Description copied from interface: NodeGroupInformation
      Get a theoretical maximum power storage capacity of all group members combined.
      Specified by:
      getStorageCapacityWattHours in interface NodeGroupInformation
      Returns:
      the storageCapacityWattHours