jason.infra.jade
Class JasonBridgeArch

Package class diagram package JasonBridgeArch
java.lang.Object
  extended by jason.architecture.AgArch
      extended by jason.infra.jade.JasonBridgeArch
All Implemented Interfaces:
AgArchInfraTier

public class JasonBridgeArch
extends AgArch


Constructor Summary
JasonBridgeArch(JadeAgArch jadeAg)
           
 
Method Summary
 void act(ActionExec action, java.util.List<ActionExec> feedback)
          Executes the action action and, when finished, add it back in feedback actions.
 void broadcast(Message m)
          Broadcasts a Jason message
 boolean canSleep()
          Returns true if the agent can enter in sleep mode.
 void checkMail()
          Reads the agent's mailbox and adds messages into the agent's circumstance
 java.lang.String getAgName()
          Gets the agent's name
 JadeAgArch getJadeAg()
           
 RuntimeServicesInfraTier getRuntimeServices()
          Gets an object with infrastructure runtime services
 void init(AgentParameters ap)
           
 java.util.List<Literal> perceive()
          Gets the agent's perception as a list of Literals.
 void sendMsg(Message m)
          Sends a Jason message
 void sleep()
          Puts the agent in sleep.
protected  java.lang.Object translateContentToJason(jade.lang.acl.ACLMessage m)
          returns the content of the message m and implements some pro-processing of the content, if necessary
 void wake()
          Removes the agent from the "sleep" mode
 
Methods inherited from class jason.architecture.AgArch
createCustomArchs, getAgArchClassesChain, getArchInfraTier, getCycleNumber, getFirstAgArch, getNextAgArch, getTS, incCycleNumber, init, initAg, insertAgArch, isRunning, reasoningCycleStarting, setCycleNumber, setTS, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JasonBridgeArch

public JasonBridgeArch(JadeAgArch jadeAg)
Method Detail

init

public void init(AgentParameters ap)
          throws java.lang.Exception
Throws:
java.lang.Exception

sleep

public void sleep()
Description copied from class: AgArch
Puts the agent in sleep.

Specified by:
sleep in interface AgArchInfraTier
Overrides:
sleep in class AgArch

wake

public void wake()
Description copied from interface: AgArchInfraTier
Removes the agent from the "sleep" mode

Specified by:
wake in interface AgArchInfraTier
Overrides:
wake in class AgArch

getAgName

public java.lang.String getAgName()
Description copied from class: AgArch
Gets the agent's name

Specified by:
getAgName in interface AgArchInfraTier
Overrides:
getAgName in class AgArch

canSleep

public boolean canSleep()
Description copied from class: AgArch
Returns true if the agent can enter in sleep mode.

Specified by:
canSleep in interface AgArchInfraTier
Overrides:
canSleep in class AgArch

perceive

public java.util.List<Literal> perceive()
Description copied from class: AgArch
Gets the agent's perception as a list of Literals. The returned list will be modified by Jason.

Specified by:
perceive in interface AgArchInfraTier
Overrides:
perceive in class AgArch

getJadeAg

public JadeAgArch getJadeAg()

sendMsg

public void sendMsg(Message m)
             throws java.lang.Exception
Description copied from class: AgArch
Sends a Jason message

Specified by:
sendMsg in interface AgArchInfraTier
Overrides:
sendMsg in class AgArch
Throws:
java.lang.Exception

broadcast

public void broadcast(Message m)
               throws java.lang.Exception
Description copied from class: AgArch
Broadcasts a Jason message

Specified by:
broadcast in interface AgArchInfraTier
Overrides:
broadcast in class AgArch
Throws:
java.lang.Exception

checkMail

public void checkMail()
Description copied from class: AgArch
Reads the agent's mailbox and adds messages into the agent's circumstance

Specified by:
checkMail in interface AgArchInfraTier
Overrides:
checkMail in class AgArch

translateContentToJason

protected java.lang.Object translateContentToJason(jade.lang.acl.ACLMessage m)
returns the content of the message m and implements some pro-processing of the content, if necessary


act

public void act(ActionExec action,
                java.util.List<ActionExec> feedback)
Description copied from class: AgArch
Executes the action action and, when finished, add it back in feedback actions.

Specified by:
act in interface AgArchInfraTier
Overrides:
act in class AgArch

getRuntimeServices

public RuntimeServicesInfraTier getRuntimeServices()
Description copied from interface: AgArchInfraTier
Gets an object with infrastructure runtime services

Specified by:
getRuntimeServices in interface AgArchInfraTier
Overrides:
getRuntimeServices in class AgArch