Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/VDM/VDMRT/CyberRailRT/   (Vienna Development Method ©)  Datei vom 13.4.2020 mit Größe 888 B image not shown  

Quelle  Company.vdmrt

  Sprache: VDM
 


\section{Company}

\begin{vdm_al}
class Company is subclass of Environment

instance variables

  private cyberrail : CyberRail;

operations

  public Company : seq of char ==> Company
  Company(fname) ==
   self.Environment(fname);

  public composeTransportGrid : () ==> ()
  composeTransportGrid() ==
    is not yet specified;

 public isFinished : () ==> ()
  isFinished () == skip;

  public stimulate : () ==> ()
  stimulate() ==
  (
  if len inlines > 0
  then (dcl done : bool := false
    (
    while not done do(
     def mk_(nav,tid,route_id,t) = hd inlines in
      if t <= time
      then ( cyberrail.setInactiveRoute(route_id);
        inlines := tl inlines
        )
      else
       done :=  true;
     )
    );
   )
   else
    busy := false;
  )

thread
 while true do
 (
  if busy
  then stimulate();
 )

sync

per isFinished => not busy;
end Company

\end{vdm_al}

Messung V0.5 in Prozent
C=100 H=81 G=90

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-06-06) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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 und die Messung sind noch experimentell.