class Gambit::ModelValidationHandler

[No description available] More…

#include <model_validation.hpp>

Public Functions

Name
ModelValidationHandler &getInstance()
Get the singleton instance of the handler.
voidsetModelValidationHandling(const ModelValidationHandling & h)
Set the handling strategy for model validation (pass, warning, or error)
const ModelValidationHandling &getModelValidationHandling() const
Get the current handling strategy for model validation.
voidactivate()
Activate the model validation handler.
voiddeactivate()
Deactivate the model validation handler.
voidregisterModelValidator(const std::string & model_name, modelValidator f)
Register a model validation function for a specific model.
boolhasModelValidator(const std::string & model_name) const
Check if a model validation function has been registered for a specific model.
boolvalidateModel(const ModelParameters & model_parameters) const
Validate the parameters of a model.
voidrunModelValidation(const ModelParameters & model_parameters) const
Run model validation.
ModelValidationHandler &operator=(const ModelValidationHandler & ) =delete
ModelValidationHandler &operator=(ModelValidationHandler && ) =delete
ModelValidationHandler(const ModelValidationHandler & ) =delete
ModelValidationHandler(ModelValidationHandler && ) =delete

Detailed Description

class Gambit::ModelValidationHandler;

Class for handling model validation logic. This is implemented as a singleton to ensure globally consistent model validation handling.

Public Functions Documentation

function getInstance

static ModelValidationHandler & getInstance()

Get the singleton instance of the handler.

function setModelValidationHandling

void setModelValidationHandling(
    const ModelValidationHandling & h
)

Set the handling strategy for model validation (pass, warning, or error)

function getModelValidationHandling

const ModelValidationHandling & getModelValidationHandling() const

Get the current handling strategy for model validation.

function activate

void activate()

Activate the model validation handler.

function deactivate

void deactivate()

Deactivate the model validation handler.

function registerModelValidator

void registerModelValidator(
    const std::string & model_name,
    modelValidator f
)

Register a model validation function for a specific model.

function hasModelValidator

bool hasModelValidator(
    const std::string & model_name
) const

Check if a model validation function has been registered for a specific model.

function validateModel

bool validateModel(
    const ModelParameters & model_parameters
) const

Validate the parameters of a model.

function runModelValidation

void runModelValidation(
    const ModelParameters & model_parameters
) const

Run model validation.

function operator=

ModelValidationHandler & operator=(
    const ModelValidationHandler & 
) =delete

function operator=

ModelValidationHandler & operator=(
    ModelValidationHandler && 
) =delete

function ModelValidationHandler

ModelValidationHandler(
    const ModelValidationHandler & 
) =delete

function ModelValidationHandler

ModelValidationHandler(
    ModelValidationHandler && 
) =delete

Updated on 2026-11-03 at 14:50:42 +0000