Skip to content

Commit ffecbe7

Browse files
committed
Show pollinator comm link status properly
1 parent 0fe46f0 commit ffecbe7

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

src/us/mn/state/dot/tms/client/comm/CommLinkForm.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* IRIS -- Intelligent Roadway Information System
3-
* Copyright (C) 2008-2024 Minnesota Department of Transportation
3+
* Copyright (C) 2008-2026 Minnesota Department of Transportation
44
*
55
* This program is free software; you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -61,10 +61,15 @@ static public boolean isPermitted(Session s) {
6161
public void enumerationComplete() { }
6262
public void update(CommLink cl, String a) {
6363
if (a == null || a.equals("connected")) {
64-
connected_lbl.setText(cl.getConnected()
64+
String connected = cl.getConnected()
6565
? I18N.get("comm.link.connected")
66-
: I18N.get("item.style.offline")
67-
);
66+
: I18N.get("item.style.offline");
67+
CommConfig cc = cl.getCommConfig();
68+
if (cc != null && cc.getPollinator()) {
69+
connected = I18N.get(
70+
"comm.config.pollinator");
71+
}
72+
connected_lbl.setText(connected);
6873
}
6974
}
7075
public void clear() {

src/us/mn/state/dot/tms/client/comm/ControllerTableModel.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* IRIS -- Intelligent Roadway Information System
3-
* Copyright (C) 2008-2025 Minnesota Department of Transportation
3+
* Copyright (C) 2008-2026 Minnesota Department of Transportation
44
*
55
* This program is free software; you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -166,7 +166,10 @@ public Object getValueAt(Controller c) {
166166
Long.class)
167167
{
168168
public Object getValueAt(Controller c) {
169-
return c.getFailTime();
169+
if (!ControllerHelper.isPollinator(c))
170+
return c.getFailTime();
171+
else
172+
return null;
170173
}
171174
protected TableCellRenderer createCellRenderer() {
172175
return new TimeCellRenderer();

0 commit comments

Comments
 (0)