ftsrg / BME-MODES3

Model-based Demonstrator for Smart and Safe Systems
https://inf.mit.bme.hu/research/projects/modes3
16 stars 8 forks source link

Segment occupancies are not shown on Dashboard #99

Closed benedekh closed 6 years ago

benedekh commented 6 years ago

Since the changes to the DashboardManager were committed, neither the occupancies nor the segment / turnout statuses are displayed.

A log entry for a missing handler for occupancy message:

[pool-1-thread-77] WARN org.atmosphere.cpr.DefaultMetaBroadcaster - No Broadcaster matches /ws/state/segmentoccupancy. Message {
  "segmentID": 6,
  "state": "FREE"
} WILL BE LOST. Make sure you cache it or make sure the Broadcaster exists before.

However, the segments / turnouts are clickable and the corresponding commands are sent to the table. After that the turnout/segment statuses are displayed correctly, but the segment occupancy is still missing.

zsoltmazlo commented 6 years ago

It is an intentional change in the UI code as you can see in setup.js - from now, we are tracking the position of each train based on the information received from CV and it might be confusing to show occupancy too.