AERA
Classes | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
r_exec::_GMonitor Class Reference
Inheritance diagram for r_exec::_GMonitor:
r_exec::Monitor core::_Object r_exec::GMonitor r_exec::SGMonitor r_exec::RMonitor r_exec::SRMonitor

Classes

class  SimOutcomes
 

Public Member Functions

virtual bool signal (Pred *)
 
- Public Member Functions inherited from r_exec::Monitor
bool is_alive () const
 
virtual bool reduce (_Fact *input)=0
 
- Public Member Functions inherited from core::_Object
void incRef ()
 
virtual void decRef ()
 

Protected Types

typedef std::list< std::pair< P< _Fact >, P< Sim > > > SolutionList
 

Protected Member Functions

void store_simulated_outcome (_Fact *f_pred_f_success, Sim *sim)
 
void invalidate_sim_outcomes ()
 
 _GMonitor (PMDLController *controller, BindingMap *bindings, Timestamp deadline, Timestamp sim_thz_timestamp, Fact *goal, Fact *f_imdl)
 
- Protected Member Functions inherited from r_exec::Monitor
 Monitor (MDLController *controller, BindingMap *bindings, Fact *target, r_code::Code *mk_rdx)
 

Static Protected Member Functions

static Goalget_solution_goal (_Fact *f_pred_f_success)
 

Protected Attributes

Timestamp deadline_
 
Timestamp sim_thz_timestamp_
 
_Factgoal_target_
 
P< Factf_imdl_
 
SimMode sim_mode_
 
uint32 volatile simulating_
 
SimOutcomes sim_successes_
 
SimOutcomes sim_failures_
 
- Protected Attributes inherited from r_exec::Monitor
P< BindingMapbindings_
 
P< Facttarget_
 
P< r_code::Codemk_rdx_
 
MDLControllercontroller_
 
- Protected Attributes inherited from core::_Object
std::atomic_int32_t refCount_
 

Detailed Description

Definition at line 96 of file g_monitor.h.

Member Function Documentation

◆ signal()

virtual bool r_exec::_GMonitor::signal ( Pred )
inlinevirtual

If prediction->is_simulation(), then this is for a simulation.

Reimplemented in r_exec::SRMonitor, and r_exec::RMonitor.

Definition at line 155 of file g_monitor.h.

◆ store_simulated_outcome()

void r_exec::_GMonitor::store_simulated_outcome ( _Fact f_pred_f_success,
Sim sim 
)
protected

Store the outcome of any goal affected by the simulation of the monitored goal. If (fact (pred (fact ...))) then store in sim_successes_. Otherwise if (fact (pred (|fact ...))) then store in sim_failures_.

Parameters
f_pred_f_successThe (fact (pred (fact (success...)))) or (fact (pred (|fact (success...)))) where the success's object is the affected (fact (goal ...)).
simThe Sim object (for the relevant controller) from the prediction.

Definition at line 113 of file g_monitor.cpp.


The documentation for this class was generated from the following files: