public class ContextMemberEventEmitter extends Object implements ExternalContextMemberListener
Constructor and Description |
---|
ContextMemberEventEmitter(logger : Logger)
Constructors.
|
Modifier and Type | Method and Description |
---|---|
void |
memberJoined(joinedContext : AgentContext,
defaultSpace : SpaceID,
joiningAgentID : UUID,
joiningAgentType : 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. |
void |
memberLeft(leftContext : AgentContext,
defaultSpace : SpaceID,
leftMemberID : UUID,
agentType : 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. |
public new
(logger : Logger)
owner
- the owner of this emitter.logger
- the logger to use.public def
memberJoined(joinedContext : AgentContext,
defaultSpace : SpaceID,
joiningAgentID : UUID,
joiningAgentType : String) : void
ExternalContextMemberListener
MemberJoined
event into the newly joined parent Context default space to notify other context's members
that a new agent joined this context.memberJoined
in interface ExternalContextMemberListener
joinedContext
- the newly joined context to notify its membersdefaultSpace
- 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.public def
memberLeft(leftContext : AgentContext,
defaultSpace : SpaceID,
leftMemberID : UUID,
agentType : String) : void
ExternalContextMemberListener
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.memberLeft
in interface ExternalContextMemberListener
leftContext
- the context that will be leftdefaultSpace
- the identifier of the default space inside leftContext
.Copyright © 2021 the original authors or authors.