public override void FindActionsByOwnerType <T>(List <IActionMethodPointer> results, List <UInt32> usedBranches, List <UInt32> usedMethods)
        {
            if (usedBranches.Contains(this.BranchId))
            {
                return;
            }
            usedBranches.Add(this.BranchId);
            EventAction ea = AssignedActions;

            if (ea != null)
            {
                foreach (TaskID tid in ea.TaskIDList)
                {
                    HandlerMethodID hmid = tid as HandlerMethodID;
                    if (hmid != null)
                    {
                        if (hmid.HandlerMethod != null)
                        {
                            hmid.HandlerMethod.FindActionsByOwnerType <T>(results, usedMethods);
                        }
                    }
                    else
                    {
                        IAction a = tid.GetPublicAction(this.OwnerMethod.RootPointer);
                        if (a != null)
                        {
                            MethodClass.CollectActionsByOwnerType <T>(a, results, usedMethods);
                        }
                    }
                }
            }
        }
 public override void FindActionsByOwnerType <T>(List <IActionMethodPointer> results, List <UInt32> usedBranches, List <UInt32> usedMethods)
 {
     if (usedBranches.Contains(this.BranchId))
     {
         return;
     }
     usedBranches.Add(this.BranchId);
     if (_actionData != null)
     {
         MethodClass.CollectActionsByOwnerType <T>(_actionData, results, usedMethods);
     }
 }
Example #3
0
 public override void FindActionsByOwnerType <T>(List <IActionMethodPointer> results, List <UInt32> usedBranches, List <UInt32> usedMethods)
 {
     if (usedBranches.Contains(this.BranchId))
     {
         return;
     }
     usedBranches.Add(this.BranchId);
     if (_decisionTable != null)
     {
         for (int i = 0; i < _decisionTable.ConditionCount; i++)
         {
             if (_decisionTable[i].Condition != null)
             {
                 Dictionary <UInt32, IMethodPointerNode> ms = new Dictionary <uint, IMethodPointerNode>();
                 _decisionTable[i].Condition.GetMethodPointers(ms);
                 if (ms.Count > 0)
                 {
                     foreach (KeyValuePair <UInt32, IMethodPointerNode> mp in ms)
                     {
                         if (mp.Value.MethodExecuter is T)
                         {
                             IActionMethodPointer ia = mp.Value.MethodObject as IActionMethodPointer;
                             if (ia != null)
                             {
                                 results.Add(ia);
                             }
                         }
                     }
                 }
             }
             if (_decisionTable[i].Actions != null)
             {
                 for (int k = 0; k < _decisionTable[i].Actions.Count; k++)
                 {
                     if (_decisionTable[i].Actions[k].Action == null)
                     {
                         _decisionTable[i].Actions[k].Action = GetActionInstance(_decisionTable[i].Actions[k].ActionId);
                     }
                     if (_decisionTable[i].Actions[k].Action != null)
                     {
                         MethodClass.CollectActionsByOwnerType <T>(_decisionTable[i].Actions[k].Action, results, usedMethods);
                     }
                 }
             }
         }
     }
 }
Example #4
0
 public override void FindActionsByOwnerType <T>(List <IActionMethodPointer> results, List <UInt32> usedBranches, List <UInt32> usedMethods)
 {
     if (usedBranches.Contains(this.BranchId))
     {
         return;
     }
     usedBranches.Add(this.BranchId);
     if (_actionList != null)
     {
         foreach (ActionItem ai in _actionList)
         {
             if (ai.Action != null)
             {
                 MethodClass.CollectActionsByOwnerType <T>(ai.Action, results, usedMethods);
             }
         }
     }
 }