/// <summary> /// Add an action to a condition /// </summary> /// <param name="condition"></param> /// <param name="sensorToAdd"></param> public void AddAction(ICondition condition, IAction sensorToAdd) { sensorToAdd.Identity = GetNextActionNum(); condition.AddChild(sensorToAdd); }