|
|
__init__(self,
ideology_input=None,
tolerance_function=None)
Class variables given outside the class init |
source code
|
|
|
|
get_record(self)
returns agent voting record |
source code
|
|
|
|
|
|
|
get_tolerance(self)
returns agent adjusted tolerance |
source code
|
|
|
|
get_utility(self)
returns agent utility score |
source code
|
|
|
|
|
|
|
get_party(self)
returns agent party (0=liberal, 1=conservative) |
source code
|
|
|
|
|
|
|
set_utility(self,
new_utility)
Assign agent a new utility |
source code
|
|
|
|
add_record(self,
bill_num,
vote)
Add to agent voting record |
source code
|
|
|
|
info(self,
print_to=sys.stdout)
Prints key agent information |
source code
|
|