public override object Clone()
        {
            AB_SingleAction obj = (AB_SingleAction)base.Clone();

            if (_actId != null)
            {
                obj.ActionId = (TaskID)_actId.Clone();
            }
            return(obj);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// set the input variable name to all input variables
 /// </summary>
 /// <param name="name"></param>
 public override void SetInputName(string name, DataTypePointer type)
 {
     if (_actionList != null)
     {
         for (int k = 0; k < _actionList.Count; k++)
         {
             AB_SingleAction.ActionSetInputName(_actionList[k].Action, name, type);
         }
     }
 }
Ejemplo n.º 3
0
 public override void FindItemByType <T>(List <T> results)
 {
     if (_actionList != null)
     {
         for (int k = 0; k < _actionList.Count; k++)
         {
             if (_actionList[k].Action != null)
             {
                 AB_SingleAction.ActionFindItemByType <T>(_actionList[k].Action, results);
             }
         }
     }
 }
Ejemplo n.º 4
0
 public override void FindItemByType <T>(List <T> results)
 {
     if (_decisionTable != null)
     {
         for (int i = 0; i < _decisionTable.ConditionCount; i++)
         {
             _decisionTable[i].Condition.FindItemByType <T>(results);
             if (_decisionTable[i].Actions != null)
             {
                 for (int k = 0; k < _decisionTable[i].Actions.Count; k++)
                 {
                     AB_SingleAction.ActionFindItemByType <T>(_decisionTable[i].Actions[k].Action, results);
                 }
             }
         }
     }
 }
Ejemplo n.º 5
0
 /// <summary>
 /// set the input variable name to all input variables
 /// </summary>
 /// <param name="name"></param>
 public override void SetInputName(string name, DataTypePointer type)
 {
     if (_decisionTable != null)
     {
         for (int i = 0; i < _decisionTable.ConditionCount; i++)
         {
             _decisionTable[i].Condition.SetActionInputName(name, type.BaseClassType);
             if (_decisionTable[i].Actions != null)
             {
                 for (int k = 0; k < _decisionTable[i].Actions.Count; k++)
                 {
                     AB_SingleAction.ActionSetInputName(_decisionTable[i].Actions[k].Action, name, type);
                 }
             }
         }
     }
 }