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