Changed current operation from IOperation to OperationBase

This commit is contained in:
Daniel Poustka 2020-11-30 15:23:07 +01:00
parent 2b57aa8dfe
commit 32468b44f0

View File

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