User Tools

Site Tools


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

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:i-700-abms-08-1:class_definition [2008/02/28 10:41] gudnypublic:i-700-abms-08-1:class_definition [2024/04/29 13:33] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Industry ====== ====== Industry ======
-Variables:+== Variables ==
  
 Capital. Capital.
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: ==
  
 Nr of units sold /Not carbon (Number)  --- calculate? Nr of units sold /Not carbon (Number)  --- calculate?
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
-      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 and bids according to the design. At the end of the day, makes the transaction between buyers and sellers of the matching trades.
  
-====== Monitor? ====== 
  
-====== Tester? ======+Matches, improvements, and checkout: 
 +          o 
 +            Match: If (bid's price > offer's minimum price) assign this bid to that offer. 
 +          o 
 +            Improvement: Scanning the offers for every bid: 
 +                            If (current offer's price < old offer's price) repoint the bid to the new one. 
 +          o 
 +            Checkout: For every maching offer: notify the buyers/sellers with units sold/bought and for wich price. 
 +                                  Then if the offer and the bid are not checked out completely, keep them on the market as new. 
 +          
  
  
-====== Global ======+====== 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.
 +
 +
 +====== Global ======
  
-Cost of Carbon (kr ? $?+Initial values for all the modules (industries or marketare retrieved from psyclone as parameters. 
 +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.1204195297.txt.gz · Last modified: 2024/04/29 13:32 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki