|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICommunicationHandle
This interface exposes all features of the agents or nodes communication system. There are several different implementations available that map communication on agent level as well as on node level (like an agent communication channel).
IContainer.getHandle(Class)| Method Summary | |
|---|---|
IMessage |
createMessage()
Creates a new and empty message. |
IAddress |
getAddressForString(String addressStr)
|
IUnicastAddress[] |
getLocalAddresses()
Returns the IMulticastAddress addresses that are associated with application |
IMulticastAddress |
getMulticastAddressForName(String groupName)
Returns a multicast address for a group name |
void |
joinGroup(IMulticastAddress address)
Registers the current agent to the given group. |
void |
leaveGroup(IMulticastAddress address)
Unregisters the current agent from the given group. |
void |
sendMessage(IAddress address,
IMessage message)
Sends a message to the specified target (1:1) and (1:n) |
| Method Detail |
|---|
void joinGroup(IMulticastAddress address)
throws IOException
address - the IMulticastAddress identifier for the group to join
IllegalArgumentException - if the group name is not valid
SecurityException - if the current agent has no permissions
IOException
void leaveGroup(IMulticastAddress address)
throws IOException
group - the IMulticastAddress identifier for the group to leave
IllegalArgumentException - if the group name is not valid
IOException
void sendMessage(IAddress address,
IMessage message)
throws IOException
address - the address of the target IAddressmessage - the message to send
SecurityException - if the agent has no permissions
IOExceptionIUnicastAddress[] getLocalAddresses()
IMulticastAddress addresses that are associated with application
IMessage createMessage()
IMulticastAddress getMulticastAddressForName(String groupName)
groupName - the string identifier for a group name
IAddress getAddressForString(String addressStr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||