Package net.solarnetwork.ocpp.domain
Class ChargingProfile
java.lang.Object
net.solarnetwork.dao.BasicIdentity<K>
net.solarnetwork.dao.BasicEntity<UUID>
net.solarnetwork.dao.BasicUuidEntity
net.solarnetwork.ocpp.domain.ChargingProfile
- All Implemented Interfaces:
Serializable,Comparable<UUID>,net.solarnetwork.dao.Entity<UUID>,net.solarnetwork.domain.Differentiable<ChargingProfile>,net.solarnetwork.domain.Identity<UUID>
public class ChargingProfile
extends net.solarnetwork.dao.BasicUuidEntity
implements net.solarnetwork.domain.Differentiable<ChargingProfile>
An entity for an OCPP charging profile, which represents charging constraints
to apply over a time period.
- Version:
- 1.1
- Author:
- matt
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ChargingProfileKindThe default profile kind.static final ChargingProfilePurposeThe default purpose.static final UnitOfMeasureThe default rate unit. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.ChargingProfile(UUID id) Constructor.ChargingProfile(UUID id, Instant created) Constructor.ChargingProfile(UUID id, Instant created, ChargingProfileInfo info) Constructor.ChargingProfile(ChargingProfile other) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleandiffersFrom(ChargingProfile other) getInfo()Get the charging profile info.booleanisSameAs(ChargingProfile other) Test if the properties of another entity are the same as in this instance.voidsetInfo(ChargingProfileInfo info) Set the charging profile info.toString()Methods inherited from class net.solarnetwork.dao.BasicUuidEntity
cloneMethods inherited from class net.solarnetwork.dao.BasicEntity
getCreatedMethods inherited from class net.solarnetwork.dao.BasicIdentity
compareTo, equals, getId, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface net.solarnetwork.domain.Identity
getId, hasId
-
Field Details
-
DEFAULT_PURPOSE
The default purpose. -
DEFAULT_KIND
The default profile kind. -
DEFAULT_RATE_UNIT
The default rate unit.
-
-
Constructor Details
-
ChargingProfile
public ChargingProfile()Constructor. -
ChargingProfile
Constructor.- Parameters:
id- the primary key
-
ChargingProfile
Constructor.- Parameters:
id- the primary keycreated- the created date
-
ChargingProfile
Constructor.- Parameters:
id- the primary keycreated- the created dateinfo- the info * @throws IllegalArgumentException ifinfois null Ill
-
ChargingProfile
Copy constructor.- Parameters:
other- the other charge point to copy
-
-
Method Details
-
isSameAs
Test if the properties of another entity are the same as in this instance.The
idandcreatedproperties are not compared by this method.- Parameters:
other- the other entity to compare to- Returns:
- true if the properties of this instance are equal to the other
-
differsFrom
- Specified by:
differsFromin interfacenet.solarnetwork.domain.Differentiable<ChargingProfile>
-
toString
-
getInfo
Get the charging profile info.- Returns:
- the info, never null
-
setInfo
Set the charging profile info.- Parameters:
info- the info to set- Throws:
IllegalArgumentException- ifinfois null
-