es.upm.dit.gsi.beast.mock.jade.repositoryMock
Class RepositoryMockAgent

java.lang.Object
  extended by jade.core.Agent
      extended by es.upm.dit.gsi.beast.mock.jade.repositoryMock.RepositoryMockAgent
All Implemented Interfaces:
jade.core.TimerListener, Serializable, Runnable

public class RepositoryMockAgent
extends jade.core.Agent

Project: beast File: es.upm.dit.gsi.beast.mock.jade.repositoryMock.RepositoryMockAgent.java The implementation of a Mock Agent that perform the behavior of an agent repository. This behaviour has to be personalized by the user moking the AgentBehaviour class on the Scenario. Grupo de Sistemas Inteligentes Departamento de Ingeniería de Sistemas Telemáticos Universidad Politécnica de Madrid (UPM)

Version:
0.1
Author:
darofar
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jade.core.Agent
jade.core.Agent.Interrupted
 
Field Summary
protected  jade.util.Logger logger
          Logger
 
Fields inherited from class jade.core.Agent
AP_ACTIVE, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_WAITING, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN, MSG_QUEUE_CLASS
 
Constructor Summary
RepositoryMockAgent()
           
 
Method Summary
 void addMessageToMailbox(jade.lang.acl.ACLMessage new_msg)
           
 List<jade.lang.acl.ACLMessage> getStoredMessages()
           
 void setMailbox(List<jade.lang.acl.ACLMessage> mailbox)
           
 void setup()
          Initializes the Agent.
 
Methods inherited from class jade.core.Agent
addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, createMessageQueue, doActivate, doClone, doDelete, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAMS, getArguments, getBootProperties, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AObject, getProperty, getQueueSize, getState, here, isRestarting, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, removeBehaviour, removeTimer, restartLater, restore, restoreBufferedState, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setO2AManager, setQueueSize, takeDown, waitUntilStarted, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final jade.util.Logger logger
Logger

Constructor Detail

RepositoryMockAgent

public RepositoryMockAgent()
Method Detail

setup

public void setup()
Initializes the Agent.

Overrides:
setup in class jade.core.Agent
See Also:
Agent.setup()

getStoredMessages

public List<jade.lang.acl.ACLMessage> getStoredMessages()
Returns:
the mailbox

addMessageToMailbox

public void addMessageToMailbox(jade.lang.acl.ACLMessage new_msg)
Parameters:
new_msg -

setMailbox

public void setMailbox(List<jade.lang.acl.ACLMessage> mailbox)
Parameters:
mailbox - the mailbox to set


Copyright © 2014 Grupo de Sistemas Inteligentes - Universidad Politécnica de Madrid. All Rights Reserved.