|
__init__(self,
scenario=None,
classes=None,
agentClass=None,
multiagentClass=None,
expert=False,
dev=False,
debug=0)
Constructor |
source code
|
|
|
drawTime(self)
Updates the simulation time in the toolbar display |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
showWindow(self,
name)
Pops up an agent window for the named entity (creates the window if
it has not already been drawn) |
source code
|
|
|
initEntities(self,
progress=None)
A method, to be overridden by subclass, that is invoked whenever
there is a new set of entities |
source code
|
|
|
chooseObjectives(self)
Dialog box for fitting scenario to observed behavior |
source code
|
|
|
|
|
removeAgent(self,
entity)
Removes the given entity from the simulation |
source code
|
|
|
destroyAgentWin(self,
window)
Cleans up after removing the window for a given entity |
source code
|
|
|
|
|
addAgent(self,
entity,
agent=None)
Adds an agent as a child of the given entity |
source code
|
|
|
_addAgent(self,
button,
agent=None)
Callback from name dialog that actually adds the agent |
source code
|
|
|
validateName(self,
name)
Checks whether the new name being entered in the agent dialog is
valid or not |
source code
|
|
|
checkNameValidity(self)
Disables the OK button on the agent name dialog if the current text
entry is invalid |
source code
|
|
|
|
|
_editOrder(self,
button)
Callback from name dialog that actually adds the agent |
source code
|
|
|
|
|
doFitting(self,
actor,
action,
step)
Fits the agents' goal weights based on behavior in fit window |
source code
|
|
|
__doFitting(self,
name,
action,
step)
Fitting helper method (for running in background) |
source code
|
|
|
doActions(self,
actions,
results=None)
Performs the actions, provided in dictionary form |
source code
|
|
|
realStep(self,
entity=None,
choices=None,
iterations=1)
Queries and performs the given entity for its hypothetical choice |
source code
|
|
|
hypoStep(self,
entity=None,
choices=None,
iterations=1)
Queries and displays the given entity for its hypothetical choice |
source code
|
|
|
hypothetical(self,
entity=None,
real=False,
choices=None,
iterations=1,
explain=False,
suggest=False) |
source code
|
|
str[]
|
actionCheck(self)
Verifies that all agents in the current turn sequence have at least
one action available to perform. |
source code
|
|
|
singleHypothetical(self,
entity=None,
real=False,
choices=None,
history=None,
explain=False,
suggest=False) |
source code
|
|
|
|
|
|
|
|
|
|
|
viewSelect(self,
view=None,
alreadyLoaded=False)
Toggles between views of generic society and specific scenario |
source code
|
|
|
toggleBalloon(self)
Toggles visibility of balloon helpIt might not be a good idea to
toggle this off right now |
source code
|
|
|
setExpert(self)
Sets the expert mode for the overall GUI |
source code
|
|
|
createAgentWin(self,
entity,
x=0,
y=0)
Creates an agent window for the given entity at the given point |
source code
|
|
|
addToMenu(self,
name,
menu,
index=' end ' )
Adds a new entry to the given menu for an entity, and any descendents |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
displayActions(self,
fullresult,
step=-1)
Displays any explanation from the performance of actions in the
appropriate AAR windows |
source code
|
|
|
background(self,
target,
event=None,
label=' Running ' ,
kwargs={ } )
Runs the target command in a background thread. |
source code
|
|
|
|
|
finishBackground(self)
Cleans up after a background simulation thread |
source code
|
|
|
expectedValue(self,
entity,
world=None,
description=None,
initial=None,
background=1,
display=1)
Computes and displays the reward expected by the given entity |
source code
|
|
|
__expectedValue(self,
entity,
world,
description,
initial,
display=1)
Background computation of expected value |
source code
|
|
|
step(self,
length=1,
results=None)
Step forward by a single round of actions by the entities |
source code
|
|
|
__step(self)
Execution of a step intended for background running |
source code
|
|
|
compilePolicy(self,
entity)
Displays the rules of entity's policy in the given widget |
source code
|
|
|
__compilePolicy(self,
entity,
options)
Displays the decision-tree of entity's policy using the given command |
source code
|
|
|
|
|
|
|
msgSend(self,
sender,
receiver,
subject,
msg,
force,
overhear,
evaluateOnly=None) |
source code
|
|
|
query(self,
sender,
receiver,
subject,
msg,
force,
overhear) |
source code
|
|
|
evaluateMsg(self,
sender,
receiver,
subject,
msg,
force,
overhear) |
source code
|
|
|
__msgSend(self,
sender,
receiver,
subject,
msg,
force,
overhear,
world,
background=1,
hypothetical=None) |
source code
|
|
|
performMsg(self,
world,
msg,
sender,
receiver,
overhear,
subject,
background=1,
hypothetical=None) |
source code
|
|
|
|
|
|
|
export(self,
filename=None,
results=None)
Writes a Web page representation of the current scenario |
source code
|
|
|
distill(self,
filename=None,
results=None)
Writes a lightweight representation of the current scenario |
source code
|
|
|
|
|
createScenario(self,
args=None)
Pops up a wizard dialog to instantiate scenario |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
load(self,
event=None,
filename=None,
results=[ ] )
Loads a scenario in from a file |
source code
|
|
|
|
|
incUpdate(self,
res=None,
actType=None,
actor=None) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from shell.PsychShell.PsychShell :
__act__ ,
__search__ ,
applyPolicy ,
displayResult ,
execute ,
executeCommand ,
getBelief ,
getCommand ,
getEntities ,
getEntity ,
goals ,
handleMsg ,
help ,
iterateModels ,
loadSociety ,
performAct ,
querySusceptibility ,
resetSociety ,
save ,
search ,
send ,
setDebugLevel ,
setModel ,
setupEntities ,
test ,
undo
|