|
Robotcode
1.0
|
Behavior of a block in your experiment. Most is inherited from Block. More...
#include <linepush5.h>
Public Member Functions | |
| MyBlock () | |
| virtual Trial * | getTrial () |
| virtual void | start () |
| This is called upon start of the Block. | |
| virtual void | giveFeedback () |
| This is called when the Block ends. | |
Behavior of a block in your experiment. Most is inherited from Block.
Most behaviors of this class are inherited from the abstract class Block A block is a collection of trials. A block is created by typing run at the Text Display. It then reads in a target file and creates as many trial objects as lines in the target file. It then runs these trials and saves the data to disk.
| MyBlock::MyBlock | ( | ) |
The block constructor just sets to block to wait and standby. Block is put into the state START_BLOCK when the experimenter Types run on the screen
| Trial * MyBlock::getTrial | ( | ) | [virtual] |
Get Trial just returns a object of the Type MyTrial. Seems superflouous, but there is no other good way of doing this. This is called when the target file is read.
Implements Block.
| void MyBlock::start | ( | ) | [virtual] |
| void MyBlock::giveFeedback | ( | ) | [virtual] |