| Modifier and Type | Method and Description |
|---|---|
IAgentId |
IAgent.getComponentId()
Returns agent id - contains also a human-readable name that can be changed
|
| Modifier and Type | Class and Description |
|---|---|
class |
AgentId
Default AgentId providing unique id based on
UID and IP of the host. |
| Modifier and Type | Method and Description |
|---|---|
IAgentId |
AbstractAgent.getComponentId() |
| Constructor and Description |
|---|
AbstractAgent(IAgentId agentId,
IComponentBus eventBus,
IAgentLogger logger)
Introspection folder with properties and other subfolders obtained from
this agent.
|
AbstractEmbodiedAgent(IAgentId agentId,
IComponentBus bus,
IAgentLogger logger,
WORLD_VIEW worldView,
ACT act) |
AbstractGhostAgent(IAgentId agentId,
IComponentBus bus,
IAgentLogger logger,
WORLD_VIEW worldView,
ACT act) |
AbstractObservingAgent(IAgentId agentId,
IComponentBus bus,
IAgentLogger logger,
WORLD_VIEW worldView) |
| Modifier and Type | Class and Description |
|---|---|
class |
AgentIdJMXProxy
Makes it possible to control agent running in remote JVM through JMX protocol.
|
| Modifier and Type | Method and Description |
|---|---|
IAgentId |
AgentJMXProxy.getComponentId() |
| Modifier and Type | Field and Description |
|---|---|
protected Map<IAgentId,cz.cuni.amis.utils.Tuple2<IObservingAgent,Integer>> |
PogamutJVMComm.registeredAgents
AbstractAgent.getComponentId() maps to actual 'agent' registered + number of registration for a given agent. |
| Modifier and Type | Method and Description |
|---|---|
IAgentId |
IAgentParameters.getAgentId()
Returns unique agent's id (and human-readable name) that is going to be used by the newly created agent instance.
|
| Modifier and Type | Method and Description |
|---|---|
IAgentId |
AgentParameters.getAgentId() |
| Modifier and Type | Method and Description |
|---|---|
RemoteAgentParameters |
RemoteAgentParameters.setAgentId(IAgentId agentId) |
AgentParameters |
AgentParameters.setAgentId(IAgentId agentId)
Sets agent id into the parameters.
|
| Modifier and Type | Method and Description |
|---|---|
protected IAgentId |
MultipleAgentRunner.newAgentId(String name)
Creates new
AgentId from the 'name' and unique number that is automatically generated
from the MultipleAgentRunner.ID. |
protected IAgentId |
AgentRunner.newAgentId(String name)
Creates new
AgentId from the 'name' and unique number that is automatically generated
from the AgentRunner.ID. |
| Modifier and Type | Method and Description |
|---|---|
void |
ISharedComponent.addComponentBus(IAgentId agentId,
ILifecycleBus bus,
ComponentDependencies dependencies)
Informs the component that it is part of another
ILifecycleBus, i.e., it has become used by new agent with 'agentId'. |
void |
ISharedComponent.removeComponentBus(IAgentId agentId,
ILifecycleBus bus)
Informs the component that it ceased to be the part of the
ILifecycleBus, i.e., it has stopped to be used by agent with 'agentId'. |
| Modifier and Type | Field and Description |
|---|---|
protected IAgentId |
SharedComponentController.ComponentStateListener.agentId |
protected IAgentId |
SharedComponentController.ControlHelper.agentId |
| Modifier and Type | Field and Description |
|---|---|
protected Map<IAgentId,ComponentState> |
SharedComponentController.componentStates
This map holds the currently desired
AbstractComponentControllerBase.component state inside the agent's bus. |
protected Map<IAgentId,SharedComponentController.ControlHelper> |
SharedComponentController.localControlHelpers
Control helpers that are used to signalizes starting/stopping of the controlled
AbstractComponentControllerBase.component inside
bus of respective agents. |
protected Map<IAgentId,SharedComponentController.LocalController> |
SharedComponentController.localControllers
Controllers that are used to store
IComponentController provided by respective ILifecycleBus.addLifecycleManagement(IComponent, IComponentControlHelper, ComponentDependencies)
of agents using the component. |
| Modifier and Type | Method and Description |
|---|---|
IAgentId |
SharedComponentController.ComponentStateListener.getAgentId() |
IAgentId |
SharedComponentController.LocalController.getAgentId() |
| Modifier and Type | Method and Description |
|---|---|
void |
SharedComponentController.addComponentBus(IAgentId agentId,
ILifecycleBus bus,
ComponentDependencies dependencies) |
protected void |
SharedComponentController.agentStoppedUsingTheComponent(IAgentId agentId,
ComponentState oldState) |
protected void |
SharedComponentController.componentStateChanged(IAgentId origin,
ComponentState oldState,
ComponentState newState) |
protected void |
SharedComponentController.componentStateCountChanged(IAgentId origin,
ComponentState oldState,
ComponentState newState) |
boolean |
SharedComponentController.isDependent(IAgentId agentId,
IComponent component) |
boolean |
ISharedComponentController.isDependent(IAgentId agentId,
IComponent component)
Whether the controlled component is dependent on 'component' of the agent identified by 'agentId'.
|
boolean |
SharedComponentController.isDependent(IAgentId agentId,
cz.cuni.amis.utils.token.IToken componentId) |
boolean |
ISharedComponentController.isDependent(IAgentId agentId,
cz.cuni.amis.utils.token.IToken componentId)
Whether the controlled component is dependent on component (identified by 'componentId') of the agent identified
by 'agentId'.
|
boolean |
SharedComponentController.isUsedBy(IAgentId agentId) |
boolean |
ISharedComponentController.isUsedBy(IAgentId agentId)
Tells whether the agent identified by 'agentId' is currently using the controlled component, i.e., this component controller
registers the component to agent's
ILifecycleBus and is watching it for auto start/stop/pause/resume/... |
protected void |
SharedComponentController.kill(IAgentId agentId,
String message,
Throwable cause)
AgentId has broadcast
IFatalErrorEvent, tear down the whole system! |
protected void |
SharedComponentController.localKill(IAgentId agentId) |
void |
SharedComponentControlHelper.localKill(IAgentId agentId) |
void |
ISharedComponentControlHelper.localKill(IAgentId agentId)
Kills the component for the agent identified by 'agentId'.
|
protected void |
SharedComponentController.localPause(IAgentId agentId) |
void |
SharedComponentControlHelper.localPause(IAgentId agentId) |
void |
ISharedComponentControlHelper.localPause(IAgentId agentId)
Pauses the component for agent identified by 'agentId'.
|
protected void |
SharedComponentController.localPrePause(IAgentId agentId) |
void |
SharedComponentControlHelper.localPrePause(IAgentId agentId) |
void |
ISharedComponentControlHelper.localPrePause(IAgentId agentId)
Called before the
IPausingEvent of the component is broadcast into ILifecycleBus of
the agent identified by 'agentId'. |
protected void |
SharedComponentController.localPreResume(IAgentId agentId) |
void |
SharedComponentControlHelper.localPreResume(IAgentId agentId) |
void |
ISharedComponentControlHelper.localPreResume(IAgentId agentId)
Called before the
IResumingEvent of the component is broadcast into ILifecycleBus of
the agent identified by 'agentId'. |
protected void |
SharedComponentController.localPreStart(IAgentId agentId) |
void |
SharedComponentControlHelper.localPreStart(IAgentId agentId) |
void |
ISharedComponentControlHelper.localPreStart(IAgentId agentId)
Called before the
IStartingEvent of the component is broadcast into ILifecycleBus of
the agent identified by 'agentId'. |
protected void |
SharedComponentController.localPreStartPaused(IAgentId agentId) |
void |
SharedComponentControlHelper.localPreStartPaused(IAgentId agentId) |
void |
ISharedComponentControlHelper.localPreStartPaused(IAgentId agentId)
Called before
IStartingPausedEvent of the component is broadcast into ILifecycleBus of
the agent identified by 'agentId'. |
protected void |
SharedComponentController.localPreStop(IAgentId agentId) |
void |
SharedComponentControlHelper.localPreStop(IAgentId agentId) |
void |
ISharedComponentControlHelper.localPreStop(IAgentId agentId)
Called before the
IStoppingEvent of the component is broadcast into ILifecycleBus of
the agent identified by 'agentId'. |
protected void |
SharedComponentController.localReset(IAgentId agentId) |
void |
SharedComponentControlHelper.localReset(IAgentId agentId) |
void |
ISharedComponentControlHelper.localReset(IAgentId agentId)
Called whenever
IResetEvent is caught at the ILifecycleBus of the agent identified by 'agentId'. |
protected void |
SharedComponentController.localResume(IAgentId agentId) |
void |
SharedComponentControlHelper.localResume(IAgentId agentId) |
void |
ISharedComponentControlHelper.localResume(IAgentId agentId)
Resumes the component for the agent identified by 'agentId'.
|
protected void |
SharedComponentController.localStart(IAgentId agentId) |
void |
SharedComponentControlHelper.localStart(IAgentId agentId) |
void |
ISharedComponentControlHelper.localStart(IAgentId agentId)
The component is being started inside the
ILifecycleBus of the agent identified by 'agentId'. |
protected void |
SharedComponentController.localStartPaused(IAgentId agentId) |
void |
SharedComponentControlHelper.localStartPaused(IAgentId agentId) |
void |
ISharedComponentControlHelper.localStartPaused(IAgentId agentId)
Starts the component for the agent identified by 'agentId' but it assumes that the component just prepares whatever data
structures it needs / make connections / handshake whatever it needs with the environment / etc.
|
protected void |
SharedComponentController.localStop(IAgentId agentId) |
void |
SharedComponentControlHelper.localStop(IAgentId agentId) |
void |
ISharedComponentControlHelper.localStop(IAgentId agentId)
Stops the component for the agent identified by 'agentId'.
|
protected void |
SharedComponentController.newAgentIsUsingTheComponent(IAgentId agentId,
ComponentState state) |
void |
SharedComponentController.removeComponentBus(IAgentId agentId,
ILifecycleBus bus) |
protected void |
SharedComponentController.setState(IAgentId agentId,
ComponentState newState)
Changes the state of the component for given agentId, triggers
SharedComponentController#componentStateCountChanged(). |
protected void |
SharedComponentController.setState(IAgentId agentId,
ComponentState oldState,
ComponentState newState)
Changes the state of the component for given agentId, triggers
SharedComponentController#componentStateCountChanged(). |
protected void |
SharedComponentController.stateChanged(IAgentId agentId,
ComponentState changedValue)
Signal that the component in the bus of agent identified by 'agentId' has changed into 'changedValue'.
|
| Constructor and Description |
|---|
SharedComponentController.ComponentStateListener(IAgentId agentId) |
SharedComponentController.ControlHelper(IAgentId agentId) |
SharedComponentController.LocalController(IAgentId agentId,
IComponentController controller) |
| Modifier and Type | Method and Description |
|---|---|
protected AdaptableProvider<IAgentId> |
GuiceAgentModule.getAgentIdProvider()
Returns a provider for the
IAgentId interface. |
| Constructor and Description |
|---|
AbstractWorldServer(IAgentId agentId,
IAgentLogger agentLogger,
IComponentBus bus,
WORLD_VIEW worldView,
ACT act) |
| Modifier and Type | Field and Description |
|---|---|
protected IAgentId |
AbstractAgentLogger.agentId |
| Modifier and Type | Method and Description |
|---|---|
IAgentId |
IAgentLogger.getAgentId()
Returns agent name.
|
IAgentId |
AbstractAgentLogger.getAgentId() |
| Constructor and Description |
|---|
AbstractAgentLogger(IAgentId agentName) |
AgentLogger(IAgentId agentId) |
LogFormatter(IAgentId agentId) |
LogFormatter(IAgentId agentId,
boolean lineEnds) |
LogPublisher.ConsolePublisher(IAgentId name) |
LogPublisher(IAgentId name) |
TestAgents.NetworkLoggingAgent(IAgentId agentId,
IComponentBus eventBus,
IAgentLogger logger) |
| Constructor and Description |
|---|
AgentLoggerJMXProxy(IAgentId agentName,
MBeanServerConnection mbsc,
ObjectName parentName) |
| Constructor and Description |
|---|
AbstractAgent3D(IAgentId agentId,
IComponentBus eventBus,
IAgentLogger logger,
WORLD_VIEW worldView,
ACT act) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ITeamedAgentId
Interface for agentId with a team.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AgentTeamedId |
class |
TeamedAgentId |
| Modifier and Type | Method and Description |
|---|---|
IAgentId |
SharedBatchBeginEvent.getAgentId()
Returns ID of the agent from which comes the batch.
|
| Constructor and Description |
|---|
SharedBatchBeginEvent(long time,
IAgentId agentId) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractSharedWorldView.addComponentBus(IAgentId agentId,
ILifecycleBus bus,
ComponentDependencies dependencies) |
void |
AbstractSharedWorldView.removeComponentBus(IAgentId agentId,
ILifecycleBus bus) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
BatchAwareSharedWorldView.notifyLocalWorldViews(Set<IAgentId> waiting,
long time)
Notifies all waiting local world views, that batch belonging to 'time' has been exported by all local world views.
|
| Modifier and Type | Method and Description |
|---|---|
TeamRemoteAgentParameters<SHARED_WORLDVIEW> |
TeamRemoteAgentParameters.setAgentId(IAgentId agentId) |
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.