itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
Public Member Functions | List of all members
SCI::sci_ejp Class Reference

phase to complex sine converter - wrapper for a SIM::ejp
Core function: SCI::sci_ejp.proc() More...

Inheritance diagram for SCI::sci_ejp:
Inheritance graph
[legend]

Public Member Functions

 sci_ejp ()
 
 ~sci_ejp ()
 
sci_ejpcreate (int sci_type)
 
void destroy ()
 destroy SCI object More...
 
void set (int param, sci_var *p_v)
 
sci_varget (int param)
 
void exec (int command)
 
sci_varproc (sci_var *p_v_ce, sci_var *p_v_x)
 
- Public Member Functions inherited from SCI::sci_base
 sci_base ()
 constructor More...
 
virtual ~sci_base ()
 virtual destructor More...
 
sci_basecreate (int sci_type)
 creates SCI object and returns pointer to it More...
 
virtual sci_vargen (sci_var *p_v_ce)
 generate data using a SCI object More...
 
- Public Member Functions inherited from SIM::ejp
 ejp ()
 
 ~ejp ()
 
void set_output (complexd yout)
 
complexd get_output (void)
 
cvec process (const bvec &ce, const vec &x)
 

Additional Inherited Members

- Public Attributes inherited from SIM::ejp
complexd y0
 

Detailed Description

phase to complex sine converter - wrapper for a SIM::ejp
Core function: SCI::sci_ejp.proc()

Constructor & Destructor Documentation

SCI::sci_ejp::sci_ejp ( )
SCI::sci_ejp::~sci_ejp ( )

Member Function Documentation

sci_ejp* SCI::sci_ejp::create ( int  sci_type)
inline
void SCI::sci_ejp::destroy ( )
inlinevirtual

destroy SCI object

Reimplemented from SCI::sci_base.

void SCI::sci_ejp::exec ( int  command)
virtual

execute command for an instance of complex sine generator
Supported commands:
none

Parameters
[in]command- to be executed

Reimplemented from SCI::sci_base.

sci_var * SCI::sci_ejp::get ( int  param)
virtual

create new sci_var object and assign a its value to parameter of complex sine generator

Supported parameters:
SCI_TYPE,    sci_var [int] 
SCI_OUTPUT, sci_var [complex] initial output value y0 = [cos()+jsin()]
Parameters
[in]param- parameter to get
Returns
- pointer to created sci_var, actual object type depends on input parameter

Reimplemented from SCI::sci_base.

sci_var * SCI::sci_ejp::proc ( sci_var p_v_ce,
sci_var p_v_x 
)
virtual

return output of complex sine generator [y]=[exp(j*2pi*x)] in newly created sci_var [cvec]
for active [ce] ticks, calculate complex sine for normalized phase in [x]

Parameters
[in]p_v_ce- pointer to ce - sci_var [bvec]
[in]p_v_x- pointer to x - sci_var [vec]
Returns
- pointer to y - created sci_var [cvec] = [cos(2pi*x)+jsin(2pi*x)]

Reimplemented from SCI::sci_base.

void SCI::sci_ejp::set ( int  param,
sci_var p_v 
)
virtual

set parameters of a complex sine generator

Supported parameters:
SCI_OUTPUT,  sci_var [complex] initial output value y0 = [cos()+jsin()]
Parameters
[in]param- parameter to set
[in]p_v- pointer to sci_var object with value of the parameter

Reimplemented from SCI::sci_base.


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