Creating the decision tracer class |
INDEX
![]() |
You can monitor events happening while building the first solution using decisions. A decision tracer can be attached to a decision maker object. The decision maker object will call the virtual member functions of the tracer objects to notify certain events. For example, each time a decision is chosen, the tracer object is notified. Dispatcher also provides a default tracer that does nothing. Subclassing from the default tracer IloDefaultDecisionTracerI
only requires the definition of the member functions you want to trace, not all of them.
In this example, you use the default tracer to define only the notifyChosen
trace member function.
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |