Package jadex.bridge.nonfunctional
Class SimpleValueNFProperty<T,U>
- java.lang.Object
- 
- jadex.bridge.nonfunctional.AbstractNFProperty<T,U>
- 
- jadex.bridge.nonfunctional.SimpleValueNFProperty<T,U>
 
 
- 
- All Implemented Interfaces:
- INFProperty<T,U>
 - Direct Known Subclasses:
- NFRootProperty,- TimedProperty,- WaitqueueProperty
 
 public abstract class SimpleValueNFProperty<T,U> extends AbstractNFProperty<T,U> 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface jadex.bridge.nonfunctional.INFPropertyINFProperty.Target
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected IInternalAccesscompThe component.protected TvalueThe current value.- 
Fields inherited from class jadex.bridge.nonfunctional.AbstractNFPropertymetainfo
 
- 
 - 
Constructor SummaryConstructors Constructor Description SimpleValueNFProperty(IInternalAccess comp, NFPropertyMetaInfo mi)Create a new property.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description IInternalAccessgetComponent()Get the component.IFuture<java.lang.String>getPrettyPrintValue()Returns the current value of the property in a human readable form.IFuture<T>getValue(U unit)Get the value converted by a unit.abstract TmeasureValue()Measure the value.voidsetValue(T value)Set the value.- 
Methods inherited from class jadex.bridge.nonfunctional.AbstractNFPropertycreateProperty, dispose, getMetaInfo, getName, getValue, readNFProperties
 
- 
 
- 
- 
- 
Field Detail- 
valueprotected T value The current value.
 - 
compprotected IInternalAccess comp The component.
 
- 
 - 
Constructor Detail- 
SimpleValueNFPropertypublic SimpleValueNFProperty(IInternalAccess comp, NFPropertyMetaInfo mi) Create a new property.
 
- 
 - 
Method Detail- 
getValuepublic IFuture<T> getValue(U unit) Get the value converted by a unit.- Parameters:
- unit- Unit of the returned value.
- Returns:
- The current value of the property.
 
 - 
getPrettyPrintValuepublic IFuture<java.lang.String> getPrettyPrintValue() Returns the current value of the property in a human readable form.- Specified by:
- getPrettyPrintValuein interface- INFProperty<T,U>
- Overrides:
- getPrettyPrintValuein class- AbstractNFProperty<T,U>
- Returns:
- The current value of the property.
 
 - 
setValuepublic void setValue(T value) Set the value.- Parameters:
- value- The value to set.
 
 - 
measureValuepublic abstract T measureValue() Measure the value.
 - 
getComponentpublic IInternalAccess getComponent() Get the component.- Returns:
- The component.
 
 
- 
 
-