On 0504, Robert Klemme wrote: > > > 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? > > What was your question exactly? You seem to have implemented the simulator > already... Just one little thing (chicken-egg problem): the links should know about the 2 ending nodes, and nodes must know about in/outgoing links. So how to easily administrate it? Gergo -- +-[ Kontra, Gergely<kgergely / mcl.hu> PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+