ics.TripleApl.Agent Class Reference

Inheritance diagram for ics.TripleApl.Agent:

aplp.AgentTreeItem ics.TripleApl.AMS List of all members.

Public Member Functions

 Agent ()
boolean isRunnable ()
boolean isMidCycle ()
void setMidCycle (boolean isMidCycle)
boolean isRunning ()
boolean isSingleStep ()
void setSingleStep (boolean isSingleStep)
boolean isFinished ()
void setFinished (boolean isFinished)
boolean isInterrupted ()
String getName ()
void setAgentName (String n)
void setAgentType (boolean declarative)
boolean isAgentDeclarative ()
String getFullName ()
AMS getAms ()
void begin ()
void stop ()
void notifyNewMessage ()
int getStatus ()
void setStatus (int s)
String getItemName ()
Vector getProperties ()
void clearProperties ()
void addProperty (String property)
void removeProperty (String property)
String getAgentName ()
String toString ()
CapabilityBase getCapabilitiesBase ()
String getCapabilitiesBaseString ()
BeliefBase getBeliefBase ()
String getBeliefBaseString ()
GoalBase getGoalBase ()
String getGoalBaseString ()
PlanBase getPlanBase ()
String getPlanBaseString ()
PlanningGoalRuleBase getPlanningGoalRuleBase ()
String getPlanningGoalRuleBaseString ()
PlanRevisionRuleBase getPlanRevisionRuleBase ()
String getPlanRevisionRuleBaseString ()
File getFile ()
Vector getInferenceLog ()
void clearInferenceLog ()
void setLogCycle (int c)
void addInferenceLog (String s)
void setX (int xpos)
void setY (int ypos)
int getX ()
int getY ()
void resetInst ()
void removeInst ()
MessageBuffer getMessageBuffer ()
Hashtable getInstances ()
int getLastLine ()
void setLastLine (int lastLine)

Static Public Attributes

static boolean reload = false

Protected Member Functions

void setRunnable (boolean isRunnable)
void setRunning (boolean isRunning)
void setInterrupted (boolean isInterrupted)

Protected Attributes

CapabilityBase capBase
BeliefBase beliefBase
GoalBase goalBase
PlanBase planBase
PlanningGoalRuleBase pgRuleBase
PlanRevisionRuleBase prRuleBase
Hashtable javagoals = new Hashtable()
Hashtable instances = new Hashtable()
String name

Package Functions

Hashtable getPlugins ()
void updateStatus (final int i)
void clearChangedA ()
void setChangedA ()

Package Attributes

Vector properties = new Vector()
boolean hasFinished = false
AMS ams = null
int lastLine = 0
int x = 0
int y = 0
Vector inferenceLog = new Vector()
File file
int status = READY
SwingWorker worker
int inferenceCycle = 0
int idleCycles = 0

Static Package Attributes

static final int READY = 0
static final int ERROR = 1
static final int FINISHED = 2
static final int STOPPED = 3
static final int RUNNING = 4

Private Member Functions

void stopped ()

Private Attributes

boolean isDeclarative = false
MessageBuffer mb = new MessageBuffer()
DeliberationCycle deliberationCycle
int runCount = 0
boolean isRunnable
boolean isRunning
boolean isSingleStep
boolean isMidCycle
boolean isFinished
boolean isInterrupted

Constructor & Destructor Documentation

ics.TripleApl.Agent.Agent  ) 
 


Member Function Documentation

void ics.TripleApl.Agent.addInferenceLog String  s  ) 
 

void ics.TripleApl.Agent.addProperty String  property  ) 
 

void ics.TripleApl.Agent.begin  ) 
 

Causes this agent to start deliberating

Exceptions:
IllegalStateException if this agent is already deliberating or if it is not runnable

void ics.TripleApl.Agent.clearChangedA  )  [package]
 

void ics.TripleApl.Agent.clearInferenceLog  ) 
 

void ics.TripleApl.Agent.clearProperties  ) 
 

String ics.TripleApl.Agent.getAgentName  ) 
 

Reimplemented in ics.TripleApl.AMS.

AMS ics.TripleApl.Agent.getAms  ) 
 

BeliefBase ics.TripleApl.Agent.getBeliefBase  ) 
 

String ics.TripleApl.Agent.getBeliefBaseString  ) 
 

Reimplemented in ics.TripleApl.AMS.

CapabilityBase ics.TripleApl.Agent.getCapabilitiesBase  ) 
 

String ics.TripleApl.Agent.getCapabilitiesBaseString  ) 
 

Reimplemented in ics.TripleApl.AMS.

File ics.TripleApl.Agent.getFile  ) 
 

String ics.TripleApl.Agent.getFullName  ) 
 

Implements aplp.AgentTreeItem.

Reimplemented in ics.TripleApl.AMS.

GoalBase ics.TripleApl.Agent.getGoalBase  ) 
 

String ics.TripleApl.Agent.getGoalBaseString  ) 
 

Reimplemented in ics.TripleApl.AMS.

Vector ics.TripleApl.Agent.getInferenceLog  ) 
 

Hashtable ics.TripleApl.Agent.getInstances  ) 
 

String ics.TripleApl.Agent.getItemName  ) 
 

Implements aplp.AgentTreeItem.

Reimplemented in ics.TripleApl.AMS.

int ics.TripleApl.Agent.getLastLine  ) 
 

MessageBuffer ics.TripleApl.Agent.getMessageBuffer  ) 
 

String ics.TripleApl.Agent.getName  ) 
 

Reimplemented in ics.TripleApl.AMS.

PlanBase ics.TripleApl.Agent.getPlanBase  ) 
 

String ics.TripleApl.Agent.getPlanBaseString  ) 
 

Reimplemented in ics.TripleApl.AMS.

PlanningGoalRuleBase ics.TripleApl.Agent.getPlanningGoalRuleBase  ) 
 

String ics.TripleApl.Agent.getPlanningGoalRuleBaseString  ) 
 

Reimplemented in ics.TripleApl.AMS.

PlanRevisionRuleBase ics.TripleApl.Agent.getPlanRevisionRuleBase  ) 
 

String ics.TripleApl.Agent.getPlanRevisionRuleBaseString  ) 
 

Reimplemented in ics.TripleApl.AMS.

Hashtable ics.TripleApl.Agent.getPlugins  )  [package]
 

Reimplemented in ics.TripleApl.AMS.

Vector ics.TripleApl.Agent.getProperties  ) 
 

int ics.TripleApl.Agent.getStatus  ) 
 

Implements aplp.AgentTreeItem.

Reimplemented in ics.TripleApl.AMS.

int ics.TripleApl.Agent.getX  ) 
 

int ics.TripleApl.Agent.getY  ) 
 

boolean ics.TripleApl.Agent.isAgentDeclarative  ) 
 

Deprecated:
from now on all agents are declarative

boolean ics.TripleApl.Agent.isFinished  ) 
 

Returns:
Returns whether this agent has achieved all of it's goals.

boolean ics.TripleApl.Agent.isInterrupted  ) 
 

Returns:
Returns whether the agent has been told to stop deliberating.

boolean ics.TripleApl.Agent.isMidCycle  ) 
 

Returns:
Returns whether the agent should skip it's goal deliberation to start with searching for applicable plan revision rules and selectable plans.

boolean ics.TripleApl.Agent.isRunnable  ) 
 

Returns:
Returns whether the agent can run.

boolean ics.TripleApl.Agent.isRunning  ) 
 

Returns:
Returns whether the agent is currently running (deliberating).

boolean ics.TripleApl.Agent.isSingleStep  ) 
 

Returns:
Returns whether the agent performs single deliberation steps.

void ics.TripleApl.Agent.notifyNewMessage  ) 
 

Notifies this agent that a new message has arrived. This will cause the agent to wake up and continue deliberating if it was sleeping.

void ics.TripleApl.Agent.removeInst  ) 
 

void ics.TripleApl.Agent.removeProperty String  property  ) 
 

void ics.TripleApl.Agent.resetInst  ) 
 

void ics.TripleApl.Agent.setAgentName String  n  ) 
 

void ics.TripleApl.Agent.setAgentType boolean  declarative  ) 
 

set agent type.

Parameters:
declarative If true, this agent is of type declarative
Deprecated:
from now on all agents are declarative

void ics.TripleApl.Agent.setChangedA  )  [package]
 

void ics.TripleApl.Agent.setFinished boolean  isFinished  ) 
 

Parameters:
isFinished Set whether this agent has achieved all of it's goals.

void ics.TripleApl.Agent.setInterrupted boolean  isInterrupted  )  [protected]
 

Parameters:
isInterrupted Set whether the agent should stop deliberating.

void ics.TripleApl.Agent.setLastLine int  lastLine  ) 
 

void ics.TripleApl.Agent.setLogCycle int  c  ) 
 

void ics.TripleApl.Agent.setMidCycle boolean  isMidCycle  ) 
 

Parameters:
isMidCycle Set whether the agent should skip it's goal deliberation to start with searching for applicable plan revision rules and selectable plans.

void ics.TripleApl.Agent.setRunnable boolean  isRunnable  )  [protected]
 

Parameters:
isRunnable Set whether the agent can run.

void ics.TripleApl.Agent.setRunning boolean  isRunning  )  [protected]
 

Parameters:
isRunning Set whether the agent is currently running (deliberating).

void ics.TripleApl.Agent.setSingleStep boolean  isSingleStep  ) 
 

Parameters:
isSingleStep Set whether the agent performs single deliberation steps.

void ics.TripleApl.Agent.setStatus int  s  ) 
 

void ics.TripleApl.Agent.setX int  xpos  ) 
 

void ics.TripleApl.Agent.setY int  ypos  ) 
 

void ics.TripleApl.Agent.stop  ) 
 

Causes this agent to stop deliberating. If this agent was not running, no action is performed and no exception is thrown. If stopping this agent's DeliberationCycle fails, an attempt is made to interrupt it after 3 seconds, but no guarantee is made that this will succeed.

void ics.TripleApl.Agent.stopped  )  [private]
 

Call this to set all variables to a stopped status

String ics.TripleApl.Agent.toString  ) 
 

void ics.TripleApl.Agent.updateStatus final int  i  )  [package]
 

Deprecated:
unused


Member Data Documentation

AMS ics.TripleApl.Agent.ams = null [package]
 

BeliefBase ics.TripleApl.Agent.beliefBase [protected]
 

CapabilityBase ics.TripleApl.Agent.capBase [protected]
 

DeliberationCycle ics.TripleApl.Agent.deliberationCycle [private]
 

final int ics.TripleApl.Agent.ERROR = 1 [static, package]
 

File ics.TripleApl.Agent.file [package]
 

final int ics.TripleApl.Agent.FINISHED = 2 [static, package]
 

GoalBase ics.TripleApl.Agent.goalBase [protected]
 

boolean ics.TripleApl.Agent.hasFinished = false [package]
 

int ics.TripleApl.Agent.idleCycles = 0 [package]
 

int ics.TripleApl.Agent.inferenceCycle = 0 [package]
 

Vector ics.TripleApl.Agent.inferenceLog = new Vector() [package]
 

Hashtable ics.TripleApl.Agent.instances = new Hashtable() [protected]
 

boolean ics.TripleApl.Agent.isDeclarative = false [private]
 

Deprecated:

boolean ics.TripleApl.Agent.isFinished [private]
 

boolean ics.TripleApl.Agent.isInterrupted [private]
 

boolean ics.TripleApl.Agent.isMidCycle [private]
 

boolean ics.TripleApl.Agent.isRunnable [private]
 

boolean ics.TripleApl.Agent.isRunning [private]
 

boolean ics.TripleApl.Agent.isSingleStep [private]
 

Hashtable ics.TripleApl.Agent.javagoals = new Hashtable() [protected]
 

int ics.TripleApl.Agent.lastLine = 0 [package]
 

MessageBuffer ics.TripleApl.Agent.mb = new MessageBuffer() [private]
 

String ics.TripleApl.Agent.name [protected]
 

Reimplemented in ics.TripleApl.AMS.

PlanningGoalRuleBase ics.TripleApl.Agent.pgRuleBase [protected]
 

PlanBase ics.TripleApl.Agent.planBase [protected]
 

Vector ics.TripleApl.Agent.properties = new Vector() [package]
 

PlanRevisionRuleBase ics.TripleApl.Agent.prRuleBase [protected]
 

final int ics.TripleApl.Agent.READY = 0 [static, package]
 

boolean ics.TripleApl.Agent.reload = false [static]
 

int ics.TripleApl.Agent.runCount = 0 [private]
 

final int ics.TripleApl.Agent.RUNNING = 4 [static, package]
 

int ics.TripleApl.Agent.status = READY [package]
 

final int ics.TripleApl.Agent.STOPPED = 3 [static, package]
 

SwingWorker ics.TripleApl.Agent.worker [package]
 

int ics.TripleApl.Agent.x = 0 [package]
 

int ics.TripleApl.Agent.y = 0 [package]
 


The documentation for this class was generated from the following file:
Generated on Mon Dec 12 15:07:19 2005 for 3APL by  doxygen 1.4.5