|
_Fact * | inject_production (View *input) |
|
void | update (HLPBindingMap *map, _Fact *input, bool is_axiom) |
|
CSTOverlay * | get_offspring (HLPBindingMap *map, _Fact *input, bool is_axiom, _Fact *bound_pattern=NULL) |
|
Sim * | get_simulation (Controller *root) const |
|
| CSTOverlay (const CSTOverlay *original) |
|
bool | evaluate_guards (uint16 guard_set_iptr_index) |
|
bool | evaluate_fwd_guards () |
|
bool | evaluate (uint16 index) |
|
bool | evaluate_fwd_timings () |
|
bool | scan_bwd_guards () const |
|
bool | scan_location (uint16 index, uint16 parent_guard_index) const |
|
bool | scan_variable (uint16 index, uint16 parent_guard_index) const |
|
void | store_evidence (_Fact *evidence, bool prediction, bool is_simulation) |
|
| HLPOverlay (Controller *c, HLPBindingMap *bindings) |
|
void | load_code () |
|
void | patch_code (uint16 index, r_code::Atom value) |
|
uint16 | get_last_patch_index () |
|
void | unpatch_code (uint16 patch_index) |
|
void | rollback () |
|
void | commit () |
|
r_code::Code * | get_core_object () const |
|
| Overlay (Controller *c, bool load_code=true) |
|
Definition at line 106 of file cst_controller.h.
◆ bind_pattern()
Find the first Fact in axiom_patterns or non_axiom_patterns_ which matches the input, and update the binding map.
- Parameters
-
input | The input _Fact to match against a pattern. |
map | The binding map for calling match_fwd_strict and has the bindings if this returns a pattern. |
predictionSimulation | If not NULL, then ensure that its simulation root matches the root of the simulation in this object's simulations_. Also if this overlay does not yet have non-axiom saved inputs, then use the timings from input to update the timing variables of this CSTOverlay. |
is_axiom | True if the matching pattern came from axiom_patterns_ . |
- Returns
- The matching pattern from axiom_patterns_ or non_axiom_patterns_, or NULL if not found.
Definition at line 448 of file cst_controller.cpp.
◆ get_offspring()
Make a copy of this CSTOverlay, then call update() to update the inputs_ and bindings_.
- Parameters
-
map | The HLPBindingMap to copy to bindings_. This also updates match_deadline_ from map->get_fwd_before() if needed. |
input | The Fact to add to inputs. |
is_axiom | True if input (and bound_pattern) is matched from axiom_patterns_. |
bound_pattern | (optional) The pattern to remove from axiom_patterns_ or non_axiom_patterns_ (according to is_axiom). If omitted or NULL, then don't use it. |
- Returns
- The copy of this CSTOverlay before making changes.
Definition at line 200 of file cst_controller.cpp.
◆ get_simulation()
Sim * r_exec::CSTOverlay::get_simulation |
( |
Controller * |
root | ) |
const |
|
protected |
◆ inject_production()
_Fact * r_exec::CSTOverlay::inject_production |
( |
View * |
input | ) |
|
|
protected |
Use bindings_ to make the f_icst, putting it in a (fact (pred ...)) if needed.
- Parameters
-
input | The input which triggered the production. |
- Returns
- The injected object, or NULL if not injected.
Definition at line 137 of file cst_controller.cpp.
The documentation for this class was generated from the following files: