public class GradsDimension
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LEVELS
levels type mapping
|
static java.lang.String |
LINEAR
linear type mapping
|
Constructor and Description |
---|
GradsDimension(java.lang.String name,
int size,
java.lang.String mapping)
Make a new GradsDimension from the values
|
Modifier and Type | Method and Description |
---|---|
protected void |
addLevel(java.lang.String level)
Add a level to the list of levels
|
protected java.util.List<java.lang.String> |
getLevels()
Get the levels
|
java.lang.String |
getName()
Get the name of this dimension
|
int |
getSize()
Get the size of this dimension
|
java.lang.String |
getType()
Get the mapping type
|
java.lang.String |
getUnit()
Get the units
|
double[] |
getValues()
Get the values
|
protected double[] |
makeLevelValues()
Make the level values from the specifications
|
protected void |
setUnit(java.lang.String unit)
Set the unit
|
java.lang.String |
toString()
Return a String representation of this object
|
public static final java.lang.String LINEAR
public static final java.lang.String LEVELS
public GradsDimension(java.lang.String name, int size, java.lang.String mapping)
name
- the dimension namesize
- the dimension sizemapping
- the dimension mapping typeprotected void addLevel(java.lang.String level)
level
- level to addprotected java.util.List<java.lang.String> getLevels()
public java.lang.String getName()
public int getSize()
public double[] getValues()
public java.lang.String getUnit()
protected void setUnit(java.lang.String unit)
unit
- the unitpublic java.lang.String getType()
protected double[] makeLevelValues()
public java.lang.String toString()
toString
in class java.lang.Object