Home Download Help Forum Resources Extensions FAQ NetLogo Publications Contact Us Donate Models: Library Community Modeling Commons Beginners Interactive NetLogo Dictionary (BIND) NetLogo Dictionary User Manuals: Web Printable Chinese Czech Farsi / Persian Japanese Spanish
|
NetLogo Models Library: |
If you download the NetLogo application, this model is included. You can also Try running it in NetLogo Web |
This example demonstrates how to use overrides in HubNet.
The most important part of the code is found in the EXECUTE-COMMAND procedure. When the server receives a message that the client clicked on the view it sends a message back to the client to change the color of the nearby patches.
Note that this feature will only work if you have the "Mirror 2D view on clients" box checked in the HubNet Control Center.
Comment out the line:
hubnet-clear-overrides hubnet-message-source
what changes?
This model demonstrates basic usage of HUBNET-SEND-OVERRIDE and HUBNET-CLEAR-OVERRIDES.
(back to the NetLogo Models Library)