Wiki source code of Desktop
Last modified by nbw on 2025/01/30 12:05
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | == Eclipse Project == | ||
| 2 | |||
| 3 | The Java GUI was developed in Eclipse. All required files and used libraries can be found at | ||
| 4 | |||
| 5 | [[http:~~/~~/git.rtsys.informatik.uni-kiel.de/projects/PRAK/repos/14ss-railway/browse/code/gui/Java/RailwayTCPGUI>>url:http://git.rtsys.informatik.uni-kiel.de/projects/PRAK/repos/14ss-railway/browse/code/gui/Java/RailwayTCPGUI||shape="rect"]] | ||
| 6 | |||
| 7 | == Compiled Program == | ||
| 8 | |||
| 9 | The compiled program can be found [[in Stash>>url:http://git.rtsys.informatik.uni-kiel.de/projects/PRAK/repos/14ss-railway/browse/code/gui/Java/RailwayTCPGUI/build/RailwayGUI.jar||shape="rect"]]. It can also be built from the sources with Ant with 'ant RailwayGUI'. | ||
| 10 | |||
| 11 | == Program parts == | ||
| 12 | |||
| 13 | === General Control === | ||
| 14 | |||
| 15 | |((( | ||
| 16 | [[image:attach:GeneralControl.png]] | ||
| 17 | )))|((( | ||
| 18 | The control elements at the top of the window are always available. | ||
| 19 | |||
| 20 | They can be used to pause the railway system, toggle verbose logging, trigger the cleanup mode or cause the controller to shut down. | ||
| 21 | ))) | ||
| 22 | |||
| 23 | === Connection panel === | ||
| 24 | |||
| 25 | |((( | ||
| 26 | [[image:attach:ConnectionPanel.png]] | ||
| 27 | )))|((( | ||
| 28 | This panel is used to connect to the railway controller. | ||
| 29 | |||
| 30 | The connection text field can accept hostnames or IPv4 Adresses. | ||
| 31 | |||
| 32 | The default port is 7245. | ||
| 33 | ))) | ||
| 34 | |||
| 35 | === State panel === | ||
| 36 | |||
| 37 | |((( | ||
| 38 | [[image:attach:StatePanel.png]] | ||
| 39 | )))|((( | ||
| 40 | The state panel shows the current destination and the current state of each train. | ||
| 41 | |||
| 42 | Using the button on each line the corresponding train can be forced to wait at the current station until manually released. | ||
| 43 | ))) | ||
| 44 | |||
| 45 | === Schedule panel === | ||
| 46 | |||
| 47 | |((( | ||
| 48 | [[image:attach:SchedulePanel.png]] | ||
| 49 | )))|((( | ||
| 50 | This panel enables the user to edit each schedule. | ||
| 51 | |||
| 52 | The buttons on the left side are used to move the selected entry up or down. | ||
| 53 | |||
| 54 | The drop-down menu is used to choose the new target and add it to the end of the list with the button with the arrow. | ||
| 55 | |||
| 56 | The button below this is used to remove the selected entry from the schedule. | ||
| 57 | |||
| 58 | The schedule is set with the button on the bottom of the panel. | ||
| 59 | ))) | ||
| 60 | |||
| 61 | === Preferences panel === | ||
| 62 | |||
| 63 | |((( | ||
| 64 | [[image:attach:PreferencesPanel.png]] | ||
| 65 | )))|((( | ||
| 66 | Each train speed can be individually adjusted. | ||
| 67 | |||
| 68 | All lights can be turned on or off using the buttons above the speed settings. | ||
| 69 | |||
| 70 | In the bottom area the minimum and maximum waiting times for each train and station can be set | ||
| 71 | ))) | ||
| 72 | |||
| 73 | === Log panel === | ||
| 74 | |||
| 75 | |((( | ||
| 76 | [[image:attach:LogPanel.png]] | ||
| 77 | )))|((( | ||
| 78 | All log messages are forwarded to this panel. | ||
| 79 | |||
| 80 | Using the input field at the top the log can be filtered. Use regular expressions here to define the filter. | ||
| 81 | |||
| 82 | Some predefined filters can be chosen from the menu on the left. | ||
| 83 | |||
| 84 | Next to the input field tick times and overall controller times are displayed. | ||
| 85 | |||
| 86 | Using the input field at the bottom messages can be sent to the controller which should be broadcast to all connected GUIs. | ||
| 87 | ))) |