Class ChargingProfileInfo

java.lang.Object
net.solarnetwork.ocpp.domain.ChargingProfileInfo
All Implemented Interfaces:
net.solarnetwork.domain.Differentiable<ChargingProfileInfo>

public class ChargingProfileInfo extends Object implements net.solarnetwork.domain.Differentiable<ChargingProfileInfo>
Information about a charging profile.
Version:
1.0
Author:
matt
  • Constructor Details

  • Method Details

    • isSameAs

      public boolean isSameAs(ChargingProfileInfo other)
      Test if the properties of another entity are the same as in this instance.
      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(ChargingProfileInfo other)
      Specified by:
      differsFrom in interface net.solarnetwork.domain.Differentiable<ChargingProfileInfo>
    • toString

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

      public ChargingProfilePurpose getPurpose()
      Get the purpose.
      Returns:
      the purpose; never null
    • setPurpose

      public void setPurpose(ChargingProfilePurpose purpose)
      Set the purpose.
      Parameters:
      purpose - the purpose to set
      Throws:
      IllegalArgumentException - if purpose is null
    • getPurposeCode

      public int getPurposeCode()
      Get the purpose as a code value.
      Returns:
      the purpose code
    • setPurposeCode

      public void setPurposeCode(int code)
      Set the purpose as a code value.
      Parameters:
      code - the purpose code
    • getKind

      public ChargingProfileKind getKind()
      Get the profile kind.
      Returns:
      the kind; never null
    • setKind

      public void setKind(ChargingProfileKind kind)
      Set the profile kind.
      Parameters:
      kind - the kind to set
      Throws:
      IllegalArgumentException - if kind is null
    • getKindCode

      public int getKindCode()
      Get the profile kind as a code value.
      Returns:
      the kind code
    • setKindCode

      public void setKindCode(int code)
      Set the profile kind as a code value.
      Parameters:
      code - the kind code
    • getRecurrency

      public ChargingScheduleRecurrency getRecurrency()
      Get the recurrency.
      Returns:
      the recurrency
    • setRecurrency

      public void setRecurrency(ChargingScheduleRecurrency recurrency)
      Set the recurrency.
      Parameters:
      recurrency - the recurrency to set
    • getRecurrencyCode

      public int getRecurrencyCode()
      Get the recurrency as a code value.
      Returns:
      the recurrency code
    • setRecurrencyCode

      public void setRecurrencyCode(int code)
      Set the recurrency as a code value.
      Parameters:
      code - the recurrency code
    • getValidFrom

      public Instant getValidFrom()
      Get the valid from date.
      Returns:
      the date
    • setValidFrom

      public void setValidFrom(Instant validFrom)
      Set the valid from date.
      Parameters:
      validFrom - the date to set
    • getValidFromValue

      public String getValidFromValue()
      Get the valid from date as a formatted instant.
      Returns:
      the date, as an ISO 8601 formatted string
    • setValidFromValue

      public void setValidFromValue(String value)
      Set the valid from date as an ISO 8601 formatted timestamp.
      Parameters:
      value - the date string
    • getValidTo

      public Instant getValidTo()
      Get the valid to date.
      Returns:
      the date
    • setValidTo

      public void setValidTo(Instant validTo)
      Set the valid to date.
      Parameters:
      validTo - the date to set
    • getValidToValue

      public String getValidToValue()
      Get the valid to date as a formatted instant.
      Returns:
      the date, as an ISO 8601 formatted string
    • setValidToValue

      public void setValidToValue(String value)
      Set the valid to date as an ISO 8601 formatted timestamp.
      Parameters:
      value - the date string
    • getSchedule

      public ChargingScheduleInfo getSchedule()
      Get the schedule.
      Returns:
      the schedule
    • setSchedule

      public void setSchedule(ChargingScheduleInfo schedule)
      Set the schedule.
      Parameters:
      schedule - the schedule to set
      Throws:
      IllegalArgumentException - if schedule is null