Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/VDM/VDMPP/SAFERPP/   (Wiener Entwicklungsmethode ©)  Datei vom 13.4.2020 mit Größe 434 B image not shown  

Quelle  Clock.vdmpp   Sprache: VDM

 
\section{Clock Class}

\begin{vdm_al}
class Clock
 
instance variables
  count : nat := 0;

operations
  public
  SetTime : nat ==> ()
  SetTime(t) ==
    count := t;

  public
  IncrTime : () ==> ()
  IncrTime() ==
    count := count + 1;

  public
  ReadTime : () ==> nat
  ReadTime() ==
    return count;

end Clock
\end{vdm_al}

The test coverage table for the Clock class looks like:

\begin{rtinfo}{vdm.tc}[Clock]
\end{rtinfo}

93%


¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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 ist noch experimentell.