G
Gergely Kontra
Hello!
I'd like to ask for help for my problem. Maybe the Q isn't
ruby-specific, but I WILL implement it in ruby, and I want to make a
rubyish program. I hope I can learn from the problem.
So: I had to write a network simulator. It consists of nodes, link
between nodes. The delay of the link should be user-programmable (maybe
proc is the right way, but it must be evaluated in the object's scope,
because delay is not independent of the link's state...
And finally the simulator has agents. Agents are programs, which can
migrate. Migration is requested by agent. (Request goes to the node, and
the node does the actual migration...)
Agent must know about their own location, it can ask the node about
outgoing links (so nodes must know about links ending at the node, of
course).
Shall I submit my code? Or did anybody has a model for it already?
thx in advance
Gergo
I'd like to ask for help for my problem. Maybe the Q isn't
ruby-specific, but I WILL implement it in ruby, and I want to make a
rubyish program. I hope I can learn from the problem.
So: I had to write a network simulator. It consists of nodes, link
between nodes. The delay of the link should be user-programmable (maybe
proc is the right way, but it must be evaluated in the object's scope,
because delay is not independent of the link's state...
And finally the simulator has agents. Agents are programs, which can
migrate. Migration is requested by agent. (Request goes to the node, and
the node does the actual migration...)
Agent must know about their own location, it can ask the node about
outgoing links (so nodes must know about links ending at the node, of
course).
Shall I submit my code? Or did anybody has a model for it already?
thx in advance
Gergo