Exemple #1
0
        public GTPResult DoElementTest()
        {
            GTPResult  res;
            GTPElement nextElement = null;

            res = InitAction();

            if (CheckInitActionResult(res))
            {
                while (true)
                {
                    nextElement = GetNext();

                    if (nextElement != null)
                    {
                        nextElement.DoElementTest();
                    }
                    else
                    {
                        break;
                    }
                }

                res = FinalizeAction();
            }

            ElementResult = res;
            return(res);
        }
Exemple #2
0
        public GTPElement(GTPElement aparent) : this(aparent.Process, aparent)
        {
            if (aparent == null)
            {
                throw new ArgumentNullException(nameof(aparent));
            }

            aparent.Elements.Add(this);
        }
Exemple #3
0
 private GTPElement(GTProcess aprocess, GTPElement aparent)
 {
     InitDateTime  = DateTime.Now;
     State         = GTPState.Created;
     Elements      = new GTPElements(this);
     Process       = aprocess;
     Parent        = aparent;
     ElementResult = GTPResult.Success;
 }
Exemple #4
0
 public GTProcess(GTPSettings asettings)
 {
     Settings    = asettings;
     RootElement = null;
 }