next up previous contents
Next: 3.2.4 Methods Up: 3.2 MDL Classes Previous: 3.2.2 Local Parameters


3.2.3 Static Parameters

The list of static parameters is defined by using the following syntax:

Static {
   protection Parameter<type> name initial_value;
}

The qualifier for static parameters is the class name followed by ``::''

\includegraphics[width=0.6cm]{figures/exaLeft.eps}

NewModel StaticTest {
   Static {
     protected Parameter<double> x;
   }
   evaluate { StaticTest::x = 1.0; }
}

Example 3.11: Static MDL class parameters



Robert Mlekus
1999-11-14