jason.infra.saci
Class SaciAgArch

Package class diagram package SaciAgArch
java.lang.Object
  extended by saci.Agent
      extended by jason.infra.saci.SaciAgArch
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable, saci.launcher.LaunchableAg, saci.launcher.MovableAg

public class SaciAgArch
extends saci.Agent

This class provides an agent architecture when using SACI Infrastructure to run the MAS.

Execution sequence: initAg, run (perceive, checkMail, act), stopAg.

See Also:
Serialized Form

Field Summary
protected  jason.infra.saci.SaciAgArch.JasonBridgeArch jasonBridgeAgArch
           
 
Fields inherited from class saci.Agent
controlAg, mbox, mboxes, properties, running
 
Constructor Summary
SaciAgArch()
           
 
Method Summary
 RuntimeServicesInfraTier getRuntimeServices()
           
 void informCycleFinished(boolean breakpoint, int cycle)
          Informs the infrastructure tier controller that the agent has finished its reasoning cycle (used in sync mode).
 void initAg(java.lang.String[] args)
          Method used by SACI to initialise the agent: args[0] is the agent architecture class, args[1] is the user Agent class, args[2] is the user BB class, args[3] is the AgentSpeak source file, args[4] "options", args[5] options.
 void run()
           
 void stopAg()
           
 
Methods inherited from class saci.Agent
destroy, enterSoc, enterSoc, enterSoc, enterSociety, getControlAg, getLauncher, getMBox, getMBox, getName, getProperty, getSociety, isRunning, leaveAllSocs, leaveSoc, leaveSoc, move, moveMBoxesToLocalHost, onMoved, onMoving, setControlAg, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jasonBridgeAgArch

protected jason.infra.saci.SaciAgArch.JasonBridgeArch jasonBridgeAgArch
Constructor Detail

SaciAgArch

public SaciAgArch()
Method Detail

initAg

public void initAg(java.lang.String[] args)
            throws JasonException
Method used by SACI to initialise the agent: args[0] is the agent architecture class, args[1] is the user Agent class, args[2] is the user BB class, args[3] is the AgentSpeak source file, args[4] "options", args[5] options.

Specified by:
initAg in interface saci.launcher.LaunchableAg
Overrides:
initAg in class saci.Agent
Throws:
JasonException

stopAg

public void stopAg()
Specified by:
stopAg in interface saci.launcher.LaunchableAg
Overrides:
stopAg in class saci.Agent

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class saci.Agent

informCycleFinished

public void informCycleFinished(boolean breakpoint,
                                int cycle)
Informs the infrastructure tier controller that the agent has finished its reasoning cycle (used in sync mode).

breakpoint is true in case the agent selected one plan with the "breakpoint" annotation.


getRuntimeServices

public RuntimeServicesInfraTier getRuntimeServices()