Package chemaxon.chemterms
Class AtomContext
java.lang.Object
chemaxon.chemterms.MolContext
chemaxon.chemterms.AtomContext
- All Implemented Interfaces:
ChemTermsContext
@PublicApi
@ProvidesFunction(minParameterCount=0,maxParameterCount=0,names={"atom","mol"}) @ProvidesFunction(minParameterCount=1,maxParameterCount=1,names="fingerprint")
public class AtomContext
extends MolContext
Expression evaluation context containing an input molecule
and an input atom.
- Since:
- JChem 2.2, Marvin 5.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface chemaxon.chemterms.ChemTermsContext
ChemTermsContext.ProvidesFunction, ChemTermsContext.ProvidesFunctionContainer -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final String[]The context function names.Fields inherited from class chemaxon.chemterms.MolContext
FINGERPRINT, MOLFields inherited from interface chemaxon.chemterms.ChemTermsContext
VARARG -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class chemaxon.chemterms.MolContext
getFingerprint, getFingerprint, getMolecule, setFingerprint, setMolecule, setSupplierMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface chemaxon.chemterms.ChemTermsContext
getVariable
-
Field Details
-
ATOM
- See Also:
-
CFNS
The context function names.
-
-
Constructor Details
-
AtomContext
public AtomContext()Constructor.
-
-
Method Details
-
callContextFunction
Executes the specified context function with the given parameters.Implemented functions:
name parameter return value "mol" the input molecule "fingerprint" the input molecule fingerprint "atom" the input atom - Specified by:
callContextFunctionin interfaceChemTermsContext- Overrides:
callContextFunctionin classMolContext- Parameters:
name- the context function name (as specified byChemTermsContext.ProvidesFunction.names())params- the context function parameters. The size of this list must be between theminimumandmaximumallowed.- Returns:
- the context element, or null if the given function is not supported
- Throws:
ChemTermsException- on error
-
setAtom
public void setAtom(int atom) Sets the input atom.- Parameters:
atom- is the input atom index
-
getAtom
public int getAtom()Returns the input atom index.- Returns:
- the input atom index
-
clear
public void clear()Clears the context.- Specified by:
clearin interfaceChemTermsContext- Overrides:
clearin classMolContext
-