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:42] – gudny | public:i-700-abms-08-1:class_definition [2024/04/29 13:33] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 14: | Line 14: | ||
Production capacity (Units) | Production capacity (Units) | ||
- | average profit | + | Carbon owned (g ?) |
+ | |||
+ | Carbon used (g ?) | ||
Buy/Sell list | Buy/Sell list | ||
+ | Average profit | ||
== Functionality: | == Functionality: | ||
Line 35: | 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 | ||
+ | | ||
+ | |||
+ | |||
+ | |||
+ | |||
====== Market ====== | ====== Market ====== | ||
- | Variables: | + | == Variables: |
Average price | Average price | ||
- | Average pr. country | + | Name |
- | Average pr. industry | + | Country |
- | List of who can sell to who | ||
- | Functionality: | + | == Functionality: |
- | Sort Asks and bids | + | Match offers |
- | ====== Monitor? ====== | ||
- | ====== Tester? ====== | + | 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. | ||
+ | | ||
- | ====== | + | ====== |
+ | 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. | ||
+ | |||
+ | |||
+ | ====== Global ====== | ||
- | Cost of Carbon | + | Initial values for all the modules |
+ | 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.1204195325.txt.gz · Last modified: 2024/04/29 13:32 (external edit)