Enum Class SimpleResourceDepot.SupplyConflictStrategy
java.lang.Object
java.lang.Enum<SimpleResourceDepot.SupplyConflictStrategy>
com.dna.jopt.member.unit.pnd.depot.resource.simple.SimpleResourceDepot.SupplyConflictStrategy
- All Implemented Interfaces:
Serializable
,Comparable<SimpleResourceDepot.SupplyConflictStrategy>
,Constable
- Enclosing class:
- SimpleResourceDepot
public static enum SimpleResourceDepot.SupplyConflictStrategy
extends Enum<SimpleResourceDepot.SupplyConflictStrategy>
The Enum SupplyConflictStrategy.
- Since:
- Jul 22, 2020
- Version:
- Jul 22, 2020
- Author:
- jrich
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTry to balance between all loads.Try to avoid partial loadsLoads with higher priority are more important to be fulfilled -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRIORITY
Loads with higher priority are more important to be fulfilled -
BALANCE
Try to balance between all loads. -
FULL_LOADS
Try to avoid partial loads
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-