Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BO Design
Message
From
27/07/2010 17:50:01
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
27/07/2010 09:27:43
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Miscellaneous
Thread ID:
01473986
Message ID:
01474208
Views:
44
>>>
>>>I think what is/was bugging me is that in my VFP framework I would have done this at a level higher than the BO. I use a BOManager that coordinates all the separate BOs and calls the various bits in order to do the calculation.
>>
>>Like a watch, your application is already a container for the parts. In a watch, one cog does not instantiate another cog. In the virtual world of software, that is possible, but slow. In a real watch, both cogs already exist and are linked at all times while the watch exists physically - runtime. Instantiate both and have them communicate. Your CalcPremium method in the PolicyBO just calls the CalcPremium method of the PremiumRateBO and does anything further it needs to do. It is the contract between the two objects.
>
>
>I sure wish in the end I understood which way you were leaning on this topic. Are you suggesting he should not instantiate another business object from the Policy Business object? One option would be to have another object say a PolicyManager object that would instantiate both to coordinate the work and return the results, but it sounded to me like the actual work being returned belong to the Policy business object. I see no reason why it shouldn't just go get any additional info it might need to accommodate that work effort. It shouldn't probably return information other than Policy information however.
>Your thoughts?
>Tim

It was clear in my head anyways. I would have the application or form instantiate both objects - no real need for a manager object unless you want to make a container for these two objects and subclass them all together as a composite.

The Policy object has a method called CalcPremium which calls upon an already existing PremiumRate object. They collaborate as peers, not by one instantiating the other like a mother does her child. That instantiation process takes 9 months! :)

Its OOP, use real objects to visualize the relationships. :)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform