TAO_Constraint_Evaluator Class ReferenceTAO_Constraint_Evaluator traverse a constraint expression tree, and determines whether an offer fits the constraints represented by the tree. More...
Inheritance diagram for TAO_Constraint_Evaluator:
Collaboration diagram for TAO_Constraint_Evaluator:
Detailed DescriptionTAO_Constraint_Evaluator traverse a constraint expression tree, and determines whether an offer fits the constraints represented by the tree.Using the Visitor pattern, the TAO_Constraint_Evaluator has each node of the expression tree call back to it with the method designated for its type. In that method, the visitor will evaluate its operands and perform the operation designated by that node's type, and return the result. Note: the TAO_Constraint_Evaluator assumes the tree is semantically correct, that is, the validate method on TAO_Constraint_Validator return true. The only possible evaluation time errors are a divide by a property whose value is zero and undefined properties. Constructor & Destructor Documentation
Constructor.
Disallow copying.
Member Function Documentation
Evaluate returns 1 if the offer satisfies the constraints represented by the the expression tree rooted at <root>, 0 if it doesn't. If an error occurs during process, the constraint automatically fails.
The result of the preference evaluation is stored in result. The method returns 0 upon success, -1 upon failure.
Implements TAO_Constraint_Visitor.
Implements TAO_Constraint_Visitor.
Implements TAO_Constraint_Visitor.
Implements TAO_Constraint_Visitor.
Implements TAO_Constraint_Visitor.
Implements TAO_Constraint_Visitor.
Takes the logical and of the results of both operands. Note that in the case where the left operand returns zero, the result is immediately known. Implements TAO_Constraint_Visitor.
Takes the logical or of the results of both operands. Note that in the case where the left operand returns one, the result is immediately known. Implements TAO_Constraint_Visitor.
The property exists if its name is bound to a value in the <props_> map. Implements TAO_Constraint_Visitor.
Determines if the sequence represented by the right operand contains the left operand. Implements TAO_Constraint_Visitor.
Implements TAO_Constraint_Visitor.
Implements TAO_Constraint_Visitor.
Implements TAO_Constraint_Visitor.
Implements TAO_Constraint_Visitor.
Implements TAO_Constraint_Visitor.
Implements TAO_Constraint_Visitor.
Copy the value of the property into the result container.
Implements TAO_Constraint_Visitor. Reimplemented in TAO_Trader_Constraint_Evaluator.
Method for performing a arithmetic or comparison operation.
Method for evaluating a binary operation.
Determine if sequence contains <element>, a literal of the same simple type as <sequence_type>. Return 1 in this eventuality.
Member Data Documentation
The map of property names to their values for a property.
The result of a non_boolean operation.
The documentation for this class was generated from the following files: Generated on Mon Sep 15 08:43:45 2008 for TAO_CosTrader by 1.5.5 |