dispatchers knowledge when placing trucks in array


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

Posted by Jason on December 02, 2001 at 21:12:36:

Is it alright for the dispatcher to know what kind of can the dispatcher know what type tow truck it is placing into the array of trucks?

For example in the dispatcher class I have 3 fuctions
add_truckToList(hauler a_hauler);
add_truckToList(mover a_mover);
add_truckToList(wrecker a_wrecker);

And in these functions I place the the tow truck into my list of type towtruck. Is the dispatcher not allowed to know hauler, mover, and wrecker types exist?



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 ]