Package jadex.bridge.nonfunctional
Class NFPropertyRef<T,U>
- java.lang.Object
 - 
- jadex.bridge.nonfunctional.AbstractNFProperty<T,U>
 - 
- jadex.bridge.nonfunctional.NFPropertyRef<T,U>
 
 
 
- 
- All Implemented Interfaces:
 INFProperty<T,U>
public class NFPropertyRef<T,U> extends AbstractNFProperty<T,U>
Property reference. Delegates calls to the real property source. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface jadex.bridge.nonfunctional.INFProperty
INFProperty.Target 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description protected IExternalAccesscompThe component of the ref.protected MethodInfomethodThe method.protected IServiceIdentifiersidThe service identifier.- 
Fields inherited from class jadex.bridge.nonfunctional.AbstractNFProperty
metainfo 
 - 
 
- 
Constructor Summary
Constructors Constructor Description NFPropertyRef(IExternalAccess comp, NFPropertyMetaInfo mi, IServiceIdentifier sid, MethodInfo method)Create a new property ref. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.String>getPrettyPrintValue()Returns the current value of the property in a human readable form.IFuture<T>getValue(U unit)Returns the current value of the property, performs unit conversion if necessary.- 
Methods inherited from class jadex.bridge.nonfunctional.AbstractNFProperty
createProperty, dispose, getMetaInfo, getName, getValue, readNFProperties 
 - 
 
 - 
 
- 
- 
Field Detail
- 
comp
protected IExternalAccess comp
The component of the ref. 
- 
sid
protected IServiceIdentifier sid
The service identifier. 
- 
method
protected MethodInfo method
The method. 
 - 
 
- 
Constructor Detail
- 
NFPropertyRef
public NFPropertyRef(IExternalAccess comp, NFPropertyMetaInfo mi, IServiceIdentifier sid, MethodInfo method)
Create a new property ref. 
 - 
 
- 
Method Detail
- 
getValue
public IFuture<T> getValue(U unit)
Returns the current value of the property, performs unit conversion if necessary.- Parameters:
 type- Type of the value.unit- Unit of the returned value.- Returns:
 - The current value of the property.
 
 
- 
getPrettyPrintValue
public IFuture<java.lang.String> getPrettyPrintValue()
Description copied from class:AbstractNFPropertyReturns the current value of the property in a human readable form.- Specified by:
 getPrettyPrintValuein interfaceINFProperty<T,U>- Overrides:
 getPrettyPrintValuein classAbstractNFProperty<T,U>- Returns:
 - The current value of the property.
 
 
 - 
 
 -