test_class.file: server/src/test/java/com/abiquo/abiserver/networking/IPNetworkRangTest.java
test_class.identifier: IPNetworkRangTest
test_case.body: @Test
      public void testNumberOfNodesToMask()
      {
          // 1 node
          assertEquals((Integer) 32, IPNetworkRang.numberOfNodesToMask(1));
  
          // 256 nodes
          assertEquals((Integer) 24, IPNetworkRang.numberOfNodesToMask(256));
  
          // 65536 nodes
          assertEquals((Integer) 16, IPNetworkRang.numberOfNodesToMask(65536));
  
          // 16777216 nodes
          assertEquals((Integer) 8, IPNetworkRang.numberOfNodesToMask(16777216));
  
          // 2147483647 nodes
          assertEquals((Integer) 2, IPNetworkRang.numberOfNodesToMask(2147483647));
      }
test_case.class_method_signature: IPNetworkRangTest.testNumberOfNodesToMask()
test_case.full_signature: @Test public void testNumberOfNodesToMask()
test_case.identifier: testNumberOfNodesToMask
test_case.invocations: assertEquals numberOfNodesToMask assertEquals numberOfNodesToMask assertEquals numberOfNodesToMask assertEquals numberOfNodesToMask assertEquals numberOfNodesToMask
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNumberOfNodesToMask()
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 numberOfNodesToMask(Integer numOfNodes)
      {
          return Integer.parseInt(((Integer) (32 - ((Double) (Math.log(numOfNodes) / Math.log(2)))
              .intValue())).toString());
      }
focal_method.class_method_signature: IPNetworkRang.numberOfNodesToMask(Integer numOfNodes)
focal_method.full_signature: public static Integer numberOfNodesToMask(Integer numOfNodes)
focal_method.identifier: numberOfNodesToMask
focal_method.invocations: parseInt toString intValue log log
focal_method.modifiers: public static
focal_method.parameters: (Integer numOfNodes)
focal_method.return: Integer
focal_method.signature: Integer numberOfNodesToMask(Integer numOfNodes)