public class InnerContextSkill extends BuiltinSkill implements InnerContextAccess
InnerContextSkill
built-in capacity.Skill.UninstallationStage
Modifier and Type | Method and Description |
---|---|
AgentContext |
getInnerContext()
Replies the inner context.
|
int |
getInstallationOrder()
Replies the installation order of the builtin skill.
|
protected InternalEventBusCapacity |
getInternalEventBusCapacitySkill()
Replies the InternalEventBusCapacity skill as fast as possible.
|
int |
getMemberAgentCount()
Replies the number of agents that are members
of the inner context of the calling agent.
|
SynchronizedIterable<UUID> |
getMemberAgents()
Replies all the member agents in the inner context.
|
boolean |
hasInnerContext()
Replies if the inner context was instanciated.
|
boolean |
hasMemberAgent()
Replies if the calling agent has other agents
as members of its inner context.
|
boolean |
isInInnerDefaultSpace(event : Event)
Replies if the given event was emitted in the default space
of the inner context.
|
boolean |
isInnerDefaultSpace(space : Space)
Replies if the given space is the default space of the inner context.
|
boolean |
isInnerDefaultSpace(spaceID : SpaceID)
Replies if the given identifier is the identifier of the
default space of the inner context.
|
boolean |
isInnerDefaultSpace(spaceID : UUID)
Replies if the given identifier is the identifier of the
default space of the inner context.
|
void |
toString(builder : org.eclipse.xtext.xbase.lib.util.ToStringBuilder)
fill the given builder with the string representation of this object.
|
protected void |
uninstall(stage : Skill.UninstallationStage)
This method is called just before uninstalling the skill from its owner agent.
|
installationOrder
clearSkill, getID, getOwner, getSkill, hasSkill, isFromMe, isMe, isMe, operator_mappedTo, setSkill
toString
protected final def
getInternalEventBusCapacitySkill() : InternalEventBusCapacity
InnerContextSkill
public def
getInstallationOrder() : int
BuiltinSkill
getInstallationOrder
in class BuiltinSkill
public def
hasInnerContext() : boolean
InnerContextSkill
InnerContextSkill.getInnerContext()
true
if an instance of inner context exists, otherwise false
.@Pure
public def
toString(builder : org.eclipse.xtext.xbase.lib.util.ToStringBuilder) : void
AgentProtectedAPIObject
toString
in class AgentTrait
builder
- the string builder.protected def
uninstall(stage : Skill.UninstallationStage) : void
Skill
public def
getInnerContext() : AgentContext
InnerContextAccess
getInnerContext
in interface InnerContextAccess
public def
hasMemberAgent() : boolean
InnerContextAccess
hasMemberAgent
in interface InnerContextAccess
true
if the current agent has other agents as member of its internal context; otherwise false
public def
getMemberAgentCount() : int
InnerContextAccess
The replied number includes the current agent. Indeed, the current agent is member of its internal context with the role of super-holon.
getMemberAgentCount
in interface InnerContextAccess
public def
getMemberAgents() : SynchronizedIterable<UUID>
InnerContextAccess
getMemberAgents
in interface InnerContextAccess
public def
isInnerDefaultSpace(space : Space) : boolean
InnerContextAccess
isInnerDefaultSpace
in interface InnerContextAccess
space
- the space to test.true
if the given space is the default space of
the inner context. Otherwise false
.public def
isInnerDefaultSpace(spaceID : SpaceID) : boolean
InnerContextAccess
isInnerDefaultSpace
in interface InnerContextAccess
spaceID
- the identifier to test.true
if the given identifier is the identifier
of the default space of the inner context. Otherwise false
.public def
isInnerDefaultSpace(spaceID : UUID) : boolean
InnerContextAccess
isInnerDefaultSpace
in interface InnerContextAccess
spaceID
- the identifier to test.true
if the given identifier is the identifier
of the default space of the inner context. Otherwise false
.public def
isInInnerDefaultSpace(event : Event) : boolean
InnerContextAccess
isInInnerDefaultSpace
in interface InnerContextAccess
event
- the event to test.true
if the given event was emitted
in the default space of the inner context. Otherwise false
.Copyright © 2018 the original authors or authors.