Enum StochasticNet.TimeUnit
- java.lang.Object
-
- java.lang.Enum<StochasticNet.TimeUnit>
-
- org.processmining.models.graphbased.directed.petrinet.StochasticNet.TimeUnit
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<StochasticNet.TimeUnit>
- Enclosing interface:
- StochasticNet
public static enum StochasticNet.TimeUnit extends java.lang.Enum<StochasticNet.TimeUnit>
Enumeration specifying in which time unit the parameters of the net are given.For example, if a timed transition in a
StochasticNethas a duration distribution ofNormalDistribution(10,2), this tells us, if it takes usually 10 seconds, or 10 hours to complete.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAYSHOURSMICROSECONDSMILLISECONDSMINUTESNANOSECONDSSECONDSUNSPECIFIEDWEEKSYEARS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StochasticNet.TimeUnitfromString(java.lang.String s)doublegetUnitFactorToMillis()Returns the conversion factorjava.lang.StringtoString()static StochasticNet.TimeUnitvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static StochasticNet.TimeUnit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NANOSECONDS
public static final StochasticNet.TimeUnit NANOSECONDS
-
MICROSECONDS
public static final StochasticNet.TimeUnit MICROSECONDS
-
MILLISECONDS
public static final StochasticNet.TimeUnit MILLISECONDS
-
SECONDS
public static final StochasticNet.TimeUnit SECONDS
-
MINUTES
public static final StochasticNet.TimeUnit MINUTES
-
HOURS
public static final StochasticNet.TimeUnit HOURS
-
DAYS
public static final StochasticNet.TimeUnit DAYS
-
WEEKS
public static final StochasticNet.TimeUnit WEEKS
-
YEARS
public static final StochasticNet.TimeUnit YEARS
-
UNSPECIFIED
public static final StochasticNet.TimeUnit UNSPECIFIED
-
-
Method Detail
-
values
public static StochasticNet.TimeUnit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StochasticNet.TimeUnit c : StochasticNet.TimeUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StochasticNet.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 namejava.lang.NullPointerException- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<StochasticNet.TimeUnit>
-
fromString
public static StochasticNet.TimeUnit fromString(java.lang.String s)
-
getUnitFactorToMillis
public double getUnitFactorToMillis()
Returns the conversion factor- Returns:
-
-