test_class.declarator: i = 0b00000000
test_class.modifier: private static final
test_class.original_string: private static final byte i = 0b00000000;
test_class.type: byte
test_class.var_name: i
test_class.file: app/src/test/java/org/hwyl/sexytopo/comms/DistoXProtocolTest.java
test_class.identifier: DistoXProtocolTest
test_case.body: @Test
      public void testAcknowledgePacketMatchesByteEndingIn1() {
          byte control = 0b00000001;
          byte[] packet = new byte[]{control, i, i, i, i, i, i, i};
          byte actual = DistoXProtocol.createAcknowledgementPacket(packet)[0];
          Assert.assertEquals((byte)0b01010101, actual);
      }
test_case.class_method_signature: DistoXProtocolTest.testAcknowledgePacketMatchesByteEndingIn1()
test_case.full_signature: @Test public void testAcknowledgePacketMatchesByteEndingIn1()
test_case.identifier: testAcknowledgePacketMatchesByteEndingIn1
test_case.invocations: createAcknowledgementPacket assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAcknowledgePacketMatchesByteEndingIn1()
focal_class.declarator: INTER_PACKET_DELAY = 100
focal_class.modifier: public static final
focal_class.original_string: public static final int INTER_PACKET_DELAY = 100;
focal_class.type: int
focal_class.var_name: INTER_PACKET_DELAY
focal_class.declarator: WAIT_BETWEEN_CONNECTION_ATTEMPTS_MS = 5 * 1000
focal_class.modifier: public static final
focal_class.original_string: public static final int WAIT_BETWEEN_CONNECTION_ATTEMPTS_MS = 5 * 1000;
focal_class.type: int
focal_class.var_name: WAIT_BETWEEN_CONNECTION_ATTEMPTS_MS
focal_class.declarator: ADMIN = 0
focal_class.modifier: public static final
focal_class.original_string: public static final int ADMIN = 0;
focal_class.type: int
focal_class.var_name: ADMIN
focal_class.declarator: SEQUENCE_BIT_MASK = 0b10000000
focal_class.modifier: public static final
focal_class.original_string: public static final int SEQUENCE_BIT_MASK = 0b10000000;
focal_class.type: int
focal_class.var_name: SEQUENCE_BIT_MASK
focal_class.declarator: ACKNOWLEDGEMENT_PACKET_BASE = 0b01010101
focal_class.modifier: public static final
focal_class.original_string: public static final int ACKNOWLEDGEMENT_PACKET_BASE = 0b01010101;
focal_class.type: int
focal_class.var_name: ACKNOWLEDGEMENT_PACKET_BASE
focal_class.declarator: activity
focal_class.modifier: protected
focal_class.original_string: protected SexyTopoActivity activity;
focal_class.type: SexyTopoActivity
focal_class.var_name: activity
focal_class.declarator: dataManager
focal_class.modifier: protected
focal_class.original_string: protected SurveyManager dataManager;
focal_class.type: SurveyManager
focal_class.var_name: dataManager
focal_class.declarator: bluetoothDevice
focal_class.modifier: protected
focal_class.original_string: protected BluetoothDevice bluetoothDevice;
focal_class.type: BluetoothDevice
focal_class.var_name: bluetoothDevice
focal_class.file: app/src/main/java/org/hwyl/sexytopo/comms/DistoXProtocol.java
focal_class.identifier: DistoXProtocol
focal_class.class_method_signature: DistoXProtocol.DistoXProtocol(
              SexyTopoActivity activity, BluetoothDevice bluetoothDevice, SurveyManager dataManager)
focal_class.full_signature: protected  DistoXProtocol(
              SexyTopoActivity activity, BluetoothDevice bluetoothDevice, SurveyManager dataManager)
focal_class.identifier: DistoXProtocol
focal_class.modifiers: protected
focal_class.parameters: (
              SexyTopoActivity activity, BluetoothDevice bluetoothDevice, SurveyManager dataManager)
focal_class.signature:  DistoXProtocol(
              SexyTopoActivity activity, BluetoothDevice bluetoothDevice, SurveyManager dataManager)
focal_class.class_method_signature: DistoXProtocol.createAcknowledgementPacket(byte[] packet)
focal_class.full_signature: public static byte[] createAcknowledgementPacket(byte[] packet)
focal_class.identifier: createAcknowledgementPacket
focal_class.modifiers: public static
focal_class.parameters: (byte[] packet)
focal_class.return: byte[]
focal_class.signature: byte[] createAcknowledgementPacket(byte[] packet)
focal_class.class_method_signature: DistoXProtocol.acknowledge(DataOutputStream outStream, byte[] packet)
focal_class.full_signature: protected void acknowledge(DataOutputStream outStream, byte[] packet)
focal_class.identifier: acknowledge
focal_class.modifiers: protected
focal_class.parameters: (DataOutputStream outStream, byte[] packet)
focal_class.return: void
focal_class.signature: void acknowledge(DataOutputStream outStream, byte[] packet)
focal_class.class_method_signature: DistoXProtocol.writeCommandPacket(DataOutputStream outStream, byte[] packet)
focal_class.full_signature: protected void writeCommandPacket(DataOutputStream outStream, byte[] packet)
focal_class.identifier: writeCommandPacket
focal_class.modifiers: protected
focal_class.parameters: (DataOutputStream outStream, byte[] packet)
focal_class.return: void
focal_class.signature: void writeCommandPacket(DataOutputStream outStream, byte[] packet)
focal_class.class_method_signature: DistoXProtocol.readByte(byte[] packet, int index)
focal_class.full_signature: protected static int readByte(byte[] packet, int index)
focal_class.identifier: readByte
focal_class.modifiers: protected static
focal_class.parameters: (byte[] packet, int index)
focal_class.return: int
focal_class.signature: int readByte(byte[] packet, int index)
focal_class.class_method_signature: DistoXProtocol.readDoubleByte(byte[] packet, int lowByteIndex, int highByteIndex)
focal_class.full_signature: protected static int readDoubleByte(byte[] packet, int lowByteIndex, int highByteIndex)
focal_class.identifier: readDoubleByte
focal_class.modifiers: protected static
focal_class.parameters: (byte[] packet, int lowByteIndex, int highByteIndex)
focal_class.return: int
focal_class.signature: int readDoubleByte(byte[] packet, int lowByteIndex, int highByteIndex)
focal_class.class_method_signature: DistoXProtocol.go(DataInputStream inStream, DataOutputStream outStream)
focal_class.full_signature: public abstract void go(DataInputStream inStream, DataOutputStream outStream)
focal_class.identifier: go
focal_class.modifiers: public abstract
focal_class.parameters: (DataInputStream inStream, DataOutputStream outStream)
focal_class.return: void
focal_class.signature: void go(DataInputStream inStream, DataOutputStream outStream)
focal_class.class_method_signature: DistoXProtocol.readPacket(DataInputStream inStream)
focal_class.full_signature: protected byte[] readPacket(DataInputStream inStream)
focal_class.identifier: readPacket
focal_class.modifiers: protected
focal_class.parameters: (DataInputStream inStream)
focal_class.return: byte[]
focal_class.signature: byte[] readPacket(DataInputStream inStream)
focal_class.class_method_signature: DistoXProtocol.arePacketsTheSame(byte[] packet0, byte[] packet1)
focal_class.full_signature: public static boolean arePacketsTheSame(byte[] packet0, byte[] packet1)
focal_class.identifier: arePacketsTheSame
focal_class.modifiers: public static
focal_class.parameters: (byte[] packet0, byte[] packet1)
focal_class.return: boolean
focal_class.signature: boolean arePacketsTheSame(byte[] packet0, byte[] packet1)
focal_class.class_method_signature: DistoXProtocol.isDataPacket(byte[] packet)
focal_class.full_signature: protected static boolean isDataPacket(byte[] packet)
focal_class.identifier: isDataPacket
focal_class.modifiers: protected static
focal_class.parameters: (byte[] packet)
focal_class.return: boolean
focal_class.signature: boolean isDataPacket(byte[] packet)
focal_class.class_method_signature: DistoXProtocol.describePacket(byte[] packet)
focal_class.full_signature: @SuppressLint("all") public static String describePacket(byte[] packet)
focal_class.identifier: describePacket
focal_class.modifiers: @SuppressLint("all") public static
focal_class.parameters: (byte[] packet)
focal_class.return: String
focal_class.signature: String describePacket(byte[] packet)
focal_class.class_method_signature: DistoXProtocol.asBinaryString(int theByte)
focal_class.full_signature: public static String asBinaryString(int theByte)
focal_class.identifier: asBinaryString
focal_class.modifiers: public static
focal_class.parameters: (int theByte)
focal_class.return: String
focal_class.signature: String asBinaryString(int theByte)
focal_class.class_method_signature: DistoXProtocol.describeAcknowledgementPacket(byte[] acknowledgementPacket)
focal_class.full_signature: public static String describeAcknowledgementPacket(byte[] acknowledgementPacket)
focal_class.identifier: describeAcknowledgementPacket
focal_class.modifiers: public static
focal_class.parameters: (byte[] acknowledgementPacket)
focal_class.return: String
focal_class.signature: String describeAcknowledgementPacket(byte[] acknowledgementPacket)
focal_method.body: public static byte[] createAcknowledgementPacket(byte[] packet) {
          byte[] acknowledgePacket = new byte[1];
          acknowledgePacket[0] = (byte)
                  ((packet[ADMIN] & SEQUENCE_BIT_MASK) | ACKNOWLEDGEMENT_PACKET_BASE);
  
          return acknowledgePacket;
      }
focal_method.class_method_signature: DistoXProtocol.createAcknowledgementPacket(byte[] packet)
focal_method.full_signature: public static byte[] createAcknowledgementPacket(byte[] packet)
focal_method.identifier: createAcknowledgementPacket
focal_method.modifiers: public static
focal_method.parameters: (byte[] packet)
focal_method.return: byte[]
focal_method.signature: byte[] createAcknowledgementPacket(byte[] packet)