|
Robotcode
1.0
|
Abstract Root class that specifies a lot of the default behaviors of an experiment. More...
#include <Experiment.h>
Public Member Functions | |
| Experiment (string name, string code) | |
| Constructor. | |
| virtual | ~Experiment () |
| Destructor. | |
| virtual void | control (void)=0 |
| handle Windows events | |
| void | redirectIOToConsole () |
| Create IO console. | |
| virtual bool | parseCommand (string arguments[], int numArgs) |
| Extra function for new textDisplay commands. | |
| virtual void | onExit (void) |
| On exit callback. | |
| string | getCode () |
| returns experiment code | |
Public Attributes | |
| string | subjectName |
| Name of current Subject s. | |
| Block * | theBlock |
| Pointer to current block object. | |
| Trial * | theTrial |
| Pointer to current block trial. | |
Protected Attributes | |
| string | code |
| Code. | |
| string | title |
| Name. | |
Friends | |
| class | Block |
Abstract Root class that specifies a lot of the default behaviors of an experiment.
Experiment: Abstract class that implements basic experiment needs Your experiment can inherit most of these behaviors
| Experiment::Experiment | ( | string | tit, |
| string | c | ||
| ) |
Constructor.
Experiment ** Contains implemention for experiment
| Experiment::~Experiment | ( | ) | [virtual] |
Destructor.
The destructor deletes the Block and all the trials in the experiment
| void Experiment::redirectIOToConsole | ( | ) |
Create IO console.
Makes the IO console for cout<< and cerr<< output