This is an old revision of the document!
Market
Psyclone starts and detains all the informations and parameters about ALL the modules that are going to connect to it. A module starts (either the Market or an Industry) knowing only his “<name>”. The module will get its parameters giving its name to Psyclone. In details the market will get its name (“Double Auction Market”) and its country (for this version just “is”) and will start to listen to the industries.
The main body of the market now is a simple loop that always returns back to listent to the industries, and once a message is received it parse it by getting the type:
- carbon.quota.buy
- carbon.quota.sell
An offer from a seller (according to the message content) will be stored into a dynamic array that will contain a list of < name | units | price > for every industry that posted a message. These industries will receive a message
If the Market receives a “buy” message but has no offers it immediately respond to that buyers that nothing's there for him.
–to be completed
Industry
lkjòlkj