Ticket #142 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

adhoc incident's Unit # doesn't appear in Assigned Incidents panel

Reported by: jdalbey Owned by:
Priority: Low Milestone: May 2019 Training
Component: CAD Client Version:
Severity: Minor Keywords:
Cc:

Description

When an adhoc incident is added to a simulation run, it will appear in the Assigned Incidents pane of the CAD Client, but Unit/s column will be black.
The display code is in tmcsim.client.cadclientgui.screens.AssignedIncidents?.java in the initializeTable method, in the prepareRenderer Method. It appears the default foreground color is Black, which matches the background, giving this field an empty appearance. So it seems when the unit status is fetched by
ScreenManager.theCoordinator.getCadDataUnitStatus(unitname); that it doesn't have a valid value.
Specifying the unit at the start of ad hoc incidents xml file is not adequate; it must be included in the full script xml file to appear in the unit status panel and have a valid status.

This is not an urgent defect, because workaround: clicking on the row of the table will select that row, and the unit field becomes visible.

Since this is an ad-hoc incident, we can't really know in advance when the unit status changes (e.g., from ENRT to 10-97). It seems like it would be weird to assign it ENRT and that never changes.

I think the best strategy is to modify prepare renderer to have a "default" case that sets foreground color to white.

Change History

comment:1 Changed 7 years ago by jdalbey

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r361

Note: See TracTickets for help on using tickets.