From: Gergely Kontra Date: 2004-05-04T01:17:14+09:00 Subject: model for my problem (network simulator) 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 -- +-[ Kontra, Gergely 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 --+