test_class.file: server/src/test/java/com/abiquo/abiserver/networking/IPNetworkRangTest.java
test_class.identifier: IPNetworkRangTest
test_case.body: @Test
      public void testMasktoNumberOfNodes()
      {
  
          // 32 bits mask
          assertEquals((Integer) 1, IPNetworkRang.masktoNumberOfNodes(32));
  
          // 24 bits mask
          assertEquals((Integer) 256, IPNetworkRang.masktoNumberOfNodes(24));
  
          // 16 bits mask
          assertEquals((Integer) 65536, IPNetworkRang.masktoNumberOfNodes(16));
  
          // 8 bits mask
          assertEquals((Integer) 16777216, IPNetworkRang.masktoNumberOfNodes(8));
  
          // 0 bits mask
          assertEquals((Integer) 2147483647, IPNetworkRang.masktoNumberOfNodes(0));
      }
test_case.class_method_signature: IPNetworkRangTest.testMasktoNumberOfNodes()
test_case.full_signature: @Test public void testMasktoNumberOfNodes()
test_case.identifier: testMasktoNumberOfNodes
test_case.invocations: assertEquals masktoNumberOfNodes assertEquals masktoNumberOfNodes assertEquals masktoNumberOfNodes assertEquals masktoNumberOfNodes assertEquals masktoNumberOfNodes
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMasktoNumberOfNodes()
focal_class.file: server/src/main/java/com/abiquo/abiserver/networking/IPNetworkRang.java
focal_class.identifier: IPNetworkRang
focal_class.class_method_signature: IPNetworkRang.masktoNumberOfNodes(Integer mask)
focal_class.full_signature: public static Integer masktoNumberOfNodes(Integer mask)
focal_class.identifier: masktoNumberOfNodes
focal_class.modifiers: public static
focal_class.parameters: (Integer mask)
focal_class.return: Integer
focal_class.signature: Integer masktoNumberOfNodes(Integer mask)
focal_class.class_method_signature: IPNetworkRang.numberOfNodesToMask(Integer numOfNodes)
focal_class.full_signature: public static Integer numberOfNodesToMask(Integer numOfNodes)
focal_class.identifier: numberOfNodesToMask
focal_class.modifiers: public static
focal_class.parameters: (Integer numOfNodes)
focal_class.return: Integer
focal_class.signature: Integer numberOfNodesToMask(Integer numOfNodes)
focal_class.class_method_signature: IPNetworkRang.transformIntegerMaskToIPMask(Integer mask)
focal_class.full_signature: public static IPAddress transformIntegerMaskToIPMask(Integer mask)
focal_class.identifier: transformIntegerMaskToIPMask
focal_class.modifiers: public static
focal_class.parameters: (Integer mask)
focal_class.return: IPAddress
focal_class.signature: IPAddress transformIntegerMaskToIPMask(Integer mask)
focal_class.class_method_signature: IPNetworkRang.calculateWholeRange(IPAddress networkAddress, Integer mask)
focal_class.full_signature: public static List<IPAddress> calculateWholeRange(IPAddress networkAddress, Integer mask)
focal_class.identifier: calculateWholeRange
focal_class.modifiers: public static
focal_class.parameters: (IPAddress networkAddress, Integer mask)
focal_class.return: List<IPAddress>
focal_class.signature: List<IPAddress> calculateWholeRange(IPAddress networkAddress, Integer mask)
focal_class.class_method_signature: IPNetworkRang.transformIPMaskToIntegerMask(IPAddress ipAddress)
focal_class.full_signature: public static Integer transformIPMaskToIntegerMask(IPAddress ipAddress)
focal_class.identifier: transformIPMaskToIntegerMask
focal_class.modifiers: public static
focal_class.parameters: (IPAddress ipAddress)
focal_class.return: Integer
focal_class.signature: Integer transformIPMaskToIntegerMask(IPAddress ipAddress)
focal_class.class_method_signature: IPNetworkRang.lastIPAddressWithNumNodes(IPAddress networkAddress,
          Integer numberOfNodes)
focal_class.full_signature: public static IPAddress lastIPAddressWithNumNodes(IPAddress networkAddress,
          Integer numberOfNodes)
focal_class.identifier: lastIPAddressWithNumNodes
focal_class.modifiers: public static
focal_class.parameters: (IPAddress networkAddress,
          Integer numberOfNodes)
focal_class.return: IPAddress
focal_class.signature: IPAddress lastIPAddressWithNumNodes(IPAddress networkAddress,
          Integer numberOfNodes)
focal_method.body: public static Integer masktoNumberOfNodes(Integer mask)
      {
          return Integer
              .parseInt(((Integer) ((Double) Math.pow(2, 32 - mask)).intValue()).toString());
      }
focal_method.class_method_signature: IPNetworkRang.masktoNumberOfNodes(Integer mask)
focal_method.full_signature: public static Integer masktoNumberOfNodes(Integer mask)
focal_method.identifier: masktoNumberOfNodes
focal_method.invocations: parseInt toString intValue pow
focal_method.modifiers: public static
focal_method.parameters: (Integer mask)
focal_method.return: Integer
focal_method.signature: Integer masktoNumberOfNodes(Integer mask)