Added current operation to the Product
This commit is contained in:
parent
5a6fc28b76
commit
2b57aa8dfe
@ -1,9 +1,12 @@
|
|||||||
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;
|
||||||
|
|
||||||
public class Product
|
public class Product
|
||||||
{
|
{
|
||||||
private ProductState productState;
|
private ProductState productState;
|
||||||
private ProductType productType;
|
private ProductType productType;
|
||||||
|
private IOperation currentOperation;
|
||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@ -108,4 +111,14 @@ public class Product
|
|||||||
{
|
{
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public IOperation getCurrentOperation()
|
||||||
|
{
|
||||||
|
return currentOperation;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrentOperation(IOperation currentOperation)
|
||||||
|
{
|
||||||
|
this.currentOperation = currentOperation;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user