NetLogo HubNet Slider Values -


In my hibernate application, each client has access to a slider, which he can use to guess the answers to those questions is. To reset the slider between questions, I use the command

  set slider-value 0  

. However, it is only associated with the slider Defines global variable by 0, not the slider which manages the participants. How do I change the slider myself (from the server)?

This is very misleading because it is since it hits the guessing button before moving the slider, then its prediction will be the same as the global variable which is currently set to the slider. I think there is a reason for an illusion here that the hubnet system is a "thin" or " Dumb "is the client system

Specifically, the client has no awareness about the meaning of its interface elements. Therefore, your thoughts (hoping to update the variable on the NetLogo server and expecting that the client will be informed that the interface element that is related to this variable [will mean the update].

Its Instead, your Natalologo model needs to manage the meaning and its effect, so the "slider-value" variable changes and then the host needs to update their interface elements to the client. You can do this by issuing the hubnet-send command. For example, let's say that the hubnet client is called "Joe", the slider "MySlider" in the client interface, and The relevant variable is, as you say, the slider-value then you

  hubnet-send "joe" "my-slider" slider-value   
  Ask customers [hbnet-send my ID "MySlider" slider-value]  

Comments