I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
Index » Programming » C/C++ »

simulator reply

geocyt\′s Photo
5 Nov 08, 11:11AM
simulator reply
well Will, strangely i have gotten access to SPSS, and even MATLAB. since it is a school project we are doing in one year ie spread across two semesters. we are in the first semester.

this is how the program works.

as customers come into the bank they prompt the simulator program that they are in the bank. we i am trying to use the time code (as the time they got into the bank ) as their unique code. clock(). then the program uses the timecode to time them as they are in the queue. after every minute every one in the queue has his time updated. when a server is free and the quueue is not empty, the first in the queue moves to the free server to be served. at the servers desk, the program stops the custmer's waiting time and starts the custmer's transaction time. at the end of the transaction the program is prompted and the the transaction time is stopped. this process continues until everyone in te queue is served. at the end of simulation, these values should be fed into a modeller ie SPSS/MATLAB/any other, and modelled in the form of a graph.

the problems i am facing now is how to get the customers to prompt the program when they join the queue. an infra red sensor is not the best because the program would only know that some one joined the queue but who exactly? (customer N). obviosly i would love the customers to help me by taking a printed time code when they arrive but the problem with that is that printing timeCodes for customers might waste their time and also what would they key in their numbers on when the reach the transaction desk to prompt the program (may be code input device). also i do not want to bother the servers behind the desk as they are already have too much ontheir hands to take care off. so something must prompt the program that customer N has reached the transaction desk and is about to be served.

next problem is that how do i create the timer to time the program which time customer N came into the bank, after every second it should update each custmer in queue's waiting time, thread in between each part of the simulation, ie arrivalEvent, QueueingEvent , TransactionEvent, Departure event in the same program as some can happen at the same time and lastly what tools in the programming language to used to delay ie to get the program to last for sTime, update waiting time after each second etc.

well i have started with the classes, customer, queueing , server, event classes and still working on the rest like timer, etc. if you need to see them i just tell me how to send them to you and i will gladly do that. because it is a school project they would want me employ all c++ ethics and concepts. some times even if the project is not achievable how well you went about the achievable part with reasonable excuse on the impossibilities can earn you marks .

if you do have any ideas i would love if you could help.
Currently you need to be logged in to leave a message.