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

Quelle  ReturnCard.vdmpp   Sprache: VDM

 
\section{The ReturnCard Testing Class}

The event ReturnCard corresponds to a client asking for getting the
card out from one of the tills in this system.

\begin{vdm_al}
class ReturnCard is subclass of Event

instance variables

  tillid : System`TillId;

operations

  public Init : System`TillId ==> ReturnCard
  Init(tid) ==
    (tillid := tid;
     return self);

  public execute : System ==> Test`TestResult
  execute(sys) ==
    (let till = sys.GetTill(tillid)
     in
       if till.CardInside()
       then till.ReturnCard()
       else return false;
     return true);

end ReturnCard
\end{vdm_al}

Messung V0.5
C=100 H=95 G=97

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

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