User Tools

Site Tools


public:i-700-abms-08-1:xml_messages

This is an old revision of the document!


There are five kinds of messages needed for the system.

Rule Message
In the beginning of the simulation each of the Industies gets sent the rules.

<rule>
    <industry="Type of Industry"/>
    <Foreign="Yes/no" />
    <carbonQuota="How many units" />

</rule>

Buy Messages
Buyer sends out this message to the market wich then will respond to the buyer saying if it is able to buy or not.

<buy> <units=“How many units(tons) they want to buy” />
    <price="The Max price it is willing to pay" />

</buy>

Sell Messages
Seller sends out this message to the market wich then will respond to the seller saying if it is able to sell or not.
Each bid is processed in the market where the market holds all of the bids information (Stores Second higest and the highest bid)

<sell>
    <units"How many it is willing to sell" />
    <price="The Min price it is willing to sell for" />

</sell>

Market Respond Messages
The market sends two kinds of messages: a respond to buyer and respond to seller.
The respond to buyer tells the buyer if he has bought something or not and how much.
The respond to seller tells the seller if he is allowed to sell or if he has sold any and how much.

<buyer>
    <bought="Yes/No" />
    <units="How many units bought" />
    <price="What price he paid for the units" />

</buyer>

<seller> <sold=“Yes/No” />
    <units="How many units sold" />
    <price="The price it was sold for" />

</seller> </box>

/var/www/cadia.ru.is/wiki/data/attic/public/i-700-abms-08-1/xml_messages.1204042516.txt.gz · Last modified: 2024/04/29 13:32 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki