Class SystemParticipantValidationUtils
java.lang.Object
edu.ie3.datamodel.utils.validation.ValidationUtils
edu.ie3.datamodel.utils.validation.SystemParticipantValidationUtils
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
check
(SystemParticipantInput systemParticipant) Validates a system participant if:
- it is not null
- its qCharacteristics are not nullprotected 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 oneMethods inherited from class edu.ie3.datamodel.utils.validation.ValidationUtils
check, checkForDuplicateUuids, checkNonNull, checkNotImplementedException, detectMalformedQuantities, detectNegativeQuantities, detectPositiveQuantities, detectZeroOrNegativeQuantities, distinctByKey
-
Method Details
-
check
Validates a system participant if:
- it is not null
- its qCharacteristics are not nullA "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
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 oneA "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
-