Enum JobShopMetric
- java.lang.Object
-
- java.lang.Enum<JobShopMetric>
-
- ai.libs.jaicore.problems.scheduling.JobShopMetric
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<JobShopMetric>
public enum JobShopMetric extends java.lang.Enum<JobShopMetric>
-
-
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(JobSchedulingProblemInput problem, ISchedule schedule)static JobShopMetricvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static JobShopMetric[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOTALFLOWTIME
public static final JobShopMetric TOTALFLOWTIME
-
TOTALTARDINESS
public static final JobShopMetric TOTALTARDINESS
-
TOTALFLOWTIME_WEIGHTED
public static final JobShopMetric TOTALFLOWTIME_WEIGHTED
-
TOTALTARDINESS_WEIGHTED
public static final JobShopMetric TOTALTARDINESS_WEIGHTED
-
MAKESPAN
public static final JobShopMetric MAKESPAN
-
MAXTARDINESS
public static final JobShopMetric MAXTARDINESS
-
NUM_TARDY_JOB
public static final JobShopMetric NUM_TARDY_JOB
-
-
Method Detail
-
values
public static JobShopMetric[] 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 (JobShopMetric c : JobShopMetric.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JobShopMetric 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(JobSchedulingProblemInput problem, ISchedule schedule)
-
-