Class Coordinate

    • Constructor Detail

      • Coordinate

        public Coordinate()
        Default constructor
      • Coordinate

        public Coordinate​(Coordinate coordinate)
        Copy constructor
        Parameters:
        coordinate - the one to copy
      • Coordinate

        public Coordinate​(JsonObject coordinate)
        Constructor from JSON
        Parameters:
        coordinate - the JSON
    • Method Detail

      • toJson

        public JsonObject toJson()
        Convert to JSON
        Returns:
        the JSON
      • getNode

        public String getNode()
        Get name of node
        Returns:
        name of node
      • getAdj

        public float getAdj()
        Get adjustment
        Returns:
        adjustment
      • getErr

        public float getErr()
        Get error
        Returns:
        error
      • getHeight

        public float getHeight()
        Get height
        Returns:
        height
      • getVec

        public List<Float> getVec()
        Get vector
        Returns:
        vector
      • setNode

        public Coordinate setNode​(String node)
        Set name of node
        Parameters:
        node - name of node
        Returns:
        reference to this, for fluency
      • setAdj

        public Coordinate setAdj​(float adj)
        Set adjustment
        Parameters:
        adj - adjustment
        Returns:
        reference to this, for fluency
      • setErr

        public Coordinate setErr​(float err)
        Set error
        Parameters:
        err - error
        Returns:
        reference to this, for fluency
      • setHeight

        public Coordinate setHeight​(float height)
        Set height
        Parameters:
        height - height
        Returns:
        reference to this, for fluency
      • setVec

        public Coordinate setVec​(List<Float> vec)
        Set vector
        Parameters:
        vec - vector
        Returns:
        reference to this, for fluency
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object