Package jadex.bridge.component.impl
Class NFPropertyComponentFeature
- java.lang.Object
-
- jadex.bridge.component.impl.AbstractComponentFeature
-
- jadex.bridge.component.impl.NFPropertyComponentFeature
-
- All Implemented Interfaces:
IComponentFeature
,IExternalComponentFeature
,IExternalNFPropertyComponentFeature
,INFPropertyComponentFeature
public class NFPropertyComponentFeature extends AbstractComponentFeature implements INFPropertyComponentFeature
Feature for non functional properties of the component, provided/required services and methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NFPropertyComponentFeature.LateCounterListener<T>
Counter listener that allows to set the max after usage.
-
Field Summary
Fields Modifier and Type Field Description protected INFPropertyProvider
compprovider
The component property provider.static IComponentFeatureFactory
FACTORY
The factory.protected int
maxreq
The max number of preserved req service providers.protected INFPropertyProvider
parent
The parent provider.protected java.util.Map<IServiceIdentifier,INFMixedPropertyProvider>
proserprops
The nf property providers for required services.protected java.util.Map<IServiceIdentifier,INFMixedPropertyProvider>
reqserprops
The nf property providers for required services.-
Fields inherited from class jadex.bridge.component.impl.AbstractComponentFeature
cinfo, component, guesser
-
-
Constructor Summary
Constructors Constructor Description NFPropertyComponentFeature(IInternalAccess component, ComponentCreationInfo cinfo)
Create the feature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jadex.commons.future.IFuture<java.lang.Void>
addMethodNFProperty(IServiceIdentifier sid, jadex.commons.MethodInfo method, INFProperty<?,?> nfprop)
Add a non-functional property.jadex.commons.future.IFuture<java.lang.Void>
addNFMethodProperties(NFProperties nfprops, IService ser, jadex.commons.MethodInfo mi)
Add nf properties from a type.jadex.commons.future.IFuture<java.lang.Void>
addNFProperties(NFProperties nfprops, IService ser)
Add nf properties from a type.jadex.commons.future.IFuture<java.lang.Void>
addNFProperty(INFProperty<?,?> nfprop)
Add a non-functional property.jadex.commons.future.IFuture<java.lang.Void>
addNFProperty(IServiceIdentifier sid, INFProperty<?,?> nfprop)
Add a non-functional property.jadex.commons.future.IFuture<java.lang.Void>
addRequiredMethodNFProperty(IServiceIdentifier sid, jadex.commons.MethodInfo method, INFProperty<?,?> nfprop)
Add a non-functional property.jadex.commons.future.IFuture<java.lang.Void>
addRequiredNFProperty(IServiceIdentifier sid, INFProperty<?,?> nfprop)
Add a non-functional property.jadex.commons.future.IFuture<java.lang.Void>
addTags(Tags tags, IService ser)
Add nf properties from a type.INFPropertyProvider
getComponentPropertyProvider()
Get the component property provider.<T> T
getExternalFacade(java.lang.Object context)
Get external feature facade.jadex.commons.future.IFuture<java.lang.String[]>
getMethodNFAllPropertyNames(IServiceIdentifier sid, jadex.commons.MethodInfo method)
Returns the names of all non-functional properties of this method.jadex.commons.future.IFuture<INFPropertyMetaInfo>
getMethodNFPropertyMetaInfo(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name)
Returns the meta information about a non-functional property of the specified method.jadex.commons.future.IFuture<java.util.Map<jadex.commons.MethodInfo,java.util.Map<java.lang.String,INFPropertyMetaInfo>>>
getMethodNFPropertyMetaInfos(IServiceIdentifier sid)
Returns meta information about a non-functional properties of all methods.jadex.commons.future.IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>>
getMethodNFPropertyMetaInfos(IServiceIdentifier sid, jadex.commons.MethodInfo method)
Returns meta information about a non-functional properties of a method.jadex.commons.future.IFuture<java.lang.String[]>
getMethodNFPropertyNames(IServiceIdentifier sid, jadex.commons.MethodInfo method)
Returns the names of all non-functional properties of the specified method.jadex.commons.future.IFuture<java.lang.String>
getMethodNFPropertyPrettyPrintValue(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name)
Returns the current value of a non-functional property of the specified method, performs unit conversion.<T> jadex.commons.future.IFuture<T>
getMethodNFPropertyValue(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name)
Returns the current value of a non-functional property of the specified method.<T,U>
jadex.commons.future.IFuture<T>getMethodNFPropertyValue(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name, U unit)
Returns the current value of a non-functional property of the specified method, performs unit conversion.jadex.commons.future.IFuture<java.lang.String[]>
getNFAllPropertyNames()
Returns the names of all non-functional properties of this service.jadex.commons.future.IFuture<java.lang.String[]>
getNFAllPropertyNames(IServiceIdentifier sid)
Returns the names of all non-functional properties of this service.jadex.commons.future.IFuture<INFPropertyMetaInfo>
getNFPropertyMetaInfo(IServiceIdentifier sid, java.lang.String name)
Returns the meta information about a non-functional property of this service.jadex.commons.future.IFuture<INFPropertyMetaInfo>
getNFPropertyMetaInfo(java.lang.String name)
Returns the meta information about a non-functional property of this service.jadex.commons.future.IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>>
getNFPropertyMetaInfos()
Returns the meta information about a non-functional property of this service.jadex.commons.future.IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>>
getNFPropertyMetaInfos(IServiceIdentifier sid)
Returns the meta information about a non-functional property of this service.jadex.commons.future.IFuture<java.lang.String[]>
getNFPropertyNames()
Returns the declared names of all non-functional properties of this service.jadex.commons.future.IFuture<java.lang.String[]>
getNFPropertyNames(IServiceIdentifier sid)
Returns the declared names of all non-functional properties of this service.jadex.commons.future.IFuture<java.lang.String>
getNFPropertyPrettyPrintValue(IServiceIdentifier sid, java.lang.String name)
Returns the current value of a non-functional property of this service, performs unit conversion.jadex.commons.future.IFuture<java.lang.String>
getNFPropertyPrettyPrintValue(java.lang.String name)
Returns the current value of a non-functional property of this component.<T> jadex.commons.future.IFuture<T>
getNFPropertyValue(IServiceIdentifier sid, java.lang.String name)
Returns the current value of a non-functional property of this service.<T,U>
jadex.commons.future.IFuture<T>getNFPropertyValue(IServiceIdentifier sid, java.lang.String name, U unit)
Returns the current value of a non-functional property of this service, performs unit conversion.<T> jadex.commons.future.IFuture<T>
getNFPropertyValue(java.lang.String name)
Returns the current value of a non-functional property of this service.<T,U>
jadex.commons.future.IFuture<T>getNFPropertyValue(java.lang.String name, U unit)
Returns the current value of a non-functional property of this service, performs unit conversion.INFMixedPropertyProvider
getProvidedServicePropertyProvider(IServiceIdentifier sid)
Get the provided service property provider for a service.jadex.commons.future.IFuture<java.lang.String[]>
getRequiredMethodNFAllPropertyNames(IServiceIdentifier sid, jadex.commons.MethodInfo method)
Returns the names of all non-functional properties of this method.jadex.commons.future.IFuture<INFPropertyMetaInfo>
getRequiredMethodNFPropertyMetaInfo(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name)
Returns the meta information about a non-functional property of the specified method.jadex.commons.future.IFuture<java.util.Map<jadex.commons.MethodInfo,java.util.Map<java.lang.String,INFPropertyMetaInfo>>>
getRequiredMethodNFPropertyMetaInfos(IServiceIdentifier sid)
Returns meta information about a non-functional properties of all methods.jadex.commons.future.IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>>
getRequiredMethodNFPropertyMetaInfos(IServiceIdentifier sid, jadex.commons.MethodInfo method)
Returns meta information about a non-functional properties of a method.jadex.commons.future.IFuture<java.lang.String[]>
getRequiredMethodNFPropertyNames(IServiceIdentifier sid, jadex.commons.MethodInfo method)
Returns the names of all non-functional properties of the specified method.jadex.commons.future.IFuture<java.lang.String>
getRequiredMethodNFPropertyPrettyPrintValue(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name)
Returns the current value of a non-functional property of the specified method, performs unit conversion.<T> jadex.commons.future.IFuture<T>
getRequiredMethodNFPropertyValue(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name)
Returns the current value of a non-functional property of the specified method.<T,U>
jadex.commons.future.IFuture<T>getRequiredMethodNFPropertyValue(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name, U unit)
Returns the current value of a non-functional property of the specified method, performs unit conversion.jadex.commons.future.IFuture<java.lang.String[]>
getRequiredNFAllPropertyNames(IServiceIdentifier sid)
Returns the names of all non-functional properties of this service.jadex.commons.future.IFuture<INFPropertyMetaInfo>
getRequiredNFPropertyMetaInfo(IServiceIdentifier sid, java.lang.String name)
Returns the meta information about a non-functional property of this service.jadex.commons.future.IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>>
getRequiredNFPropertyMetaInfos(IServiceIdentifier sid)
Returns the meta information about a non-functional property of this service.jadex.commons.future.IFuture<java.lang.String[]>
getRequiredNFPropertyNames(IServiceIdentifier sid)
Returns the declared names of all non-functional properties of this service.jadex.commons.future.IFuture<java.lang.String>
getRequiredNFPropertyPrettyPrintValue(IServiceIdentifier sid, java.lang.String name)
Returns the current value of a non-functional property of this service.<T> jadex.commons.future.IFuture<T>
getRequiredNFPropertyValue(IServiceIdentifier sid, java.lang.String name)
Returns the current value of a non-functional property of this service.<T,U>
jadex.commons.future.IFuture<T>getRequiredNFPropertyValue(IServiceIdentifier sid, java.lang.String name, U unit)
Returns the current value of a non-functional property of this service, performs unit conversion.INFMixedPropertyProvider
getRequiredServicePropertyProvider(IServiceIdentifier sid)
Get the required service property provider for a service.boolean
hasRequiredServicePropertyProvider(IServiceIdentifier sid)
Has the service a property provider.boolean
hasUserBody()
Check if the feature potentially executed user code in body.jadex.commons.future.IFuture<java.lang.Void>
init()
Initialize the feature.jadex.commons.future.IFuture<java.lang.Void>
initNFProperties(IInternalService ser, java.lang.Class<?> impltype)
Init the service and method nf properties.jadex.commons.future.IFuture<java.lang.Void>
removeMethodNFProperty(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name)
Remove a non-functional property.jadex.commons.future.IFuture<java.lang.Void>
removeNFProperty(IServiceIdentifier sid, java.lang.String name)
Remove a non-functional property.jadex.commons.future.IFuture<java.lang.Void>
removeNFProperty(java.lang.String name)
Remove a non-functional property.jadex.commons.future.IFuture<java.lang.Void>
removeRequiredMethodNFProperty(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name)
Remove a non-functional property.jadex.commons.future.IFuture<java.lang.Void>
removeRequiredNFProperty(IServiceIdentifier sid, java.lang.String name)
Remove a non-functional property.jadex.commons.future.IFuture<java.lang.Void>
shutdownNFPropertyProvider()
Shutdown the provider.jadex.commons.future.IFuture<java.lang.Void>
shutdownNFPropertyProvider(IServiceIdentifier sid)
Shutdown the provider.jadex.commons.future.IFuture<java.lang.Void>
shutdownRequiredNFPropertyProvider(IServiceIdentifier sid)
Shutdown the provider.-
Methods inherited from class jadex.bridge.component.impl.AbstractComponentFeature
body, getClockService, getComponent, getExecutionService, getExternalFacadeType, getInternalAccess, getParameterGuesser, getValueFetcher, kill, shutdown
-
-
-
-
Field Detail
-
FACTORY
public static final IComponentFeatureFactory FACTORY
The factory.
-
compprovider
protected INFPropertyProvider compprovider
The component property provider.
-
proserprops
protected java.util.Map<IServiceIdentifier,INFMixedPropertyProvider> proserprops
The nf property providers for required services.
-
reqserprops
protected java.util.Map<IServiceIdentifier,INFMixedPropertyProvider> reqserprops
The nf property providers for required services.
-
maxreq
protected int maxreq
The max number of preserved req service providers.
-
parent
protected INFPropertyProvider parent
The parent provider.
-
-
Constructor Detail
-
NFPropertyComponentFeature
public NFPropertyComponentFeature(IInternalAccess component, ComponentCreationInfo cinfo)
Create the feature.
-
-
Method Detail
-
init
public jadex.commons.future.IFuture<java.lang.Void> init()
Initialize the feature. Empty implementation that can be overridden.- Specified by:
init
in interfaceIComponentFeature
- Overrides:
init
in classAbstractComponentFeature
-
hasUserBody
public boolean hasUserBody()
Check if the feature potentially executed user code in body. Allows blocking operations in user bodies by using separate steps for each feature. Non-user-body-features are directly executed for speed. If unsure just return true. ;-)- Specified by:
hasUserBody
in interfaceIComponentFeature
- Overrides:
hasUserBody
in classAbstractComponentFeature
-
getComponentPropertyProvider
public INFPropertyProvider getComponentPropertyProvider()
Get the component property provider.- Specified by:
getComponentPropertyProvider
in interfaceINFPropertyComponentFeature
-
getRequiredServicePropertyProvider
public INFMixedPropertyProvider getRequiredServicePropertyProvider(IServiceIdentifier sid)
Get the required service property provider for a service.- Specified by:
getRequiredServicePropertyProvider
in interfaceINFPropertyComponentFeature
-
hasRequiredServicePropertyProvider
public boolean hasRequiredServicePropertyProvider(IServiceIdentifier sid)
Has the service a property provider.- Specified by:
hasRequiredServicePropertyProvider
in interfaceINFPropertyComponentFeature
-
getProvidedServicePropertyProvider
public INFMixedPropertyProvider getProvidedServicePropertyProvider(IServiceIdentifier sid)
Get the provided service property provider for a service.- Specified by:
getProvidedServicePropertyProvider
in interfaceINFPropertyComponentFeature
-
initNFProperties
public jadex.commons.future.IFuture<java.lang.Void> initNFProperties(IInternalService ser, java.lang.Class<?> impltype)
Init the service and method nf properties.
-
addNFProperties
public jadex.commons.future.IFuture<java.lang.Void> addNFProperties(NFProperties nfprops, IService ser)
Add nf properties from a type.
-
addTags
public jadex.commons.future.IFuture<java.lang.Void> addTags(Tags tags, IService ser)
Add nf properties from a type.
-
addNFMethodProperties
public jadex.commons.future.IFuture<java.lang.Void> addNFMethodProperties(NFProperties nfprops, IService ser, jadex.commons.MethodInfo mi)
Add nf properties from a type.
-
getExternalFacade
public <T> T getExternalFacade(java.lang.Object context)
Get external feature facade.- Overrides:
getExternalFacade
in classAbstractComponentFeature
-
getNFPropertyNames
public jadex.commons.future.IFuture<java.lang.String[]> getNFPropertyNames()
Returns the declared names of all non-functional properties of this service.- Specified by:
getNFPropertyNames
in interfaceIExternalNFPropertyComponentFeature
- Returns:
- The names of the non-functional properties of this service.
-
getNFAllPropertyNames
public jadex.commons.future.IFuture<java.lang.String[]> getNFAllPropertyNames()
Returns the names of all non-functional properties of this service.- Specified by:
getNFAllPropertyNames
in interfaceIExternalNFPropertyComponentFeature
- Returns:
- The names of the non-functional properties of this service.
-
getNFPropertyMetaInfos
public jadex.commons.future.IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>> getNFPropertyMetaInfos()
Returns the meta information about a non-functional property of this service.- Specified by:
getNFPropertyMetaInfos
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
name
- Name of the property.- Returns:
- The meta information about a non-functional property of this service.
-
getNFPropertyMetaInfo
public jadex.commons.future.IFuture<INFPropertyMetaInfo> getNFPropertyMetaInfo(java.lang.String name)
Returns the meta information about a non-functional property of this service.- Specified by:
getNFPropertyMetaInfo
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
name
- Name of the property.- Returns:
- The meta information about a non-functional property of this service.
-
getNFPropertyValue
public <T> jadex.commons.future.IFuture<T> getNFPropertyValue(java.lang.String name)
Returns the current value of a non-functional property of this service.- Specified by:
getNFPropertyValue
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
name
- Name of the property.type
- Type of the property value.- Returns:
- The current value of a non-functional property of this service.
-
getNFPropertyValue
public <T,U> jadex.commons.future.IFuture<T> getNFPropertyValue(java.lang.String name, U unit)
Returns the current value of a non-functional property of this service, performs unit conversion.- Specified by:
getNFPropertyValue
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
name
- Name of the property.type
- Type of the property value.unit
- Unit of the property value.- Returns:
- The current value of a non-functional property of this service.
-
getNFPropertyPrettyPrintValue
public jadex.commons.future.IFuture<java.lang.String> getNFPropertyPrettyPrintValue(java.lang.String name)
Returns the current value of a non-functional property of this component.- Specified by:
getNFPropertyPrettyPrintValue
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
name
- Name of the property.type
- Type of the property value.- Returns:
- The current value of a non-functional property of this component as string.
-
addNFProperty
public jadex.commons.future.IFuture<java.lang.Void> addNFProperty(INFProperty<?,?> nfprop)
Add a non-functional property.- Specified by:
addNFProperty
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
nfprop
- The property.
-
removeNFProperty
public jadex.commons.future.IFuture<java.lang.Void> removeNFProperty(java.lang.String name)
Remove a non-functional property.- Specified by:
removeNFProperty
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
The
- name.
-
shutdownNFPropertyProvider
public jadex.commons.future.IFuture<java.lang.Void> shutdownNFPropertyProvider()
Shutdown the provider.- Specified by:
shutdownNFPropertyProvider
in interfaceIExternalNFPropertyComponentFeature
-
getNFPropertyNames
public jadex.commons.future.IFuture<java.lang.String[]> getNFPropertyNames(IServiceIdentifier sid)
Returns the declared names of all non-functional properties of this service.- Specified by:
getNFPropertyNames
in interfaceIExternalNFPropertyComponentFeature
- Returns:
- The names of the non-functional properties of this service.
-
getNFAllPropertyNames
public jadex.commons.future.IFuture<java.lang.String[]> getNFAllPropertyNames(IServiceIdentifier sid)
Returns the names of all non-functional properties of this service.- Specified by:
getNFAllPropertyNames
in interfaceIExternalNFPropertyComponentFeature
- Returns:
- The names of the non-functional properties of this service.
-
getNFPropertyMetaInfos
public jadex.commons.future.IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>> getNFPropertyMetaInfos(IServiceIdentifier sid)
Returns the meta information about a non-functional property of this service.- Specified by:
getNFPropertyMetaInfos
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
name
- Name of the property.- Returns:
- The meta information about a non-functional property of this service.
-
getNFPropertyMetaInfo
public jadex.commons.future.IFuture<INFPropertyMetaInfo> getNFPropertyMetaInfo(IServiceIdentifier sid, java.lang.String name)
Returns the meta information about a non-functional property of this service.- Specified by:
getNFPropertyMetaInfo
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
name
- Name of the property.- Returns:
- The meta information about a non-functional property of this service.
-
getNFPropertyValue
public <T> jadex.commons.future.IFuture<T> getNFPropertyValue(IServiceIdentifier sid, java.lang.String name)
Returns the current value of a non-functional property of this service.- Specified by:
getNFPropertyValue
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
name
- Name of the property.type
- Type of the property value.- Returns:
- The current value of a non-functional property of this service.
-
getNFPropertyValue
public <T,U> jadex.commons.future.IFuture<T> getNFPropertyValue(IServiceIdentifier sid, java.lang.String name, U unit)
Returns the current value of a non-functional property of this service, performs unit conversion.- Specified by:
getNFPropertyValue
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
name
- Name of the property.type
- Type of the property value.unit
- Unit of the property value.- Returns:
- The current value of a non-functional property of this service.
-
getNFPropertyPrettyPrintValue
public jadex.commons.future.IFuture<java.lang.String> getNFPropertyPrettyPrintValue(IServiceIdentifier sid, java.lang.String name)
Returns the current value of a non-functional property of this service, performs unit conversion.- Specified by:
getNFPropertyPrettyPrintValue
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
name
- Name of the property.type
- Type of the property value.unit
- Unit of the property value.- Returns:
- The current value of a non-functional property of this service as string.
-
addNFProperty
public jadex.commons.future.IFuture<java.lang.Void> addNFProperty(IServiceIdentifier sid, INFProperty<?,?> nfprop)
Add a non-functional property.- Specified by:
addNFProperty
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
nfprop
- The property.
-
removeNFProperty
public jadex.commons.future.IFuture<java.lang.Void> removeNFProperty(IServiceIdentifier sid, java.lang.String name)
Remove a non-functional property.- Specified by:
removeNFProperty
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
The
- name.
-
shutdownNFPropertyProvider
public jadex.commons.future.IFuture<java.lang.Void> shutdownNFPropertyProvider(IServiceIdentifier sid)
Shutdown the provider.- Specified by:
shutdownNFPropertyProvider
in interfaceIExternalNFPropertyComponentFeature
-
getMethodNFPropertyMetaInfos
public jadex.commons.future.IFuture<java.util.Map<jadex.commons.MethodInfo,java.util.Map<java.lang.String,INFPropertyMetaInfo>>> getMethodNFPropertyMetaInfos(IServiceIdentifier sid)
Returns meta information about a non-functional properties of all methods.- Specified by:
getMethodNFPropertyMetaInfos
in interfaceIExternalNFPropertyComponentFeature
- Returns:
- The meta information about a non-functional properties.
-
getMethodNFPropertyNames
public jadex.commons.future.IFuture<java.lang.String[]> getMethodNFPropertyNames(IServiceIdentifier sid, jadex.commons.MethodInfo method)
Returns the names of all non-functional properties of the specified method.- Specified by:
getMethodNFPropertyNames
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
method
- The method targeted by this operation.- Returns:
- The names of the non-functional properties of the specified method.
-
getMethodNFAllPropertyNames
public jadex.commons.future.IFuture<java.lang.String[]> getMethodNFAllPropertyNames(IServiceIdentifier sid, jadex.commons.MethodInfo method)
Returns the names of all non-functional properties of this method. This includes the properties of all parent components.- Specified by:
getMethodNFAllPropertyNames
in interfaceIExternalNFPropertyComponentFeature
- Returns:
- The names of the non-functional properties of this method.
-
getMethodNFPropertyMetaInfos
public jadex.commons.future.IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>> getMethodNFPropertyMetaInfos(IServiceIdentifier sid, jadex.commons.MethodInfo method)
Returns meta information about a non-functional properties of a method.- Specified by:
getMethodNFPropertyMetaInfos
in interfaceIExternalNFPropertyComponentFeature
- Returns:
- The meta information about a non-functional properties.
-
getMethodNFPropertyMetaInfo
public jadex.commons.future.IFuture<INFPropertyMetaInfo> getMethodNFPropertyMetaInfo(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name)
Returns the meta information about a non-functional property of the specified method.- Specified by:
getMethodNFPropertyMetaInfo
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
method
- The public IFuturegetMethodNFPropertyPrettyPrintValue(IServiceIdentifier sid, MethodInfo method, String name) { } method targeted by this operation. name
- Name of the property.- Returns:
- The meta information about a non-functional property of the specified method.
-
getMethodNFPropertyValue
public <T> jadex.commons.future.IFuture<T> getMethodNFPropertyValue(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name)
Returns the current value of a non-functional property of the specified method.- Specified by:
getMethodNFPropertyValue
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
method
- The method targeted by this operation.name
- Name of the property.type
- Type of the property value.- Returns:
- The current value of a non-functional property of the specified method.
-
getMethodNFPropertyValue
public <T,U> jadex.commons.future.IFuture<T> getMethodNFPropertyValue(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name, U unit)
Returns the current value of a non-functional property of the specified method, performs unit conversion.- Specified by:
getMethodNFPropertyValue
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
method
- The method targeted by this operation.name
- Name of the property.type
- Type of the property value.unit
- Unit of the property value.- Returns:
- The current value of a non-functional property of the specified method.
-
getMethodNFPropertyPrettyPrintValue
public jadex.commons.future.IFuture<java.lang.String> getMethodNFPropertyPrettyPrintValue(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name)
Description copied from interface:IExternalNFPropertyComponentFeature
Returns the current value of a non-functional property of the specified method, performs unit conversion.- Specified by:
getMethodNFPropertyPrettyPrintValue
in interfaceIExternalNFPropertyComponentFeature
method
- The method targeted by this operation.name
- Name of the property.- Returns:
- The current value of a non-functional property of the specified method.
-
addMethodNFProperty
public jadex.commons.future.IFuture<java.lang.Void> addMethodNFProperty(IServiceIdentifier sid, jadex.commons.MethodInfo method, INFProperty<?,?> nfprop)
Add a non-functional property.- Specified by:
addMethodNFProperty
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
method
- The method targeted by this operation.nfprop
- The property.
-
removeMethodNFProperty
public jadex.commons.future.IFuture<java.lang.Void> removeMethodNFProperty(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name)
Remove a non-functional property.- Specified by:
removeMethodNFProperty
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
method
- The method targeted by this operation.The
- name.
-
getRequiredNFPropertyNames
public jadex.commons.future.IFuture<java.lang.String[]> getRequiredNFPropertyNames(IServiceIdentifier sid)
Returns the declared names of all non-functional properties of this service.- Specified by:
getRequiredNFPropertyNames
in interfaceIExternalNFPropertyComponentFeature
- Returns:
- The names of the non-functional properties of this service.
-
getRequiredNFAllPropertyNames
public jadex.commons.future.IFuture<java.lang.String[]> getRequiredNFAllPropertyNames(IServiceIdentifier sid)
Returns the names of all non-functional properties of this service.- Specified by:
getRequiredNFAllPropertyNames
in interfaceIExternalNFPropertyComponentFeature
- Returns:
- The names of the non-functional properties of this service.
-
getRequiredNFPropertyMetaInfos
public jadex.commons.future.IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>> getRequiredNFPropertyMetaInfos(IServiceIdentifier sid)
Returns the meta information about a non-functional property of this service.- Specified by:
getRequiredNFPropertyMetaInfos
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
name
- Name of the property.- Returns:
- The meta information about a non-functional property of this service.
-
getRequiredNFPropertyMetaInfo
public jadex.commons.future.IFuture<INFPropertyMetaInfo> getRequiredNFPropertyMetaInfo(IServiceIdentifier sid, java.lang.String name)
Returns the meta information about a non-functional property of this service.- Specified by:
getRequiredNFPropertyMetaInfo
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
name
- Name of the property.- Returns:
- The meta information about a non-functional property of this service.
-
getRequiredNFPropertyValue
public <T> jadex.commons.future.IFuture<T> getRequiredNFPropertyValue(IServiceIdentifier sid, java.lang.String name)
Returns the current value of a non-functional property of this service.- Specified by:
getRequiredNFPropertyValue
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
name
- Name of the property.type
- Type of the property value.- Returns:
- The current value of a non-functional property of this service.
-
getRequiredNFPropertyValue
public <T,U> jadex.commons.future.IFuture<T> getRequiredNFPropertyValue(IServiceIdentifier sid, java.lang.String name, U unit)
Returns the current value of a non-functional property of this service, performs unit conversion.- Specified by:
getRequiredNFPropertyValue
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
name
- Name of the property.type
- Type of the property value.unit
- Unit of the property value.- Returns:
- The current value of a non-functional property of this service.
-
getRequiredNFPropertyPrettyPrintValue
public jadex.commons.future.IFuture<java.lang.String> getRequiredNFPropertyPrettyPrintValue(IServiceIdentifier sid, java.lang.String name)
Returns the current value of a non-functional property of this service.- Specified by:
getRequiredNFPropertyPrettyPrintValue
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
name
- Name of the property.type
- Type of the property value.- Returns:
- The current value of a non-functional property of this service.
-
addRequiredNFProperty
public jadex.commons.future.IFuture<java.lang.Void> addRequiredNFProperty(IServiceIdentifier sid, INFProperty<?,?> nfprop)
Add a non-functional property.- Specified by:
addRequiredNFProperty
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
nfprop
- The property.
-
removeRequiredNFProperty
public jadex.commons.future.IFuture<java.lang.Void> removeRequiredNFProperty(IServiceIdentifier sid, java.lang.String name)
Remove a non-functional property.- Specified by:
removeRequiredNFProperty
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
The
- name.
-
shutdownRequiredNFPropertyProvider
public jadex.commons.future.IFuture<java.lang.Void> shutdownRequiredNFPropertyProvider(IServiceIdentifier sid)
Shutdown the provider.- Specified by:
shutdownRequiredNFPropertyProvider
in interfaceIExternalNFPropertyComponentFeature
-
getRequiredMethodNFPropertyMetaInfos
public jadex.commons.future.IFuture<java.util.Map<jadex.commons.MethodInfo,java.util.Map<java.lang.String,INFPropertyMetaInfo>>> getRequiredMethodNFPropertyMetaInfos(IServiceIdentifier sid)
Returns meta information about a non-functional properties of all methods.- Specified by:
getRequiredMethodNFPropertyMetaInfos
in interfaceIExternalNFPropertyComponentFeature
- Returns:
- The meta information about a non-functional properties.
-
getRequiredMethodNFPropertyNames
public jadex.commons.future.IFuture<java.lang.String[]> getRequiredMethodNFPropertyNames(IServiceIdentifier sid, jadex.commons.MethodInfo method)
Returns the names of all non-functional properties of the specified method.- Specified by:
getRequiredMethodNFPropertyNames
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
method
- The method targeted by this operation.- Returns:
- The names of the non-functional properties of the specified method.
-
getRequiredMethodNFAllPropertyNames
public jadex.commons.future.IFuture<java.lang.String[]> getRequiredMethodNFAllPropertyNames(IServiceIdentifier sid, jadex.commons.MethodInfo method)
Returns the names of all non-functional properties of this method. This includes the properties of all parent components.- Specified by:
getRequiredMethodNFAllPropertyNames
in interfaceIExternalNFPropertyComponentFeature
- Returns:
- The names of the non-functional properties of this method.
-
getRequiredMethodNFPropertyMetaInfos
public jadex.commons.future.IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>> getRequiredMethodNFPropertyMetaInfos(IServiceIdentifier sid, jadex.commons.MethodInfo method)
Returns meta information about a non-functional properties of a method.- Specified by:
getRequiredMethodNFPropertyMetaInfos
in interfaceIExternalNFPropertyComponentFeature
- Returns:
- The meta information about a non-functional properties.
-
getRequiredMethodNFPropertyMetaInfo
public jadex.commons.future.IFuture<INFPropertyMetaInfo> getRequiredMethodNFPropertyMetaInfo(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name)
Returns the meta information about a non-functional property of the specified method.- Specified by:
getRequiredMethodNFPropertyMetaInfo
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
method
- The method targeted by this operation.name
- Name of the property.- Returns:
- The meta information about a non-functional property of the specified method.
-
getRequiredMethodNFPropertyValue
public <T> jadex.commons.future.IFuture<T> getRequiredMethodNFPropertyValue(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name)
Returns the current value of a non-functional property of the specified method.- Specified by:
getRequiredMethodNFPropertyValue
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
method
- The method targeted by this operation.name
- Name of the property.type
- Type of the property value.- Returns:
- The current value of a non-functional property of the specified method.
-
getRequiredMethodNFPropertyValue
public <T,U> jadex.commons.future.IFuture<T> getRequiredMethodNFPropertyValue(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name, U unit)
Returns the current value of a non-functional property of the specified method, performs unit conversion.- Specified by:
getRequiredMethodNFPropertyValue
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
method
- The method targeted by this operation.name
- Name of the property.type
- Type of the property value.unit
- Unit of the property value.- Returns:
- The current value of a non-functional property of the specified method.
-
getRequiredMethodNFPropertyPrettyPrintValue
public jadex.commons.future.IFuture<java.lang.String> getRequiredMethodNFPropertyPrettyPrintValue(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name)
Returns the current value of a non-functional property of the specified method, performs unit conversion.- Specified by:
getRequiredMethodNFPropertyPrettyPrintValue
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
method
- The method targeted by this operation.name
- Name of the property.type
- Type of the property value.unit
- Unit of the property value.- Returns:
- The current value of a non-functional property of the specified method.
-
addRequiredMethodNFProperty
public jadex.commons.future.IFuture<java.lang.Void> addRequiredMethodNFProperty(IServiceIdentifier sid, jadex.commons.MethodInfo method, INFProperty<?,?> nfprop)
Add a non-functional property.- Specified by:
addRequiredMethodNFProperty
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
method
- The method targeted by this operation.nfprop
- The property.
-
removeRequiredMethodNFProperty
public jadex.commons.future.IFuture<java.lang.Void> removeRequiredMethodNFProperty(IServiceIdentifier sid, jadex.commons.MethodInfo method, java.lang.String name)
Remove a non-functional property.- Specified by:
removeRequiredMethodNFProperty
in interfaceIExternalNFPropertyComponentFeature
- Parameters:
method
- The method targeted by this operation.The
- name.
-
-