A Genetic Programming Framework for .NET

EnvironmentReference Constructor 

Initializes a new instance of the EnvironmentReference class with a specified path to an Assembly file, name of an IEnvironment, and path to an initialization file.

public EnvironmentReference(
   string assemblyPath,
   string environmentName,
   string initializationFile
);

Parameters

assemblyPath
Path to an Assembly file.
environmentName
Name of an IEnvironment in the specified assemblyPath file.
initializationFile
Path to an initialization file for the specified IEnvironment.

Remarks

This class ensures that the values passed to it are valid strings but does not check for the existence of the associated files, as this may change by the time these values are used.

If no initializationFile is given, the default initialization file returned by DefaultInitializationFile will be used.

Exceptions

Exception TypeCondition
ArgumentNullExceptionThrown when either assemblyPath or environmentName are null.
ArgumentExceptionThrown when either assemblyPath or environmentName are empty.

See Also

EnvironmentReference Class | GeneticProgrammingEngine.Internal Namespace | EnvironmentReference Class | CreateEnvironments Method