org.openorb.trader.constraint
Class TraderConstraint

java.lang.Object
  extended by 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
 

Constructor Detail

TraderConstraint

public TraderConstraint(org.openorb.constraint.Constraint cstr)
Simple constructor

Method Detail

evaluate

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

Throws:
org.openorb.constraint.InvalidValue

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.

Throws:
org.openorb.constraint.InvalidValue