I will be the first to admit that I am really bad at
java and I struggle heavily with it. Our teacher gave us this diagram of how to make our simulation(first my teacher is pretty much useless and impossible to get ahold of).
It has a lot of different classes and all of them reference each other.
For example my Main class creates a CallSystem object, that object creates 3 more objects Arrivals, Conultations, Scheduler. In my Scheduler class there is a variable that keeps track of the time. I need access to the time in the Scheduler object in my Arrivals object. I honestly have no idea how to do this. I tried to pass a reference to the Scheduler object in the constructor of the arrivals class, but I have so many classes referencing each other that doing that for everything would be horrible. There has to be a simple easy way of doing this there usually is.
Thank you