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 ICapabilitypublic IBeliefbase getBeliefbase()
getBeliefbase in interface ICapabilitypublic IGoalbase getGoalbase()
getGoalbase in interface ICapabilitypublic IPlanbase getPlanbase()
getPlanbase in interface ICapabilitypublic IEventbase getEventbase()
getEventbase in interface ICapabilitypublic IExpressionbase getExpressionbase()
getExpressionbase in interface ICapabilitypublic java.util.logging.Logger getLogger()
getLogger in interface ICapabilitypublic IModelInfo getAgentModel()
getAgentModel in interface ICapabilitypublic IModelInfo getModel()
getModel in interface ICapabilitypublic java.lang.String getAgentName()
getAgentName in interface ICapabilitypublic java.lang.String getConfigurationName()
getConfigurationName in interface ICapabilitypublic IComponentIdentifier getComponentIdentifier()
getComponentIdentifier in interface ICapabilitypublic IComponentDescription getComponentDescription()
getComponentDescription in interface ICapabilitypublic 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 ICapabilitypublic java.lang.ClassLoader getClassLoader()
getClassLoader in interface ICapabilitypublic IFuture<java.util.Map<java.lang.String,java.lang.Object>> killAgent()
killAgent in interface ICapabilitypublic ISubscriptionIntermediateFuture<IMonitoringEvent> subscribeToEvents(IFilter<IMonitoringEvent> filter, boolean initial, IMonitoringService.PublishEventLevel elm)
subscribeToEvents in interface ICapabilityfilter - 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)