Shallow history representation
상속: State
예제 #1
0
		public static State GetDeepState(HistoryState historyState, TransitionEvent transitionEvent)
		{
			return transitionEvent.SourceState;
		}
		public State Build(State parent)
		{
			HistoryState state = new HistoryState(parent, historyStrategy);

			return state;
		}
예제 #3
0
		public static State GetShallowState(HistoryState historyState, TransitionEvent transitionEvent)
		{
			State sourceState = transitionEvent.SourceState;
			return historyState.Parent.GetSubstatePath(sourceState);
		}
		protected HistoryStateBuilder(IStateBuilder parent, HistoryState.HistoryFetchStrategy historyStrategy)
		{
			this.id = new HistoryStateId(parent.Id);
			this.historyStrategy = historyStrategy;
		}