AERA
|
#include <factory.h>
Public Member Functions | |
DefeasiblePromotedFact (_Fact *original_fact, _Fact *promoted_fact, DefeasibleValidity *defeasible_validity) | |
Static Public Member Functions | |
static bool | has_original_fact (const r_code::list< DefeasiblePromotedFact > &list, const _Fact *original_fact) |
Public Attributes | |
P< _Fact > | original_fact_ |
P< _Fact > | promoted_fact_ |
P< DefeasibleValidity > | defeasible_validity_ |
A DefeasiblePromotedFact holds the defeasible fact that was promoted to the next frame in this Sim, plus the DefeasibleValidity which is attached to its prediction and which is invalidated if a actual predicted fact is injected. It also holds the original fact that was promoted, for preventing repeated promotion.
|
inline |
Create a DefeasiblePromotedFact with the given values.
original_fact | The original fact that was promoted, for preventing repeated promotion. |
promoted_fact | The promoted fact which will be checked against actual predicted facts. |
defeasible_validity | The DefeasibleValidity object that is attached to the predicted promoted fact. |
|
static |
Check if the list has a DefeasiblePromotedFact with the given original_fact. Use pointer equality (not a deep match).
list | The list to check. |
original_fact | The original fact to match. |
Definition at line 806 of file factory.cpp.