DotNet Reference
DotNet Reference
Detailed Description
This class acts as a intermediate step between a c++ decision and a .Net one.
Its main purpose is to catch the .Net application exception launched when a failure occurs during the Apply()/Refute() calls, and to set the ShouldFail() flag on the solver that will propagate the failure back to the C++ code.
Definition at line 62 of file NetDecisionBuilder.cs.
Public Member Functions | |
| override void | ApplyWrapper (Solver solver) |
| This methods wraps the calls to Apply() and catches fail exceptions. More... | |
| virtual void | Apply (Solver solver) |
| This is a new method to subclass when defining a .Net decision. More... | |
| override void | RefuteWrapper (Solver solver) |
| virtual void | Refute (Solver solver) |
| This is a new method to subclass when defining a .Net decision. More... | |
| void | Dispose () |
| override string | ToString () |
| virtual void | Accept (DecisionVisitor visitor) |
| delegate string | SwigDelegateDecision_0 () |
| delegate void | SwigDelegateDecision_1 (global::System.IntPtr s) |
| delegate void | SwigDelegateDecision_2 (global::System.IntPtr s) |
| delegate void | SwigDelegateDecision_3 (global::System.IntPtr visitor) |
Protected Member Functions | |
| override void | Dispose (bool disposing) |
Protected Attributes | |
| bool | swigCMemOwn |
Member Function Documentation
◆ Accept()
|
inlinevirtualinherited |
Definition at line 59 of file Decision.cs.
◆ Apply()
|
inlinevirtual |
This is a new method to subclass when defining a .Net decision.
Definition at line 83 of file NetDecisionBuilder.cs.
◆ ApplyWrapper()
|
inlinevirtual |
This methods wraps the calls to Apply() and catches fail exceptions.
It currently catches all application exceptions.
Reimplemented from Decision.
Definition at line 68 of file NetDecisionBuilder.cs.
◆ Dispose() [1/2]
|
inlineinherited |
Definition at line 35 of file BaseObject.cs.
◆ Dispose() [2/2]
|
inlineprotectedvirtualinherited |
Reimplemented from BaseObject.
Definition at line 29 of file Decision.cs.
◆ Refute()
|
inlinevirtual |
This is a new method to subclass when defining a .Net decision.
Definition at line 103 of file NetDecisionBuilder.cs.
◆ RefuteWrapper()
|
inlinevirtual |
Reimplemented from Decision.
Definition at line 88 of file NetDecisionBuilder.cs.
◆ SwigDelegateDecision_0()
|
inherited |
◆ SwigDelegateDecision_1()
|
inherited |
◆ SwigDelegateDecision_2()
|
inherited |
◆ SwigDelegateDecision_3()
|
inherited |
◆ ToString()
|
inlinevirtualinherited |
Reimplemented from BaseObject.
Definition at line 54 of file Decision.cs.
Member Data Documentation
◆ swigCMemOwn
|
protectedinherited |
Definition at line 20 of file BaseObject.cs.
The documentation for this class was generated from the following file: