test_class.file: src/agents/apps/floodlight/floodlight-1.0/src/test/java/net/floodlightcontroller/packet/EthernetTest.java
test_class.identifier: EthernetTest
test_case.body: @Test
      public void testToMACAddress() {
          byte[] address = new byte[] { 0x0, 0x11, 0x22, (byte) 0xff,
                  (byte) 0xee, (byte) 0xdd};
          assertTrue(Arrays.equals(address, Ethernet
                  .toMACAddress("00:11:22:ff:ee:dd")));
          assertTrue(Arrays.equals(address, Ethernet
                  .toMACAddress("00:11:22:FF:EE:DD")));
      }
test_case.class_method_signature: EthernetTest.testToMACAddress()
test_case.full_signature: @Test public void testToMACAddress()
test_case.identifier: testToMACAddress
test_case.invocations: assertTrue equals toMACAddress assertTrue equals toMACAddress
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToMACAddress()
focal_class.declarator: HEXES = "0123456789ABCDEF"
focal_class.modifier: private static
focal_class.original_string: private static String HEXES = "0123456789ABCDEF";
focal_class.type: String
focal_class.var_name: HEXES
focal_class.declarator: TYPE_ARP = 0x0806
focal_class.modifier: public static final
focal_class.original_string: public static final short TYPE_ARP = 0x0806;
focal_class.type: short
focal_class.var_name: TYPE_ARP
focal_class.declarator: TYPE_RARP = (short) 0x8035
focal_class.modifier: public static final
focal_class.original_string: public static final short TYPE_RARP = (short) 0x8035;
focal_class.type: short
focal_class.var_name: TYPE_RARP
focal_class.declarator: TYPE_IPv4 = 0x0800
focal_class.modifier: public static final
focal_class.original_string: public static final short TYPE_IPv4 = 0x0800;
focal_class.type: short
focal_class.var_name: TYPE_IPv4
focal_class.declarator: TYPE_LLDP = (short) 0x88cc
focal_class.modifier: public static final
focal_class.original_string: public static final short TYPE_LLDP = (short) 0x88cc;
focal_class.type: short
focal_class.var_name: TYPE_LLDP
focal_class.declarator: TYPE_BSN = (short) 0x8942
focal_class.modifier: public static final
focal_class.original_string: public static final short TYPE_BSN = (short) 0x8942;
focal_class.type: short
focal_class.var_name: TYPE_BSN
focal_class.declarator: VLAN_UNTAGGED = VlanVid.ZERO.getVlan()
focal_class.modifier: public static final
focal_class.original_string: public static final short VLAN_UNTAGGED = VlanVid.ZERO.getVlan();
focal_class.type: short
focal_class.var_name: VLAN_UNTAGGED
focal_class.declarator: DATALAYER_ADDRESS_LENGTH = 6
focal_class.modifier: public static final
focal_class.original_string: public static final short DATALAYER_ADDRESS_LENGTH = 6;
focal_class.type: short
focal_class.var_name: DATALAYER_ADDRESS_LENGTH
focal_class.declarator: etherTypeClassMap
focal_class.modifier: public static
focal_class.original_string: public static Map<Short, Class<? extends IPacket>> etherTypeClassMap;
focal_class.type: Map<Short, Class<? extends IPacket>>
focal_class.var_name: etherTypeClassMap
focal_class.declarator: destinationMACAddress
focal_class.modifier: protected
focal_class.original_string: protected MacAddress destinationMACAddress;
focal_class.type: MacAddress
focal_class.var_name: destinationMACAddress
focal_class.declarator: sourceMACAddress
focal_class.modifier: protected
focal_class.original_string: protected MacAddress sourceMACAddress;
focal_class.type: MacAddress
focal_class.var_name: sourceMACAddress
focal_class.declarator: priorityCode
focal_class.modifier: protected
focal_class.original_string: protected byte priorityCode;
focal_class.type: byte
focal_class.var_name: priorityCode
focal_class.declarator: vlanID
focal_class.modifier: protected
focal_class.original_string: protected short vlanID;
focal_class.type: short
focal_class.var_name: vlanID
focal_class.declarator: etherType
focal_class.modifier: protected
focal_class.original_string: protected short etherType;
focal_class.type: short
focal_class.var_name: etherType
focal_class.declarator: pad = false
focal_class.modifier: protected
focal_class.original_string: protected boolean pad = false;
focal_class.type: boolean
focal_class.var_name: pad
focal_class.file: src/agents/apps/floodlight/floodlight-1.0/src/main/java/net/floodlightcontroller/packet/Ethernet.java
focal_class.identifier: Ethernet
focal_class.class_method_signature: Ethernet.Ethernet()
focal_class.full_signature: public  Ethernet()
focal_class.identifier: Ethernet
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  Ethernet()
focal_class.class_method_signature: Ethernet.getDestinationMACAddress()
focal_class.full_signature: public MacAddress getDestinationMACAddress()
focal_class.identifier: getDestinationMACAddress
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: MacAddress
focal_class.signature: MacAddress getDestinationMACAddress()
focal_class.class_method_signature: Ethernet.setDestinationMACAddress(byte[] destinationMACAddress)
focal_class.full_signature: public Ethernet setDestinationMACAddress(byte[] destinationMACAddress)
focal_class.identifier: setDestinationMACAddress
focal_class.modifiers: public
focal_class.parameters: (byte[] destinationMACAddress)
focal_class.return: Ethernet
focal_class.signature: Ethernet setDestinationMACAddress(byte[] destinationMACAddress)
focal_class.class_method_signature: Ethernet.setDestinationMACAddress(MacAddress destinationMACAddress)
focal_class.full_signature: public Ethernet setDestinationMACAddress(MacAddress destinationMACAddress)
focal_class.identifier: setDestinationMACAddress
focal_class.modifiers: public
focal_class.parameters: (MacAddress destinationMACAddress)
focal_class.return: Ethernet
focal_class.signature: Ethernet setDestinationMACAddress(MacAddress destinationMACAddress)
focal_class.class_method_signature: Ethernet.setDestinationMACAddress(String destinationMACAddress)
focal_class.full_signature: public Ethernet setDestinationMACAddress(String destinationMACAddress)
focal_class.identifier: setDestinationMACAddress
focal_class.modifiers: public
focal_class.parameters: (String destinationMACAddress)
focal_class.return: Ethernet
focal_class.signature: Ethernet setDestinationMACAddress(String destinationMACAddress)
focal_class.class_method_signature: Ethernet.getSourceMACAddress()
focal_class.full_signature: public MacAddress getSourceMACAddress()
focal_class.identifier: getSourceMACAddress
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: MacAddress
focal_class.signature: MacAddress getSourceMACAddress()
focal_class.class_method_signature: Ethernet.setSourceMACAddress(byte[] sourceMACAddress)
focal_class.full_signature: public Ethernet setSourceMACAddress(byte[] sourceMACAddress)
focal_class.identifier: setSourceMACAddress
focal_class.modifiers: public
focal_class.parameters: (byte[] sourceMACAddress)
focal_class.return: Ethernet
focal_class.signature: Ethernet setSourceMACAddress(byte[] sourceMACAddress)
focal_class.class_method_signature: Ethernet.setSourceMACAddress(MacAddress sourceMACAddress)
focal_class.full_signature: public Ethernet setSourceMACAddress(MacAddress sourceMACAddress)
focal_class.identifier: setSourceMACAddress
focal_class.modifiers: public
focal_class.parameters: (MacAddress sourceMACAddress)
focal_class.return: Ethernet
focal_class.signature: Ethernet setSourceMACAddress(MacAddress sourceMACAddress)
focal_class.class_method_signature: Ethernet.setSourceMACAddress(String sourceMACAddress)
focal_class.full_signature: public Ethernet setSourceMACAddress(String sourceMACAddress)
focal_class.identifier: setSourceMACAddress
focal_class.modifiers: public
focal_class.parameters: (String sourceMACAddress)
focal_class.return: Ethernet
focal_class.signature: Ethernet setSourceMACAddress(String sourceMACAddress)
focal_class.class_method_signature: Ethernet.getPriorityCode()
focal_class.full_signature: public byte getPriorityCode()
focal_class.identifier: getPriorityCode
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: byte
focal_class.signature: byte getPriorityCode()
focal_class.class_method_signature: Ethernet.setPriorityCode(byte priorityCode)
focal_class.full_signature: public Ethernet setPriorityCode(byte priorityCode)
focal_class.identifier: setPriorityCode
focal_class.modifiers: public
focal_class.parameters: (byte priorityCode)
focal_class.return: Ethernet
focal_class.signature: Ethernet setPriorityCode(byte priorityCode)
focal_class.class_method_signature: Ethernet.getVlanID()
focal_class.full_signature: public short getVlanID()
focal_class.identifier: getVlanID
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: short
focal_class.signature: short getVlanID()
focal_class.class_method_signature: Ethernet.setVlanID(short vlanID)
focal_class.full_signature: public Ethernet setVlanID(short vlanID)
focal_class.identifier: setVlanID
focal_class.modifiers: public
focal_class.parameters: (short vlanID)
focal_class.return: Ethernet
focal_class.signature: Ethernet setVlanID(short vlanID)
focal_class.class_method_signature: Ethernet.getEtherType()
focal_class.full_signature: public short getEtherType()
focal_class.identifier: getEtherType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: short
focal_class.signature: short getEtherType()
focal_class.class_method_signature: Ethernet.setEtherType(short etherType)
focal_class.full_signature: public Ethernet setEtherType(short etherType)
focal_class.identifier: setEtherType
focal_class.modifiers: public
focal_class.parameters: (short etherType)
focal_class.return: Ethernet
focal_class.signature: Ethernet setEtherType(short etherType)
focal_class.class_method_signature: Ethernet.isBroadcast()
focal_class.full_signature: public boolean isBroadcast()
focal_class.identifier: isBroadcast
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isBroadcast()
focal_class.class_method_signature: Ethernet.isMulticast()
focal_class.full_signature: public boolean isMulticast()
focal_class.identifier: isMulticast
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isMulticast()
focal_class.class_method_signature: Ethernet.isPad()
focal_class.full_signature: public boolean isPad()
focal_class.identifier: isPad
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isPad()
focal_class.class_method_signature: Ethernet.setPad(boolean pad)
focal_class.full_signature: public Ethernet setPad(boolean pad)
focal_class.identifier: setPad
focal_class.modifiers: public
focal_class.parameters: (boolean pad)
focal_class.return: Ethernet
focal_class.signature: Ethernet setPad(boolean pad)
focal_class.class_method_signature: Ethernet.serialize()
focal_class.full_signature: public byte[] serialize()
focal_class.identifier: serialize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] serialize()
focal_class.class_method_signature: Ethernet.deserialize(byte[] data, int offset, int length)
focal_class.full_signature: @Override public IPacket deserialize(byte[] data, int offset, int length)
focal_class.identifier: deserialize
focal_class.modifiers: @Override public
focal_class.parameters: (byte[] data, int offset, int length)
focal_class.return: IPacket
focal_class.signature: IPacket deserialize(byte[] data, int offset, int length)
focal_class.class_method_signature: Ethernet.isMACAddress(String macAddress)
focal_class.full_signature: public static boolean isMACAddress(String macAddress)
focal_class.identifier: isMACAddress
focal_class.modifiers: public static
focal_class.parameters: (String macAddress)
focal_class.return: boolean
focal_class.signature: boolean isMACAddress(String macAddress)
focal_class.class_method_signature: Ethernet.toMACAddress(String macAddress)
focal_class.full_signature: public static byte[] toMACAddress(String macAddress)
focal_class.identifier: toMACAddress
focal_class.modifiers: public static
focal_class.parameters: (String macAddress)
focal_class.return: byte[]
focal_class.signature: byte[] toMACAddress(String macAddress)
focal_class.class_method_signature: Ethernet.toLong(byte[] macAddress)
focal_class.full_signature: public static long toLong(byte[] macAddress)
focal_class.identifier: toLong
focal_class.modifiers: public static
focal_class.parameters: (byte[] macAddress)
focal_class.return: long
focal_class.signature: long toLong(byte[] macAddress)
focal_class.class_method_signature: Ethernet.toByteArray(long macAddress)
focal_class.full_signature: public static byte[] toByteArray(long macAddress)
focal_class.identifier: toByteArray
focal_class.modifiers: public static
focal_class.parameters: (long macAddress)
focal_class.return: byte[]
focal_class.signature: byte[] toByteArray(long macAddress)
focal_class.class_method_signature: Ethernet.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: Ethernet.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_class.class_method_signature: Ethernet.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.superclass: extends BasePacket
focal_method.body: public static byte[] toMACAddress(String macAddress) {
          return MacAddress.of(macAddress).getBytes();
      }
focal_method.class_method_signature: Ethernet.toMACAddress(String macAddress)
focal_method.full_signature: public static byte[] toMACAddress(String macAddress)
focal_method.identifier: toMACAddress
focal_method.invocations: getBytes of
focal_method.modifiers: public static
focal_method.parameters: (String macAddress)
focal_method.return: byte[]
focal_method.signature: byte[] toMACAddress(String macAddress)