static AddToTree.Tree ConvertExtraFactorsTooneFx(AddToTree.Tree Dummy, AddToTree.Tree Factors, ref bool Action, bool Current) { /*AddToTree.Tree HOLDER = Dummy; * if(IS.IsMinuseOrPluse(Dummy.SampleAccess)) * while (Dummy.SampleAccess != "+") * Dummy = Dummy.ThreadAccess; */ //while (!(Factors.ISEmpty())) Dummy = FactorActivation.ConvertExtraFactorsToone(Dummy, Factors, ref Action, Current); //Dummy = Dummy.FINDTreeWithThreadConsideration(Dummy,HOLDER); return(Dummy); }
static AddToTree.Tree ConvertExtraFactorsToone(AddToTree.Tree Dummy, AddToTree.Tree Factors, ref bool Action, bool Current) { if (Dummy == null) { return(Dummy); } if ((EqualToObject.IsEqualWithOutThreadConsiderationCommonly(Dummy, Factors)) && (!Action) && (!Current)) { Action = true; Dummy.SetLefTandRightCommonlySide(null, null); Dummy.SampleAccess = "1"; } Dummy.LeftSideAccess = FactorActivation.ConvertExtraFactorsToone(Dummy.LeftSideAccess, Factors, ref Action, Current); Dummy.RightSideAccess = FactorActivation.ConvertExtraFactorsToone(Dummy.RightSideAccess, Factors, ref Action, Current); return(Dummy); }