Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello Friends Could any one help me with doing Elevator simulator using c sharp.Please find attachment for Lift requirements.Thank you


Implement Elevator

1. Lift call. On a user pressing the lift button, either up or down, the software should be capable of routing this request to any live lift (a live lift is one that is not currently being serviced or one that is not inoperable and awaiting repairs)
2. Some algorithm that is able to efficiently determine which lift to service a lift call request. OrbaLift’s standard efficient algorithm approach is to handle the lift call request by the lift that is nearest to the floor where the call originated AND where the lift isn’t at maximum holding capacity (MHC) AND the lift is travelling in the direction that the lift call has been made (i.e., an up lift call has been made, so only live lifts travelling in the up direction should respond). Should no live lifts meet these criteria, then any stationary live lift should respond. You will need to consider how to do this efficiently—minimum travel distance is extremely important in order to reduce wear and tear on mechanical parts as well as unnecessary service calls.
3. Emergency handling. Your system should be able to handle alarm calls—these will be from one of two sources: either a request from someone inside a lift, or a fire alarm call. In the former case you should simply ensure your system writes an appropriate message to the screen stating the floor and lift identifier where the emergency call was made. In the case of the fire alarm you need to ensure your system prints an appropriate message to the screen showing that all lifts have stopped, on which floor they have stopped and they have entered a “lock-down” state where they will not respond to lift call requests.
4. System reset. This feature is designed to enable operators to reset the lift system and all lifts in response to an all-clear following a fire alarm. This should ensure that all locked down lifts enter the live lift status, unless they are currently being serviced or repaired.
5. Each lift should have associated with it the distance it has travelled. You can consider each floor to be 12 feet apart, and for the sake of the prototype have lifts enter a service state every 360 feet travelled.
6. Assumptions: Consider that your system will handle 4 lifts in a building that is 10 floors tall.
Posted
Updated 9-Dec-15 17:24pm
v5
Comments
PIEBALDconsult 9-Dec-15 20:51pm    
We will not do your homework for you.
PIEBALDconsult 9-Dec-15 21:35pm    
Help will always be given at CodeProject to they who deserve it.
Sergey Alexandrovich Kryukov 9-Dec-15 22:06pm    
Please understand: nobody is trying to fight against you, but many would be ready to fight on your side, and that means real help. And real help would be impossible if someone does your work for you. If someone does some work for you, this person would take out your chance to lean something. To get real help, you need to do some effort and ask some real question.

Thank you for understanding.

—SA
Sergey Alexandrovich Kryukov 9-Dec-15 22:29pm    
Very good. Looking forward to you questions.
—SA
Philippe Mori 9-Dec-15 22:21pm    
As already mentionned we don't do homework but answer specific questions. If we would do your homework, then you would not learn much. And usually if your professor ask you something, you should have seen what is required to do the homework.

1 solution

We can't take your requirements and start working on that.

Try to understand that this is a forum, where all members voluntarily help each other. And helping does not mean writing codes from scratch for someone. Rather we help when we see that the other person has done some progress and there is a blocking point in code.

Therefore we need to see your progress and as well as understanding of your own code. Then everyone will analyze the issues in your code and would give you suggestions to make it good. That is the way it works out here.
 
Share this answer
 
Comments
BillWoodruff 10-Dec-15 0:04am    
My vote of #1: you are simply repeating here comments already made to the OP before you posted this. While your comment is more elegantly written, it is not any kind of "solution."
Okay, thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900