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); }
public GTPElement(GTPElement aparent) : this(aparent.Process, aparent) { if (aparent == null) { throw new ArgumentNullException(nameof(aparent)); } aparent.Elements.Add(this); }
private GTPElement(GTProcess aprocess, GTPElement aparent) { InitDateTime = DateTime.Now; State = GTPState.Created; Elements = new GTPElements(this); Process = aprocess; Parent = aparent; ElementResult = GTPResult.Success; }
public GTProcess(GTPSettings asettings) { Settings = asettings; RootElement = null; }