Package jadex.bridge.sensor.service
Class ExecutionTimeProperty
- java.lang.Object
 - 
- jadex.bridge.nonfunctional.AbstractNFProperty<T,U>
 - 
- jadex.bridge.nonfunctional.SimpleValueNFProperty<java.lang.Long,TimeUnit>
 - 
- jadex.bridge.sensor.time.TimedProperty
 - 
- jadex.bridge.sensor.service.ExecutionTimeProperty
 
 
 
 
 
- 
- All Implemented Interfaces:
 INFProperty<java.lang.Long,TimeUnit>
public class ExecutionTimeProperty extends TimedProperty
Property for the overall execution time of a method or a service. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface jadex.bridge.nonfunctional.INFProperty
INFProperty.Target 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description protected IClockServiceclockThe clock.protected IMethodInvocationListenerlistenerThe listener.protected MethodInfomethodThe method info.static java.lang.StringNAMEThe name of the property.protected IServiceIdentifiersidThe service identifier.- 
Fields inherited from class jadex.bridge.nonfunctional.SimpleValueNFProperty
comp, value 
- 
Fields inherited from class jadex.bridge.nonfunctional.AbstractNFProperty
metainfo 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ExecutionTimeProperty(IInternalAccess comp, IService service, MethodInfo method)Create a new property. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>dispose()Property was removed and should be disposed.java.lang.LongmeasureValue()Measure the value.voidsetValue(java.lang.Long value)Set the value.- 
Methods inherited from class jadex.bridge.nonfunctional.SimpleValueNFProperty
getComponent, getPrettyPrintValue, getValue 
- 
Methods inherited from class jadex.bridge.nonfunctional.AbstractNFProperty
createProperty, getMetaInfo, getName, getValue, readNFProperties 
 - 
 
 - 
 
- 
- 
Field Detail
- 
NAME
public static final java.lang.String NAME
The name of the property.- See Also:
 - Constant Field Values
 
 
- 
sid
protected IServiceIdentifier sid
The service identifier. 
- 
listener
protected IMethodInvocationListener listener
The listener. 
- 
method
protected MethodInfo method
The method info. 
- 
clock
protected IClockService clock
The clock. 
 - 
 
- 
Constructor Detail
- 
ExecutionTimeProperty
public ExecutionTimeProperty(IInternalAccess comp, IService service, MethodInfo method)
Create a new property. 
 - 
 
- 
Method Detail
- 
measureValue
public java.lang.Long measureValue()
Measure the value.- Specified by:
 measureValuein classSimpleValueNFProperty<java.lang.Long,TimeUnit>
 
- 
setValue
public void setValue(java.lang.Long value)
Set the value.- Overrides:
 setValuein classSimpleValueNFProperty<java.lang.Long,TimeUnit>- Parameters:
 value- The value to set.
 
- 
dispose
public IFuture<java.lang.Void> dispose()
Property was removed and should be disposed.- Specified by:
 disposein interfaceINFProperty<java.lang.Long,TimeUnit>- Overrides:
 disposein classAbstractNFProperty<java.lang.Long,TimeUnit>
 
 - 
 
 -