Robotcode  1.0
MyBlock Class Reference

Behavior of a block in your experiment. Most is inherited from Block. More...

#include <linepush5.h>

Inheritance diagram for MyBlock:
Block

List of all members.

Public Member Functions

 MyBlock ()
virtual TrialgetTrial ()
virtual void start ()
 This is called upon start of the Block.
virtual void giveFeedback ()
 This is called when the Block ends.

Detailed Description

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.


Constructor & Destructor Documentation

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


Member Function Documentation

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.

See also:
Block::init()

Implements Block.

void MyBlock::start ( ) [virtual]

This is called upon start of the Block.

Start Block is always called when a new block is started (once). It resets the Timer and sets all the points to 0

Reimplemented from Block.

void MyBlock::giveFeedback ( ) [virtual]

This is called when the Block ends.

Give Feedback is called in the end of the Block. Here it just loops over the trials and computes the Mean angle that the subject produced. Then it puts the number of points on the screen.

Reimplemented from Block.


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