Enum ProductOperationType
- java.lang.Object
-
- java.lang.Enum<ProductOperationType>
-
- cz.cvut.fel.sit.omo.foodchain.operation.ProductOperationType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ProductOperationType>,java.lang.constant.Constable
public enum ProductOperationType extends java.lang.Enum<ProductOperationType>
Enum class for product operations types with parameters
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOIL_MEATCUT_TO_PIECESDRY_FRUITDRY_MEATFREEZE_DRY_FRUITGRILL_MEATSMOKE_MEATSTORE_FRUITSTORE_MEATSTORE_OTHERSTORE_VEGETABLEUNWRAPWRAP_INTO_GIFT_PACKAGE
-
Field Summary
Fields Modifier and Type Field Description private intdurationprivate NodeTypenodeprivate ProductTypeproductTypeprivate inttemperature
-
Constructor Summary
Constructors Modifier Constructor Description privateProductOperationType(NodeType node, ProductType product, int duration, int temperature)
-
Method Summary
Modifier and Type Method Description intgetDuration()NodeTypegetNode()ProductTypegetProductType()intgetTemperature()static ProductOperationTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ProductOperationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STORE_MEAT
public static final ProductOperationType STORE_MEAT
-
STORE_FRUIT
public static final ProductOperationType STORE_FRUIT
-
STORE_VEGETABLE
public static final ProductOperationType STORE_VEGETABLE
-
STORE_OTHER
public static final ProductOperationType STORE_OTHER
-
WRAP_INTO_GIFT_PACKAGE
public static final ProductOperationType WRAP_INTO_GIFT_PACKAGE
-
UNWRAP
public static final ProductOperationType UNWRAP
-
CUT_TO_PIECES
public static final ProductOperationType CUT_TO_PIECES
-
BOIL_MEAT
public static final ProductOperationType BOIL_MEAT
-
GRILL_MEAT
public static final ProductOperationType GRILL_MEAT
-
SMOKE_MEAT
public static final ProductOperationType SMOKE_MEAT
-
DRY_MEAT
public static final ProductOperationType DRY_MEAT
-
DRY_FRUIT
public static final ProductOperationType DRY_FRUIT
-
FREEZE_DRY_FRUIT
public static final ProductOperationType FREEZE_DRY_FRUIT
-
-
Field Detail
-
node
private final NodeType node
-
productType
private final ProductType productType
-
duration
private final int duration
-
temperature
private final int temperature
-
-
Constructor Detail
-
ProductOperationType
private ProductOperationType(NodeType node, ProductType product, int duration, int temperature)
-
-
Method Detail
-
values
public static ProductOperationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProductOperationType 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
-
getDuration
public int getDuration()
-
getTemperature
public int getTemperature()
-
getNode
public NodeType getNode()
-
getProductType
public ProductType getProductType()
-
-