DotNet Reference

DotNet Reference

NetDecision

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()

virtual void Accept ( DecisionVisitor  visitor)
inlinevirtualinherited

Definition at line 59 of file Decision.cs.

◆ Apply()

virtual void Apply ( Solver  solver)
inlinevirtual

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

Definition at line 83 of file NetDecisionBuilder.cs.

◆ ApplyWrapper()

override void ApplyWrapper ( Solver  solver)
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]

void Dispose ( )
inlineinherited

Definition at line 35 of file BaseObject.cs.

◆ Dispose() [2/2]

override void Dispose ( bool  disposing)
inlineprotectedvirtualinherited

Reimplemented from BaseObject.

Definition at line 29 of file Decision.cs.

◆ Refute()

virtual void Refute ( Solver  solver)
inlinevirtual

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

Definition at line 103 of file NetDecisionBuilder.cs.

◆ RefuteWrapper()

override void RefuteWrapper ( Solver  solver)
inlinevirtual

Reimplemented from Decision.

Definition at line 88 of file NetDecisionBuilder.cs.

◆ SwigDelegateDecision_0()

delegate string SwigDelegateDecision_0 ( )
inherited

◆ SwigDelegateDecision_1()

delegate void SwigDelegateDecision_1 ( global::System.IntPtr  s)
inherited

◆ SwigDelegateDecision_2()

delegate void SwigDelegateDecision_2 ( global::System.IntPtr  s)
inherited

◆ SwigDelegateDecision_3()

delegate void SwigDelegateDecision_3 ( global::System.IntPtr  visitor)
inherited

◆ ToString()

override string ToString ( )
inlinevirtualinherited

Reimplemented from BaseObject.

Definition at line 54 of file Decision.cs.

Member Data Documentation

◆ swigCMemOwn

bool swigCMemOwn
protectedinherited

Definition at line 20 of file BaseObject.cs.


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