javadoc style for comments that you would like to
appear in the documentation generated by javadoc
/** and */.
You can include HTML tags in the comments.
/**
* This class variable represents the number of actions that all
* Critters can take.
*/
public static int nActions;
javadoc comments
are @param and @return.
/**
* Causes the Critter to either move or turn with the given probability.
* @param turnAngle The clockwise angle (1-5) to turn.
* @param turnProbability The probability of turning.
* @return Reinforcement received.
*/
public int moveOrTurn(int turnAngle, double turnProbability) {
return getWorld().moveOrTurn(getCritter(), turnAngle, turnProbability);
}
javadoc followed by the names of
the source (.java) files that you want to document. If you want
the documentation to go to a different directory, use the -d option.
For example
javadoc -d Docs/ Smarts.java Brain.java Effector.java Sensor.java
//.
Everything following this one a given line will be treated as a comment.