org.openorb.trader.constraint
Class TraderConstraint
java.lang.Object
|
+--org.openorb.trader.constraint.TraderConstraint
- public class TraderConstraint
- extends java.lang.Object
To evaluate Trader constraints, we reuse the OpenORB Evaluator Utility. However, we encapsulate
it to provide some additional features for the trader.
- Author:
- Jerome Daniel
|
Constructor Summary |
TraderConstraint(org.openorb.constraint.Constraint cstr)
Simple constructor |
|
Method Summary |
boolean |
evaluate(Property[] properties)
This operation is invoked to evaluate a trader constraint. |
double |
evaluateNumeric(Property[] properties)
This operation is invoked to evaluate a trader constraint and returns a numeric result. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TraderConstraint
public TraderConstraint(org.openorb.constraint.Constraint cstr)
- Simple constructor
evaluate
public boolean evaluate(Property[] properties)
throws org.openorb.constraint.InvalidValue
- This operation is invoked to evaluate a trader constraint.
evaluateNumeric
public double evaluateNumeric(Property[] properties)
throws org.openorb.constraint.InvalidValue
- This operation is invoked to evaluate a trader constraint and returns a numeric result.