es.upm.dit.gsi.beast.platform.jade
Class JadeAgentIntrospector

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

public class JadeAgentIntrospector
extends Object
implements AgentIntrospector

Project: beast File: es.upm.dit.gsi.beast.platform.jade.JadeAgentIntrospector.java Grupo de Sistemas Inteligentes Departamento de Ingeniería de Sistemas Telemáticos Universidad Politécnica de Madrid (UPM)

Version:
0.1
Author:
alvarocarrera

Method Summary
 jade.core.Agent getAgent(String agentName)
           
 Object[] getAgentGoals(String agent_name, Connector connector)
          Non-supported in JadeAgentIntrospector
 Object[] getAgentPlans(String agent_name, Connector connector)
          Non-supported in JadeAgentIntrospector
 HashMap<String,Object> getBeliefBase(jade.core.Agent agent)
           
 Object getBeliefValue(String agent_name, String belief_name, Connector connector)
           
 HashMap<String,HashMap<String,Object>> getDataToTest()
           
static JadeAgentIntrospector getInstance()
           
static JadeAgentIntrospector getMyInstance(jade.core.Agent agent)
           
 void setBeliefValue(String agent_name, String belief_name, Object new_value, Connector connector)
           
 void storeBeliefValue(jade.core.Agent agent, String belief_name, Object new_value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static JadeAgentIntrospector getInstance()
Returns:
Return the agent introspector

getMyInstance

public static JadeAgentIntrospector getMyInstance(jade.core.Agent agent)
Parameters:
agent - Register this agent
Returns:
Return the agent introspector

getDataToTest

public HashMap<String,HashMap<String,Object>> getDataToTest()
Returns:
Return the data to test

getBeliefValue

public Object getBeliefValue(String agent_name,
                             String belief_name,
                             Connector connector)
Specified by:
getBeliefValue in interface AgentIntrospector
Parameters:
agent_name - The name of the agent
belief_name - The name of the belief
connector - The connector to the platform
Returns:
The value of the belief

setBeliefValue

public void setBeliefValue(String agent_name,
                           String belief_name,
                           Object new_value,
                           Connector connector)
Specified by:
setBeliefValue in interface AgentIntrospector
Parameters:
agent_name - The name of the agent
belief_name - The name of the belief
new_value - The new value of the belief
connector - The connector to the platform

getBeliefBase

public HashMap<String,Object> getBeliefBase(jade.core.Agent agent)
Parameters:
agent - The agent
Returns:
Return the data to test for the agent

storeBeliefValue

public void storeBeliefValue(jade.core.Agent agent,
                             String belief_name,
                             Object new_value)
Parameters:
agent -
belief_name -
new_value -

getAgent

public jade.core.Agent getAgent(String agentName)
Parameters:
agentName - The local name
Returns:
The agent

getAgentPlans

public Object[] getAgentPlans(String agent_name,
                              Connector connector)
Non-supported in JadeAgentIntrospector

Specified by:
getAgentPlans in interface AgentIntrospector
Parameters:
agent_name - The name of the agent
connector - The connector to the platform
Returns:
The current plans of the agent

getAgentGoals

public Object[] getAgentGoals(String agent_name,
                              Connector connector)
Non-supported in JadeAgentIntrospector

Specified by:
getAgentGoals in interface AgentIntrospector
Parameters:
agent_name - The name of the agent
connector - The connector to the platform
Returns:
The current goals of the agent


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