Re: Car Creation Test


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

Posted by Charles Hannum Jr on November 21, 2001 at 09:03:27:

In Reply to: Car Creation Test posted by chris on November 21, 2001 at 00:09:02:

The commands "locate" and "parked" both fall outside of the responsibilities of either a truck or dispatcher task and fall under some sort of a master controller type task. Since it's not specified beyond what can't be doing it (e.g. the dispatcher or trucks) the precise details are left up to you.

In my implementation the street itself is a class which is what the truck, locate, and parked queries ask for various information about cars parked or not parked there in a manner appropriate to the simulation (e.g. the truck only asks the address it's currently at but locate searches the entire street).

Similarly, McQuain has suggested on this board that a "car controller" object would be appropriate for the program and that could be queried for a locate command as well.


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 ]