/* (non-Javadoc) * @see tuwien.auto.calimero.link.event.LinkListener#indication * (tuwien.auto.calimero.FrameEvent) */ public void indication(FrameEvent e) { assertNotNull(e); assertTrue(e instanceof MonitorFrameEvent); assertEquals(mon, e.getSource()); ind = (CEMIBusMon) e.getFrame(); raw = ((MonitorFrameEvent) e).getRawFrame(); assertEquals(CEMIBusMon.MC_BUSMON_IND, ind.getMessageCode()); System.out.println("indication"); Debug.printMonData(ind); if (raw != null) Debug.printTP1Frame(lmon.raw); }
@Override public void indication(final FrameEvent e) { assertNotNull(e); assertEquals(lnk, e.getSource()); final CEMILData f = (CEMILData) e.getFrame(); ind = f; assertEquals(CEMILData.MC_LDATA_IND, ind.getMessageCode()); System.out.println("indication"); Debug.printLData(ind); }
@Override public void confirmation(final FrameEvent e) { assertNotNull(e); assertEquals(lnk, e.getSource()); final CEMILData f = (CEMILData) e.getFrame(); con = f; assertEquals(CEMILData.MC_LDATA_CON, f.getMessageCode()); assertTrue(f.isPositiveConfirmation()); System.out.println("confirmation"); Debug.printLData(f); }