es.upm.dit.gsi.beast.mock.jadex.common
Class MockAgentPlan

java.lang.Object
  extended by jadex.bdi.runtime.impl.AbstractPlan
      extended by jadex.bdi.runtime.Plan
          extended by es.upm.dit.gsi.beast.mock.jadex.common.MockAgentPlan
All Implemented Interfaces:
jadex.commons.future.ISuspendable, Serializable
Direct Known Subclasses:
InformCommunicationPlan, RequestCommunicationPlan

public abstract class MockAgentPlan
extends jadex.bdi.runtime.Plan

Project: beast File: es.upm.dit.gsi.beast.mock.jadex.common.MockAgentPlan.java MockAgentPlan is the class all Agents-plan must extend from. Grupo de Sistemas Inteligentes Departamento de Ingeniería de Sistemas Telemáticos Universidad Politécnica de Madrid (UPM)

Version:
0.1
Author:
Jorge Solitario
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jadex.bdi.runtime.Plan
jadex.bdi.runtime.Plan.SyncResultListener
 
Field Summary
 
Fields inherited from class jadex.bdi.runtime.Plan
future, lis
 
Fields inherited from class jadex.bdi.runtime.impl.AbstractPlan
access, interpreter, planinit
 
Constructor Summary
MockAgentPlan()
           
 
Method Summary
protected  jadex.base.fipa.IDFComponentDescription[] getReceivers(String target_service)
          This method will be used to know the IDFComponentDescription of all the agents that own a df_service.
protected  String sendInformToDF(String df_service, Object msgContent)
          Method to send Inform messages to a specific df_service
protected  String sendRequestToDF(String df_service, Object msgContent)
          Method to send Request messages to a specific df_service
 
Methods inherited from class jadex.bdi.runtime.Plan
aborted, body, createWaitAbstraction, dispatchSubgoalAndWait, dispatchSubgoalAndWait, failed, getMonitor, isEventRegisteredInWaitqueue, passed, resume, sendMessageAndWait, sendMessageAndWait, sendMessageAndWait, suspend, waitFor, waitForCondition, waitForCondition, waitForEver, waitForExternalCondition, waitForExternalCondition, waitForFactAdded, waitForFactAdded, waitForFactAddedOrRemoved, waitForFactAddedOrRemoved, waitForFactChanged, waitForFactChanged, waitForFactRemoved, waitForFactRemoved, waitForGoal, waitForGoal, waitForGoal, waitForGoal, waitForInternalEvent, waitForInternalEvent, waitForMessageEvent, waitForMessageEvent, waitForReply, waitForReply, waitForTick, waitForWaitAbstraction, waitForWaitAbstraction
 
Methods inherited from class jadex.bdi.runtime.impl.AbstractPlan
createComponentIdentifier, createComponentIdentifier, createComponentIdentifier, createExpression, createExpression, createGoal, createInternalEvent, createMessageEvent, createResultListener, createResultListener, dispatchInternalEvent, dispatchSubgoal, dispatchTopLevelGoal, endAtomic, fail, fail, fail, getBeliefbase, getBody, getClock, getComponentDescription, getComponentIdentifier, getComponentName, getDispatchedElement, getEventbase, getException, getExpression, getExpressionbase, getExternalAccess, getFlyweight, getGoalbase, getInterpreter, getLifecycleState, getLogger, getParameter, getParameters, getParameterSet, getParameterSets, getPlanbase, getPlanElement, getRCapability, getReason, getRPlan, getScope, getServiceContainer, getState, getTime, getType, getWaitqueue, hasParameter, hasParameterSet, killAgent, sendMessage, sendMessage, startAtomic, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockAgentPlan

public MockAgentPlan()
Method Detail

sendRequestToDF

protected String sendRequestToDF(String df_service,
                                 Object msgContent)
Method to send Request messages to a specific df_service

Parameters:
df_service - The name of the df_service
msgContent - The content of the message to be sent
Returns:
Message sent to + the name of the df_service

sendInformToDF

protected String sendInformToDF(String df_service,
                                Object msgContent)
Method to send Inform messages to a specific df_service

Parameters:
df_service - The name of the df_service
msgContent - The content of the message to be sent
Returns:
Message sent to + the name of the df_service

getReceivers

protected jadex.base.fipa.IDFComponentDescription[] getReceivers(String target_service)
This method will be used to know the IDFComponentDescription of all the agents that own a df_service. Given the IDFComponentDescription, the name of the agent is known using getName()

Parameters:
target_service - The name of the df_service
Returns:
Its agent IDFComponentDescription


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