next up previous contents
Next: User interface Up: Adding actions to smart Previous: Liblocal

Classroom use

There are some special hierarchy names which provide an easy mechanism for linking a user defined replacement procedure into a temporary smart. They are intended for use in a classroom environment where you don't want to give the students write access to the SMART code, but still want to allow them to write their own procedures and link them into SMART. The idea is for a student (or experimenter) to write a hierarchy procedure (ie triplet) with procedure names init_exp1(), exp1(), and close_exp1(). The student then links that procedure along with the main procedure smart.c and the smart libraries

  cc -o mysmart myexpproc.o ...src/smart/smart.c all_the_smart_libs
Presumably the instructor would furnish this line. Their procedure can then be referred to in their specification files as the hierarchy procedure "exp.1", and used however is desired. Procedure names exp1, exp2, exp3, and exp4 can be defined this way.



Christian Meunier
1999-05-02