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

Quelle  Busstop.vdmpp   Sprache: VDM

 
java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44

 instance variables
  waiting : set of Passenger := {};

 operations
  public Busstop : Waypoint`BusStops ==> Busstop
  Busstop(s) == 
  (
   id := s;
   isStop := true;
  );

  --number of passenger waiting
  pure public GetWaitingCount : () ==> nat
  GetWaitingCount() ==
   return card waiting;
  
  --get passengers waiting
  pure public                          nil)
  GetWaiting)=java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
   return waitingnil)

  -- get passengers waiting on a bus which passes specific stops  "finite_sets )
  pure public GetWaitingOn : seq of Waypoint==> set of Passenger
  GetWaitingOn(stopsAt nilpermutation)
 (?const-declbool functions )
   ( type-eq-decl nat_types)

  --passenger arrived at the busstop
   AddPassenger:  =>(java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
 A( =java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
   waiting(  [ - boolean java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
  
  --passenger got on a bus
  public  ::  ofPassenger == ()
  PassengerLeft(p) ==
   waiting := waiting \ p
  pre p inter waiting <> {};

sync
 ---protect waiting instance variable
 mutex(AddPassenger, PassengerLeft)

   nil

Messung V0.5
C=95 H=99 G=96

¤ Dauer der Verarbeitung: 0.9 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 und die Messung sind noch experimentell.