Class Vector.VectorIndex

  • Enclosing class:
    Vector

    public static class Vector.VectorIndex
    extends java.lang.Object
    Author:
    Bhagat class representing the index and value at a vector
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int index
      index in the vector
      private Vector parent
      the parent vector
      private double value
      value
    • Constructor Summary

      Constructors 
      Constructor Description
      VectorIndex​(int index)
      Creates a new Vector Index
      VectorIndex​(int index, double value)
      Creates a new Vector Index
      VectorIndex​(int index, double value, Vector parent)
      Creates a new Vector Index
      VectorIndex​(int index, Vector parent)
      Creates a new Vector Index
    • Field Detail

      • index

        private int index
        index in the vector
      • value

        private double value
        value
      • parent

        private Vector parent
        the parent vector
    • Constructor Detail

      • VectorIndex

        public VectorIndex​(int index)
        Creates a new Vector Index
        Parameters:
        index - the index
      • VectorIndex

        public VectorIndex​(int index,
                           double value)
        Creates a new Vector Index
        Parameters:
        index - the index
        value - the value at said index
      • VectorIndex

        public VectorIndex​(int index,
                           double value,
                           Vector parent)
        Creates a new Vector Index
        Parameters:
        index - the index
        value - the value at said index
        parent - the vector holding the VectorIndex
      • VectorIndex

        public VectorIndex​(int index,
                           Vector parent)
        Creates a new Vector Index
        Parameters:
        index - the index
        parent - the vector holding the VectorIndex
    • Method Detail

      • getIndex

        public int getIndex()
        Returns:
        the index
      • setIndex

        public void setIndex​(int index)
        Parameters:
        index - the index to set
      • getValue

        public double getValue()
        Returns:
        the value
      • setValue

        public void setValue​(double value)
        Parameters:
        value - the value to set
      • getParent

        public Vector getParent()
        Returns:
        the parent
      • setParent

        public void setParent​(Vector parent)
        Parameters:
        parent - the parent to set