cz.cuni.pogamut.remote
Class RemoteAgentWrapper

java.lang.Object
  extended by cz.cuni.pogamut.remote.RemoteAgentWrapper
All Implemented Interfaces:
RemoteAgent, java.rmi.Remote

public class RemoteAgentWrapper
extends java.lang.Object
implements RemoteAgent


Field Summary
(package private)  Agent agent
           
(package private)  IntrospectableProxy introspectableProxy
           
(package private)  java.util.Collection<AgentIterationEndListener> listeners
           
 
Constructor Summary
RemoteAgentWrapper(Agent agent)
           
 
Method Summary
 void addIterationEndListener(AgentIterationEndListener listener)
           
 CommunicationState getCommunicationState()
           
 IntrospectableProxy getIntrospectableProxy()
           
 Self getSelf()
           
private  void registerListeners()
           
 boolean removeIterationEndListener(AgentIterationEndListener listener)
           
 void sendMessageToGB(java.lang.String command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agent

Agent agent

introspectableProxy

IntrospectableProxy introspectableProxy

listeners

java.util.Collection<AgentIterationEndListener> listeners
Constructor Detail

RemoteAgentWrapper

public RemoteAgentWrapper(Agent agent)
Method Detail

getSelf

public Self getSelf()
             throws java.rmi.RemoteException
Specified by:
getSelf in interface RemoteAgent
Throws:
java.rmi.RemoteException

sendMessageToGB

public void sendMessageToGB(java.lang.String command)
                     throws java.rmi.RemoteException,
                            CantWriteException
Specified by:
sendMessageToGB in interface RemoteAgent
Throws:
java.rmi.RemoteException
CantWriteException

getIntrospectableProxy

public IntrospectableProxy getIntrospectableProxy()
                                           throws java.rmi.RemoteException
Specified by:
getIntrospectableProxy in interface RemoteAgent
Throws:
java.rmi.RemoteException

addIterationEndListener

public void addIterationEndListener(AgentIterationEndListener listener)
                             throws java.rmi.RemoteException
Specified by:
addIterationEndListener in interface RemoteAgent
Throws:
java.rmi.RemoteException

removeIterationEndListener

public boolean removeIterationEndListener(AgentIterationEndListener listener)
                                   throws java.rmi.RemoteException
Specified by:
removeIterationEndListener in interface RemoteAgent
Throws:
java.rmi.RemoteException

registerListeners

private void registerListeners()

getCommunicationState

public CommunicationState getCommunicationState()
                                         throws java.rmi.RemoteException
Specified by:
getCommunicationState in interface RemoteAgent
Throws:
java.rmi.RemoteException