I have a couple of generic lists with completely different types of data.
In my generic lists I have created methods to do all the processing that makes sense from that level - that is I have the member function perform a summary and return a value or set of values. One of my reasoning for basing this calculation in the generic list is that it made reading the code in my opinion easier to read and maintain...but that’s subjective I guess.
Anyways I am at a point that some of the data in list_A needs to be shared with the List in List_B and vice-versa and I am stuck as to what would be the proper way to do this. My first consideration was to give List_B the location of List_A and so on.
or...is there something that I have totally missed is there some pattern that I should be using.
Thanks for any direction you can provide.
EDIT: Perhaps a few more words.
concider that List_A is a list of time collections for various equipment, the list would contain values for events during the day like : amount of time producing (ProductionTime) product 'X' or amount of time that equip was down for an unscheduled event like a breakage or the amount of time that fred the operator spent in the washroom and so on.
Now concider that List_B was a container for a history of equipment components that had been repaired. In industry there are standard performance indicators like the mean time between failure(MTBF) and so on.
Anyways the definition for MTBF is ProductionTime / Sum of failures.
so...List_B is tasked with determing MTBF for equip_x and in order to do so it needs some information from List_A.
I have housed the calculation for MTBF as a member function in List_B but it still needs som info from List_A...