コード例 #1
0
        private StateSpecification GetStateSpecification(TStateType state)
        {
            StateSpecification result;

            if (!_stateSpecification.TryGetValue(state, out result))
            {
                result = new StateSpecification(state);
                _stateSpecification.Add(state, result);
            }

            return(result);
        }
コード例 #2
0
 internal StateSpecifier(StateSpecification specification, Func <TStateType, StateSpecification> lookup)
 {
     _specification       = specification;
     _specificationLookup = lookup;
 }
コード例 #3
0
 public void AddSubstate(StateSpecification substate)
 {
     _substates.Add(substate);
 }