Documentation of the Distributed Mozart Simulator

How to run it

Description with pictures to be added.

Writing functors to run on nodes

To try your own scenarios in the simulator, you write regular Mozart functors and for each node to run. To acces special entities and operations in the simulator, your functors should include proper parts of the BaseEnvironment functor.

Creating Scenarios

If you put functors in a compiled scenario file that exports a name, a list and a description all of the format below, they can be loaded as a custom scenario in the demo simulator.

functor
export
   Name
   NodeFunctorList
   Description
define
   Name=<Short string>
   NodeFunctorList=
   [<NodeFunctorSpec> ...]
   Description=<Describing String>
end
<NodeFunctorSpec>:=
site(id:<atomid or auto> coords:<Y#X or auto> 
     color:<valid oz color or auto> 
     'functor':<Functor variable or filenambe>)

An example is found here. To try using it, compile it and load it as a custom scenario.

Source of the existing scenarios can be found here.

Running the simulator from the OPI

Running the simulator from the OPI is useful for debugging and at development of new protocols. Information on how to do this will be added here.

Extending the simulator with new or alternate protocols

Here it will be explained how to e.g. replace the existing Cell protocol or write an entirely new protocol and incorporate it in the simulator.