static public bool IsTimeRunningOver(this TemporalEvent item) { if (item.IsTimeOver() && item.IsRunning()) { return(true); } return(false); }
static public bool IsTimeStoppedOver(this TemporalEvent item) { if (item.IsTimeOver() && item.IsStopped()) { return(true); } return(false); }
public AIMachineCondition_SustainedPredicate(Process r, Process s, Operation <bool> p, TemporalEvent t) { resume_process = r; suspend_process = s; predicate = p; temporal_event = t; }
static public bool IsTimeUnder(this TemporalEvent item) { if (item.IsTimeOver() == false) { return(true); } return(false); }
static public bool TriggerStopClear(this TemporalEvent item) { if (item.IsTimeOver()) { item.StopClear(); return(true); } return(false); }
static public void StartOrStopClear(this TemporalEvent item, bool run) { if (run) { item.Start(); } else { item.StopClear(); } }
static public bool TriggerRestart(this TemporalEvent item) { if (item.IsTimeOver()) { item.Restart(); return(true); } return(false); }
static public async Task ForTemporal(TemporalEvent temporal) { await Asy.ForTemporal(temporal); }
static public async Task ForTemporal(TemporalEvent temporal) { await AsyerManager.GetInstance().GetActiveAsyncer().ForTemporal(temporal); }
static public ConductorOrder Order_WaitFor <T>(this ConductedValue <T> item, TemporalEvent temporal_event) { return(new ConductorOrder_WaitFor(temporal_event)); }
public async Task ForTemporal(TemporalEvent temporal) { await ForCondition(() => temporal.IsTimeOver()); }
static public bool Fire(this TemporalEvent item) { item.Start(); return(item.TriggerStopClear()); }
static public void StopClear(this TemporalEvent item) { item.Pause(); item.Reset(); }
static public void Restart(this TemporalEvent item) { item.StopClear(); item.Start(); }
public AIMachineCondition_SustainedPredicate(Operation <bool> p, TemporalEvent t) : this(null, p, t) { }
public AIMachineCondition_TemporalEvent(TemporalEvent t, bool ror) { temporal_event = t; restart_on_resume = ror; }
static public bool Repeat(this TemporalEvent item) { item.Start(); return(item.TriggerRestart()); }
public ConductorOrder_WaitFor(TemporalEvent e) { temporal_event = e; }
public TemporalOperationCache(string i, Operation <T, P1, P2, P3, P4, P5> o, TemporalEvent e) : base(i, p => o(p.item1, p.item2, p.item3, p.item4, p.item5), e) { }