Show / Hide Table of Contents

Interface ITransformation

Interface that defines the basic members required to provide with the actions to be executed on any IEntity object, which will mutate said IEntity's properties or behavior in order to search for a solution to a puzzle.

Namespace: TreeProblemFramework.Description.Transformations

Properties

Title

Gets the title of the current transformation.

Declaration
string Title { get; }
Property Value
Type Description
System.String

The transformation title.

Methods

Run(EntityCollection, IEnvironment)

Method whose implementation should contain the actions, inherent to a puzzle's logic, to be executed on any IEntity object in order to mutate its properties or behavior based on a provided IEnvironment object.

Declaration
IEnumerable<TransformationResult> Run(EntityCollection entities, IEnvironment env)
Parameters
Type Name Description
EntityCollection entities

The collection of IEntity objects meant to be mutated or modified.

IEnvironment env

The current IEnvironment object (the current state of the puzzle).

Returns
Type Description
System.Collections.Generic.IEnumerable<TransformationResult>

An enumerator of TransformationResult objects, each of which contains the results of executing the current transformation.

Back to top TreeProblemFramework from Ecuador.