Hi Richard,

I looked the repo; he's defined 3 classes: one for packets, one for nodes,
and one for links.  So yes, he instantiates links.  Likely each node has a
collection of links (each of which leads to another node in the network). 
The application is to simulate a network by modeling it in ST, so that means
generating packets, each with a destination node (where nodes have
addresses), and simulating how the packets flow through the network to get
from their source nodes to their destination nodes.

I hadn't though about sending the blocks to the nodes via the packets, but
that *is* a cool concept... And entirely do-able in Pharo.  However, if the
exercise is to make a simple network model that runs to simulate network
operation, I doubt that's what they're looking for, though (since it's not
what you typically do in a packet network).  I think they just want you to
model the packet-handling behavior, and that's what the block is for.  (I
may be wrong.)

-Ted








--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply via email to