public interface Link
Interface provides access to NetLogo links.
Method Summary | |
---|---|
Object |
color()
Returns the value of the color variable |
Turtle |
end1()
Returns the first end point of this link. |
Turtle |
end2()
Returns the second end point of this link. |
AgentSet |
getBreed()
Returns the breed AgentSet associated with this link, if the link is unbreeded returns the all links AgentSet |
int |
getBreedIndex()
Returns the index of the breed of this link |
boolean |
hasLabel()
Returns true if there is a value in the label variable |
double |
heading()
Returns the heading towards end2 from end1 |
boolean |
hidden()
Returns the value of the hidden? |
boolean |
isDirectedLink()
Returns true if this link is directed |
Object |
labelColor()
Returns the value of the label-color variable |
String |
labelString()
Returns the value of the label variable |
double |
lineThickness()
Returns the value of the thinkness variable |
double |
linkDestinationSize()
Returns the size of end2 |
double |
midpointX()
Returns the x-coordinate of the midpoint of this link taking wrapping in account. |
double |
midpointY()
Returns the y-coordinate of the midpoint of this link taking wrapping in account. |
double |
x1()
Returns the x-coordinate of end1 |
double |
x2()
Returns the x-coordinate of end2 this coordinate is "unwrapped" so it may actually be outside the bounds of the world |
double |
y1()
Returns the y-coordinate of end1 |
double |
y2()
Returns the y-coordinate of end2 this coordinate is "unwrapped" so it may actually be outside the bounds of the world |
Methods inherited from interface org.nlogo.api.Agent |
---|
classDisplayName, getVariable, id, setVariable, shape, size, world |
Method Detail |
---|
Turtle end1()
Turtle end2()
AgentSet getBreed()
double midpointX()
double midpointY()
double x1()
double y1()
double x2()
double y2()
boolean isDirectedLink()
double heading()
double linkDestinationSize()
boolean hidden()
hidden?
variable
double lineThickness()
thinkness
variable
boolean hasLabel()
label
variable
Object color()
color
variable
String labelString()
label
variable
Object labelColor()
label-color
variable
int getBreedIndex()