Skip to content

Greedy Geographical Routing Module#47

Open
satyatumati wants to merge 2 commits into
akeranen:masterfrom
satyatumati:master
Open

Greedy Geographical Routing Module#47
satyatumati wants to merge 2 commits into
akeranen:masterfrom
satyatumati:master

Conversation

@satyatumati
Copy link
Copy Markdown

I have added the GreedyGeoRouter module to the src.

Copy link
Copy Markdown
Owner

@akeranen akeranen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of extending the core classes, I'd suggest implementing functionality in the routing module and reusing the property mechanism of Message class.

Comment thread src/core/DTNHost.java
public int compareTo(DTNHost h) {
return this.getAddress() - h.getAddress();
}
/**
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feature does not sound to me generic enough for the DTNHost class. Perhaps it's better implemented in the routing module.

Comment thread src/core/Message.java
/**
* @return the msgType
*/
public int getMsgType(){
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is quite specific to a routing module, I'd suggest using the {add,get,update}Property methods for this kind of functionality.

Comment thread src/core/Message.java
/**
* @return the localHops
*/
public int getLocalHops(){
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants