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 Details

    • DEFAULT_PURPOSE

      public static final ChargingProfilePurpose DEFAULT_PURPOSE
      The default purpose.
    • DEFAULT_KIND

      public static final ChargingProfileKind DEFAULT_KIND
      The default profile kind.
    • DEFAULT_RATE_UNIT

      public static final UnitOfMeasure DEFAULT_RATE_UNIT
      The default rate unit.
  • Constructor Details

    • ChargingProfile

      public ChargingProfile()
      Constructor.
    • ChargingProfile

      public ChargingProfile(UUID id)
      Constructor.
      Parameters:
      id - the primary key
    • ChargingProfile

      public ChargingProfile(UUID id, Instant created)
      Constructor.
      Parameters:
      id - the primary key
      created - the created date
    • ChargingProfile

      public ChargingProfile(UUID id, Instant created, ChargingProfileInfo info)
      Constructor.
      Parameters:
      id - the primary key
      created - the created date
      info - the info * @throws IllegalArgumentException if info is null Ill
    • ChargingProfile

      public ChargingProfile(ChargingProfile other)
      Copy constructor.
      Parameters:
      other - the other charge point to copy
  • Method Details

    • isSameAs

      public boolean isSameAs(ChargingProfile other)
      Test if the properties of another entity are the same as in this instance.

      The id and created properties 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

      public boolean differsFrom(ChargingProfile other)
      Specified by:
      differsFrom in interface net.solarnetwork.domain.Differentiable<ChargingProfile>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getInfo

      public ChargingProfileInfo getInfo()
      Get the charging profile info.
      Returns:
      the info, never null
    • setInfo

      public void setInfo(ChargingProfileInfo info)
      Set the charging profile info.
      Parameters:
      info - the info to set
      Throws:
      IllegalArgumentException - if info is null