Re: Communication: Cars - Trucks


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by William D McQuain on November 14, 2001 at 13:45:28:

In Reply to: Communication: Cars - Trucks posted by Brian on November 14, 2001 at 11:18:58:

: So, the Dispatcher holds a list of tow truck pointers. The dispatcher receives calls and stores those calls in a queue for the tow trucks. When the tow truck receives an order to tow a car, and it reaches where the car is *supposed* to be, how can the tow truck check whether a car is there or not? Since the tow truck list in a member of the dispatcher class, and the dispatcher class cant receive cars, how is the link made between the cars and trucks so the trucks can check locations for cars?

Good question... sounds as if there's an implied need for some sort of "manager" object here.



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]