From e28d9ccea407e05a3165266ebf9a3f3b5eae12fa Mon Sep 17 00:00:00 2001 From: halw Date: Mon, 14 Mar 2011 22:22:36 +0000 Subject: [PATCH] Author:halw Date:2011-03-14T16:39:01.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@845 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../scoop-examples/quicksort.wiki | 18 ++++++++++++++++++ .../scoop-examples/senate-bus.wiki | 4 +++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 documentation/current/solutions/concurrent-computing/concurrent-eiffel-scoop/scoop-examples/quicksort.wiki diff --git a/documentation/current/solutions/concurrent-computing/concurrent-eiffel-scoop/scoop-examples/quicksort.wiki b/documentation/current/solutions/concurrent-computing/concurrent-eiffel-scoop/scoop-examples/quicksort.wiki new file mode 100644 index 00000000..f50876f5 --- /dev/null +++ b/documentation/current/solutions/concurrent-computing/concurrent-eiffel-scoop/scoop-examples/quicksort.wiki @@ -0,0 +1,18 @@ +[[Property:title|Quicksort]] +[[Property:weight|-7]] +[[Property:uuid|facf6973-e3c1-0a3f-b9e8-f55d1ca29a11]] +{{UnderConstruction}} + + +{{Beta}} + + +=Description= + + + + +=Highlights= + + + diff --git a/documentation/current/solutions/concurrent-computing/concurrent-eiffel-scoop/scoop-examples/senate-bus.wiki b/documentation/current/solutions/concurrent-computing/concurrent-eiffel-scoop/scoop-examples/senate-bus.wiki index 78bdb9b0..da62c1e5 100644 --- a/documentation/current/solutions/concurrent-computing/concurrent-eiffel-scoop/scoop-examples/senate-bus.wiki +++ b/documentation/current/solutions/concurrent-computing/concurrent-eiffel-scoop/scoop-examples/senate-bus.wiki @@ -21,7 +21,9 @@ features is restricted to the appropriate client classes through the clients par The lifecycle of a passenger is simple: enter the bus stop. This is accomplished by making a [[Concurrent Eiffel with SCOOP#Separate types and separate calls|separate call]] to {STATION}.enter and passing Current (the passenger object itself) as an argument. -The lifecycle of the bus is slightly more complex: enter the bus stop, pick up passengers, leave the bus stop, wait for a short time. The bus repeats this sequence forever. The routines in class BUS for entering the bus stop, picking up passengers, and leaving the bus stop all accept as an argument the separate bus stop object (a_station: separate STATION) and make a [[Concurrent Eiffel with SCOOP#Separate types and separate calls|separate call]] to the corresponding routine in STATION. +The lifecycle of the bus is slightly more complex: enter the bus stop, pick up passengers, leave the bus stop, wait for a short time. The bus repeats this sequence forever. The routines in class BUS for entering the bus stop, picking up passengers, and leaving the bus stop all accept as an argument the separate bus stop object (a_station: separate STATION) and make a [[Concurrent Eiffel with SCOOP#Separate types and separate calls|separate call]] to the corresponding routine in STATION. + +Features of the bus stop (class STATION) manage the queues for waiting and checked-in passengers and whether a bus is at the bus stop. Passengers are added to the waiting queue when they arrive at the station. When the bus leaves the station, any waiting passengers are transferred to the checked-in queue. When the bus arrives at the station, the passengers on the checked-in queue are allowed to board the bus (up to the first 50 passengers, that is), and the boarding passengers are then removed from the checked-in queue.