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 Agent
public Object color()
Link
color
variable
color
in interface Link
public double lineThickness()
Link
thinkness
variable
lineThickness
in interface Link
public double x1()
Link
x1
in interface Link
public double y1()
Link
y1
in interface Link
public double z1()
Link3D
z1
in interface Link3D
public double x2()
Link
x2
in interface Link
public double y2()
Link
y2
in interface Link
public double z2()
Link3D
z2
in interface Link3D
public double midpointX()
Link
midpointX
in interface Link
public double midpointY()
Link
midpointY
in interface Link
public boolean isDirectedLink()
Link
isDirectedLink
in interface Link
public double linkDestinationSize()
Link
linkDestinationSize
in interface Link
public double heading()
Link
heading
in interface Link
public double pitch()
Link3D
pitch
in interface Link3D
public double size()
Agent
size
in interface Agent
public boolean hasLabel()
Link
label
variable
hasLabel
in interface Link
public String labelString()
Link
label
variable
labelString
in interface Link
public Object labelColor()
Link
label-color
variable
labelColor
in interface Link
public boolean hidden()
Link
hidden?
variable
hidden
in interface Link
public double pointBetweenMidpointAndEnd2X(double c)
public double pointBetweenMidpointAndEnd2Y(double c)
public long id()
Agent
id
in interface Agent
public AgentSet getBreed()
Link
getBreed
in interface Link
public Turtle end1()
Link
end1
in interface Link
public Turtle end2()
Link
end2
in interface Link
public int getBreedIndex()
Link
getBreedIndex
in interface Link
public World world()
Agent
world
in interface Agent
public String classDisplayName()
Agent
classDisplayName
in interface Agent
public void setVariable(int vn, Object value)
Agent
setVariable
in interface Agent
vn
- the index into the agent variable arrayvalue
- the new value for the variablepublic Object getVariable(int vn)
Agent
getVariable
in interface Agent
vn
- the index into the agent variable array