Class CharacteristicInput<A extends javax.measure.Quantity<A>,O extends javax.measure.Quantity<O>>
java.lang.Object
edu.ie3.datamodel.models.input.system.characteristic.CharacteristicInput<A,O>
- Type Parameters:
A- Type of quantity, that applies to the abscissaO- Type of quantity, that applies to the ordinate
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OlmCharacteristicInput,ReactivePowerCharacteristic,WecCharacteristicInput
public abstract class CharacteristicInput<A extends javax.measure.Quantity<A>,O extends javax.measure.Quantity<O>>
extends Object
implements Serializable
Describes characteristics of assets
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCharacteristicInput(String input, javax.measure.Unit<A> abscissaUnit, javax.measure.Unit<O> ordinateUnit, String characteristicPrefix) protectedCharacteristicInput(SortedSet<CharacteristicPoint<A, O>> points, String characteristicPrefix) Constructor for the abstract class -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildStartingRegex(String prefix) Builds a regex, that is suitable to match '[prefix]:{'booleaninthashCode()Serialize the characteristic to a commonly understood stringtoString()
-
Field Details
-
characteristicPrefix
-
-
Constructor Details
-
CharacteristicInput
protected CharacteristicInput(SortedSet<CharacteristicPoint<A, O>> points, String characteristicPrefix) Constructor for the abstract class- Parameters:
points- Set of points that describe the characteristiccharacteristicPrefix- Prefix, that prepends the actual characteristic
-
CharacteristicInput
protected CharacteristicInput(String input, javax.measure.Unit<A> abscissaUnit, javax.measure.Unit<O> ordinateUnit, String characteristicPrefix) throws ParsingException - Throws:
ParsingException
-
-
Method Details
-
buildStartingRegex
Builds a regex, that is suitable to match '[prefix]:{'- Parameters:
prefix- Unique prefix to an instance of the Characteristic- Returns:
- The suitable regex
-
getPoints
-
serialize
Serialize the characteristic to a commonly understood string- Returns:
- the characteristic as serialized string
-
equals
-
hashCode
public int hashCode() -
toString
-