Package jadex.bdiv3x.runtime
Class CapabilityWrapper
- java.lang.Object
- 
- jadex.bdiv3x.runtime.CapabilityWrapper
 
- 
- All Implemented Interfaces:
- ICapability
 
 public class CapabilityWrapper extends java.lang.Object implements ICapability XML version of the capability. Is a facade to the old API.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected ICapabilitycapaThe capa.protected java.lang.StringscopeThe scope (i.e., sub capability name).
 - 
Constructor SummaryConstructors Constructor Description CapabilityWrapper(IInternalAccess agent, java.lang.String scope)Create a new capability.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IModelInfogetAgentModel()Get the agent model.java.lang.StringgetAgentName()Get the agent name.IBeliefbasegetBeliefbase()Get the belief base.java.lang.ClassLoadergetClassLoader()Get the classloader.IComponentDescriptiongetComponentDescription()Get the component description.IComponentIdentifiergetComponentIdentifier()Get the agent identifier.java.lang.StringgetConfigurationName()Get the configuration name.IEventbasegetEventbase()Get the event base.IExpressionbasegetExpressionbase()Get the expression base.IExternalAccessgetExternalAccess()Get the scope.static IValueFetchergetFetcher(IInternalAccess agent, java.lang.String scope)Get the capability-specific fetcher (scope==null for agent scope).static IValueFetchergetFetcher(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).IGoalbasegetGoalbase()Get the goal base.java.util.logging.LoggergetLogger()Get the logger.IModelInfogetModel()Get the capability model.IPlanbasegetPlanbase()Get the plan base.longgetTime()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.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The agent.
 - 
scopeprotected java.lang.String scope The scope (i.e., sub capability name).
 - 
capaprotected ICapability capa The capa.
 
- 
 - 
Constructor Detail- 
CapabilityWrapperpublic CapabilityWrapper(IInternalAccess agent, java.lang.String scope) Create a new capability.
 
- 
 - 
Method Detail- 
getExternalAccesspublic IExternalAccess getExternalAccess() Get the scope. Method with IExternalAccess return value included for compatibility with IInternalAccess.- Specified by:
- getExternalAccessin interface- ICapability
- Returns:
- The scope.
 
 - 
getBeliefbasepublic IBeliefbase getBeliefbase() Get the belief base.- Specified by:
- getBeliefbasein interface- ICapability
- Returns:
- The belief base.
 
 - 
getGoalbasepublic IGoalbase getGoalbase() Get the goal base.- Specified by:
- getGoalbasein interface- ICapability
- Returns:
- The goal base.
 
 - 
getPlanbasepublic IPlanbase getPlanbase() Get the plan base.- Specified by:
- getPlanbasein interface- ICapability
- Returns:
- The plan base.
 
 - 
getEventbasepublic IEventbase getEventbase() Get the event base.- Specified by:
- getEventbasein interface- ICapability
- Returns:
- The event base.
 
 - 
getExpressionbasepublic IExpressionbase getExpressionbase() Get the expression base.- Specified by:
- getExpressionbasein interface- ICapability
- Returns:
- The expression base.
 
 - 
getLoggerpublic java.util.logging.Logger getLogger() Get the logger.- Specified by:
- getLoggerin interface- ICapability
- Returns:
- The logger.
 
 - 
getAgentModelpublic IModelInfo getAgentModel() Get the agent model.- Specified by:
- getAgentModelin interface- ICapability
- Returns:
- The agent model.
 
 - 
getModelpublic IModelInfo getModel() Get the capability model.- Specified by:
- getModelin interface- ICapability
- Returns:
- The capability model.
 
 - 
getAgentNamepublic java.lang.String getAgentName() Get the agent name.- Specified by:
- getAgentNamein interface- ICapability
- Returns:
- The agent name.
 
 - 
getConfigurationNamepublic java.lang.String getConfigurationName() Get the configuration name.- Specified by:
- getConfigurationNamein interface- ICapability
- Returns:
- The configuration name.
 
 - 
getComponentIdentifierpublic IComponentIdentifier getComponentIdentifier() Get the agent identifier.- Specified by:
- getComponentIdentifierin interface- ICapability
- Returns:
- The agent identifier.
 
 - 
getComponentDescriptionpublic IComponentDescription getComponentDescription() Get the component description.- Specified by:
- getComponentDescriptionin interface- ICapability
- Returns:
- The component description.
 
 - 
getTimepublic long getTime() Get the current time. The time unit depends on the currently running clock implementation. For the default system clock, the time value adheres to the time representation as used bySystem.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.- Specified by:
- getTimein interface- ICapability
- Returns:
- The current time.
 
 - 
getClassLoaderpublic java.lang.ClassLoader getClassLoader() Get the classloader.- Specified by:
- getClassLoaderin interface- ICapability
- Returns:
- The classloader.
 
 - 
killAgentpublic IFuture<java.util.Map<java.lang.String,java.lang.Object>> killAgent() Kill the agent.- Specified by:
- killAgentin interface- ICapability
 
 - 
subscribeToEventspublic ISubscriptionIntermediateFuture<IMonitoringEvent> subscribeToEvents(IFilter<IMonitoringEvent> filter, boolean initial, IMonitoringService.PublishEventLevel elm) Subscribe to monitoring events.- Specified by:
- subscribeToEventsin interface- ICapability
- Parameters:
- filter- An optional filter.
 
 - 
getFetcherpublic static IValueFetcher getFetcher(IInternalAccess agent, java.lang.String scope) Get the capability-specific fetcher (scope==null for agent scope).
 - 
getFetcherpublic 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). Also creates a new fetcher, if values are given.
 
- 
 
-