public:i-700-abms-08-1:class_definition
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:i-700-abms-08-1:class_definition [2008/02/28 10:55] – vigdis | public:i-700-abms-08-1:class_definition [2024/04/29 13:33] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| Carbon owned (g ?) | Carbon owned (g ?) | ||
| + | |||
| + | Carbon used (g ?) | ||
| Buy/Sell list | Buy/Sell list | ||
| Line 36: | Line 38: | ||
| o | o | ||
| Max Carbon usage = Carbon release per unit * Production capacity | Max Carbon usage = Carbon release per unit * Production capacity | ||
| + | o | ||
| + | Nr of units sold = min(Max Units Produced with owned Carbon , Production capacity) | ||
| + | |||
| - | * | + | Buy/Sell |
| - | | + | |
| o | o | ||
| If (Max Carbon usage > Owned carbon) Buy difference (Units) | If (Max Carbon usage > Owned carbon) Buy difference (Units) | ||
| o | o | ||
| If (Max Carbon usage < Owned carbon) Sell difference (Units) | If (Max Carbon usage < Owned carbon) Sell difference (Units) | ||
| + | o | ||
| + | Max bid price = Capital / units | ||
| + | | ||
| + | |||
| + | |||
| + | |||
| + | |||
| Line 52: | Line 63: | ||
| Average price | Average price | ||
| - | Average pr. country | + | Name |
| - | Average pr. industry | + | Country |
| - | List of who can sell to who | ||
| == Functionality: | == Functionality: | ||
| - | Match Asks and bids | + | Match offers |
| + | |||
| + | |||
| + | Matches, improvements, | ||
| + | o | ||
| + | Match: If (bid's price > offer' | ||
| + | o | ||
| + | Improvement: | ||
| + | If (current offer' | ||
| + | o | ||
| + | Checkout: For every maching offer: notify the buyers/ | ||
| + | Then if the offer and the bid are not checked out completely, keep them on the market as new. | ||
| + | |||
| - | ====== Monitor? ====== | + | ====== Monitor ====== |
| + | Use JFreeGraph - from last year's model (in SVN). | ||
| + | A module declared in the psySpec, meant to be listening to every type of message from every module. | ||
| + | So it will have the time passing, the prices in the bids/offers and from whom, and the traded transactions. | ||
| - | ====== Tester? ====== | ||
| - | Scenarios / Expected Results | ||
| ====== Global ====== | ====== Global ====== | ||
| - | " | + | Initial |
| + | Every module starts only with a name given in the command line, then will be able to ask for parameters to the central system. | ||
/var/www/cadia.ru.is/wiki/data/attic/public/i-700-abms-08-1/class_definition.1204196127.txt.gz · Last modified: 2024/04/29 13:32 (external edit)