DummyLink

org.nlogo.agent.DummyLink
See theDummyLink companion object
class DummyLink(world: World, _end1: AnyRef, _end2: AnyRef, breed: AgentSet) extends Link

Attributes

Companion
object
Source
DummyLink.scala
Graph
Supertypes
class Link
trait AgentColors
trait Link
class Agent
trait Comparable[Agent]
trait Agent
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Link -> Any
Source
DummyLink.scala

Inherited methods

def agentBit(): Int

Attributes

Inherited from:
Link
def agentKey(): <FromJavaObject>

Attributes

Inherited from:
Link
def alpha(): Int

0-255, 0 = invisible, 255 = opaque

0-255, 0 = invisible, 255 = opaque

Attributes

Inherited from:
Link

Attributes

Inherited from:
Link
def classDisplayName(): String

Returns a displayable name of this type of agent (Turtle, Link, Patch, Observer)

Returns a displayable name of this type of agent (Turtle, Link, Patch, Observer)

Attributes

Inherited from:
Link
def color(x$0: LogoList): Unit

Attributes

Inherited from:
Link
def color(): <FromJavaObject>

Returns the value of the color variable, a Double or LogoList.

Returns the value of the color variable, a Double or LogoList.

Attributes

Inherited from:
Link
def colorDouble(x$0: Double): Unit

Attributes

Inherited from:
Link
def colorDoubleUnchecked(x$0: Double): Unit

Attributes

Inherited from:
Link
def compareTo(x$0: Agent): Int

Attributes

Inherited from:
Link
def die(): Unit

Attributes

Inherited from:
Link
def end1(): Turtle

Returns the first end point of this link. If the link is directed this is the source turtle if the link is undirected it is the turtle with the lower who number.

Returns the first end point of this link. If the link is directed this is the source turtle if the link is undirected it is the turtle with the lower who number.

Attributes

Inherited from:
Link
def end2(): Turtle

Returns the second end point of this link. If the link is directed this is the destination turtle if the link is undirected it is the turtle with the higher who number.

Returns the second end point of this link. If the link is directed this is the destination turtle if the link is undirected it is the turtle with the higher who number.

Attributes

Inherited from:
Link

Returns the breed AgentSet associated with this link. Iif the link is unbreeded returns the all links AgentSet.

Returns the breed AgentSet associated with this link. Iif the link is unbreeded returns the all links AgentSet.

Attributes

Inherited from:
Link

Returns the index of the breed of this link.

Returns the index of the breed of this link.

Attributes

Inherited from:
Link
def getBreedVariable(x$0: String): <FromJavaObject>

Attributes

Inherited from:
Link
def getLinkBreedVariable(x$0: String): <FromJavaObject>

Attributes

Inherited from:
Link
def getLinkVariable(x$0: Int): <FromJavaObject>

Attributes

Inherited from:
Link

Attributes

Inherited from:
Link
def getPatchAtOffsets(x$0: Double, x$1: Double): Patch

Attributes

Inherited from:
Link
def getPatchVariable(x$0: Int): <FromJavaObject>

Attributes

Inherited from:
Link
def getTurtleOrLinkVariable(x$0: String): <FromJavaObject>

Attributes

Inherited from:
Link
def getTurtleVariable(x$0: Int): <FromJavaObject>

Attributes

Inherited from:
Link
def getVariable(x$0: Int): <FromJavaObject>

Returns the value of the variable in the given position of the agent variable array

Returns the value of the variable in the given position of the agent variable array

Value parameters

vn

the index into the agent variable array

Attributes

Inherited from:
Link
def hasLabel(): Boolean

Returns true if there is a value in the label variable.

Returns true if there is a value in the label variable.

Attributes

Inherited from:
Link
def heading(): Double

Returns the heading towards end2 from end1.

Returns the heading towards end2 from end1.

Attributes

Inherited from:
Link
def hidden(x$0: Boolean): Unit

Attributes

Inherited from:
Link
def hidden(): Boolean

Returns the value of the hidden? variable.

Returns the value of the hidden? variable.

Attributes

Inherited from:
Link
def id: Long

Returns the id number of this agent. The who number in the case of a turtle, index into the array in the case of patches

Returns the id number of this agent. The who number in the case of a turtle, index into the array in the case of patches

Attributes

Inherited from:
Agent
Source
Agent.scala
def id_=(newId: Long): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala
def isTied(): Boolean

Attributes

Inherited from:
Link
def kind(): AgentKind

Returns the kind of this agent (Turtle, Link, Patch, Observer).

Returns the kind of this agent (Turtle, Link, Patch, Observer).

Attributes

Inherited from:
Link
def label(x$0: <FromJavaObject>): Unit

Attributes

Inherited from:
Link
def label(): <FromJavaObject>

Attributes

Inherited from:
Link
def labelColor(x$0: LogoList): Unit

Attributes

Inherited from:
Link
def labelColor(x$0: Double): Unit

Attributes

Inherited from:
Link
def labelColor(): <FromJavaObject>

Returns the value of the label-color variable.

Returns the value of the label-color variable.

Attributes

Inherited from:
Link
def labelString(): String

Returns the value of the label variable.

Returns the value of the label variable.

Attributes

Inherited from:
Link
def lineThickness(x$0: Double): Unit

Attributes

Inherited from:
Link

Returns the value of the thinkness variable.

Returns the value of the thinkness variable.

Attributes

Inherited from:
Link

Returns the size of end2.

Returns the size of end2.

Attributes

Inherited from:
Link
def midpointX(): Double

Returns the x-coordinate of the midpoint of this link taking wrapping in account.

Returns the x-coordinate of the midpoint of this link taking wrapping in account.

Attributes

Inherited from:
Link
def midpointY(): Double

Returns the y-coordinate of the midpoint of this link taking wrapping in account.

Returns the y-coordinate of the midpoint of this link taking wrapping in account.

Attributes

Inherited from:
Link
def mode(x$0: String): Unit

Attributes

Inherited from:
Link
def mode(): String

Attributes

Inherited from:
Link
def otherEnd(x$0: Turtle): Turtle

Attributes

Inherited from:
Link
def realloc(x$0: Program, x$1: Program): Agent

Attributes

Inherited from:
Link
def setBreed(x$0: AgentSet): Unit

Attributes

Inherited from:
Link
def setBreedVariable(x$0: Int, x$1: Double): Unit

Attributes

Inherited from:
Link
def setBreedVariable(x$0: String, x$1: <FromJavaObject>): Unit

Attributes

Inherited from:
Link
def setId(newId: Long): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala
def setLinkBreedVariable(x$0: String, x$1: <FromJavaObject>): Unit

Attributes

Inherited from:
Link
def setLinkVariable(x$0: Int, x$1: <FromJavaObject>): Unit

Attributes

Inherited from:
Link
def setLinkVariable(x$0: Int, x$1: Double): Unit

Attributes

Inherited from:
Link
def setPatchVariable(x$0: Int, x$1: Double): Unit

Attributes

Inherited from:
Link
def setPatchVariable(x$0: Int, x$1: <FromJavaObject>): Unit

Attributes

Inherited from:
Link
def setTurtleOrLinkVariable(x$0: String, x$1: <FromJavaObject>): Unit

Attributes

Inherited from:
Link
def setTurtleVariable(x$0: Int, x$1: Double): Unit

Attributes

Inherited from:
Link
def setTurtleVariable(x$0: Int, x$1: <FromJavaObject>): Unit

Attributes

Inherited from:
Link
def setVariable(x$0: Int, x$1: <FromJavaObject>): Unit

Sets the variable in the position vn of the agent variable array to value

Sets the variable in the position vn of the agent variable array to value

Value parameters

value

the new value for the variable

vn

the index into the agent variable array

Attributes

Throws
api.AgentException

If value is the wrong type for the given variable or if you try to change variables that cannot be changed

Inherited from:
Link
def setVariables(v: Array[AnyRef]): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala
def shape(x$0: String): Unit

Attributes

Inherited from:
Link
def shape(): String

Returns the name of the current shape

Returns the name of the current shape

Attributes

Inherited from:
Link
def size(): Double

Returns the size of this agent

Returns the size of this agent

Attributes

Inherited from:
Link
def untie(): Unit

Attributes

Inherited from:
Link
def validRGBList(rgb: LogoList, allowAlpha: Boolean): Unit

Attributes

Inherited from:
AgentColors
Source
AgentColors.scala
def variableName(x$0: Int): String

Returns the name of the variable with the given index. Works for built-in, *-own, and breed variables.

Returns the name of the variable with the given index. Works for built-in, *-own, and breed variables.

Value parameters

vn

the index of the variable

Attributes

Inherited from:
Link
def variables: Array[AnyRef]

Returns raw array of all agent variables. Warning: this method is liable to change return type in a future API version.

Returns raw array of all agent variables. Warning: this method is liable to change return type in a future API version.

Attributes

Inherited from:
Agent
Source
Agent.scala
def variables_=(v: Array[AnyRef]): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala
def x1(): Double

Returns the x-coordinate of end1.

Returns the x-coordinate of end1.

Attributes

Inherited from:
Link
def x2(): Double

Returns the x-coordinate of end2. This coordinate is "unwrapped" so it may actually be outside the bounds of the world.

Returns the x-coordinate of end2. This coordinate is "unwrapped" so it may actually be outside the bounds of the world.

Attributes

Inherited from:
Link
def y1(): Double

Returns the y-coordinate of end1.

Returns the y-coordinate of end1.

Attributes

Inherited from:
Link
def y2(): Double

Returns the y-coordinate of end2. This coordinate is "unwrapped" so it may actually be outside the bounds of the world.

Returns the y-coordinate of end2. This coordinate is "unwrapped" so it may actually be outside the bounds of the world.

Attributes

Inherited from:
Link

Inherited fields

Attributes

Inherited from:
Link

Attributes

Inherited from:
Link
var _id: Long

Attributes

Inherited from:
AgentJ (hidden)