jeudi 19 mars 2015

Who to properly incorpporate multiple models in this scenaro?


I am writing code for financial a model in Excel so this will sound bit abstract. The spreadsheet specifically will be used for scenario analysis, since I expect both buisness logic, and interface to change I chose to follow MVC pattern.


I have one scenario object which acts as my controller it instansiates and provides initail 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 appropiate way of passing information from fmodel to bond? Is this something that should be done strictly through the senario (controller) to avoid commingling the code too much, or is it safe to have two models interact directly?


Or alternativelly I am using completly wrong pattern, and you could tell me why, or a better one?


I you need more infomation about these objects let me know but I'm trying to keep details out the the question simply to avoid confusion.





Aucun commentaire:

Enregistrer un commentaire