Class SystemParticipantValidationUtils

java.lang.Object
edu.ie3.datamodel.utils.validation.ValidationUtils
edu.ie3.datamodel.utils.validation.SystemParticipantValidationUtils

public class SystemParticipantValidationUtils extends ValidationUtils
  • Method Details

    • check

      protected static void check(SystemParticipantInput systemParticipant)
      Validates a system participant if:
      - it is not null
      - its qCharacteristics are not null

      A "distribution" method, that forwards the check request to specific implementations to fulfill the checking task, based on the class of the given object.

      Parameters:
      systemParticipant - systemParticipant to validate
      Throws:
      NotImplementedException - if an unknown class is handed in
    • checkType

      protected static void checkType(SystemParticipantTypeInput systemParticipantTypeInput)
      Validates a system participant type if:
      - it is not null
      - capex is not null and not negative
      - opex is not null and not negative
      - sRated is not null and not negative
      - cosphiRated is between zero and one

      A "distribution" method, that forwards the check request to specific implementations to fulfill the checking task, based on the class of the given object.

      Parameters:
      systemParticipantTypeInput - systemParticipant Type to validate
      Throws:
      NotImplementedException - if an unknown class is handed in