Package jadex.bridge.nonfunctional
Class NFPropertyProvider
- java.lang.Object
-
- jadex.bridge.nonfunctional.NFPropertyProvider
-
- All Implemented Interfaces:
INFPropertyProvider
- Direct Known Subclasses:
NFMethodPropertyProvider
public class NFPropertyProvider extends java.lang.Object implements INFPropertyProvider
Base impl for nf property property provider.
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccesscomponentThe component.protected java.util.Map<java.lang.String,INFProperty<?,?>>nfpropertiesNon-functional properties.protected IComponentIdentifierparentThe parent.
-
Constructor Summary
Constructors Constructor Description NFPropertyProvider(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>addNFProperty(INFProperty<?,?> nfprop)Add a non-functional property.IInternalAccessgetInternalAccess()Get the internal access.IFuture<java.lang.String[]>getNFAllPropertyNames()Returns the names of all non-functional properties of this service.IFuture<INFPropertyMetaInfo>getNFPropertyMetaInfo(java.lang.String name)Returns the meta information about a non-functional property of this service.IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>>getNFPropertyMetaInfos()Returns the meta information about a non-functional property of this service.IFuture<java.lang.String[]>getNFPropertyNames()Returns the names of all non-functional properties of this service.IFuture<java.lang.String>getNFPropertyPrettyPrintValue(java.lang.String name)Returns the current value of a non-functional property of this service.<T> IFuture<T>getNFPropertyValue(java.lang.String name)Returns the current value of a non-functional property of this service, performs unit conversion.<T,U>
IFuture<T>getNFPropertyValue(java.lang.String name, U unit)Returns the current value of a non-functional property of this service, performs unit conversion.IComponentIdentifiergetParentId()Get the parent.IFuture<java.lang.Void>removeNFProperty(java.lang.String name)Remove a non-functional property.IFuture<java.lang.Void>shutdownNFPropertyProvider()Shutdown the provider.
-
-
-
Field Detail
-
parent
protected IComponentIdentifier parent
The parent.
-
component
protected IInternalAccess component
The component.
-
nfproperties
protected java.util.Map<java.lang.String,INFProperty<?,?>> nfproperties
Non-functional properties.
-
-
Constructor Detail
-
NFPropertyProvider
public NFPropertyProvider(IComponentIdentifier parent, IInternalAccess component)
Create a new provider.
-
-
Method Detail
-
getNFPropertyNames
public IFuture<java.lang.String[]> getNFPropertyNames()
Returns the names of all non-functional properties of this service.- Specified by:
getNFPropertyNamesin interfaceINFPropertyProvider- Returns:
- The names of the non-functional properties of this service.
-
getNFAllPropertyNames
public IFuture<java.lang.String[]> getNFAllPropertyNames()
Returns the names of all non-functional properties of this service.- Specified by:
getNFAllPropertyNamesin interfaceINFPropertyProvider- Returns:
- The names of the non-functional properties of this service.
-
getNFPropertyMetaInfos
public IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>> getNFPropertyMetaInfos()
Returns the meta information about a non-functional property of this service.- Specified by:
getNFPropertyMetaInfosin interfaceINFPropertyProvider- Parameters:
name- Name of the property.- Returns:
- The meta information about a non-functional property of this service.
-
getNFPropertyMetaInfo
public IFuture<INFPropertyMetaInfo> getNFPropertyMetaInfo(java.lang.String name)
Returns the meta information about a non-functional property of this service.- Specified by:
getNFPropertyMetaInfoin interfaceINFPropertyProvider- Parameters:
name- Name of the property.- Returns:
- The meta information about a non-functional property of this service.
-
getNFPropertyValue
public <T> IFuture<T> getNFPropertyValue(java.lang.String name)
Returns the current value of a non-functional property of this service, performs unit conversion.- Specified by:
getNFPropertyValuein interfaceINFPropertyProvider- 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> 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:
getNFPropertyValuein interfaceINFPropertyProvider- Parameters:
name- Name of the property.unit- Unit of the property value.- Returns:
- The current value of a non-functional property of this service.
-
getNFPropertyPrettyPrintValue
public IFuture<java.lang.String> getNFPropertyPrettyPrintValue(java.lang.String name)
Returns the current value of a non-functional property of this service.- Specified by:
getNFPropertyPrettyPrintValuein interfaceINFPropertyProvider- Parameters:
name- Name of the property.type- Type of the property value.- Returns:
- The current value of a non-functional property of this service.
-
addNFProperty
public IFuture<java.lang.Void> addNFProperty(INFProperty<?,?> nfprop)
Add a non-functional property.- Specified by:
addNFPropertyin interfaceINFPropertyProvider- Parameters:
metainfo- The metainfo.
-
removeNFProperty
public IFuture<java.lang.Void> removeNFProperty(java.lang.String name)
Remove a non-functional property.- Specified by:
removeNFPropertyin interfaceINFPropertyProvider- Parameters:
The- name.
-
getParentId
public IComponentIdentifier getParentId()
Get the parent. return The parent.
-
shutdownNFPropertyProvider
public IFuture<java.lang.Void> shutdownNFPropertyProvider()
Shutdown the provider.- Specified by:
shutdownNFPropertyProviderin interfaceINFPropertyProvider
-
getInternalAccess
public IInternalAccess getInternalAccess()
Get the internal access.
-
-