Package jadex.bridge.nonfunctional
Class NFMethodPropertyProvider
- java.lang.Object
-
- jadex.bridge.nonfunctional.NFPropertyProvider
-
- jadex.bridge.nonfunctional.NFMethodPropertyProvider
-
- All Implemented Interfaces:
INFMethodPropertyProvider
,INFMixedPropertyProvider
,INFPropertyProvider
public class NFMethodPropertyProvider extends NFPropertyProvider implements INFMixedPropertyProvider
Default implementation for a method property provider.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<MethodInfo,java.util.Map<java.lang.String,INFProperty<?,?>>>
methodnfproperties
Non-functional properties of methods.-
Fields inherited from class jadex.bridge.nonfunctional.NFPropertyProvider
component, nfproperties, parent
-
-
Constructor Summary
Constructors Constructor Description NFMethodPropertyProvider(IComponentIdentifier parent, IInternalAccess component)
Create a new provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>
addMethodNFProperty(MethodInfo method, INFProperty<?,?> nfprop)
Add a non-functional property.IFuture<java.lang.String[]>
getMethodNFAllPropertyNames(MethodInfo method)
Returns the names of all non-functional properties of this method.IFuture<INFPropertyMetaInfo>
getMethodNFPropertyMetaInfo(MethodInfo method, java.lang.String name)
Returns the meta information about a non-functional property of the specified method.IFuture<java.util.Map<MethodInfo,java.util.Map<java.lang.String,INFPropertyMetaInfo>>>
getMethodNFPropertyMetaInfos()
Returns meta information about a non-functional properties of all methods.IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>>
getMethodNFPropertyMetaInfos(MethodInfo method)
Returns meta information about a non-functional properties of a method.IFuture<java.lang.String[]>
getMethodNFPropertyNames(MethodInfo method)
Returns the names of all non-functional properties of the specified method.IFuture<java.lang.String>
getMethodNFPropertyPrettyPrintValue(MethodInfo method, java.lang.String name)
Returns the current value of a non-functional property of this service method.<T> IFuture<T>
getMethodNFPropertyValue(MethodInfo method, java.lang.String name)
Returns the current value of a non-functional property of the specified method.<T,U>
IFuture<T>getMethodNFPropertyValue(MethodInfo method, java.lang.String name, U unit)
Returns the current value of a non-functional property of the specified method, performs unit conversion.IFuture<java.lang.Void>
removeMethodNFProperty(MethodInfo method, java.lang.String name)
Remove a non-functional property.IFuture<java.lang.Void>
shutdownNFPropertyProvider()
Shutdown the provider.-
Methods inherited from class jadex.bridge.nonfunctional.NFPropertyProvider
addNFProperty, getInternalAccess, getNFAllPropertyNames, getNFPropertyMetaInfo, getNFPropertyMetaInfos, getNFPropertyNames, getNFPropertyPrettyPrintValue, getNFPropertyValue, getNFPropertyValue, getParentId, removeNFProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jadex.bridge.nonfunctional.INFPropertyProvider
addNFProperty, getNFAllPropertyNames, getNFPropertyMetaInfo, getNFPropertyMetaInfos, getNFPropertyNames, getNFPropertyPrettyPrintValue, getNFPropertyValue, getNFPropertyValue, removeNFProperty
-
-
-
-
Field Detail
-
methodnfproperties
protected java.util.Map<MethodInfo,java.util.Map<java.lang.String,INFProperty<?,?>>> methodnfproperties
Non-functional properties of methods.
-
-
Constructor Detail
-
NFMethodPropertyProvider
public NFMethodPropertyProvider(IComponentIdentifier parent, IInternalAccess component)
Create a new provider.
-
-
Method Detail
-
getMethodNFPropertyMetaInfos
public IFuture<java.util.Map<MethodInfo,java.util.Map<java.lang.String,INFPropertyMetaInfo>>> getMethodNFPropertyMetaInfos()
Returns meta information about a non-functional properties of all methods.- Specified by:
getMethodNFPropertyMetaInfos
in interfaceINFMethodPropertyProvider
- Returns:
- The meta information about a non-functional properties.
-
getMethodNFPropertyMetaInfos
public IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>> getMethodNFPropertyMetaInfos(MethodInfo method)
Returns meta information about a non-functional properties of a method.- Specified by:
getMethodNFPropertyMetaInfos
in interfaceINFMethodPropertyProvider
- Returns:
- The meta information about a non-functional properties.
-
getMethodNFPropertyNames
public IFuture<java.lang.String[]> getMethodNFPropertyNames(MethodInfo method)
Returns the names of all non-functional properties of the specified method.- Specified by:
getMethodNFPropertyNames
in interfaceINFMethodPropertyProvider
- Parameters:
method
- The method targeted by this operation.- Returns:
- The names of the non-functional properties of the specified method.
-
getMethodNFAllPropertyNames
public IFuture<java.lang.String[]> getMethodNFAllPropertyNames(MethodInfo method)
Returns the names of all non-functional properties of this method.- Specified by:
getMethodNFAllPropertyNames
in interfaceINFMethodPropertyProvider
- Returns:
- The names of the non-functional properties of this method.
-
getMethodNFPropertyMetaInfo
public IFuture<INFPropertyMetaInfo> getMethodNFPropertyMetaInfo(MethodInfo method, java.lang.String name)
Returns the meta information about a non-functional property of the specified method.- Specified by:
getMethodNFPropertyMetaInfo
in interfaceINFMethodPropertyProvider
- 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.
-
getMethodNFPropertyValue
public <T> IFuture<T> getMethodNFPropertyValue(MethodInfo method, java.lang.String name)
Returns the current value of a non-functional property of the specified method.- Specified by:
getMethodNFPropertyValue
in interfaceINFMethodPropertyProvider
- 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> IFuture<T> getMethodNFPropertyValue(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 interfaceINFMethodPropertyProvider
- 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 IFuture<java.lang.String> getMethodNFPropertyPrettyPrintValue(MethodInfo method, java.lang.String name)
Returns the current value of a non-functional property of this service method.- Specified by:
getMethodNFPropertyPrettyPrintValue
in interfaceINFMethodPropertyProvider
- Parameters:
name
- Name of the property.type
- Type of the property value.- Returns:
- The current value of a non-functional property of this service method.
-
addMethodNFProperty
public IFuture<java.lang.Void> addMethodNFProperty(MethodInfo method, INFProperty<?,?> nfprop)
Add a non-functional property.- Specified by:
addMethodNFProperty
in interfaceINFMethodPropertyProvider
- Parameters:
method
- The method targeted by this operation.nfprop
- The property.
-
removeMethodNFProperty
public IFuture<java.lang.Void> removeMethodNFProperty(MethodInfo method, java.lang.String name)
Remove a non-functional property.- Specified by:
removeMethodNFProperty
in interfaceINFMethodPropertyProvider
- Parameters:
method
- The method targeted by this operation.The
- name.
-
shutdownNFPropertyProvider
public IFuture<java.lang.Void> shutdownNFPropertyProvider()
Shutdown the provider.- Specified by:
shutdownNFPropertyProvider
in interfaceINFMethodPropertyProvider
- Specified by:
shutdownNFPropertyProvider
in interfaceINFPropertyProvider
- Overrides:
shutdownNFPropertyProvider
in classNFPropertyProvider
-
-