@Test public void testAshFrameAck() { AshFrameAck frame; AshFrame inFrame; frame = new AshFrameAck(4); System.out.println(frame); assertTrue(Arrays.equals(new int[] { 132, 48, 252, 126 }, frame.getOutputBuffer())); inFrame = AshFrame.createFromInput(new int[] { 132, 48, 252 }); assertTrue(inFrame instanceof AshFrameAck); assertEquals(4, inFrame.getAckNum()); frame = new AshFrameAck(7); System.out.println(frame); assertTrue(Arrays.equals(new int[] { 135, 0, 159, 126 }, frame.getOutputBuffer())); inFrame = AshFrame.createFromInput(new int[] { 135, 0, 159 }); assertTrue(inFrame instanceof AshFrameAck); assertEquals(7, inFrame.getAckNum()); }
public AshFrameAck(int ackNum) { this.frameType = FrameType.ACK; this.ackNum = ackNum; }
AshFrameAck extends AshFrame { public AshFrameAck(int ackNum) { this.frameType = FrameType.ACK; this.ackNum = ackNum; } }
AshFrameAck extends AshFrame { public AshFrameAck(int ackNum) { this.frameType = FrameType.ACK; this.ackNum = ackNum; } AshFrameAck(int ackNum);  AshFrameAck(int[] frameBuffer); }
AshFrameAck extends AshFrame { public AshFrameAck(int ackNum) { this.frameType = FrameType.ACK; this.ackNum = ackNum; } AshFrameAck(int ackNum);  AshFrameAck(int[] frameBuffer); @Override String toString(); }
AshFrameAck extends AshFrame { public AshFrameAck(int ackNum) { this.frameType = FrameType.ACK; this.ackNum = ackNum; } AshFrameAck(int ackNum);  AshFrameAck(int[] frameBuffer); @Override String toString();  }