\begin{vdm_al} ----------------------------------------------- -- Class: World -- Description: World class in the VDM project -----------------------------------------------
-- -- class definition -- class World
-- -- instance variables -- instancevariables
publicstatic env : [Environment] := nil;
-- -- Types definition section -- types
-- -- Operations definition section -- operations
public World: () ==> World
World() ==
(
Printer`OutAlways("Creating World");
env := new Environment("inputvalues.txt");
Printer`OutAlways("World created: "
^ " Maybe this world is another planet's hell.");
Printer`OutAlways("------------------------------------------\n");
);
public Run: () ==> ()
Run() ==
(
env.run();
env.isFinished(); duration(1000)
env.report();
Printer`OutAlways("End of this world");
);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.