Capacity.ContextAwareCapacityWrapper<C extends Capacity>| Modifier and Type | Method and Description |
|---|---|
void |
emit(event : Event,
[scope : Scope<Address>])
Emits a given event with the provided scope in the DefaultSpace of the DefaultContext.
|
void |
emitToParent(event : Event)
Emits or forward the given event to the parent agent into the default context of the calling agent.
|
Address |
getDefaultAddress()
Return the Address of the agent in the Default Space of the Default Context.
|
AgentContext |
getDefaultContext()
Returns the Default context fo the agent.
|
UUID |
getDefaultParentID()
Replies the identifier of the default parent.
|
Scope<Address> |
getDefaultParentScope()
Replies the event scope that corresponds to the default parent.
|
EventSpace |
getDefaultSpace()
Returns the Default Space of the Default Context.
|
boolean |
isDefaultContext(context : AgentContext)
Replies if the given context is the default context.
|
boolean |
isDefaultContext(contextID : UUID)
Replies if the given identifier is the identifier of the default context.
|
boolean |
isDefaultSpace(space : Space)
Replies if the given space is the default space of the default context.
|
boolean |
isDefaultSpace(space : SpaceID)
Replies if the given identifier is the identifier of the default space of
the default context.
|
boolean |
isDefaultSpace(space : UUID)
Replies if the given identifier is the identifier of the default space of
the default context.
|
boolean |
isInDefaultSpace(event : Event)
Replies if the given event was emitted in the default space of
the default context.
|
UUID |
spawn(agentType : Class<? extends Agent>,
params : Object*)
Deprecated.
See the
Lifecycle capacity. |
void |
willReceive(receiver : UUID,
event : Event)
Deprecated.
since 0.11, see
DefaultContextInteractions.emit(Event,Scope) |
@Pure
def getDefaultContext() : AgentContext
DefaultContextInteractions@Pure
def getDefaultSpace() : EventSpace
DefaultContextInteractionsdefaultContext.defaultSpace.@Pure
def getDefaultAddress() : Address
DefaultContextInteractionsdefaultContext.defaultSpace.getAddress(this.ID)def emit(event : Event,
[scope : Scope<Address>]) : void
DefaultContextInteractionsdefaultContext.defaultSpace.emit(e,scope)event - the event to emit.scope - the definition of the scope that will be used for selected the receivers of the events. If null, all the agents in the space will receive the event.@Pure
def getDefaultParentID() : UUID
DefaultContextInteractionsThe default parent agent has the same identifier as the default context.
@Pure
def getDefaultParentScope() : Scope<Address>
DefaultContextInteractionsdef emitToParent(event : Event) : void
DefaultContextInteractionsevent - the event to emit.scope - the definition of the scope that will be used for selected the receivers of the events. If null, all the agents in the space will receive the event.@Deprecated
def willReceive(receiver : UUID,
event : Event) : void
DefaultContextInteractions.emit(Event,Scope)DefaultContextInteractionsreceiver - the identifier of the expected receiver.event - the event to emit.@Pure
def isDefaultSpace(space : Space) : boolean
DefaultContextInteractionsspace - the space to test.true if the given space is the default space of
the default context. Otherwise false.@Pure
def isDefaultSpace(space : SpaceID) : boolean
DefaultContextInteractionsspace - the space to test.true if the given identifier is the identifier
of the default space of the default context. Otherwise false.@Pure
def isDefaultSpace(space : UUID) : boolean
DefaultContextInteractionsspace - the space to test.true if the given identifier is the identifier
of the default space of the default context. Otherwise false.@Pure
def isInDefaultSpace(event : Event) : boolean
DefaultContextInteractionsevent - the event to test.true if the given event is emitted in the default
space of the default context. Otherwise false.@Pure
def isDefaultContext(context : AgentContext) : boolean
DefaultContextInteractionscontext - the agent context to test.true if the given context is the default context.
Otherwise false.@Pure
def isDefaultContext(contextID : UUID) : boolean
DefaultContextInteractionscontextID - the identifier of the context.true if the given identifier is the identifier
of the default context. Otherwise false.@Deprecated
def spawn(agentType : Class<? extends Agent>,
params : Object*) : UUID
Lifecycle capacity.DefaultContextInteractionsagentType - the type of the agent to spawn.params - the arguments to pass in the initialization event to the spawned agent.Copyright © 2021 the original authors or authors.