Skip to content

Commit

Permalink
Adding javadoc compatible comments and new documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bibo7086 committed May 7, 2023
1 parent bcd3a6b commit d87e601
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ If you want to contribute:

## Code Documentation

[Kademlia draft documentation](simulator/src/main/java/peersim/kademlia/docs/apidocs/index.html)

[Kademlia draft documentation](simulator/src/main/java/peersim/kademlia/docs/kademlia_draft_doc.md)

## How to create a protocol on top of Kademlia

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ Apart from the KademliaProtocol class many other classes are used, but two are i

### **3. Class and Method Description**

Before adopting Javadoc, the following descriptions were written for the classes and methods in the **`KademliaProtocol`** Class. The javadoc generated documentation can be found [here](../docs/apidocs/index.html).

Before adopting Javadoc, the following descriptions were written for the classes and methods in the **`KademliaProtocol`** Class. The javadoc generated documentation can be found in the apidocs subfolder within the docs folder [here](../docs/apidocs/) (or following ../docs/apidocs/).

The primary/main class is the **`KademliaProtocol`** class, which implements the **`EDProtocol`** interface. It has several instance variables, including `nodeId`, which represents the ID of the node running the protocol; `routingTable`, which is the routing table for the node; and `sentMsg` and `findOp`, which are data structures used to keep track of messages sent and find operations, respectively.

Expand Down

0 comments on commit d87e601

Please sign in to comment.