org.processmining.framework.models.hlprocess
Enum HighLevelProcess.TimeUnit

java.lang.Object
  extended by java.lang.Enum<HighLevelProcess.TimeUnit>
      extended by org.processmining.framework.models.hlprocess.HighLevelProcess.TimeUnit
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HighLevelProcess.TimeUnit>
Enclosing interface:
HighLevelProcess

public static enum HighLevelProcess.TimeUnit
extends java.lang.Enum<HighLevelProcess.TimeUnit>

Class representing a time unit, such as "hour" or "millisecond". The following time units can be represented by this class TimeUnit.YEARS, TimeUnit.MONTHS, TimeUnit.WEEKS, TimeUnit.DAYS, TimeUnit.HOURS, TimeUnit.MINUTES, TimeUnit.SECONDS, TimeUnit.MILLISECONDS. Actually, an instance of the class TimeUnit can simply be create by TimeUnit. and followed by the constant (e.g. DAYS)

Author:
arozinat, rmans

Enum Constant Summary
DAYS
           
HOURS
           
MILLISECONDS
           
MINUTES
           
MONTHS
           
SECONDS
           
WEEKS
           
YEARS
           
 
Method Summary
 int getConversionValue()
          Returns the value by which a time value in seconds needs to be devided in order to yield the respective time unit.
 java.util.ArrayList<HighLevelProcess.TimeUnit> getValues()
          Returns a list with all possible timeunit values
 java.lang.String toString()
           
static HighLevelProcess.TimeUnit valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HighLevelProcess.TimeUnit[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

YEARS

public static final HighLevelProcess.TimeUnit YEARS

MONTHS

public static final HighLevelProcess.TimeUnit MONTHS

WEEKS

public static final HighLevelProcess.TimeUnit WEEKS

DAYS

public static final HighLevelProcess.TimeUnit DAYS

HOURS

public static final HighLevelProcess.TimeUnit HOURS

MINUTES

public static final HighLevelProcess.TimeUnit MINUTES

SECONDS

public static final HighLevelProcess.TimeUnit SECONDS

MILLISECONDS

public static final HighLevelProcess.TimeUnit MILLISECONDS
Method Detail

values

public static final HighLevelProcess.TimeUnit[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(HighLevelProcess.TimeUnit c : HighLevelProcess.TimeUnit.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static HighLevelProcess.TimeUnit valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getValues

public java.util.ArrayList<HighLevelProcess.TimeUnit> getValues()
Returns a list with all possible timeunit values

Returns:
ArrayList a list with all possible time unit values

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<HighLevelProcess.TimeUnit>

getConversionValue

public int getConversionValue()
Returns the value by which a time value in seconds needs to be devided in order to yield the respective time unit.

Returns:
the conversion value for the repsective time unit