Class AgentParams

java.lang.Object
  |
  +--AgentParams

public class AgentParams
extends Object

This class implements the basic methods needed to handle the agent parameters. Most of the methods are used only by the APLAgent Manager.

All the programmer has to do to create its own set of parameters is to create a (possibly indirect) derived class of AgentParams, add its own fields to the class, and assign them suitable default values (if needed).

The APLAgent Manager will take care of displaying the list of parameters, and of updating their values when the user makes changes to them through the Agent Parameters Window.


Field Summary
 boolean askPermissionToAct
          True if the user must be allowed to accept or reject the actions that the agent decides to perform.
 boolean debug
          True if the files used when calling the inference engine should be dumped to file together with a description of the command line used.
 String debugFilePrefix
          Contains the prefix to be added to the dumps of the files used when calling the inference engine.
 boolean verboseIteration
          True if the user must be prompted with dialogs to enter observations and to be informed of the actions that the agent has decided to perform.
 
Constructor Summary
AgentParams()
          Invoked only by the APLAgent Manager
 
Method Summary
 void fillFrom(AgentParams source)
          Invoked only by the APLAgent Manager
 String getString(String param)
          Invoked only by the APLAgent Manager
 boolean isBoolean(String param)
          Invoked only by the APLAgent Manager
 Vector list()
          Invoked only by the APLAgent Manager
 void load()
          Invoked only by the APLAgent Manager
 void setString(String param, String val)
          Invoked only by the APLAgent Manager
 void store()
          Invoked only by the APLAgent Manager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public boolean debug
True if the files used when calling the inference engine should be dumped to file together with a description of the command line used.

debugFilePrefix

public String debugFilePrefix
Contains the prefix to be added to the dumps of the files used when calling the inference engine. The string may contain a path.

askPermissionToAct

public boolean askPermissionToAct
True if the user must be allowed to accept or reject the actions that the agent decides to perform.

verboseIteration

public boolean verboseIteration
True if the user must be prompted with dialogs to enter observations and to be informed of the actions that the agent has decided to perform.
Constructor Detail

AgentParams

public AgentParams()
Invoked only by the APLAgent Manager
Method Detail

fillFrom

public void fillFrom(AgentParams source)
Invoked only by the APLAgent Manager

list

public Vector list()
Invoked only by the APLAgent Manager

isBoolean

public boolean isBoolean(String param)
Invoked only by the APLAgent Manager

getString

public String getString(String param)
Invoked only by the APLAgent Manager

setString

public void setString(String param,
                      String val)
Invoked only by the APLAgent Manager

load

public void load()
Invoked only by the APLAgent Manager

store

public void store()
Invoked only by the APLAgent Manager