AsynchronousModel Class Reference

#include <model.h>

Inheritance diagram for AsynchronousModel:

Model

List of all members.

Public Member Functions

 AsynchronousModel (Machine *parent, string model_definition)
 ~AsynchronousModel ()
int getCellSize ()
void loadSource ()
void run (CellSpace *pattern, int which, int iteration=1)
void renderToTexture (CellSpace *pattern, int which, cl_mem tex)
void initialize (CellSpace *pattern, float *data)


Constructor & Destructor Documentation

AsynchronousModel::AsynchronousModel ( Machine parent,
string  model_definition 
)

AsynchronousModel::~AsynchronousModel (  ) 


Member Function Documentation

int AsynchronousModel::getCellSize (  )  [virtual]

Returns:
pocet bajtov ktore zabera reprezentacia zdvojenie jednej bunky.

Implements Model.

void AsynchronousModel::initialize ( CellSpace pattern,
float *  data 
)

inicializuje data

Parameters:
pattern 

void AsynchronousModel::loadSource (  )  [virtual]

v tejto metode by sa mal vytvorit zdrojovy kod kernel a nasledne zavolat this->build() pre jeho skompletovanie

Implements Model.

void AsynchronousModel::renderToTexture ( CellSpace pattern,
int  which,
cl_mem  tex 
) [virtual]

Metoda by mala nastavit parametre kernel pre vykreslenie do buffera.

Parameters:
pattern potom z ktoreho sa ma kreslit
which ktory z dvojice sa ma vykreslit
tex buffer do ktoreho sa bude kreslit

Implements Model.

void AsynchronousModel::run ( CellSpace pattern,
int  which,
int  iteration = 1 
) [virtual]

Tato metoda by mala nastavit parametre pre kernel a následne zavolat parent->run()

Parameters:
pattern ukazovatel na potomka obsahujuci stav modelu
which vypocet bude prebiehat iterativne kedy sa zo stareho stavu vyratava novy. tento parameter urcuje ktory je ktory
iteration kolko krat sa ma spustit kernel. pocas nich musi metoda preklapat which medzi 0 a 1

Implements Model.


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

Generated on Tue May 11 22:08:03 2010 for Cellula by  doxygen 1.5.8