private StateSpecification GetStateSpecification(TStateType state) { StateSpecification result; if (!_stateSpecification.TryGetValue(state, out result)) { result = new StateSpecification(state); _stateSpecification.Add(state, result); } return(result); }
internal StateSpecifier(StateSpecification specification, Func <TStateType, StateSpecification> lookup) { _specification = specification; _specificationLookup = lookup; }
public void AddSubstate(StateSpecification substate) { _substates.Add(substate); }