Vita
Public Member Functions | List of all members
vita::core_interpreter Class Referenceabstract

Minimum interface of an interpreter. More...

#include <core_interpreter.h>

Inherits vita::symbol_params.

Inherited by vita::interpreter< i_mep >.

Public Member Functions

bool is_valid () const
 
double penalty ()
 
value_t run ()
 
- Public Member Functions inherited from vita::symbol_params
virtual value_t fetch_arg (unsigned)=0
 Fetches a specific input parameter assuming referential transparency. More...
 
virtual value_t fetch_opaque_arg (unsigned)=0
 Fetches a specific input parameter without assuming referential transparency. More...
 
virtual terminal_param_t fetch_param () const =0
 
virtual value_t fetch_var (unsigned)
 
value_t operator[] (unsigned i)
 Equivalent to fetch_arg(). More...
 

Detailed Description

Minimum interface of an interpreter.

The class "executes" an individual (a program). The program can produce an output or perform some actions.

The class can also check if an individual breaks some constraints assigning a penalty to infeasible individuals.

Definition at line 68 of file core_interpreter.h.

Member Function Documentation

◆ is_valid()

bool vita::core_interpreter::is_valid ( ) const
inline

Definition at line 73 of file core_interpreter.h.

◆ penalty()

double vita::core_interpreter::penalty ( )
inline

Definition at line 72 of file core_interpreter.h.

◆ run()

value_t vita::core_interpreter::run ( )
inline

Definition at line 71 of file core_interpreter.h.


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