Class AbstractConstraintFilter<T>
- java.lang.Object
-
- jadex.bridge.nonfunctional.hardconstraints.AbstractConstraintFilter<T>
-
- All Implemented Interfaces:
IAsyncFilter<T>
- Direct Known Subclasses:
ConstantValueFilter
,StrictInequalityFilter
public abstract class AbstractConstraintFilter<T> extends java.lang.Object implements IAsyncFilter<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jadex.commons.IAsyncFilter
IAsyncFilter.AlwaysFilter<E>, IAsyncFilter.NeverFilter<E>
-
-
Field Summary
Fields Modifier and Type Field Description protected IExternalAccess
component
The component.protected java.lang.String
propname
Name of the property being kept constant.protected java.lang.Object
value
The value once it is bound.-
Fields inherited from interface jadex.commons.IAsyncFilter
ALWAYS, NEVER
-
-
Constructor Summary
Constructors Constructor Description AbstractConstraintFilter()
Creates a constant value filter.AbstractConstraintFilter(IExternalAccess component, java.lang.String propname, java.lang.Object value)
Creates a constant value filter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract IFuture<java.lang.Boolean>
doFilter(IService service, java.lang.Object value)
Test if an object passes the filter.IFuture<java.lang.Boolean>
filter(T service)
Test if an object passes the filter.java.lang.Object
getValue()
Gets the value.java.lang.String
getValueName()
Gets the valuename. drag edge areadrag edge areavoid
setValue(java.lang.Object value)
Sets the value.void
setValueName(java.lang.String valuename)
Sets the valuename.
-
-
-
Field Detail
-
component
protected IExternalAccess component
The component.
-
propname
protected java.lang.String propname
Name of the property being kept constant.
-
value
protected java.lang.Object value
The value once it is bound.
-
-
Constructor Detail
-
AbstractConstraintFilter
public AbstractConstraintFilter()
Creates a constant value filter.
-
AbstractConstraintFilter
public AbstractConstraintFilter(IExternalAccess component, java.lang.String propname, java.lang.Object value)
Creates a constant value filter.
-
-
Method Detail
-
filter
public final IFuture<java.lang.Boolean> filter(T service)
Test if an object passes the filter.- Specified by:
filter
in interfaceIAsyncFilter<T>
- Returns:
- True, if passes the filter.
-
doFilter
public abstract IFuture<java.lang.Boolean> doFilter(IService service, java.lang.Object value)
Test if an object passes the filter.- Returns:
- True, if passes the filter.
-
getValueName
public java.lang.String getValueName()
Gets the valuename. drag edge areadrag edge area- Returns:
- The valuename.
-
setValueName
public void setValueName(java.lang.String valuename)
Sets the valuename.- Parameters:
valuename
- The valuename to set.
-
getValue
public java.lang.Object getValue()
Gets the value.- Returns:
- The value.
-
setValue
public void setValue(java.lang.Object value)
Sets the value.- Parameters:
value
- The value to set.
-
-