Class SValue

java.lang.Object
edu.ie3.datamodel.models.value.PValue
edu.ie3.datamodel.models.value.SValue
All Implemented Interfaces:
Value, Serializable
Direct Known Subclasses:
HeatAndSValue

public class SValue extends PValue
Describes a apparent power value as a pair of active and reactive power
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    SValue(tech.units.indriya.ComparableQuantity<javax.measure.quantity.Power> p, tech.units.indriya.ComparableQuantity<javax.measure.quantity.Power> q)
    Creates a new value representing apparent power
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Optional<tech.units.indriya.ComparableQuantity<javax.measure.quantity.Power>>
     
    int
     
     

    Methods inherited from class edu.ie3.datamodel.models.value.PValue

    getP

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SValue

      public SValue(tech.units.indriya.ComparableQuantity<javax.measure.quantity.Power> p, tech.units.indriya.ComparableQuantity<javax.measure.quantity.Power> q)
      Creates a new value representing apparent power
      Parameters:
      p - Active power
      q - Reactive power
  • Method Details

    • getQ

      public Optional<tech.units.indriya.ComparableQuantity<javax.measure.quantity.Power>> getQ()
    • equals

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

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

      public String toString()
      Overrides:
      toString in class PValue