Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.ConstraintSolver.NetDecisionBuilder Class Reference
Inheritance diagram for Google.OrTools.ConstraintSolver.NetDecisionBuilder:
Google.OrTools.ConstraintSolver.DecisionBuilder Google.OrTools.ConstraintSolver.BaseObject

Public Member Functions

override Decision NextWrapper (Solver solver)
 
virtual Decision Next (Solver solver)
 
- Public Member Functions inherited from Google.OrTools.ConstraintSolver.DecisionBuilder
 DecisionBuilder ()
 
override string ToString ()
 
void SetName (string name)
 
string GetName ()
 
delegate string SwigDelegateDecisionBuilder_0 ()
 
delegate global::System.IntPtr SwigDelegateDecisionBuilder_1 (global::System.IntPtr s)
 
- Public Member Functions inherited from Google.OrTools.ConstraintSolver.BaseObject
void Dispose ()
 
 BaseObject ()
 

Additional Inherited Members

- Protected Member Functions inherited from Google.OrTools.ConstraintSolver.DecisionBuilder
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from Google.OrTools.ConstraintSolver.BaseObject
- Protected Attributes inherited from Google.OrTools.ConstraintSolver.BaseObject
bool swigCMemOwn
 
- Package Functions inherited from Google.OrTools.ConstraintSolver.DecisionBuilder
- Package Functions inherited from Google.OrTools.ConstraintSolver.BaseObject
- Static Package Functions inherited from Google.OrTools.ConstraintSolver.DecisionBuilder
- Static Package Functions inherited from Google.OrTools.ConstraintSolver.BaseObject

Detailed Description

This class acts as a intermediate step between a c++ decision builder and a .Net one. Its main purpose is to catch the .Net application exception launched when a failure occurs during the Next() call, and to return silently a System.ApplicationException that will propagate the failure back to the C++ code.

Definition at line 27 of file NetDecisionBuilder.cs.

Member Function Documentation

◆ Next()

virtual Decision Google.OrTools.ConstraintSolver.NetDecisionBuilder.Next ( Solver solver)
inlinevirtual

This is the new method to subclass when defining a .Net decision builder.

Definition at line 48 of file NetDecisionBuilder.cs.

◆ NextWrapper()

override Decision Google.OrTools.ConstraintSolver.NetDecisionBuilder.NextWrapper ( Solver solver)
inlinevirtual

This methods wraps the calls to next() and catches fail exceptions. It currently catches all application exceptions.

Todo
(user): Catch only fail exceptions.

Reimplemented from Google.OrTools.ConstraintSolver.DecisionBuilder.

Definition at line 33 of file NetDecisionBuilder.cs.


The documentation for this class was generated from the following file: