Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Greedy Geographical Routing Module #47

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

satyatumati
Copy link

I have added the GreedyGeoRouter module to the src.

Copy link
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.

@@ -537,5 +537,29 @@ public boolean equals(DTNHost otherHost) {
public int compareTo(DTNHost h) {
return this.getAddress() - h.getAddress();
}
/**
Copy link
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.

/**
* @return the msgType
*/
public int getMsgType(){
Copy link
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.

/**
* @return the localHops
*/
public int getLocalHops(){
Copy link
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