Click or drag to resize
StaMaStateMachineTemplateCreateStateConfiguration Method (String)
Creates a new StateConfiguration instance from a list of state names.

Namespace: StaMa
Assembly: StaMa (in StaMa.dll) Version: 2.3.1.7
Syntax
public StateConfiguration CreateStateConfiguration(
	string[] stateBaseConfiguration
)

Parameters

stateBaseConfiguration
Type: SystemString
A list of String that reference State instances within this StateMachineTemplate.

Return Value

Type: StateConfiguration
A StateConfiguration instance.
Exceptions
ExceptionCondition
ArgumentNullException The stateBaseConfiguration is null.
InvalidOperationException A StateConfiguration instance cannot be created when the StateMachineTemplate is not complete. The Root property is not initialized to a valid Region instance.
ArgumentOutOfRangeException At least one of the State instances provided through stateBaseConfiguration could not be found.
ArgumentOutOfRangeException The State instances provided through stateBaseConfiguration contain mutually exclusive State instances, e.g. State instances from the same Region instance.
Remarks

The State instances referenced through stateBaseConfiguration must be part of disjoint orthogonal sub-regions.

In absence of orthogonal sub-regions, a StateConfiguration is sufficiently defined through a single state. Passing in the parent states of the single state will not further improve or change the StateConfiguration.

See Also