org.almendra.janet.cas.agents
Interface IAgent

All Superinterfaces:
ICommandAcceptor, INamedObject
All Known Implementing Classes:
AbstractAgent, Agent, SystemAgent

public interface IAgent
extends ICommandAcceptor, INamedObject

Author:
Oliver

Method Summary
 void accept(CommandEnvelope commandEnvelope)
           
 AgentPath getAgentPath()
           
 IAgentProxy getAgentProxy()
           
 IAgentProxy getAllForeignAgents(java.lang.String capabilityName)
           
 IAgentProxy getAllForeignAgents(java.lang.String capabilityName, java.lang.String agentName)
           
 AbstractApplication getApplication()
           
 Capability getCapability()
           
 IAgentProxy getForeignAgent(java.lang.String nodeName, java.lang.String capabilityName)
           
 Logger getLogger()
           
 Node getNode()
           
 IObjectSpace getObjectSpace()
           
 java.lang.String getQualifiedName()
           
 long getQueueSize()
           
 SystemApplication getSystemApplication()
           
 boolean isApplicationAgent()
           
 boolean isIdle()
           
 boolean isSystemAgent()
           
 void stop()
           
 
Methods inherited from interface org.almendra.commons.INamedObject
getName
 

Method Detail

accept

void accept(CommandEnvelope commandEnvelope)
Specified by:
accept in interface ICommandAcceptor

getQualifiedName

java.lang.String getQualifiedName()

stop

void stop()

getObjectSpace

IObjectSpace getObjectSpace()

getApplication

AbstractApplication getApplication()

getCapability

Capability getCapability()

getNode

Node getNode()
             throws InsufficientPrivilegeException
Throws:
InsufficientPrivilegeException

getAgentProxy

IAgentProxy getAgentProxy()

isSystemAgent

boolean isSystemAgent()

isApplicationAgent

boolean isApplicationAgent()

getSystemApplication

SystemApplication getSystemApplication()
                                       throws InsufficientPrivilegeException
Throws:
InsufficientPrivilegeException

getAgentPath

AgentPath getAgentPath()

getAllForeignAgents

IAgentProxy getAllForeignAgents(java.lang.String capabilityName)
                                throws java.lang.IllegalArgumentException,
                                       NoSuchAgentException,
                                       IllegalAgentAccessException
Throws:
java.lang.IllegalArgumentException
NoSuchAgentException
IllegalAgentAccessException

getLogger

Logger getLogger()

getForeignAgent

IAgentProxy getForeignAgent(java.lang.String nodeName,
                            java.lang.String capabilityName)
                            throws java.lang.IllegalArgumentException,
                                   NoSuchAgentException,
                                   IllegalAgentAccessException
Throws:
java.lang.IllegalArgumentException
NoSuchAgentException
IllegalAgentAccessException

getAllForeignAgents

IAgentProxy getAllForeignAgents(java.lang.String capabilityName,
                                java.lang.String agentName)
                                throws java.lang.IllegalArgumentException,
                                       NoSuchAgentException,
                                       IllegalAgentAccessException
Throws:
java.lang.IllegalArgumentException
NoSuchAgentException
IllegalAgentAccessException

isIdle

boolean isIdle()

getQueueSize

long getQueueSize()
Returns: