예제 #1
0
        private void UpdateDecisionGraph()
        {
            DecisionGraph dg = this.mState.State.DecisionGraph;

            if (dg != null && this.mDGN != null)
            {
                dg.Remove(this.mDGN);
                if ((DGFlag.EntryPoint & this.mCategory) ==
                    DGFlag.EntryPoint)
                {
                    dg.AddEntryPoint(this.mDGN);
                }
                if ((DGFlag.DecisionMaker & this.mCategory) ==
                    DGFlag.DecisionMaker)
                {
                    dg.AddDecisionMaker(this.mDGN);
                }
            }
        }
예제 #2
0
            private void SetValue(DGFlag value)
            {
                DecisionGraph dg = this.mNode.mState.State.DecisionGraph;

                if (dg != null && this.mNode.mDGN != null)
                {
                    dg.Remove(this.mNode.mDGN);
                    if ((DGFlag.EntryPoint & value) ==
                        DGFlag.EntryPoint)
                    {
                        dg.AddEntryPoint(this.mNode.mDGN);
                    }
                    if ((DGFlag.DecisionMaker & value) ==
                        DGFlag.DecisionMaker)
                    {
                        dg.AddDecisionMaker(this.mNode.mDGN);
                    }
                }
                this.mNode.mCategory = value;
            }