FRAMES NO FRAMES

Class IlcSchedulerPrintTrace

Definition file: ilsched/schedtrace.h
Include file: <ilsched/ilsched.h>

The IlcSchedulerPrintTrace class is used to get printed messages of every trace event. To get those events, the manager must be in trace mode. See IloSolver::setTraceMode in the IBM ILOG Solver Reference Manual.

Example

   solver.setTraceMode(IlcTrue);
   IlcSchedulerPrintTrace trace(schedule);
   trace.traceAllActivities();
   trace.traceAllResources();
 

See Also:

Constructor Summary
public IlcSchedulerPrintTrace()
public IlcSchedulerPrintTrace(IlcSchedulerPrintTraceI * impl)
public IlcSchedulerPrintTrace(IlcSchedule s, IlcBool traceFails=IlcTrue, const char * name=0)
Method Summary
public IlcSchedulerPrintTraceI *getImpl() const
public voidoperator=(const IlcSchedulerPrintTrace & h)
public voidresetFilter() const
public voidsetFilter(IlcSchedulerTraceFilter filter) const
Inherited Methods from IlcSchedulerTrace
trace, trace, trace, trace, trace, trace, trace, traceAllActivities, traceAllFailures, traceAllResources
Constructor Detail

IlcSchedulerPrintTrace

public IlcSchedulerPrintTrace()
This constructor creates an instance which is empty, that is, one whose handle pointer is null. You must assign it a value before you access it. Any attempt to access it before assignment leads to undefined behaviour.

IlcSchedulerPrintTrace

public IlcSchedulerPrintTrace(IlcSchedulerPrintTraceI * impl)
This constructor creates an instance of the handle class from the pointer to an instance of the implementation class.

IlcSchedulerPrintTrace

public IlcSchedulerPrintTrace(IlcSchedule s, IlcBool traceFails=IlcTrue, const char * name=0)

This constructor creates an instance of IlcSchedulerPrintTrace for the IlcSchedule given as argument. Member functions of the base class IlcSchedulerTrace like IlcSchedulerTrace::traceAllActivities will act on the objects of this instance of IlcSchedule.

If the value of traceFails is IlcTrue (the default), then all the failures will be traced. Otherwise, only failures triggered by Solver variables of traced Scheduler objects will be displayed. A name can be given to the trace.


Method Detail

getImpl

public IlcSchedulerPrintTraceI * getImpl() const
This member function returns a pointer to the implementation object of the invoking handle.

operator=

public void operator=(const IlcSchedulerPrintTrace & h)
This operator assigns an address to the handle pointer of the invoking object. That address is the location of the implementation object of the provided argument. After execution of this operator, the invoking object and the provided argument point to the same implementation object.

resetFilter

public void resetFilter() const

This member function resets the filter associated with the calling object. After the filter is reset, all events will be displayed.


setFilter

public void setFilter(IlcSchedulerTraceFilter filter) const

This member function associates the specified filter to the calling object. Only events for which the function given as argument returns IlcTrue will be displayed.