/** * Test whether the named signal is active. * * @param name signal's name (not null) * @return true if any of the signal's sources is active; false if all of the signal's sources are * inactive */ public boolean test(String name) { assert name != null; Indices status = statusMap.get(name); if (status == null) { logger.log( Level.WARNING, "Testing a signal which has not yet been added: {0}.", MyString.quote(name)); status = new Indices(); statusMap.put(name, status); } boolean result = !status.isEmpty(); return result; }