Enum OpenShopMetric
- java.lang.Object
-
- java.lang.Enum<OpenShopMetric>
-
- ai.libs.jaicore.problems.scheduling.openshop.OpenShopMetric
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OpenShopMetric>
public enum OpenShopMetric extends java.lang.Enum<OpenShopMetric>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MAKESPANMAXTARDINESSNUM_TARDY_JOBTOTALFLOWTIMETOTALFLOWTIME_WEIGHTEDTOTALTARDINESSTOTALTARDINESS_WEIGHTED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetScore(OpenShopProblem problem, Schedule schedule)static OpenShopMetricvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static OpenShopMetric[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOTALFLOWTIME
public static final OpenShopMetric TOTALFLOWTIME
-
TOTALTARDINESS
public static final OpenShopMetric TOTALTARDINESS
-
TOTALFLOWTIME_WEIGHTED
public static final OpenShopMetric TOTALFLOWTIME_WEIGHTED
-
TOTALTARDINESS_WEIGHTED
public static final OpenShopMetric TOTALTARDINESS_WEIGHTED
-
MAKESPAN
public static final OpenShopMetric MAKESPAN
-
MAXTARDINESS
public static final OpenShopMetric MAXTARDINESS
-
NUM_TARDY_JOB
public static final OpenShopMetric NUM_TARDY_JOB
-
-
Method Detail
-
values
public static OpenShopMetric[] 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 (OpenShopMetric c : OpenShopMetric.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpenShopMetric 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
-
getScore
public double getScore(OpenShopProblem problem, Schedule schedule)
-
-