I've read some of the forum posts on this but I have an implementation issue that is escaping me.
I have a class that will have n instantiations based on a number of instruments that are connected. I want to create a list of the created objects and subsequently assign, reference and execute code in them.
In .Net, there's a very useful pattern for this in which a local copy of the class is created, the object is copied to the local version and the work is executed in the local version.
Here's VB.Net example illustrating (hopefully) what I'm talking about:
Dim MyLocalOject As MyClass
For Each MyLocalObject in MyGlobalListOfObjects Do
'work on individual element done here'
MyLocalObject.RecordNumber = 1
...
...
Next MyLocalObject 'get the next object in the list'
Ideally, I'd like to mimic this pattern as closely as possible. If that's a problem, what would be an efficient LP equivalent?
I've experimented with a couple different approaches but have hit errors on each. This may be just a matter of correcting those errors but I'd be interested if there's a "usual" LP pattern for this implementation.
Thanks.