Set

This commands serves three purposes: it activates an instantiated object; it sets the MTK's output terminal; and, in case the output terminal is set to a file, it can be used to specify this file. In the following paragraphs, we, individually, describe each of these uses.

It was shown in section [*] that, any method, of any object, can be executed by typing, in the command line, <object_name>.<method_name>(<parameters>). However, it seems cumbersome to have to, every time, type the object's name. So MTK allows the user to activate an object. Whenever an object is active, its methods can be called upon by typing only their names; the objects name, in this case, can be omitted. When there is only one object instantiated, it will, evidently, be active at all times. But when there are two or more objects instantiated, the user can activate one or the other by using the set command.

Besides activating objects, set can be used to set MTK's output terminal, to either the screen or a file. If the terminal is set to 'file', then this command can be used, again, to specify the name of the file. This feature allows the user to save the desired outputs of his experiment, in order to study them later, or in a more careful way.

Usage: set $<$attribute$>$ $<$value$>$

where $<$attribute$>$ can be either active, in which case $<$value$>$ should be the name of the object to be activated; terminal, in which case $<$value$>$ should be either file or screen; or output, if terminal is set to 'file', in which case $<$value$>$ should be the name (or path) of the destination file.

Guilherme Dutra Gonzaga Jaime 2010-10-27