You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Links Monitor how does one specify end1 and end2?
These are turtles, and the most obvious values to try are who numbers e.g. 0or expressions using who numbers e.g. (turtle 0).
As indicated below neither of these works.
The documentation does not help. It gives an example for a patch but not for a link. It indicates that you can open agent monitors through the Tools menu or the inspect command.
The inspect documentation gives the example
inspect one-of links
;; an agent monitor opens for a random link
Create a Links Agent Monitor
Directions
Create two turtles
Create a link between them
Execute inspect link 0 1 in the command center
The monitor looks like this:
You might think that if you open a new Link Monitor and type (turtle 0) and (turtle 1) for end1 and end2 that would work.
However if you type (turtle 0) for end 1 and Return the value will disappear, which is how Agent Monitors generally work.
If guided by inspect link 0 1 in the documentation you enter 0 for end1, you get a runtime error. This is clearly an issue that needs to be fixed.
Has this feature ever worked? How is it supposed to work?
The text was updated successfully, but these errors were encountered:
With the merger of #2231 the behavior here is improved. As noted, you can now type turtle who numbers into the end1 and end2 fields, along with a link breed, and it will show the desired link. However this is what you see before specifying the breed:
This looks at a quick glance like it's a valid link, which might be confusing for users. I think that if a user types in two turtle numbers and a link exists between them, one of those links should be chosen and displayed. This matches how the patch monitor works, where entering a pxcor will pick and display one of the patches with that coordinate and allow the user to further refine (say, by pycor) if they want to afterwards.
In the Links Monitor how does one specify end1 and end2?
or expressions using
These are turtles, and the most obvious values to try are
who numbers
e.g. 0who numbers
e.g.(turtle 0)
.As indicated below neither of these works.
The documentation does not help. It gives an example for a patch but not for a link. It indicates that you can open agent monitors through the Tools menu or the inspect command.
The
inspect
documentation gives the exampleCreate a Links Agent Monitor
Directions
Create two turtles
Create a link between them
Execute inspect link 0 1 in the command center
The monitor looks like this:
You might think that if you open a new Link Monitor and type (turtle 0) and (turtle 1) for end1 and end2 that would work.
However if you type
(turtle 0)
for end 1 andReturn
the value will disappear, which is how Agent Monitors generally work.If guided by
inspect link 0 1
in the documentation you enter 0 for end1, you get a runtime error. This is clearly an issue that needs to be fixed.Has this feature ever worked? How is it supposed to work?
The text was updated successfully, but these errors were encountered: