|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.core.csi.usecase.SimpleReceiver
public class SimpleReceiver
$Revision: 1.7 $
Field Summary | |
---|---|
protected kaos.core.service.directory.KAoSAgentDescription |
_agentDescription
This class illustrates an implementation of a SimpleReceiver: an entity capable of receiving messages. |
protected TransportSupport |
_transportSupport
|
Constructor Summary | |
---|---|
SimpleReceiver()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Two agents are equal if their respective hash codes are equal. |
int |
hashCode()
|
void |
initialize(java.lang.String name,
kaos.core.service.directory.KAoSAgentDescription agentDescription,
java.lang.String transportName)
|
boolean |
isListeningForEvent(kaos.core.service.directory.DirectoryEvent event)
Determines if this Listener is listening for the specified event. |
static void |
main(java.lang.String[] args)
|
void |
receiveDirectoryEvent(kaos.core.service.directory.DirectoryEvent event)
Notifies the listener about a directory event. |
void |
receiveMessage(TransportMessage tmsg)
Implements the receiveMessage method mandated by the MessageListener interface. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected kaos.core.service.directory.KAoSAgentDescription _agentDescription
protected TransportSupport _transportSupport
Constructor Detail |
---|
public SimpleReceiver()
Method Detail |
---|
public void initialize(java.lang.String name, kaos.core.service.directory.KAoSAgentDescription agentDescription, java.lang.String transportName) throws java.lang.Exception
java.lang.Exception
public void receiveMessage(TransportMessage tmsg)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public boolean isListeningForEvent(kaos.core.service.directory.DirectoryEvent event)
kaos.core.service.directory.DirectoryEventListener
isListeningForEvent
in interface kaos.core.service.directory.DirectoryEventListener
event
- A directory event to be sent to the appropriate listeners.
public void receiveDirectoryEvent(kaos.core.service.directory.DirectoryEvent event)
kaos.core.service.directory.DirectoryEventListener
receiveDirectoryEvent
in interface kaos.core.service.directory.DirectoryEventListener
event
- A directory event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |