Class Farmer
- java.lang.Object
-
- cz.cvut.fel.sit.omo.foodchain.node.NodeBase
-
- cz.cvut.fel.sit.omo.foodchain.node.Farmer
-
- All Implemented Interfaces:
ChannelObserver
public class Farmer extends NodeBase
Farmer node
-
-
Field Summary
-
Fields inherited from class cz.cvut.fel.sit.omo.foodchain.node.NodeBase
allowedPurchaser, allowedSeller, LOGGER, nodeType, storage
-
-
Constructor Summary
Constructors Constructor Description Farmer(double startMoney, double margin, double acceptableDiscount)
-
Method Summary
Modifier and Type Method Description voidgenerateProduct(Product product)-
Methods inherited from class cz.cvut.fel.sit.omo.foodchain.node.NodeBase
accept, addMoney, createRequirement, doAction, doAction, getAcceptableDiscount, getAllowedPurchaser, getAllowedSeller, getMargin, getMoney, getNodeType, getRefusedRequirements, getRefusedTransactions, getStorage, getSubscribedChannels, subscribeToChannel, subtractMoney, tick, unsubscribeFromChannel, update
-
-
-
-
Method Detail
-
generateProduct
public void generateProduct(Product product)
-
-