Class ConstantValueFilter
- java.lang.Object
-
- jadex.bridge.nonfunctional.hardconstraints.AbstractConstraintFilter
-
- jadex.bridge.nonfunctional.hardconstraints.ConstantValueFilter
-
- All Implemented Interfaces:
IAsyncFilter
public class ConstantValueFilter extends AbstractConstraintFilter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jadex.commons.IAsyncFilter
IAsyncFilter.AlwaysFilter<E>, IAsyncFilter.NeverFilter<E>
-
-
Field Summary
-
Fields inherited from class jadex.bridge.nonfunctional.hardconstraints.AbstractConstraintFilter
component, propname, value
-
Fields inherited from interface jadex.commons.IAsyncFilter
ALWAYS, NEVER
-
-
Constructor Summary
Constructors Constructor Description ConstantValueFilter()
Creates a constant value filter.ConstantValueFilter(java.lang.String propname, java.lang.Object value)
Creates a constant value filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(java.lang.Object value)
Binds the constant value.IFuture<java.lang.Boolean>
doFilter(IService service, java.lang.Object value)
Test if an object passes the filter.void
unbind()
Unbinds the constant value.-
Methods inherited from class jadex.bridge.nonfunctional.hardconstraints.AbstractConstraintFilter
filter, getValue, getValueName, setValue, setValueName
-
-
-
-
Method Detail
-
doFilter
public IFuture<java.lang.Boolean> doFilter(IService service, java.lang.Object value)
Test if an object passes the filter.- Specified by:
doFilter
in classAbstractConstraintFilter
- Returns:
- True, if passes the filter.
-
bind
public void bind(java.lang.Object value)
Binds the constant value.- Parameters:
value
- The value
-
unbind
public void unbind()
Unbinds the constant value.
-
-