org.openorb.trader.constraint

Class TraderConstraint

public class TraderConstraint extends 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(Constraint cstr)
Simple constructor
Method Summary
booleanevaluate(Property[] properties)
This operation is invoked to evaluate a trader constraint.
doubleevaluateNumeric(Property[] properties)
This operation is invoked to evaluate a trader constraint and returns a numeric result.

Constructor Detail

TraderConstraint

public TraderConstraint(Constraint cstr)
Simple constructor

Method Detail

evaluate

public boolean evaluate(Property[] properties)
This operation is invoked to evaluate a trader constraint.

evaluateNumeric

public double evaluateNumeric(Property[] properties)
This operation is invoked to evaluate a trader constraint and returns a numeric result.