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 abscissa
O - 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 Details

    • characteristicPrefix

      protected final String 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 characteristic
      characteristicPrefix - 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

      public static String buildStartingRegex(String prefix)
      Builds a regex, that is suitable to match '[prefix]:{'
      Parameters:
      prefix - Unique prefix to an instance of the Characteristic
      Returns:
      The suitable regex
    • getPoints

      public SortedSet<CharacteristicPoint<A,O>> getPoints()
    • serialize

      public String serialize()
      Serialize the characteristic to a commonly understood string
      Returns:
      the characteristic as serialized string
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object