java.lang.Objectorg.nlogo.agent.LinkStamp3D
public class LinkStamp3D
| Method Summary | |
|---|---|
String |
classDisplayName()
Returns a displayable name of this type of agent (Turtle, Link, Patch, Observer) |
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 |
Object |
getVariable(int vn)
Returns the value of the variable in the given position of the agent variable array |
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? |
long |
id()
Returns the id number of this agent. |
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 |
pitch()
Returns the pitch towards end2 from end1 |
double |
pointBetweenMidpointAndEnd2X(double c)
|
double |
pointBetweenMidpointAndEnd2Y(double c)
|
void |
setVariable(int vn,
Object value)
Sets the variable in the position vn of the agent variable array to value |
String |
shape()
Returns the name of the current shape, empty string in the case of patches. |
double |
size()
Returns the size of this agent |
World |
world()
Returns the world object associated with this agent |
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 |
double |
z1()
Returns the z-coordinate of end1 |
double |
z2()
Returns the z-coordinate of end2 this coordinate is "unwrapped" so it may actually be outside the bounds of the world |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String shape()
Agent
shape in interface Agentpublic Object color()
Linkcolor variable
color in interface Linkpublic double lineThickness()
Linkthinkness variable
lineThickness in interface Linkpublic double x1()
Link
x1 in interface Linkpublic double y1()
Link
y1 in interface Linkpublic double z1()
Link3D
z1 in interface Link3Dpublic double x2()
Link
x2 in interface Linkpublic double y2()
Link
y2 in interface Linkpublic double z2()
Link3D
z2 in interface Link3Dpublic double midpointX()
Link
midpointX in interface Linkpublic double midpointY()
Link
midpointY in interface Linkpublic boolean isDirectedLink()
Link
isDirectedLink in interface Linkpublic double linkDestinationSize()
Link
linkDestinationSize in interface Linkpublic double heading()
Link
heading in interface Linkpublic double pitch()
Link3D
pitch in interface Link3Dpublic double size()
Agent
size in interface Agentpublic boolean hasLabel()
Linklabel variable
hasLabel in interface Linkpublic String labelString()
Linklabel variable
labelString in interface Linkpublic Object labelColor()
Linklabel-color variable
labelColor in interface Linkpublic boolean hidden()
Linkhidden? variable
hidden in interface Linkpublic double pointBetweenMidpointAndEnd2X(double c)
public double pointBetweenMidpointAndEnd2Y(double c)
public long id()
Agent
id in interface Agentpublic AgentSet getBreed()
Link
getBreed in interface Linkpublic Turtle end1()
Link
end1 in interface Linkpublic Turtle end2()
Link
end2 in interface Linkpublic int getBreedIndex()
Link
getBreedIndex in interface Linkpublic World world()
Agent
world in interface Agentpublic String classDisplayName()
Agent
classDisplayName in interface Agent
public void setVariable(int vn,
Object value)
Agent
setVariable in interface Agentvn - the index into the agent variable arrayvalue - the new value for the variablepublic Object getVariable(int vn)
Agent
getVariable in interface Agentvn - the index into the agent variable array