-
Notifications
You must be signed in to change notification settings - Fork 199
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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(); | |||
} | |||
/** |
There was a problem hiding this comment.
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(){ |
There was a problem hiding this comment.
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(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comment above
I have added the GreedyGeoRouter module to the src.