|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchemaxon.jep.ChemContext
chemaxon.jep.context.MolContext
chemaxon.jep.context.SearchContext
public class SearchContext
Expression evaluation context containing search hit data:
the target, the query and the hit.
Provides function names for accessing context elements
through the CallbackIface
.
Field Summary | |
---|---|
static java.lang.String[] |
CFNS
The context function names. |
protected static int |
MAXMAPS
Maximal number of map values. |
Constructor Summary | |
---|---|
SearchContext()
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
callback(java.lang.String method,
java.lang.Object arg)
Implements CallbackIface . |
void |
clear()
Clears the context. |
java.lang.String[] |
getContextFunctionNames()
Returns {"mol", "target", "query", "fingerprint", "tfingerprint", "qfingerprint", "m", "hit", "h", "hm", "hitmap"}. |
Molecule |
getQuery()
Returns the query molecule. |
int[] |
getQueryFingerprint()
Returns the query molecule fingerprint. |
protected int[] |
getQueryFingerprint(java.lang.Object arg)
Returns the query molecule fingerprint if argument is the query molecule, null otherwise. |
Molecule |
getTarget()
Returns the target molecule. |
int[] |
getTargetFingerprint()
Returns the target molecule fingerprint. |
void |
setHit(int[] hit)
Sets the search hit, as a query atom index -> target atom index array, with negative target atom index denoting match on implicit H. |
void |
setQuery(Molecule query)
Sets the query molecule and the map array. |
void |
setQueryFingerprint(int[] fingerprint)
Sets the fingerprint of the query molecule. |
void |
setTarget(Molecule target)
Sets the target molecule. |
void |
setTargetFingerprint(int[] fingerprint)
Sets the fingerprint of the target molecule. |
Methods inherited from class chemaxon.jep.context.MolContext |
---|
getFingerprint, getFingerprint, getMolecule, setFingerprint, setMolecule |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String[] CFNS
protected static final int MAXMAPS
Constructor Detail |
---|
public SearchContext()
Method Detail |
---|
public java.lang.String[] getContextFunctionNames()
getContextFunctionNames
in class MolContext
public java.lang.Object callback(java.lang.String method, java.lang.Object arg)
CallbackIface
.
Returns null
for unimplemented callbacks.
Implemented callbacks:
method | arg | return value |
---|---|---|
"mol" | null | the target molecule |
"target" | null | the target molecule |
"query" | null | the query molecule |
"fingerprint" | null | the target molecule fingerprint |
"tfingerprint" | null | the target molecule fingerprint |
"qfingerprint" | null | the query molecule fingerprint |
"m" | int | the index of query atom with given map |
"hit" "h" | null | the search hit (target atom indices) |
"hit" "h" | int | the target atom index corresponding to the specified query atom |
"hm" "hitmap" | int | the target atom index corresponding to the query atom with the specified map |
callback
in interface chemaxon.marvin.util.CallbackIface
callback
in class MolContext
method
- is the accessor method namearg
- is the accessor method argument (the JEP parameter stack as null
,
a single parameter object or a parameter object array depending on the number
of parameters on the stack)
public void setTarget(Molecule target)
target
- is the target moleculepublic Molecule getTarget()
public void setQuery(Molecule query)
query
- is the query moleculepublic Molecule getQuery()
public void setTargetFingerprint(int[] fingerprint)
fingerprint
- is the fingerprintpublic int[] getTargetFingerprint()
public void setQueryFingerprint(int[] fingerprint)
fingerprint
- is the fingerprintpublic int[] getQueryFingerprint()
protected int[] getQueryFingerprint(java.lang.Object arg)
null
otherwise.
arg
- is the argument to be checked against the query molecule
null
public void setHit(int[] hit)
hit
- is the search hitpublic void clear()
clear
in class MolContext
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |