@Test public void testLoadMap() throws Exception { URL f = AbstractDraegerVent.class.getResource("draeger.map"); Map<Enum<?>, String> numerics = new HashMap<>(); Map<Enum<?>, String> waveforms = new HashMap<>(); AbstractDraegerVent.loadMap(f, numerics, waveforms); log.info(numerics.toString()); log.info(waveforms.toString()); Assert.assertEquals("Failed to read numerics", 8, numerics.size()); Assert.assertEquals("Failed to read waveforms", 5, waveforms.size()); }
static void loadMap(Map<Enum<?>, String> numerics, Map<Enum<?>, String> waveforms) { loadMap(AbstractDraegerVent.class.getResource("draeger.map"), numerics, waveforms); }
AbstractDraegerVent extends AbstractDelegatingSerialDevice<RTMedibus> { static void loadMap(Map<Enum<?>, String> numerics, Map<Enum<?>, String> waveforms) { loadMap(AbstractDraegerVent.class.getResource("draeger.map"), numerics, waveforms); } }
AbstractDraegerVent extends AbstractDelegatingSerialDevice<RTMedibus> { static void loadMap(Map<Enum<?>, String> numerics, Map<Enum<?>, String> waveforms) { loadMap(AbstractDraegerVent.class.getResource("draeger.map"), numerics, waveforms); } AbstractDraegerVent(final Subscriber subscriber, final Publisher publisher, EventLoop eventLoop); }
AbstractDraegerVent extends AbstractDelegatingSerialDevice<RTMedibus> { static void loadMap(Map<Enum<?>, String> numerics, Map<Enum<?>, String> waveforms) { loadMap(AbstractDraegerVent.class.getResource("draeger.map"), numerics, waveforms); } AbstractDraegerVent(final Subscriber subscriber, final Publisher publisher, EventLoop eventLoop); @Override void disconnect(); void init(); }
AbstractDraegerVent extends AbstractDelegatingSerialDevice<RTMedibus> { static void loadMap(Map<Enum<?>, String> numerics, Map<Enum<?>, String> waveforms) { loadMap(AbstractDraegerVent.class.getResource("draeger.map"), numerics, waveforms); } AbstractDraegerVent(final Subscriber subscriber, final Publisher publisher, EventLoop eventLoop); @Override void disconnect(); void init();  }