public InternalState(State state)
{
this.state = state;
this.DisplayName = state.DisplayName;
this.onEntryComplete = new CompletionCallback(this.OnEntryComplete);
this.onTriggerComplete = new CompletionCallback(this.OnTriggerComplete);
this.onConditionComplete = new CompletionCallback<bool>(this.OnConditionComplete);
this.onExitComplete = new CompletionCallback(this.OnExitComplete);
this.evaluateConditionCallback = new BookmarkCallback(this.StartEvaluateCondition);
this.currentRunningTriggers = new Variable<int>();
this.isExiting = new Variable<bool>();
this.evaluateConditionBookmark = new Variable<Bookmark>();
this.internalTransitions = new Collection<InternalTransition>();
this.triggerInternalTransitionMapping = new Dictionary<Activity, InternalTransition>();
}