Class StandaloneParameters
Class that inherits from Parameters to establish, through delegates, the parameters required to search for a solution to a puzzle.
Implements
Inherited Members
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
Exceptions
| Type | Condition |
|---|---|
| System.NotImplementedException | Thrown if SummaryComputer is set to |
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
Exceptions
| Type | Condition |
|---|---|
| System.NotImplementedException | Thrown if HeuristicComputer is set to |