Interface IEnvironment
Interface that represents a place containing a set of IEntity objects, wherein the behavior or properties of such objects will be modified or mutated through transformations in order to find a solution to the belonging puzzle. The combination of an environment and said set of IEntity objects represents a puzzle's state at a certain time.
Namespace: TreeProblemFramework.Description
Remarks
It is up to implementation classes define how the set of IEntity objects are shaped or structured in order to accurately represent the puzzle's state. Therefore, the set of IEntity objects is not a mandatory member exposed by this interface and, if required due to a puzzle's logic, might be omitted by implementation classes.
Methods
Lock()
Method whose implementation should prevent the current IEnvironment object and its composition from being modified or changed during the execution of transformations, as the result of such transformations should be reflected in a separate new IEnvironment object in order to maintain consistency of states.
Declaration
void Lock()