Package net.solarnetwork.central.domain
Class SolarNodeGroup
java.lang.Object
net.solarnetwork.central.domain.BaseIdentity
net.solarnetwork.central.dao.BaseEntity
net.solarnetwork.central.domain.SolarNodeGroup
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Long>,NodeGroupIdentity,net.solarnetwork.dao.Entity<Long>,net.solarnetwork.domain.Identity<Long>
public class SolarNodeGroup
extends BaseEntity
implements Cloneable, Serializable, NodeGroupIdentity
Domain object for a group of nodes.
Groups are assigned a Location which is meant to give the group a
broadly-defined location There is no actual restriction that nodes within the
group are physically within the group location's boundaries, but in practice
this will often be the case.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SolarNodeGroup(Long id, Long locationId, String name) Construct with values. -
Method Summary
Methods inherited from class net.solarnetwork.central.dao.BaseEntity
getCreated, setCreatedMethods 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
-
SolarNodeGroup
public SolarNodeGroup()Default constructor. -
SolarNodeGroup
Construct with values.- Parameters:
id- the IDlocationId- the location IDname- the name
-
-
Method Details
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getLocationId
- Returns:
- the locationId
-
setLocationId
- Parameters:
locationId- the locationId to set
-