Class DirectivityRecord


  • public class DirectivityRecord
    extends Object
    • Constructor Detail

      • 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 Detail

      • 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()