Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        public GTPElement(GTPElement aparent) : this(aparent.Process, aparent)
        {
            if (aparent == null)
            {
                throw new ArgumentNullException(nameof(aparent));
            }

            aparent.Elements.Add(this);
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 4
0
 public GTProcess(GTPSettings asettings)
 {
     Settings    = asettings;
     RootElement = null;
 }