public class CapabilityWrapper extends java.lang.Object implements ICapability
Modifier and Type | Field and Description |
---|---|
protected IInternalAccess |
agent
The agent.
|
protected ICapability |
capa
The capa.
|
protected java.lang.String |
scope
The scope (i.e., sub capability name).
|
Constructor and Description |
---|
CapabilityWrapper(IInternalAccess agent,
java.lang.String scope)
Create a new capability.
|
Modifier and Type | Method and Description |
---|---|
IModelInfo |
getAgentModel()
Get the agent model.
|
java.lang.String |
getAgentName()
Get the agent name.
|
IBeliefbase |
getBeliefbase()
Get the belief base.
|
java.lang.ClassLoader |
getClassLoader()
Get the classloader.
|
IComponentDescription |
getComponentDescription()
Get the component description.
|
IComponentIdentifier |
getComponentIdentifier()
Get the agent identifier.
|
java.lang.String |
getConfigurationName()
Get the configuration name.
|
IEventbase |
getEventbase()
Get the event base.
|
IExpressionbase |
getExpressionbase()
Get the expression base.
|
IExternalAccess |
getExternalAccess()
Get the scope.
|
static IValueFetcher |
getFetcher(IInternalAccess agent,
java.lang.String scope)
Get the capability-specific fetcher (scope==null for agent scope).
|
static IValueFetcher |
getFetcher(IInternalAccess agent,
java.lang.String scope,
java.util.Map<java.lang.String,java.lang.Object> values)
Get the capability-specific fetcher (scope==null for agent scope).
|
IGoalbase |
getGoalbase()
Get the goal base.
|
java.util.logging.Logger |
getLogger()
Get the logger.
|
IModelInfo |
getModel()
Get the capability model.
|
IPlanbase |
getPlanbase()
Get the plan base.
|
long |
getTime()
Get the current time.
|
IFuture<java.util.Map<java.lang.String,java.lang.Object>> |
killAgent()
Kill the agent.
|
ISubscriptionIntermediateFuture<IMonitoringEvent> |
subscribeToEvents(IFilter<IMonitoringEvent> filter,
boolean initial,
IMonitoringService.PublishEventLevel elm)
Subscribe to monitoring events.
|
protected IInternalAccess agent
protected java.lang.String scope
protected ICapability capa
public CapabilityWrapper(IInternalAccess agent, java.lang.String scope)
public IExternalAccess getExternalAccess()
getExternalAccess
in interface ICapability
public IBeliefbase getBeliefbase()
getBeliefbase
in interface ICapability
public IGoalbase getGoalbase()
getGoalbase
in interface ICapability
public IPlanbase getPlanbase()
getPlanbase
in interface ICapability
public IEventbase getEventbase()
getEventbase
in interface ICapability
public IExpressionbase getExpressionbase()
getExpressionbase
in interface ICapability
public java.util.logging.Logger getLogger()
getLogger
in interface ICapability
public IModelInfo getAgentModel()
getAgentModel
in interface ICapability
public IModelInfo getModel()
getModel
in interface ICapability
public java.lang.String getAgentName()
getAgentName
in interface ICapability
public java.lang.String getConfigurationName()
getConfigurationName
in interface ICapability
public IComponentIdentifier getComponentIdentifier()
getComponentIdentifier
in interface ICapability
public IComponentDescription getComponentDescription()
getComponentDescription
in interface ICapability
public long getTime()
System.currentTimeMillis()
, i.e.,
the value of milliseconds passed since 0:00 'o clock, January 1st, 1970, UTC.
For custom simulation clocks, arbitrary representations can be used.getTime
in interface ICapability
public java.lang.ClassLoader getClassLoader()
getClassLoader
in interface ICapability
public IFuture<java.util.Map<java.lang.String,java.lang.Object>> killAgent()
killAgent
in interface ICapability
public ISubscriptionIntermediateFuture<IMonitoringEvent> subscribeToEvents(IFilter<IMonitoringEvent> filter, boolean initial, IMonitoringService.PublishEventLevel elm)
subscribeToEvents
in interface ICapability
filter
- An optional filter.public static IValueFetcher getFetcher(IInternalAccess agent, java.lang.String scope)
public static IValueFetcher getFetcher(IInternalAccess agent, java.lang.String scope, java.util.Map<java.lang.String,java.lang.Object> values)