replicode
Public Member Functions | Public Attributes | List of all members
r_exec::Goal Class Reference

#include <factory.h>

Inheritance diagram for r_exec::Goal:
Inheritance graph
Collaboration diagram for r_exec::Goal:
Collaboration graph

Public Member Functions

 Goal ()
 
 Goal (SysObject *source)
 
 Goal (_Fact *target, Code *actor, double psln_thr)
 
bool invalidate ()
 
bool is_invalidated ()
 
bool ground_invalidated (_Fact *evidence)
 
bool is_requirement () const
 
bool is_self_goal () const
 
bool is_drive () const
 
_Factget_target () const
 
_Factget_super_goal () const
 
Codeget_actor () const
 
double get_strength (uint64_t now) const
 
- Public Member Functions inherited from r_exec::LObject
 LObject (r_code::Mem *mem=NULL)
 
 LObject (r_code::SysObject *source)
 
virtual ~LObject ()
 
- Public Member Functions inherited from r_exec::Object< r_code::LObject, LObject >
virtual ~Object ()
 
r_code::Viewbuild_view (SysView *source)
 
void compute_hash_value ()
 
double get_psln_thr ()
 
void acq_views ()
 
void rel_views ()
 
void acq_markers ()
 
void rel_markers ()
 
void set (uint16_t member_index, double value)
 
void mod (uint16_t member_index, double value)
 
Viewget_view (Code *group, bool lock)
 
void kill ()
 
- Public Member Functions inherited from r_code::LObject
 LObject ()
 
 LObject (SysObject *source)
 
Viewbuild_view (SysView *source)
 
uint64_t get_oid () const
 
void set_oid (uint64_t oid)
 
Atomcode (uint16_t i)
 
Atomcode (uint16_t i) const
 
uint16_t code_size () const
 
void resize_code (uint16_t new_size)
 
void set_reference (uint16_t i, Code *object)
 
Codeget_reference (uint16_t i) const
 
uint16_t references_size () const
 
void clear_references ()
 
void set_references (std::vector< P< Code > > &new_references)
 
void add_reference (Code *object) const
 
- Public Member Functions inherited from r_code::Code
void set_stroage_index (int64_t i)
 
bool is_registered () const
 
int64_t get_storage_index () const
 
virtual bool is_compact () const
 
 Code ()
 
virtual ~Code ()
 
virtual Viewget_view (Code *group, bool lock)
 
void remove_marker (Code *m)
 
void trace () const
 
- Public Member Functions inherited from core::_Object
virtual ~_Object ()
 
void incRef ()
 
virtual void decRef ()
 

Public Attributes

P< Simsim
 
P< _Factground
 
- Public Attributes inherited from r_code::Code
r_code::list< Code * > markers
 
std::unordered_set< View *, View::Hash, View::Equalviews
 

Additional Inherited Members

- Static Public Member Functions inherited from r_exec::LObject
static bool RequiresPacking ()
 
static LObjectPack (Code *object, r_code::Mem *mem)
 
- Static Public Attributes inherited from r_code::Code
static const int64_t null_storage_index = -1
 
static const uint64_t CodeMarkersInitialSize = 8
 
- Protected Member Functions inherited from r_exec::Object< r_code::LObject, LObject >
 Object ()
 
 Object (r_code::Mem *mem)
 
- Protected Member Functions inherited from r_code::Code
void load (SysObject *source)
 
template<class V >
Viewbuild_view (SysView *source)
 
- Protected Member Functions inherited from core::_Object
 _Object ()
 
- Protected Attributes inherited from r_code::LObject
uint64_t _oid
 
r_code::vector< Atom_code
 
r_code::vector< P< Code > > _references
 
- Protected Attributes inherited from r_code::Code
int64_t storage_index
 
- Protected Attributes inherited from core::_Object
std::atomic_int_fast64_t refCount
 

Constructor & Destructor Documentation

r_exec::Goal::Goal ( )
r_exec::Goal::Goal ( SysObject source)
r_exec::Goal::Goal ( _Fact target,
Code actor,
double  psln_thr 
)

Here is the call graph for this function:

Member Function Documentation

Code * r_exec::Goal::get_actor ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

double r_exec::Goal::get_strength ( uint64_t  now) const

Here is the call graph for this function:

Here is the caller graph for this function:

_Fact * r_exec::Goal::get_super_goal ( ) const

Here is the caller graph for this function:

_Fact * r_exec::Goal::get_target ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

bool r_exec::Goal::ground_invalidated ( _Fact evidence)

Here is the caller graph for this function:

bool r_exec::Goal::invalidate ( )
virtual

Reimplemented from r_exec::Object< r_code::LObject, LObject >.

Here is the call graph for this function:

Here is the caller graph for this function:

bool r_exec::Goal::is_drive ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

bool r_exec::Goal::is_invalidated ( )
virtual

Reimplemented from r_exec::Object< r_code::LObject, LObject >.

Here is the call graph for this function:

bool r_exec::Goal::is_requirement ( ) const

Here is the caller graph for this function:

bool r_exec::Goal::is_self_goal ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

P<_Fact> r_exec::Goal::ground
P<Sim> r_exec::Goal::sim

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