IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy

Detailed Description

MATLAB code generation to create, boot, train and use blocks.

See also
objtool.m, datatool.m, do_blockmenu.m

Definition at line 9 of file gencode.m.

+ Inheritance diagram for gencode:
+ Collaboration diagram for gencode:

Public Member Functions

function set classname (in o, in z)
 
function set dsnames (in o, in z)
 
function set params (in o, in z)
 
function get varname (in o)
 
function start (in o)
 
function m_create (in o)
 Generates code that creates new block. More...
 
function m_boot (in o)
 Generates code that boots the block. More...
 
function m_train (in o)
 Generates code that trains the block. More...
 
function m_use (in o)
 Generate code that uses the block. More...
 
function m_generic (in o, in what)
 
function extract_output (in o)
 
function open_in_browser (in o)
 
function finish (in o)
 

Public Attributes

Property refblock
 
Property classname
 
Property dsnames
 
Property params
 
Property blockname
 
Property flag_leave_block
 

Protected Member Functions

function assert_started (in o)
 
function get_sds (in o)
 Makes a string to represent the input data. More...
 
function add_code (in o, in code)
 Adds code. More...
 
function execute (in o, in flag_finish)
 

Protected Attributes

Property soutname1
 
Property soutname2
 
Property flag_started
 
Property flag_data
 
Property flag_handle
 
Property flag_u
 Whether the "u" object is in the workspace. More...
 
Property code
 generated code More...
 
Property allcode
 Also generated code, but does not get emptied by execute() More...
 
Property varname
 Name of the variable that the block has in the base workspace. More...
 

Member Function Documentation

function gencode::add_code ( in  o,
in  code 
)
protected

Adds code.

function gencode::assert_started ( in  o)
protected
function set gencode::classname ( in  o,
in  z 
)
function set gencode::dsnames ( in  o,
in  z 
)
function gencode::execute ( in  o,
in  flag_finish 
)
protected

Executes accumulated code

Parameters
flag_finishWhether the execution is the last of a series (will add an extra LineFeed if so)
function gencode::extract_output ( in  o)
function gencode::finish ( in  o)
function gencode::get_sds ( in  o)
protected

Makes a string to represent the input data.

function gencode::m_boot ( in  o)

Generates code that boots the block.

function gencode::m_create ( in  o)

Generates code that creates new block.

function gencode::m_generic ( in  o,
in  what 
)

Executes "generic" method from the block. Does not not pass any parameter to the block, i.e., it is assumed that the block can execute the method using its own properties previously assigned.

function gencode::m_train ( in  o)

Generates code that trains the block.

function gencode::m_use ( in  o)

Generate code that uses the block.

function gencode::open_in_browser ( in  o)
function set gencode::params ( in  o,
in  z 
)
function gencode::start ( in  o)
function get gencode::varname ( in  o)

Member Data Documentation

Property gencode::allcode
protected

Also generated code, but does not get emptied by execute()

Definition at line 47 of file gencode.m.

Property gencode::blockname

Definition at line 22 of file gencode.m.

Property gencode::classname

Definition at line 16 of file gencode.m.

Property gencode::code
protected

generated code

Definition at line 44 of file gencode.m.

Property gencode::dsnames

Definition at line 18 of file gencode.m.

Property gencode::flag_data
protected

Definition at line 35 of file gencode.m.

Property gencode::flag_handle
protected

Definition at line 37 of file gencode.m.

Property gencode::flag_leave_block

Definition at line 24 of file gencode.m.

Property gencode::flag_started
protected

Definition at line 33 of file gencode.m.

Property gencode::flag_u
protected

Whether the "u" object is in the workspace.

Definition at line 41 of file gencode.m.

Property gencode::params

Definition at line 20 of file gencode.m.

Property gencode::refblock

Definition at line 14 of file gencode.m.

Property gencode::soutname1
protected

Definition at line 29 of file gencode.m.

Property gencode::soutname2
protected

Definition at line 31 of file gencode.m.

Property gencode::varname
protected

Name of the variable that the block has in the base workspace.

Definition at line 50 of file gencode.m.


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