DotNet Reference

.Net 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...
 

Member Function Documentation

◆ 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)
inline

This methods wraps the calls to Apply() and catches fail exceptions.

It currently catches all application exceptions.

Definition at line 68 of file NetDecisionBuilder.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)
inline

Definition at line 88 of file NetDecisionBuilder.cs.


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