code: public NodeTypes ENgetnodetype( int index ) throws EpanetException {
          int[] typecode = new int[1];
          int error = epanet.ENgetnodetype(index, typecode);
          checkError(error);
  
          NodeTypes type = NodeTypes.forCode(typecode[0]);
          return type;
      }
docs: Retrieves the node-type code for a specific node.
  
  @param index the node index.
  @return the {@link NodeTypes};
  @throws EpanetException