Added current operation to the Product

This commit is contained in:
Daniel Poustka 2020-11-30 15:20:36 +01:00
parent 5a6fc28b76
commit 2b57aa8dfe

View File

@ -1,9 +1,12 @@
package cz.cvut.fel.sit.omo.foodchain.product;
import cz.cvut.fel.sit.omo.foodchain.operation.IOperation;
public class Product
{
private ProductState productState;
private ProductType productType;
private IOperation currentOperation;
private String name;
@ -108,4 +111,14 @@ public class Product
{
this.name = name;
}
public IOperation getCurrentOperation()
{
return currentOperation;
}
public void setCurrentOperation(IOperation currentOperation)
{
this.currentOperation = currentOperation;
}
}