Chemical Data Processing Library Python API - Version 1.2.0
|
Classes | |
class | Relation |
Defines constants for the specification of relational constraints on the values of query/target attribute pairs. More... | |
Public Member Functions | |
None | __init__ (MatchConstraint constr) |
Initializes a copy of the MatchConstraint instance constr. More... | |
None | __init__ (int id, Relation rel) |
Initializes the MatchConstraint instance. More... | |
None | __init__ (int id, Relation rel, Base.Any val) |
Constructs a MatchConstraint object with the given identifier, relational constraint on the values of matching query/target attribute pairs and value of the query attribute. More... | |
MatchConstraint | assign (MatchConstraint constr) |
Replaces the current state of self with a copy of the state of the MatchConstraint instance constr. More... | |
int | getID () |
Returns the identifier of the match constraint. More... | |
None | setID (int id) |
Sets the match constraint identifier to id. More... | |
Relation | getRelation () |
Returns the relational constraint that must be fulfilled by the values of matching query/target attribute pairs. More... | |
None | setRelation (Relation rel) |
Sets the relational constraint that must be fulfilled by the values of matching query/target attribute pairs. More... | |
Base.Any | getValue () |
Returns a reference to the value of the query attribute of type T. More... | |
None | setValue (Base.Any val) |
Sets the value of the query attribute. More... | |
bool | hasValue () |
Tells wether a query attribute value has been set. More... | |
Properties | |
id = property(getID, setID) | |
relation = property(getRelation, setRelation) | |
value = property(getValue, setValue) | |
None CDPL.Chem.MatchConstraint.__init__ | ( | MatchConstraint | constr | ) |
Initializes a copy of the MatchConstraint instance constr.
constr | The MatchConstraint instance to copy. |
None CDPL.Chem.MatchConstraint.__init__ | ( | int | id, |
Relation | rel | ||
) |
Initializes the MatchConstraint instance.
id | |
rel |
Constructs a MatchConstraint
object with the given identifier, relational constraint on the values of matching query/target attribute pairs and value of the query attribute.
id | The identifier of the match constraint. |
rel | The relational constraint on the values of matching query/target attribute pairs. |
val | The value of the query attribute. |
MatchConstraint CDPL.Chem.MatchConstraint.assign | ( | MatchConstraint | constr | ) |
Replaces the current state of self with a copy of the state of the MatchConstraint instance constr.
constr | The MatchConstraint instance to copy. |
int CDPL.Chem.MatchConstraint.getID | ( | ) |
Returns the identifier of the match constraint.
None CDPL.Chem.MatchConstraint.setID | ( | int | id | ) |
Sets the match constraint identifier to id.
id | The identifier of the match constraint. |
Relation CDPL.Chem.MatchConstraint.getRelation | ( | ) |
Returns the relational constraint that must be fulfilled by the values of matching query/target attribute pairs.
None CDPL.Chem.MatchConstraint.setRelation | ( | Relation | rel | ) |
Sets the relational constraint that must be fulfilled by the values of matching query/target attribute pairs.
rel | The relational constraint on the values of matching query/target attribute pairs. |
Base.Any CDPL.Chem.MatchConstraint.getValue | ( | ) |
Returns a reference to the value of the query attribute of type T.
Base.BadCast | if the stored Any instance is empty, or the stored value is not of the specified type T. |
None CDPL.Chem.MatchConstraint.setValue | ( | Base.Any | val | ) |
Sets the value of the query attribute.
val | The value of the query attribute. |
bool CDPL.Chem.MatchConstraint.hasValue | ( | ) |
Tells wether a query attribute value has been set.
True
if the value of the query attribute has been set, False
otherwise.