Package jadex.bridge.sensor.service
Class WaitingTimeProperty
- 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.WaitingTimeProperty
-
- All Implemented Interfaces:
INFProperty<java.lang.Long,TimeUnit>
public class WaitingTimeProperty extends TimedProperty
Property for the waiting time of a method or a service as a whole.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jadex.bridge.nonfunctional.INFProperty
INFProperty.Target
-
-
Field Summary
Fields Modifier and Type Field Description protected IClockService
clock
The clock.protected IMethodInvocationListener
listener
The listener.protected MethodInfo
method
The method info.static java.lang.String
NAME
The name of the property.protected IServiceIdentifier
sid
The 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 WaitingTimeProperty(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.Long
measureValue()
Measure the value.void
setValue(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
-
WaitingTimeProperty
public WaitingTimeProperty(IInternalAccess comp, IService service, MethodInfo method)
Create a new property.
-
-
Method Detail
-
measureValue
public java.lang.Long measureValue()
Measure the value.- Specified by:
measureValue
in classSimpleValueNFProperty<java.lang.Long,TimeUnit>
-
setValue
public void setValue(java.lang.Long value)
Set the value.- Overrides:
setValue
in 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:
dispose
in interfaceINFProperty<java.lang.Long,TimeUnit>
- Overrides:
dispose
in classAbstractNFProperty<java.lang.Long,TimeUnit>
-
-