TPTP 4.1.0 Platform Project
Public API Specification

org.eclipse.hyades.loaders.util
Class AgentsContext

java.lang.Object
  extended byorg.eclipse.hyades.loaders.util.AgentsContext

public class AgentsContext
extends java.lang.Object


Field Summary
protected  java.util.List agentList
           
protected  TRCAgent currentAgent
           
protected  java.lang.String id
           
 
Constructor Summary
AgentsContext(java.lang.String id)
           
 
Method Summary
 boolean deregisterAgent(TRCAgent agent)
           
 TRCAgent getActiveAgent(TRCAgent peerAgent)
           
 java.util.List getAgentList()
           
 java.lang.String getId()
           
 boolean registerAgent(TRCAgent agent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agentList

protected java.util.List agentList

id

protected java.lang.String id

currentAgent

protected TRCAgent currentAgent
Constructor Detail

AgentsContext

public AgentsContext(java.lang.String id)
Method Detail

getActiveAgent

public TRCAgent getActiveAgent(TRCAgent peerAgent)
Parameters:
peerAgent -
Returns:
the monitored or attached agent or the agent from the same monitor with peerAgent or the first agent from the list

getAgentList

public java.util.List getAgentList()
Returns:
the list of registered agents that has the runtimeId==id

deregisterAgent

public boolean deregisterAgent(TRCAgent agent)

registerAgent

public boolean registerAgent(TRCAgent agent)

getId

public java.lang.String getId()
Returns:
the runtimeID of this set of agents

TPTP 4.1.0 Platform Project
Public API Specification