Hello this question definite falls under Advanced.
I've created the code to to the following. Its actually 3 classes of code. Any help would be appreciated.
here what it does and hereare the problems am having with it. Thanks again for reading:
Explanation of code
This code is for Discrete Event Simulation Techniques.
The code written creates a number of classes. Mainly it has the classes MS1 , MS2 and BTS1 and BTS2,
MS1 sends signals to BTS1 and MS2 sends signals to BTS2.
MS1and BTS1 has no connection to MS2 and MTS2.
How does signals go from MS1 to BTS1? It sends the signals to the class Signals. Signals then sends the signals o the class Queue which is like a cable or line in real life. Hence a cable called queueMStoBTS which is an object of class Queue connects MS1 and BTS1.
Now the for MS2 and BTS2 the same thing happens. Except the class Signals is replaced by SignalsMS2 and Queue is replaced by class QueueMS2 and its object is queueMS2toBTS2.
Now the only connection between MS1/BTS1 and MS2/BTS2 is that when the simulation is being performed signals running from MS1 to BTS1 and from MS2 toBTS2 occurs in parallel ( at the same time).
Now the Simulation is performed for 610 time units. And every 10 time units a sample of the amount of bytes ( signals are measured in bytes ) flowing through each queue is measured and that value is put into an array which stores the value. This is done for both MS1/BTS1 and MS2.BTS2.
In the end a graph is plotted with bytes at each 10 units time VS time.
Hence am suppose to get 2 graphs at the end. One for MS1/BTS1 and MS2/BTs2.
My problem is that the simulation does not run for the full 610 time units. It stop sometimes at 3 units. And the only time the graphs can be printed is when the time
unit exceeds 600 time units and since the time units never exceeds 600 the graphs are never plotted.
Could you give it a look please. I worked really hard on this one.
Thanks… Avin
And here are the classes..remember its three classes..
[ February 25, 2002: Message edited by: Avin Sinanan ]
[ February 25, 2002: Message edited by: Avin Sinanan ]
[ February 26, 2002: Message edited by: Avin Sinanan ]
[ February 26, 2002: Message edited by: Avin Sinanan ]
[ February 26, 2002: Message edited by: Avin Sinanan ]
[ February 26, 2002: Message edited by: Avin Sinanan ]