Class ReactivePowerCharacteristic
java.lang.Object
edu.ie3.datamodel.models.input.system.characteristic.CharacteristicInput<javax.measure.quantity.Dimensionless,javax.measure.quantity.Dimensionless>
edu.ie3.datamodel.models.input.system.characteristic.ReactivePowerCharacteristic
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CosPhiFixed
,CosPhiP
,QV
public abstract class ReactivePowerCharacteristic
extends CharacteristicInput<javax.measure.quantity.Dimensionless,javax.measure.quantity.Dimensionless>
Abstract class (only for grouping all reactive power characteristics together
- See Also:
-
Field Summary
Fields inherited from class edu.ie3.datamodel.models.input.system.characteristic.CharacteristicInput
characteristicPrefix
-
Constructor Summary
ModifierConstructorDescriptionprotected
ReactivePowerCharacteristic
(String input, javax.measure.Unit<javax.measure.quantity.Dimensionless> abscissaUnit, javax.measure.Unit<javax.measure.quantity.Dimensionless> ordinateUnit, String prefix) protected
ReactivePowerCharacteristic
(SortedSet<CharacteristicPoint<javax.measure.quantity.Dimensionless, javax.measure.quantity.Dimensionless>> characteristicPoints, String prefix) -
Method Summary
Methods inherited from class edu.ie3.datamodel.models.input.system.characteristic.CharacteristicInput
buildStartingRegex, getPoints, serialize, toString
-
Constructor Details
-
ReactivePowerCharacteristic
protected ReactivePowerCharacteristic(SortedSet<CharacteristicPoint<javax.measure.quantity.Dimensionless, javax.measure.quantity.Dimensionless>> characteristicPoints, String prefix) -
ReactivePowerCharacteristic
protected ReactivePowerCharacteristic(String input, javax.measure.Unit<javax.measure.quantity.Dimensionless> abscissaUnit, javax.measure.Unit<javax.measure.quantity.Dimensionless> ordinateUnit, String prefix) throws ParsingException - Throws:
ParsingException
-
-
Method Details
-
parse
Parses a given input to a valid reactive power characteristic, if it is recognized correctly. Otherwise, an IllegalArgumentException is thrown.- Parameters:
input
- String to parse- Returns:
- Matching reactive power characteristic
- Throws:
ParsingException
- If the given input cannot be mapped onto one of the known characteristics
-
equals
- Overrides:
equals
in classCharacteristicInput<javax.measure.quantity.Dimensionless,
javax.measure.quantity.Dimensionless>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classCharacteristicInput<javax.measure.quantity.Dimensionless,
javax.measure.quantity.Dimensionless>
-