My object uses many variables and classes to process data. I want to be able to use several instantiations of my object for different tasks at the same time. However, multiple instantiations appear to share memory and variables. For example, my object does not permit data in inlet 3 until it has received input into inlet 1 first. Also, it does not allow inlet1 to be filled if inlet3 has not been correspondingly stimulated. Thus, it requires a specific back-and-forth input order before it can process data. This works fine with one object. But with two objects, this process becomes fuddled as object1 getting input into inlet1 prevents object2 from also getting stuff into inlet1. Keeping track of this is one boolean variable which switches between true and false, and is checked before any processing is permitted. Because all my other variables are declared like this (normally??), I infer they are susceptible to the same problem.
Is there a general reason for this? How can multiple instantiations of an object keep to themselves?