Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

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