Package teamwork :: Package widgets :: Package PsychGUI :: Package AgentWindow :: Module AgentWindow :: Class AgentWin
[hide private]
[frames] | no frames]

Class AgentWin

source code

_Pmw.Pmw_1_3.lib.PmwBase.MegaArchetype --+
                                         |
                                        AgentWin

Widget for displaying an agent

The following panes have separate widgets:

Instance Methods [hide private]
 
__init__(self, frame, **kw) source code
 
setExpert(self, entity=None) source code
 
setExpertPane(self, entity, pane, before) source code
 
applyPolicy(self, entity)
Display's the hypothetical result of the entity's policy
source code
 
stepEntity(self)
Performs the policy-selected action of the given entity
source code
 
value(self, entity)
Performs the policy-selected action of the given entity
source code
 
actEntity(self, action) source code
 
create_pane(self, entity, notebook, pane, page=None) source code
 
update(self) source code
 
recreate_mental(self) source code
 
recreate_state(self) source code
 
selectPage(self, page) source code
 
selectBeliefPage(self, page) source code
 
setState(self, state='normal')
Sets the state of all of the agent editing widgets
source code
 
renameEntity(self, old, new) source code

Inherited from _Pmw.Pmw_1_3.lib.PmwBase.MegaArchetype: __getitem__, __setitem__, __str__, addoptions, cget, component, componentaliases, componentgroup, components, configure, createcomponent, createlabel, defineoptions, destroy, destroycomponent, hulldestroyed, initialiseoptions, interior, isinitoption, options

Class Variables [hide private]
  agtHeight = 700
  agtWidth = 750
Method Details [hide private]

__init__(self, frame, **kw)
(Constructor)

source code 
Overrides: _Pmw.Pmw_1_3.lib.PmwBase.MegaArchetype.__init__

setState(self, state='normal')

source code 

Sets the state of all of the agent editing widgets

  • NORMAL: enables all of the widgets
  • DISABLED: disables all of the widgets

renameEntity(self, old, new)

source code 
Parameters:
  • old - the current name of the entity
  • new - the new name of the entity
  • old,new (str)