Specialists, Racks, and Objects, oh my!
I want a specialist to have two (or more hypotheticaly) racks, and each rack is to contain one type of object. I then want to be able to add objects. I have the two racks set up, but I am unclear as to how to specify that I want to add an item of a certain type, or to a certain rack. Ideas appreciated ... -- Bill Anderson Linux Specialist HPSO Thursday, November 02, 2000 Random Quote: Portable: survives system reboot.
At 04:14 PM 11/13/00 -0700, Bill Anderson wrote:
I want a specialist to have two (or more hypotheticaly) racks, and each rack is to contain one type of object. I then want to be able to add objects.
I have the two racks set up, but I am unclear as to how to specify that I want to add an item of a certain type, or to a certain rack.
Ideas appreciated ...
You can either give your specialist methods to create objects of each type, which call the respective Racks' newItem() methods, or give your specialist a single method that determines based on input parameters which class would be better suited. The choice depends on the requirements of your problem domain. In either case, the specialist is also the natural place to put the UI ("add forms") for creating the objects.
Hi Bill, The 'type' of object is set in the Storage tab of the rack. The specialist can decide which rack to use based on circumstances that dicate one type of object or another. -steve
"Bill" == Bill Anderson <anderson@boi.hp.com> writes:
Bill> I want a specialist to have two (or more hypotheticaly) Bill> racks, and each rack is to contain one type of object. I Bill> then want to be able to add objects. Bill> I have the two racks set up, but I am unclear as to how to Bill> specify that I want to add an item of a certain type, or to Bill> a certain rack. Bill> Ideas appreciated ... Bill> -- Bill Anderson Linux Specialist HPSO Thursday, November Bill> 02, 2000 Random Quote: Portable: survives system reboot. Bill> _______________________________________________ Zope-Dev Bill> maillist - Zope-Dev@zope.org Bill> http://lists.zope.org/mailman/listinfo/zope-dev ** No cross Bill> posts or HTML encoding! ** (Related lists - Bill> http://lists.zope.org/mailman/listinfo/zope-announce Bill> http://lists.zope.org/mailman/listinfo/zope )
participants (3)
-
Bill Anderson -
Phillip J. Eby -
Steve Spicklemire