File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
bank_reserves/bank_reserves Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 14
14
15
15
16
16
class Bank :
17
+ """Note that the Bank class is not a Mesa Agent, but just a regular Python
18
+ class. This is because there is only one bank in this model, and it does not
19
+ use any Mesa-specific features like the scheduler or the grid, and doesn't
20
+ have a step method. It is just used to keep track of the bank's reserves and
21
+ the amount it can loan out, for Person agents to interact with."""
22
+
17
23
def __init__ (self , model , reserve_percent = 50 ):
18
24
self .model = model
19
25
# for tracking total value of loans outstanding
Original file line number Diff line number Diff line change 14
14
15
15
16
16
class Bank :
17
+ """Note that the Bank class is not a Mesa Agent, but just a regular Python
18
+ class. This is because there is only one bank in this model, and it does not
19
+ use any Mesa-specific features like the scheduler or the grid, and doesn't
20
+ have a step method. It is just used to keep track of the bank's reserves and
21
+ the amount it can loan out, for Person agents to interact with."""
22
+
17
23
def __init__ (self , model , reserve_percent = 50 ):
18
24
self .model = model
19
25
# for tracking total value of loans outstanding
You can’t perform that action at this time.
0 commit comments