next up previous
Next: Specifying cell locations
Up: MM company example
Previous: Adding attributes via inheritance

Building the worksheet

So far, all we have is a definition of some objects. Now we tell MM which ones it has to model:

model model1 {
  models ( parkinsons )
}

The model clause tells the compiler to translate the equations in parkinsons into cell formulae, and load them into a worksheet named model1. The compiler will allocate attributes to columns and time to rows, and will, by default, decide which columns to use for which attributes.

We can specify a lifetime over which to run the system (by default, this is 0 to 10):

model model1 {
  models ( parkinsons )
  lifetime 0 to 15
}



Jocelyn Ireson-Paine
Sat Nov 28 17:42:14 GMT 1998