ObjectType
Document
DocName Project Version FullName ShortDescription
JavaPanel RailwayCrossing V1
 
Description
This panel is intended for interacting with the RailwayCrossing Environment and the Gate Controller.

Therefore, the panel allows

  • the initialization of a specific number of regular and fast tracks with the respective params (at system start)

  • the manual setting of the signals and the gate

  • the display of statistics about the tracks and trains (e.g. average waiting duration of the trains, ...)

  • a graphical view of the environment (the tracks, trains, cars, signals and the gate)
 
Tasks
ModelName Description Strategy Assigned Tab
initTracks Initialize a specific number of regular and fast tracks (at system start) For each track type send the signal setTrackParams(trackType, ts1Dur, ts1Sig1Dur, sig1Ts2Dur, breakDur, minDistDur) for setting the concrete values for the respective type (taken from textFieldRTP1, ...; and textFieldFTP1, ...).

Then, Send signal initTracks(nbrRegTracks, nbrFastTracks),  (taken from textFieldRT and  textFieldFT).

Initialization
manualGateControl Set the gate to a specific state. If buttonCloseGate is pushed, send signal setGate(close); If buttonOpenGate is pushed, send signal setGate(open). ManualControl
manualSignalControl Set one (or all) signal(s) to a specific state. If buttonGreenSignal is pushed, send the signal setSignal(track, green), where track is taken from textFieldTrack; If buttonRedSignal is pushed, send signal setSignal(track, red). ManualControl
Statistics
Visualization
 
Attributes
ModelName FullName Type Value Description
 
Signals
ModelName FullName Type Components Parameters Description