public static enum SimpleResourceDepot.SupplyConflictStrategy extends Enum<SimpleResourceDepot.SupplyConflictStrategy>
Enum Constant and Description |
---|
BALANCE
Try to balance between all loads.
|
FULL_LOADS
Try to avoid partial loads
|
PRIORITY
Loads with higher priority are more important to be fulfilled
|
Modifier and Type | Method and Description |
---|---|
static SimpleResourceDepot.SupplyConflictStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimpleResourceDepot.SupplyConflictStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleResourceDepot.SupplyConflictStrategy PRIORITY
public static final SimpleResourceDepot.SupplyConflictStrategy BALANCE
public static final SimpleResourceDepot.SupplyConflictStrategy FULL_LOADS
public static SimpleResourceDepot.SupplyConflictStrategy[] values()
for (SimpleResourceDepot.SupplyConflictStrategy c : SimpleResourceDepot.SupplyConflictStrategy.values()) System.out.println(c);
public static SimpleResourceDepot.SupplyConflictStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.