[pdp-discuss] finding cur_event
Randall C. O'Reilly
Randy.OReilly at colorado.edu
Thu Oct 19 19:00:55 MDT 2006
At some point a GetMyCurEvent function was added to all Sched procs. It uses
GetMyProcOfType(&TA_EpochProcess) which navigates the super & sub procs until
it finds one of that type. There is also GetMySub/SuperProcOfType versions.
This may only be in 3.2a.. do "type SchedProcess" in css to see all the
options. The above may not be correct names..
- Randy
On Thursday 19 October 2006 14:17, Richard Jones wrote:
> Hi all,
>
> In building my own TrialProcess object I had a bit of trouble figuring
> out how to get my cur_event. It was not, as I initially assumed,
> magically handed to me by my super_proc. I've gotten around this for
> the time being by putting
>
> EpochProcess* parent = (EpochProcess*)super_proc;
> cur_event = parent->cur_event;
>
> in my trial's Loop(). However, it seems kind of cheesy and it's not
> something that the other trials (LeabraTrial, BPTrial, etc.) seem to
> have to do. Also, it precludes me from plopping a SequenceProcess
> above my trial. What is the preferred way of communicating the
> cur_event down the process hierarchy?
More information about the PDP-Discuss
mailing list