Class DirectivityRecord

java.lang.Object
org.noise_planet.noisemodelling.emission.directivity.DirectivityRecord

public class DirectivityRecord extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    DirectivityRecord(double theta, double phi, double[] attenuation)
    directivity record is the attenuation value for a specific angle (theta, phi) - a point of the directivity sphere
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    compare the values of theta et phi of the Object DirectivityRecord
    double[]
     
    double
     
    double
     
    int
    generate a hash code for an object with theta and phi argument
    generate a string representation of the object DirectivityRecord

    Methods inherited from class java.lang.Object

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

    • DirectivityRecord

      public DirectivityRecord(double theta, double phi, double[] attenuation)
      directivity record is the attenuation value for a specific angle (theta, phi) - a point of the directivity sphere
      Parameters:
      theta - (-π/2 π/2) 0 is horizontal; π is top
      phi - (0 2π) 0 is front
      attenuation - in dB
  • Method Details

    • getTheta

      public double getTheta()
      Returns:
      Theta
    • getPhi

      public double getPhi()
    • equals

      public boolean equals(Object o)
      compare the values of theta et phi of the Object DirectivityRecord
      Overrides:
      equals in class Object
      Parameters:
      o - object
      Returns:
      a boolean
    • hashCode

      public int hashCode()
      generate a hash code for an object with theta and phi argument
      Overrides:
      hashCode in class Object
      Returns:
      Hash code
    • toString

      public String toString()
      generate a string representation of the object DirectivityRecord
      Overrides:
      toString in class Object
      Returns:
      a string
    • getAttenuation

      public double[] getAttenuation()