Class WindValue

java.lang.Object
edu.ie3.datamodel.models.value.WindValue
All Implemented Interfaces:
Value, Serializable

public class WindValue extends Object implements Value
Describes wind as a pair of direction and velocity
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    WindValue(tech.units.indriya.ComparableQuantity<javax.measure.quantity.Angle> direction, tech.units.indriya.ComparableQuantity<javax.measure.quantity.Speed> velocity)
     
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • WindValue

      public WindValue(tech.units.indriya.ComparableQuantity<javax.measure.quantity.Angle> direction, tech.units.indriya.ComparableQuantity<javax.measure.quantity.Speed> velocity)
      Parameters:
      direction - Direction, the wind comes from as an angle from north increasing clockwise (typically in rad)
      velocity - Wind velocity (typically in m/s)
  • Method Details

    • getDirection

      public Optional<tech.units.indriya.ComparableQuantity<javax.measure.quantity.Angle>> getDirection()
    • getVelocity

      public Optional<tech.units.indriya.ComparableQuantity<javax.measure.quantity.Speed>> getVelocity()
    • 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