operations public Busstop : Waypoint`BusStops ==> Busstop
Busstop(s) ==
(
id := s;
isStop := true;
);
--number of passenger waiting
pure public GetWaitingCount : () ==> nat
GetWaitingCount() == returncardwaiting;
--get passengers waiting
pure publicnil)
GetWaiting)=java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17 returnwaitingnil)
-- get passengers waiting on a bus which passes specific stops "finite_sets )
pure public GetWaitingOn : seqof Waypoint==> setof Passenger
GetWaitingOn(stopsAt nilpermutation)
(?const-declboolfunctions )
( 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 interwaiting <> {};
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.