Class Customer
- java.lang.Object
-
- cz.cvut.fel.sit.omo.foodchain.node.NodeBase
-
- cz.cvut.fel.sit.omo.foodchain.node.Customer
-
- All Implemented Interfaces:
ChannelObserver
public class Customer extends NodeBase
Customer 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 Customer(double startMoney, double margin, double acceptableDiscount)
-
Method Summary
Modifier and Type Method Description voidconsumeProduct()-
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
-
-