es.upm.dit.gsi.beast.platform.jadex
Class JadexAgentIntrospector

java.lang.Object
  extended by es.upm.dit.gsi.beast.platform.jadex.JadexAgentIntrospector
All Implemented Interfaces:
AgentIntrospector

public class JadexAgentIntrospector
extends Object
implements AgentIntrospector

Project: beast File: es.upm.dit.gsi.beast.platform.jadex.JadexAgentIntrospector.java To get information about our jadex agents. Grupo de Sistemas Inteligentes Departamento de Ingeniería de Sistemas Telemáticos Universidad Politécnica de Madrid (UPM)

Version:
0.1
Author:
Jorge Solitario, alvarocarrera

Method Summary
 jadex.bdi.runtime.IGoal[] getAgentGoals(String agent_name, Connector connector)
          This method prints goal information of an agent through its external access.
 jadex.bdi.runtime.IPlan[] getAgentPlans(String agent_name, Connector connector)
          This method prints plan information of an agent through its external access.
 Object getBeliefValue(String agent_name, String belief_name, Connector connector)
          This method takes the value of an agent's belief through its external access
static JadexAgentIntrospector getInstance()
           
 void setBeliefValue(String agent_name, String belief_name, Object new_value, Connector connector)
          This method changes the value of an agent's belief through its external access
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static JadexAgentIntrospector getInstance()

getBeliefValue

public Object getBeliefValue(String agent_name,
                             String belief_name,
                             Connector connector)
This method takes the value of an agent's belief through its external access

Specified by:
getBeliefValue in interface AgentIntrospector
Parameters:
agent_name - The name of the agent
belief_name - The name of the belief inside agent's adf
connector - The connector to get the external access
Returns:
belief_value The value of the requested belief

setBeliefValue

public void setBeliefValue(String agent_name,
                           String belief_name,
                           Object new_value,
                           Connector connector)
This method changes the value of an agent's belief through its external access

Specified by:
setBeliefValue in interface AgentIntrospector
Parameters:
agent_name - The name of the agent to change a belief
belief_name - The name of the belief to change
new_value - The new value of the belief to be changed
connector - The connector to get the external access

getAgentPlans

public jadex.bdi.runtime.IPlan[] getAgentPlans(String agent_name,
                                               Connector connector)
This method prints plan information of an agent through its external access. It can be used to check the correct behaviour of the agent.

Specified by:
getAgentPlans in interface AgentIntrospector
Parameters:
agent_name - The name of the agent
connector - The connector to get the external access
Returns:
plans the IPlan[] with all the information, so the tester can look for information

getAgentGoals

public jadex.bdi.runtime.IGoal[] getAgentGoals(String agent_name,
                                               Connector connector)
This method prints goal information of an agent through its external access. It can be used to check the correct behaviour of the agent.

Specified by:
getAgentGoals in interface AgentIntrospector
Parameters:
agent_name - The name of the agent
connector - The connector to get the external access
Returns:
goals the IGoal[] with all the information, so the tester can look for information


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