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

Trigring MessageDeleteEvent #38

Open
erlichsefi opened this issue Dec 5, 2016 · 4 comments
Open

Trigring MessageDeleteEvent #38

erlichsefi opened this issue Dec 5, 2016 · 4 comments

Comments

@erlichsefi
Copy link

it's no clear which parameters i need to write in the config file to trigger an MessageDeleteEvent.
i have tried ::
Events2.class = MessageDeleteEvent
Events2.interval = 10
Events2.size = 500k
Events2.hosts = 2,3
Events2.id=*

but i'm geting :
Can't start: error in configuration file(s)
Class 'input.MessageDeleteEvent' doesn't have a suitable constructor

some HELP?

@tk721
Copy link
Collaborator

tk721 commented Dec 5, 2016

There is no generator for message deletion events, but you can take a look at input/MessageEventGenerator to see how to build one. The other option is to create a file with the message deletion events and use the ExternalEventsQueue to trigger them in the simulation.

@erlichsefi
Copy link
Author

is there any other way to simulate a packet drop between two hosts?

@tk721
Copy link
Collaborator

tk721 commented Dec 7, 2016

Messages are not dropped between hosts. Each host maintains a buffer of the messages it is carrying and can remove messages from it at arbitrary times. See the DTNHost.deleteMessage() method.

@erlichsefi
Copy link
Author

erlichsefi commented Dec 10, 2016

does DTNHost.deleteMessage() remove message before Application.public Message handle(Message m, DTNHost host) () get them?

edit.
i can see that i can delete the messages that pass Application.public Message handle(Message m, DTNHost host) () . but if i want to delete message before that?

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

No branches or pull requests

2 participants