Class GradsDimension

    • Constructor Detail

      • GradsDimension

        public GradsDimension​(String name,
                              int size,
                              String mapping)
        Make a new GradsDimension from the values
        Parameters:
        name - the dimension name
        size - the dimension size
        mapping - the dimension mapping type
    • Method Detail

      • addLevel

        protected void addLevel​(String level)
        Add a level to the list of levels
        Parameters:
        level - level to add
      • getLevels

        protected List<String> getLevels()
        Get the levels
        Returns:
        the list of levels
      • getName

        public String getName()
        Get the name of this dimension
        Returns:
        the name
      • getSize

        public int getSize()
        Get the size of this dimension
        Returns:
        the size
      • getValues

        public double[] getValues()
        Get the values
        Returns:
        the values
      • getUnit

        public String getUnit()
        Get the units
        Returns:
        the units
      • setUnit

        protected void setUnit​(String unit)
        Set the unit
        Parameters:
        unit - the unit
      • getType

        public String getType()
        Get the mapping type
        Returns:
        the mapping type
      • makeLevelValues

        protected double[] makeLevelValues()
        Make the level values from the specifications
        Returns:
        the level values
      • toString

        public String toString()
        Return a String representation of this object
        Overrides:
        toString in class Object
        Returns:
        a String representation of this object