The NSL code for this model is available in the directory NSL/nsl3_0/MaxSelectorModel/1_1_1/src under csci564 account (You can access to this directory with cd ~csci564/NSL/nsl3_0/MaxSelectorModel/1_1_1/src when you are logged on a scf machine like aludra).
Before doing the homework, simply try to run the model, and print
out the resultant graphs to make sure you understand the basic mechanics
of logging in, retrieving files, running files, and printing output. DO
THIS AS SOON AS POSSIBLE. If you have any problems, consult the TA. If
you leave this to the last moment, you will not be able to complete the homework
in time. Mastery of your simulation environment is one of your top priority
for course.
You are encouraged to experiment with the model on your own, to see how varying the parameters affects the model's performance. Some things to vary are:
NSL SETUP FOR HOMEWORKS
To be done only once:
login to one of scf machines, say aludra (like telnet aludra)
login:trojan
passwd:mytrojanpassword
create a directory called nsl. You are going to keep your models in this
directory.
mkdir nsl
copy the file ~csci564/NSL/resume under nsl.
cp ~csci564/NSL/resume nsl
To be done only starting a new model for the
first time:
Under nsl directory make a directory for the model and copy the model
source (if provided)in this model directory
login to your scf account
cd nsl
mkdir maxselector
cp ~csci564/NSL/nsl3_0/MaxSelectorModel/1_1_1/src/* maxselector (assuming
we are provided with MaxSelector)
To be done each work session, before starting to
work with NSL
login to your scf account
cd nsl
source resume
cd maxselector , assuming you are going to work on
this model
to run the model:
nsl MaxSelectorModel
to compile the model:
nslc MaxSelectorModel