next up previous contents index
Next: Hints for linking to Up: RPC service Previous: Attributes   Contents   Index

Rebooking histograms and tests through RPC

When a block of tests or histograms is booked, a registered variable of the name block.class.blockname is created. (E.g., for the test block in section 6.2.2, the variable block.test.hms is created.) The value of this variable is the number of times that the block has been executed and the title is the entire string of characters from the input file between and including the begin and end lines.

In order to change the test definitions for this example test block, the remote application requests the value of block.test.hms.title. The remote application can then put this string in an editor widget where the user can edit the test definitions. The application then writes the new string to the variable block.test.hms.title. On the server, the variable block.test will have been defined with a special write hook. As well as resetting the title attribute of block.test.hms, the special handler will recompile the test code so that on the next event processed, the new tests will be in effect.


next up previous contents index
Next: Hints for linking to Up: RPC service Previous: Attributes   Contents   Index
Mohammad Ahmed 2003-07-23