public static enum StochasticNet.TimeUnit extends java.lang.Enum<StochasticNet.TimeUnit>
For example, if a timed transition in a StochasticNet
has a duration distribution of
NormalDistribution
(10,2), this tells us, if it takes usually 10 seconds, or 10 hours to complete.
Enum Constant and Description |
---|
DAYS |
HOURS |
MICROSECONDS |
MILLISECONDS |
MINUTES |
NANOSECONDS |
SECONDS |
UNSPECIFIED |
WEEKS |
YEARS |
Modifier and Type | Method and Description |
---|---|
static StochasticNet.TimeUnit |
fromString(java.lang.String s) |
double |
getUnitFactorToMillis()
Returns the conversion factor
|
java.lang.String |
toString() |
static StochasticNet.TimeUnit |
valueOf(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.
|
public static final StochasticNet.TimeUnit NANOSECONDS
public static final StochasticNet.TimeUnit MICROSECONDS
public static final StochasticNet.TimeUnit MILLISECONDS
public static final StochasticNet.TimeUnit SECONDS
public static final StochasticNet.TimeUnit MINUTES
public static final StochasticNet.TimeUnit HOURS
public static final StochasticNet.TimeUnit DAYS
public static final StochasticNet.TimeUnit WEEKS
public static final StochasticNet.TimeUnit YEARS
public static final StochasticNet.TimeUnit UNSPECIFIED
public static StochasticNet.TimeUnit[] values()
for (StochasticNet.TimeUnit c : StochasticNet.TimeUnit.values()) System.out.println(c);
public static StochasticNet.TimeUnit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<StochasticNet.TimeUnit>
public static StochasticNet.TimeUnit fromString(java.lang.String s)
public double getUnitFactorToMillis()