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.IAsyncFilterIAsyncFilter.AlwaysFilter<E>, IAsyncFilter.NeverFilter<E>
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected IExternalAccesscomponentThe component.protected java.lang.StringpropnameName of the property being kept constant.protected java.lang.ObjectvalueThe value once it is bound.- 
Fields inherited from interface jadex.commons.IAsyncFilterALWAYS, NEVER
 
- 
 - 
Constructor SummaryConstructors 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 SummaryAll 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.ObjectgetValue()Gets the value.java.lang.StringgetValueName()Gets the valuename.voidsetValue(java.lang.Object value)Sets the value.voidsetValueName(java.lang.String valuename)Sets the valuename.
 
- 
- 
- 
Field Detail- 
componentprotected IExternalAccess component The component.
 - 
propnameprotected java.lang.String propname Name of the property being kept constant.
 - 
valueprotected java.lang.Object value The value once it is bound.
 
- 
 - 
Constructor Detail- 
AbstractConstraintFilterpublic AbstractConstraintFilter() Creates a constant value filter.
 - 
AbstractConstraintFilterpublic AbstractConstraintFilter(IExternalAccess component, java.lang.String propname, java.lang.Object value) Creates a constant value filter.
 
- 
 - 
Method Detail- 
filterpublic final IFuture<java.lang.Boolean> filter(T service) Test if an object passes the filter.- Specified by:
- filterin interface- IAsyncFilter<T>
- Returns:
- True, if passes the filter.
 
 - 
doFilterpublic 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.
 
 - 
getValueNamepublic java.lang.String getValueName() Gets the valuename. drag edge areadrag edge area- Returns:
- The valuename.
 
 - 
setValueNamepublic void setValueName(java.lang.String valuename) Sets the valuename.- Parameters:
- valuename- The valuename to set.
 
 - 
getValuepublic java.lang.Object getValue() Gets the value.- Returns:
- The value.
 
 - 
setValuepublic void setValue(java.lang.Object value) Sets the value.- Parameters:
- value- The value to set.
 
 
- 
 
-