Skip to content

Lab-35/Lift-Control-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

124 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to run: run "main.py" from the src folder. this will open a GUI select which scheduling algorithm is wanted, and select the desired mode before pressing OK:

Custom Scenario:
    This will open up a creator where the whole scenario can be configured, with the number of floors, number of lifts and lift capacity being customisable
    also the requests at each floor can be customised with a number for each request meaning the desired floor they want to go to
    each request at the same floor should be seperated with a "," , spaces do not matter
    there is no input sanitisation currently so do not enter any floors that are out of range or invalid because it will cause errors

    Once configured, pressing OK will open up a GUI which will visualise what the lifts are doing.
    When the scenario is complete with nothing left to do, the GUI will close
    Some outputs for results and debugging are available in the terminal

Multi Scenario:
    This will open up a designer where there are many sliders to configure multiple ranges of values
    once all the variables have been configured, when OK is pressed a prompt will open to tell you where to see the output (in the output terminal) 
    it may take a while to run depending on how many scenarios are requested to generate

Preset:
    this will immediately open a GUI visualising what the lift is doing in the preset scenario.
    Terminal outputs are also available for greater detail and insight into the operations
    The preset data is stored in main.py

File Breakdown:

custom_creator      : contains the tkinter GUI for the custom scenario builder
initial             : contains the tkinter GUI for the initial GUI window
multi_creator       : contains the tkinter GUI for the multi scenario designer
look_algorithm      : contains the python class for the look algorithm
mylift_algorithm    : contains the python class for the mylift custom algorithm
scan_algorithm      : contains the python class for the scan algorithm
scenario_generator  : contains the python functions to take the multi_creators parameters and return multiple random scenarios
lift_controller     : contains the python class for generating multiple lift objects then running and handling them 
lift                : contains most of the essential python functions that the lift simulation requires
GUI                 : contains the tkinter GUI for displaying the lift simulation
main                : contains the main python functions where objects are instantiated and also generally controls the program flow

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages