org.eclipse.test.internal.performance.data
Class Dim

java.lang.Object
  extended by org.eclipse.test.internal.performance.data.Dim
All Implemented Interfaces:
Dimension

public class Dim
extends java.lang.Object
implements Dimension

Since:
3.1

Field Summary
 
Fields inherited from interface org.eclipse.test.performance.Dimension
COMITTED, CPU_TIME, ELAPSED_PROCESS, KERNEL_TIME, USED_JAVA_HEAP, WORKING_SET, WORKING_SET_PEAK
 
Constructor Summary
Dim(int id)
           
Dim(int id, Unit unit)
           
Dim(int id, Unit unit, int multiplier)
           
 
Method Summary
 java.lang.String getDescription()
           
static Dim getDimension(int id)
           
 java.lang.String getDisplayValue(double scalar)
           
 java.lang.String getDisplayValue(Scalar scalar)
           
 int getId()
           
 int getMultiplier()
           
 java.lang.String getName()
           
 java.lang.String getShortName()
          Returns the short name for the current dimension.
 Unit getUnit()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dim

public Dim(int id)

Dim

public Dim(int id,
           Unit unit)

Dim

public Dim(int id,
           Unit unit,
           int multiplier)
Method Detail

getDimension

public static Dim getDimension(int id)

getId

public int getId()

getUnit

public Unit getUnit()

getMultiplier

public int getMultiplier()

getName

public java.lang.String getName()

getShortName

public java.lang.String getShortName()
Returns the short name for the current dimension. This short name is done keeping only uppercase characters from the name. It's typically used for anchor references based on dimension.

Returns:
The short name of the dimension

getDescription

public java.lang.String getDescription()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDisplayValue

public java.lang.String getDisplayValue(Scalar scalar)

getDisplayValue

public java.lang.String getDisplayValue(double scalar)