|
|||||||||
| Home >> All >> joelib >> process >> [ filter overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
joelib.process.filter
Class NativeValueFilter

java.lang.Objectjoelib.process.filter.NativeValueFilter
- All Implemented Interfaces:
- Filter
- public class NativeValueFilter
- extends java.lang.Object
- implements Filter
- extends java.lang.Object
Molecule process filter for native value descriptor entries.
Example:
// accept all values with: Kier_shape_1<=5.0
NativeValueFilter filter =new NativeValueFilter(
"Kier_shape_1",
NativeValueFilter.SMALLER_EQUAL,
5.0);
// create molecule
JOEMol mol=new JOEMol();
String smiles="c1cc(OH)cc1";
if (!JOESmilesParser.smiToMol(mol, smiles, setTitle.toString()));
// should we accept this molecule, what do you mean ?
System.out.println("Accept: ("+filter.toString()+")="+filter.accept(mol));
| Field Summary | |
private static java.lang.String[] |
allowedRules
|
private java.lang.String |
attribute
|
static int |
EQUAL
|
static int |
GREATER
|
static int |
GREATER_EQUAL
|
private FilterInfo |
info
|
private static org.apache.log4j.Category |
logger
|
static int |
NOT_EQUAL
|
private int |
relation
|
static int |
SMALLER
|
static int |
SMALLER_EQUAL
|
private double |
value
|
| Constructor Summary | |
NativeValueFilter()
Constructor for the DescriptorFilter object |
|
NativeValueFilter(java.lang.String _attribute,
int _relation,
double _value)
Constructor for the DescriptorFilter object |
|
| Method Summary | |
boolean |
accept(joelib.molecule.JOEMol mol)
Description of the Method |
boolean |
fromString(java.lang.String rule)
|
FilterInfo |
getFilterInfo()
Gets the processInfo attribute of the DescriptorFilter object |
void |
init(java.lang.String _attribute,
int _relation,
double _value)
Description of the Method |
void |
invertRelation()
|
void |
setFilterInfo(FilterInfo _info)
Sets the filterInfo attribute of the DescriptorFilter object |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
SMALLER_EQUAL
public static final int SMALLER_EQUAL
- See Also:
- Constant Field Values
SMALLER
public static final int SMALLER
- See Also:
- Constant Field Values
EQUAL
public static final int EQUAL
- See Also:
- Constant Field Values
GREATER_EQUAL
public static final int GREATER_EQUAL
- See Also:
- Constant Field Values
GREATER
public static final int GREATER
- See Also:
- Constant Field Values
NOT_EQUAL
public static final int NOT_EQUAL
- See Also:
- Constant Field Values
allowedRules
private static final java.lang.String[] allowedRules
logger
private static org.apache.log4j.Category logger
info
private FilterInfo info
attribute
private java.lang.String attribute
value
private double value
relation
private int relation
| Constructor Detail |
NativeValueFilter
public NativeValueFilter()
- Constructor for the DescriptorFilter object
NativeValueFilter
public NativeValueFilter(java.lang.String _attribute, int _relation, double _value)
- Constructor for the DescriptorFilter object
| Method Detail |
setFilterInfo
public void setFilterInfo(FilterInfo _info)
- Sets the filterInfo attribute of the DescriptorFilter object
- Specified by:
setFilterInfoin interfaceFilter
getFilterInfo
public FilterInfo getFilterInfo()
- Gets the processInfo attribute of the DescriptorFilter object
- Specified by:
getFilterInfoin interfaceFilter
accept
public boolean accept(joelib.molecule.JOEMol mol)
fromString
public boolean fromString(java.lang.String rule)
init
public void init(java.lang.String _attribute, int _relation, double _value)
- Description of the Method
invertRelation
public void invertRelation()
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> joelib >> process >> [ filter overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
joelib.process.filter.NativeValueFilter