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

Quelle  SC.vdmpp   Sprache: VDM

 
-- ===============================================================================================================
-- SorterController in tray allocation for a sortation system
-- By José Antonio Esparza and Kim Bjerge - spring 2010
-- ===============================================================================================================

class SC
 types

 values
  
 instance variables
  public allocator : TrayAllocator;
 
 operations
 
    -- SystemController constructor
 public SC: SorterEnviroment ==> SC
 SC(e) ==
 (
        allocator := new TrayAllocator(e); 
 );

 
 -- Notified each time sorter-ring has moved one tray step
 public TrayStep: Tray`UID * Tray`State  ==> ()
 TrayStep(uid, state) ==
 (
  IO`print("Card reader tray id " ^ String`NatToStr(uid) ^ "\n");
  allocator.CardReader(uid, state);
 );

 functions

 sync

 --thread

 traces

end SC

92%


¤ Dauer der Verarbeitung: 0.14 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.