[WIP] Add javadoc for most classes. #6

Manually merged
regar42 merged 5 commits from javadoc into lastDijsktraClasses 2017-12-10 14:40:43 +00:00
Owner

Doc is a bit unprecise on some points.

Doc is a bit unprecise on some points.
regar42 was assigned by antograb 2017-12-10 11:02:33 +00:00
antograb marked the pull request as work in progress 2017-12-10 11:04:38 +00:00
Collaborator

I'm not a huge fan of :

This is the xxx class as described in the INF101 course of Telecom Paristech.

because it doesn't really tell anything about the classes, but hey, better than nothing.

I'm not a huge fan of : > This is the xxx class as described in the INF101 course of Telecom Paristech. because it doesn't really tell anything about the classes, but hey, better than nothing.
Author
Owner

Doc is a bit unprecise on some points.

Yeah I got kind of lazy there. If you feel like it, you can describe what it actually does ! Or I'll do it later. (But later!)

> Doc is a bit unprecise on some points. Yeah I got kind of lazy there. If you feel like it, you can describe what it actually does ! Or I'll do it later. (But later!)
Collaborator

Currently two methods to describe what methods do are used.

With the first one, we write using imperative, as in Git commit message. For example in

/** Check if a vertex belongs to ASet */
:
/** Check if a vertex belongs to ASet */

With the second, we consider methods are 3rd person subject, as in

/** Returns the HashSet which represents the ASet. */
:
/** Returns the HashSet which represents the ASet. */

Which method should we use ?

Moreover, should we use dots to end every indication ?

Currently two methods to describe what methods do are used. With the first one, we write using imperative, as in Git commit message. For example in https://git.regar42.fr/antograb/TpMazeJava/src/commit/8db8b3faad5eca628a6c4b2daa844296004ff572/src/dijkstra/ASetInterface.java#L13 : /** Check if a vertex belongs to ASet */ With the second, we consider methods are 3rd person subject, as in https://git.regar42.fr/antograb/TpMazeJava/src/commit/8db8b3faad5eca628a6c4b2daa844296004ff572/src/dijkstra/ASetInterface.java#L16 : /** Returns the HashSet which represents the ASet. */ Which method should we use ? Moreover, should we use dots to end every indication ?
Author
Owner

I guess third person subject fits better.

I guess third person subject fits better.
regar42 closed this pull request 2017-12-10 14:41:48 +00:00
regar42 deleted branch javadoc 2017-12-10 14:42:03 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: antograb/TpMazeJava#6