@Test public void testToString() { ZigBeeApsFrame frame = new ZigBeeApsFrame(); assertNotNull(frame.toString()); }
@Override public String toString() { StringBuilder builder = new StringBuilder(164); builder.append(String.format("ZigBeeApsFrame [sourceAddress=%04X/%d", sourceAddress, sourceEndpoint)); builder.append(String.format(", destinationAddress=%04X/%d", destinationAddress, destinationEndpoint)); builder.append(String.format(", profile=%04X", profile)); builder.append(String.format(", cluster=%04X", cluster)); builder.append(", addressMode="); builder.append(addressMode); builder.append(", radius="); builder.append(radius); builder.append(", apsSecurity="); builder.append(securityEnable); builder.append(", ackRequest="); builder.append(ackRequest); builder.append(", apsCounter="); if (apsCounter == -1) { builder.append("--"); } else { builder.append(String.format("%02X", apsCounter)); } builder.append(", rssi="); if (rssi == null) { builder.append("--"); } else { builder.append(rssi); } builder.append(", lqi="); if (lqi == null) { builder.append("--"); } else { builder.append(String.format("%02X", lqi)); } builder.append(", payload="); if (payload != null) { for (int c = 0; c < payload.length; c++) { if (c != 0) { builder.append(' '); } builder.append(String.format("%02X", payload[c])); } } builder.append(']'); return builder.toString(); }
ZigBeeApsFrame { @Override public String toString() { StringBuilder builder = new StringBuilder(164); builder.append(String.format("ZigBeeApsFrame [sourceAddress=%04X/%d", sourceAddress, sourceEndpoint)); builder.append(String.format(", destinationAddress=%04X/%d", destinationAddress, destinationEndpoint)); builder.append(String.format(", profile=%04X", profile)); builder.append(String.format(", cluster=%04X", cluster)); builder.append(", addressMode="); builder.append(addressMode); builder.append(", radius="); builder.append(radius); builder.append(", apsSecurity="); builder.append(securityEnable); builder.append(", ackRequest="); builder.append(ackRequest); builder.append(", apsCounter="); if (apsCounter == -1) { builder.append("--"); } else { builder.append(String.format("%02X", apsCounter)); } builder.append(", rssi="); if (rssi == null) { builder.append("--"); } else { builder.append(rssi); } builder.append(", lqi="); if (lqi == null) { builder.append("--"); } else { builder.append(String.format("%02X", lqi)); } builder.append(", payload="); if (payload != null) { for (int c = 0; c < payload.length; c++) { if (c != 0) { builder.append(' '); } builder.append(String.format("%02X", payload[c])); } } builder.append(']'); return builder.toString(); } }
ZigBeeApsFrame { @Override public String toString() { StringBuilder builder = new StringBuilder(164); builder.append(String.format("ZigBeeApsFrame [sourceAddress=%04X/%d", sourceAddress, sourceEndpoint)); builder.append(String.format(", destinationAddress=%04X/%d", destinationAddress, destinationEndpoint)); builder.append(String.format(", profile=%04X", profile)); builder.append(String.format(", cluster=%04X", cluster)); builder.append(", addressMode="); builder.append(addressMode); builder.append(", radius="); builder.append(radius); builder.append(", apsSecurity="); builder.append(securityEnable); builder.append(", ackRequest="); builder.append(ackRequest); builder.append(", apsCounter="); if (apsCounter == -1) { builder.append("--"); } else { builder.append(String.format("%02X", apsCounter)); } builder.append(", rssi="); if (rssi == null) { builder.append("--"); } else { builder.append(rssi); } builder.append(", lqi="); if (lqi == null) { builder.append("--"); } else { builder.append(String.format("%02X", lqi)); } builder.append(", payload="); if (payload != null) { for (int c = 0; c < payload.length; c++) { if (c != 0) { builder.append(' '); } builder.append(String.format("%02X", payload[c])); } } builder.append(']'); return builder.toString(); }  }
ZigBeeApsFrame { @Override public String toString() { StringBuilder builder = new StringBuilder(164); builder.append(String.format("ZigBeeApsFrame [sourceAddress=%04X/%d", sourceAddress, sourceEndpoint)); builder.append(String.format(", destinationAddress=%04X/%d", destinationAddress, destinationEndpoint)); builder.append(String.format(", profile=%04X", profile)); builder.append(String.format(", cluster=%04X", cluster)); builder.append(", addressMode="); builder.append(addressMode); builder.append(", radius="); builder.append(radius); builder.append(", apsSecurity="); builder.append(securityEnable); builder.append(", ackRequest="); builder.append(ackRequest); builder.append(", apsCounter="); if (apsCounter == -1) { builder.append("--"); } else { builder.append(String.format("%02X", apsCounter)); } builder.append(", rssi="); if (rssi == null) { builder.append("--"); } else { builder.append(rssi); } builder.append(", lqi="); if (lqi == null) { builder.append("--"); } else { builder.append(String.format("%02X", lqi)); } builder.append(", payload="); if (payload != null) { for (int c = 0; c < payload.length; c++) { if (c != 0) { builder.append(' '); } builder.append(String.format("%02X", payload[c])); } } builder.append(']'); return builder.toString(); }  int getDestinationAddress(); void setDestinationAddress(int destinationAddress); IeeeAddress getDestinationIeeeAddress(); void setDestinationIeeeAddress(IeeeAddress destinationIeeeAddress); int getSourceAddress(); void setSourceAddress(int sourceAddress); void setFragmentSize(int fragmentSize); int getFragmentBase(); void setFragmentBase(int fragmentBase); int getFragmentTotal(); void setFragmentTotal(int fragmentTotal); int getFragmentOutstanding(); void setFragmentOutstanding(int fragmentOutstanding); int getMsgTag(); void setMsgTag(int msgTag); int getRadius(); void setRadius(int radius); boolean getSecurityEnabled(); void setSecurityEnabled(boolean securityEnable); boolean getAckRequest(); void setAckRequest(boolean ackRequest); int getNonMemberRadius(); void setNonMemberRadius(int nonMemberRadius); ZigBeeNwkAddressMode getAddressMode(); void setAddressMode(ZigBeeNwkAddressMode addressMode); int getDestinationEndpoint(); void setDestinationEndpoint(final int destinationEndpoint); int getCluster(); void setCluster(final int cluster); int getProfile(); void setProfile(final int profile); int getSourceEndpoint(); void setSourceEndpoint(final int sourceEndpoint); int getGroupAddress(); void setGroupAddress(final int groupAddress); int getApsCounter(); void setApsCounter(final int apsCounter); void setPayload(int[] payload); int[] getPayload(); void oneFragmentCompleted(); void oneFragmentSent(); Integer getReceivedRssi(); void setReceivedRssi(int rssi); Integer getReceivedLqi(); void setReceivedLqi(int lqi); @Override String toString(); }
ZigBeeApsFrame { @Override public String toString() { StringBuilder builder = new StringBuilder(164); builder.append(String.format("ZigBeeApsFrame [sourceAddress=%04X/%d", sourceAddress, sourceEndpoint)); builder.append(String.format(", destinationAddress=%04X/%d", destinationAddress, destinationEndpoint)); builder.append(String.format(", profile=%04X", profile)); builder.append(String.format(", cluster=%04X", cluster)); builder.append(", addressMode="); builder.append(addressMode); builder.append(", radius="); builder.append(radius); builder.append(", apsSecurity="); builder.append(securityEnable); builder.append(", ackRequest="); builder.append(ackRequest); builder.append(", apsCounter="); if (apsCounter == -1) { builder.append("--"); } else { builder.append(String.format("%02X", apsCounter)); } builder.append(", rssi="); if (rssi == null) { builder.append("--"); } else { builder.append(rssi); } builder.append(", lqi="); if (lqi == null) { builder.append("--"); } else { builder.append(String.format("%02X", lqi)); } builder.append(", payload="); if (payload != null) { for (int c = 0; c < payload.length; c++) { if (c != 0) { builder.append(' '); } builder.append(String.format("%02X", payload[c])); } } builder.append(']'); return builder.toString(); }  int getDestinationAddress(); void setDestinationAddress(int destinationAddress); IeeeAddress getDestinationIeeeAddress(); void setDestinationIeeeAddress(IeeeAddress destinationIeeeAddress); int getSourceAddress(); void setSourceAddress(int sourceAddress); void setFragmentSize(int fragmentSize); int getFragmentBase(); void setFragmentBase(int fragmentBase); int getFragmentTotal(); void setFragmentTotal(int fragmentTotal); int getFragmentOutstanding(); void setFragmentOutstanding(int fragmentOutstanding); int getMsgTag(); void setMsgTag(int msgTag); int getRadius(); void setRadius(int radius); boolean getSecurityEnabled(); void setSecurityEnabled(boolean securityEnable); boolean getAckRequest(); void setAckRequest(boolean ackRequest); int getNonMemberRadius(); void setNonMemberRadius(int nonMemberRadius); ZigBeeNwkAddressMode getAddressMode(); void setAddressMode(ZigBeeNwkAddressMode addressMode); int getDestinationEndpoint(); void setDestinationEndpoint(final int destinationEndpoint); int getCluster(); void setCluster(final int cluster); int getProfile(); void setProfile(final int profile); int getSourceEndpoint(); void setSourceEndpoint(final int sourceEndpoint); int getGroupAddress(); void setGroupAddress(final int groupAddress); int getApsCounter(); void setApsCounter(final int apsCounter); void setPayload(int[] payload); int[] getPayload(); void oneFragmentCompleted(); void oneFragmentSent(); Integer getReceivedRssi(); void setReceivedRssi(int rssi); Integer getReceivedLqi(); void setReceivedLqi(int lqi); @Override String toString();  }