Show / Hide Table of Contents

Class StandaloneParameters

Class that inherits from Parameters to establish, through delegates, the parameters required to search for a solution to a puzzle.

Inheritance
System.Object
Parameters
StandaloneParameters
Implements
IParameters
Inherited Members
Parameters.TraverseAlgorithm
Parameters.HeuristicPriority
Parameters.SetSolutionsAsNotSeen
Namespace: TreeProblemFramework.Solver

Properties

HeuristicComputer

Gets or sets the delegate function that calculates the heuristic of a given environment against the solution.

Declaration
public HeuristicComputer HeuristicComputer { get; set; }
Property Value
Type Description
HeuristicComputer

An instances of the HeuristicComputer delegate.

SummaryComputer

Gets or sets the delegate function that calculates the summary, which should be unique, of a given environment.

Declaration
public SummaryComputer SummaryComputer { get; set; }
Property Value
Type Description
SummaryComputer

An instances of the SummaryComputer delegate.

Methods

ComputeHeuristic(IEnvironment)

Method that calls the delegate in SummaryComputer with the provided arguments.

Declaration
public override double ComputeHeuristic(IEnvironment env)
Parameters
Type Name Description
IEnvironment env

The current IEnvironment to be passed to the delegate in SummaryComputer.

Returns
Type Description
System.Double

The value returned by the delegate in SummaryComputer.

Overrides
Parameters.ComputeHeuristic(IEnvironment)
Exceptions
Type Condition
System.NotImplementedException

Thrown if SummaryComputer is set to null.

ComputeSummary(IEnvironment)

Method that calls the delegate in HeuristicComputer with the provided arguments.

Declaration
public override string ComputeSummary(IEnvironment env)
Parameters
Type Name Description
IEnvironment env

The current IEnvironment to be passed to the delegate in HeuristicComputer.

Returns
Type Description
System.String

The value returned by the delegate in HeuristicComputer.

Overrides
Parameters.ComputeSummary(IEnvironment)
Exceptions
Type Condition
System.NotImplementedException

Thrown if HeuristicComputer is set to null.

Implements

IParameters
Back to top TreeProblemFramework from Ecuador.