I am writing code for financial a model in Excel so this will sound a bit abstract. The spreadsheet specifically will be used for scenario analysis, since I expect both business logic, and interface to change I chose to follow MVC pattern.
I have one scenario object which acts as my controller it instantiates and provides initial inputs(from user) to two other objects bond and fmodel my two models. What I need to be able to keep the two models separate but bond happens to use information from fmodel( it is a one way relationship).
What is the appropriate way of passing information from fmodel to bond? Is this something that should be done strictly through the scenario (controller) to avoid commingling the code too much, or is it safe to have two models interact directly?
Or alternatively I am using completely wrong pattern, and you could tell me why, or a better one?
Aucun commentaire:
Enregistrer un commentaire