public enum RateUnits extends java.lang.Enum<RateUnits> implements IUnits<RateUnits>
Enum Constant and Description |
---|
PER_DAY
Per day
|
PER_HOUR
Per hour
|
PER_MILLISECOND
Per millisecond
|
PER_MINUTE
Per minute
|
PER_MONTH
Per month
|
PER_SECOND
Per second
|
PER_WEEK
Per week
|
PER_YEAR
Per year
|
ALL_UNIT_TYPES
Modifier and Type | Method and Description |
---|---|
double |
convertTo(double value,
RateUnits units)
Converts the given value from this units to the given
units |
java.lang.String |
getName()
Returns human-readable name (e.g.
|
TimeUnits |
getTimeUnits()
Returns the base time unit of this rate unit
|
double |
modifier(RateUnits units) |
static RateUnits |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RateUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RateUnits PER_MILLISECOND
public static final RateUnits PER_SECOND
public static final RateUnits PER_MINUTE
public static final RateUnits PER_HOUR
public static final RateUnits PER_DAY
public static final RateUnits PER_WEEK
public static final RateUnits PER_MONTH
public static final RateUnits PER_YEAR
public static RateUnits[] values()
for (RateUnits c : RateUnits.values()) System.out.println(c);
public static RateUnits 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 getName()
IUnits
public double modifier(RateUnits units)
public double convertTo(double value, RateUnits units)
IUnits
units
@AnyLogicInternalAPI public TimeUnits getTimeUnits()
Copyright © AnyLogic North America, LLC. All Rights Reserved.