io.sarl.sre.janus.services.context
Interface ExternalContextMemberListener
All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
ContextMemberEventEmitter
interface ExternalContextMemberListener
implements java.util.EventListener
Listener on events related to the members of an external context.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Action Summary
Modifier and type Action and description
abstract void memberJoined(AgentContext,SpaceID,UUID,String)
Fires an MemberJoined event into the newly joined parent Context default space to notify other context's members that a new agent joined this context.
abstract void memberLeft(AgentContext,SpaceID,UUID,String)
Fires an MemberLeft event into the default space of the Context that will be left to notify other context's members that an agent has left this context.
Action Details
memberJoined(AgentContext,SpaceID,UUID,String)
def memberJoined(AgentContext,SpaceID,UUID,String)
Fires an MemberJoined event into the newly joined parent Context default space to notify other context's members that a new agent joined this context.
Parameters:
joinedContext - the newly joined context to notify its members
defaultSpace - the identifier of the default space inside joinedContext.
joiningAgentID - the identifier of the new member.
joiningAgentType - the name of the agent type that has joined the context.
memberLeft(AgentContext,SpaceID,UUID,String)
def memberLeft(AgentContext,SpaceID,UUID,String)
Fires an MemberLeft event into the default space of the Context that will be left to notify other context's members that an agent has left this context.
Parameters:
leftContext - the context that will be left
defaultSpaceId - the identifier of the default space inside leftContext.
leftMemberID - the identifier of the agent that has left the context.
agentType - the name of the agent type that has left the context.