Skip to content

Commit

Permalink
Added some documentation for possibly non-obvious methods
Browse files Browse the repository at this point in the history
  • Loading branch information
rajarshi committed Dec 9, 2010
1 parent 1060652 commit 851c4be
Showing 1 changed file with 17 additions and 0 deletions.
Expand Up @@ -150,6 +150,12 @@ private static void readPEneg() throws IOException {
}
}

/**
* Get the Van der Waals radius for the element in question.
*
* @param symbol The symbol of the element
* @return the van der waals radius
*/
@TestMethod("testTable")
public static Double getVdwRadius(String symbol) {
initialize();
Expand Down Expand Up @@ -230,6 +236,12 @@ public static Double getPaulingElectronegativity(String symbol) {
else return element.getPaulingEneg();
}

/*
* Get the symbol for the specified atomic number.
*
* @param atomicNumber the atomic number of the element
* @return the corresponding symbol
*/
@TestMethod("testTable")
public static String getSymbol(int atomicNumber) {
initialize();
Expand All @@ -238,6 +250,11 @@ public static String getSymbol(int atomicNumber) {
else return element.getSymbol();
}

/**
* Return the number of elements currently considered in the periodic table.
*
* @return the number of elements in the periodic table
*/
@TestMethod("testTable")
public static int getElementCount() {
initialize();
Expand Down

0 comments on commit 851c4be

Please sign in to comment.