Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/VDM/VDMPP/CashDispenserPP/test/     Datei vom 13.4.2020 mit Größe 438 B image not shown  

Quelle  Validate.vdmpp   Sprache: VDM

 

\section{The Validate Testing Class}

\begin{vdm_al}
class Validate is subclass of Event

instance variables

  tillid : System`TillId;
  code : Card`PinCode;

operations
  public Init : System`TillId * Card`PinCode ==> Validate
  Init(tid, pin) ==
    (tillid := tid;
     code := pin;
     return self);

  public execute : System ==> Test`TestResult
  execute(sys) ==
    sys.GetTill(tillid).Validate(code);

end Validate
\end{vdm_al}

Messung
CHZG
909610095

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland