EventControl

Controls for functions related to events that occur while performing the solver functions

OnBeginSolve

public override void OnBeginSolve()

Definition

A function called when the solver starts running.

Example (Default Logic)

public override void OnBeginSolve()
{

}

OnDataLoad

public override void OnDataLoad()

Definition

A function called immediately after data is loaded through GetData in DataControl.

Example (Default Logic)

public override void OnDataLoad() 
{

}

OnVisitState

public override void OnVisitState(State state)

Definition

A function that is called when the State is visited.

Parameter

TypeDescription

State

The currently visited state.

Example (Default Logic)

public override void OnVisitState(State state)
{
  
}

OnVisitToState

public override void OnVisitToState(State fromState, State toState)

Definition

A function that is called when the state is transitioned through a defined action and visits the state of the next stage for the first time.

Parameters

TypeDescription

State

The state before performing the action.

State

The state of the next stage visited after being transitioned through the action.

Example (Default Logic)

public override void OnVisitToState(State fromState, State toState)
{

}

OnStageChanged

public override void OnStageChanged(Stage stage)

Definition

A function that is called when the stage is changed.

Parameter

TypeDescription

Stage

The changed stage.

Example (Default Logic)

public virtual void OnStageChanged(Stage stage) 
{
    
}

OnDoneSolve

public override void OnDoneSolve()

Definition

A function called when the solver finishes running.

Example (Default Logic)

public override void OnDoneSolve()
{

}

Last updated