1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Validator factory — dispatches validation to the correct validator.
//!
//! Provides a factory function that selects the appropriate validator based
//! on the engine type and configuration. Currently delegates to the generic
//! validator for all standard GA configurations.
//!
//! # Key items
//!
//! | Item | Description |
//! |------|-------------|
//! | [`validate`] | Factory function that dispatches to the correct validator |
//!
//! [`validate`]: crate::validators::validator_factory::validate
use crateGaConfiguration;
use crateGaError;
use cratePopulation;
use crateChromosomeT;
use crategeneric_validator as GenericValidator;
use Debug;
/// Validate a GA configuration by dispatching to the appropriate validator.
///
/// Factory function that selects the correct validator based on engine type.
/// Currently delegates to the generic validator for all standard configurations.
///
/// # Arguments
/// * `configuration` — Optional GA configuration to validate
/// * `population` — Optional population to validate
/// * `alleles` — Optional allele definitions for validation