replicode
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
r_exec::View Class Reference

#include <view.h>

Inheritance diagram for r_exec::View:
Inheritance graph
Collaboration diagram for r_exec::View:
Collaboration graph

Public Member Functions

 View ()
 
 View (r_code::SysView *source, r_code::Code *object)
 
 View (View *view, Group *group)
 
 View (const View *view, bool new_OID=false)
 
 View (SyncMode sync, uint64_t ijt, double sln, int64_t res, Code *host, Code *origin, Code *object)
 
 View (SyncMode sync, uint64_t ijt, double sln, int64_t res, Code *host, Code *origin, Code *object, double act)
 
 ~View ()
 
void reset ()
 
void set_object (r_code::Code *object)
 
uint64_t get_oid () const
 
virtual bool isNotification () const
 
Groupget_host ()
 
SyncMode get_sync ()
 
float get_res ()
 
float get_sln ()
 
float get_act ()
 
bool get_cov ()
 
float get_vis ()
 
uint32_t & ctrl0 ()
 
uint32_t & ctrl1 ()
 
void mod_res (double value)
 
void set_res (double value)
 
void mod_sln (double value)
 
void set_sln (double value)
 
void mod_act (double value)
 
void set_act (double value)
 
void mod_vis (double value)
 
void set_vis (double value)
 
double update_res ()
 
double update_sln (double low, double high)
 
double update_act (double low, double high)
 
double update_vis ()
 
float update_sln_delta ()
 
float update_act_delta ()
 
void force_res (double value)
 
void mod (uint16_t member_index, double value)
 
void set (uint16_t member_index, double value)
 
void delete_from_object ()
 
void delete_from_group ()
 
- Public Member Functions inherited from r_code::View
 View ()
 
 View (SysView *source, Code *object)
 
Atomcode (uint16_t i)
 
Atom code (uint16_t i) const
 
SyncMode get_sync () const
 
uint64_t get_ijt () const
 
void set_ijt (uint64_t ijt)
 
- Public Member Functions inherited from core::_Object
virtual ~_Object ()
 
void incRef ()
 
virtual void decRef ()
 

Static Public Member Functions

static double MorphValue (double value, double source_thr, double destination_thr)
 
static double MorphChange (double change, double source_thr, double destination_thr)
 

Public Attributes

P< Controllercontroller
 
uint64_t periods_at_low_sln
 
uint64_t periods_at_high_sln
 
uint64_t periods_at_low_act
 
uint64_t periods_at_high_act
 
- Public Attributes inherited from r_code::View
Codereferences [2]
 
P< Codeobject
 

Static Public Attributes

static uint16_t ViewOpcode
 

Protected Member Functions

void reset_init_sln ()
 
void reset_init_act ()
 
- Protected Member Functions inherited from core::_Object
 _Object ()
 

Private Member Functions

void reset_ctrl_values ()
 
void init (SyncMode sync, uint64_t ijt, double sln, int64_t res, r_code::Code *host, r_code::Code *origin, r_code::Code *object)
 

Static Private Member Functions

static uint64_t GetOID ()
 

Private Attributes

uint64_t sln_changes
 
float acc_sln
 
uint64_t act_changes
 
float acc_act
 
uint64_t vis_changes
 
float acc_vis
 
uint64_t res_changes
 
float acc_res
 
double initial_sln
 
double initial_act
 
std::mutex m_groupMutex
 

Static Private Attributes

static uint64_t LastOID = 0
 

Additional Inherited Members

- Public Types inherited from r_code::View
enum  SyncMode {
  SYNC_ONCE = 0, SYNC_PERIODIC = 1, SYNC_HOLD = 2, SYNC_AXIOM = 3,
  SYNC_ONCE_AXIOM = 4
}
 
- Protected Attributes inherited from r_code::View
Atom _code [VIEW_CODE_MAX_SIZE]
 
- Protected Attributes inherited from core::_Object
std::atomic_int_fast64_t refCount
 

Constructor & Destructor Documentation

r_exec::View::View ( )

Here is the call graph for this function:

r_exec::View::View ( r_code::SysView source,
r_code::Code object 
)

Here is the call graph for this function:

r_exec::View::View ( View view,
Group group 
)

Here is the call graph for this function:

r_exec::View::View ( const View view,
bool  new_OID = false 
)

Here is the call graph for this function:

r_exec::View::View ( SyncMode  sync,
uint64_t  ijt,
double  sln,
int64_t  res,
Code host,
Code origin,
Code object 
)

Here is the call graph for this function:

r_exec::View::View ( SyncMode  sync,
uint64_t  ijt,
double  sln,
int64_t  res,
Code host,
Code origin,
Code object,
double  act 
)

Here is the call graph for this function:

r_exec::View::~View ( )
virtual

Reimplemented from r_code::View.

Member Function Documentation

uint32_t& r_exec::View::ctrl0 ( )
inline
uint32_t& r_exec::View::ctrl1 ( )
inline
void r_exec::View::delete_from_group ( )

Here is the call graph for this function:

void r_exec::View::delete_from_object ( )
void r_exec::View::force_res ( double  value)

Here is the call graph for this function:

Here is the caller graph for this function:

float r_exec::View::get_act ( )

Here is the call graph for this function:

Here is the caller graph for this function:

bool r_exec::View::get_cov ( )

Here is the call graph for this function:

Here is the caller graph for this function:

Group * r_exec::View::get_host ( )

Here is the call graph for this function:

Here is the caller graph for this function:

uint64_t r_exec::View::get_oid ( ) const

Here is the caller graph for this function:

float r_exec::View::get_res ( )

Here is the call graph for this function:

Here is the caller graph for this function:

float r_exec::View::get_sln ( )

Here is the call graph for this function:

Here is the caller graph for this function:

View::SyncMode r_exec::View::get_sync ( )

Here is the call graph for this function:

Here is the caller graph for this function:

float r_exec::View::get_vis ( )

Here is the call graph for this function:

Here is the caller graph for this function:

uint64_t r_exec::View::GetOID ( )
staticprivate

Here is the caller graph for this function:

void r_exec::View::init ( SyncMode  sync,
uint64_t  ijt,
double  sln,
int64_t  res,
r_code::Code host,
r_code::Code origin,
r_code::Code object 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

bool r_exec::View::isNotification ( ) const
virtual

Reimplemented in r_exec::NotificationView.

Here is the caller graph for this function:

void r_exec::View::mod ( uint16_t  member_index,
double  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void r_exec::View::mod_act ( double  value)

Here is the caller graph for this function:

void r_exec::View::mod_res ( double  value)

Here is the call graph for this function:

Here is the caller graph for this function:

void r_exec::View::mod_sln ( double  value)

Here is the caller graph for this function:

void r_exec::View::mod_vis ( double  value)

Here is the caller graph for this function:

double r_exec::View::MorphChange ( double  change,
double  source_thr,
double  destination_thr 
)
static

Here is the caller graph for this function:

double r_exec::View::MorphValue ( double  value,
double  source_thr,
double  destination_thr 
)
static

Here is the caller graph for this function:

void r_exec::View::reset ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void r_exec::View::reset_ctrl_values ( )
private

Here is the caller graph for this function:

void r_exec::View::reset_init_act ( )
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void r_exec::View::reset_init_sln ( )
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void r_exec::View::set ( uint16_t  member_index,
double  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void r_exec::View::set_act ( double  value)

Here is the call graph for this function:

Here is the caller graph for this function:

void r_exec::View::set_object ( r_code::Code object)

Here is the call graph for this function:

Here is the caller graph for this function:

void r_exec::View::set_res ( double  value)

Here is the call graph for this function:

Here is the caller graph for this function:

void r_exec::View::set_sln ( double  value)

Here is the call graph for this function:

Here is the caller graph for this function:

void r_exec::View::set_vis ( double  value)

Here is the call graph for this function:

Here is the caller graph for this function:

double r_exec::View::update_act ( double  low,
double  high 
)

Here is the call graph for this function:

Here is the caller graph for this function:

float r_exec::View::update_act_delta ( )

Here is the call graph for this function:

double r_exec::View::update_res ( )

Here is the call graph for this function:

Here is the caller graph for this function:

double r_exec::View::update_sln ( double  low,
double  high 
)

Here is the call graph for this function:

Here is the caller graph for this function:

float r_exec::View::update_sln_delta ( )

Here is the call graph for this function:

double r_exec::View::update_vis ( )

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

float r_exec::View::acc_act
private
float r_exec::View::acc_res
private
float r_exec::View::acc_sln
private
float r_exec::View::acc_vis
private
uint64_t r_exec::View::act_changes
private
P<Controller> r_exec::View::controller
double r_exec::View::initial_act
private
double r_exec::View::initial_sln
private
uint64_t r_exec::View::LastOID = 0
staticprivate
std::mutex r_exec::View::m_groupMutex
private
uint64_t r_exec::View::periods_at_high_act
uint64_t r_exec::View::periods_at_high_sln
uint64_t r_exec::View::periods_at_low_act
uint64_t r_exec::View::periods_at_low_sln
uint64_t r_exec::View::res_changes
private
uint64_t r_exec::View::sln_changes
private
uint16_t r_exec::View::ViewOpcode
static
uint64_t r_exec::View::vis_changes
private

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