LinkManagerImpl

org.nlogo.agent.LinkManagerImpl
class LinkManagerImpl[W <: World](world: W, linkFactory: LinkFactory[W]) extends LinkManager

Attributes

Source
LinkManager.scala
Graph
Supertypes
trait LinkManager
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Attributes

Source
LinkManager.scala
def cleanupTurtle(turtle: Turtle): Unit

Attributes

Source
LinkManager.scala
def inNeighbors(target: Turtle, linkBreed: AgentSet): Array[Turtle]

Attributes

Source
LinkManager.scala
def isLinkedTo(src: Turtle, dest: Turtle, linkBreed: AgentSet): Boolean

Attributes

Source
LinkManager.scala
def isLinkedWith(src: Turtle, dest: Turtle, linkBreed: AgentSet): Boolean

Attributes

Source
LinkManager.scala
def linksTo(src: Turtle, dest: Turtle, linkBreed: AgentSet): Array[Link]

Gets all links going from src to dest of the given breed. Thus, directed, outgoing links from src to dest as well as undirected links connecting them will be included. If world.links is given as the breed, all such links will be returned, regardless of breed. Note that no linksFrom is provided as you can simply reverse the arguments to this method.

Gets all links going from src to dest of the given breed. Thus, directed, outgoing links from src to dest as well as undirected links connecting them will be included. If world.links is given as the breed, all such links will be returned, regardless of breed. Note that no linksFrom is provided as you can simply reverse the arguments to this method.

Attributes

Source
LinkManager.scala
def linksWith(src: Turtle, dest: Turtle, linkBreed: AgentSet): Array[Link]

Gets all links that connect the two turtles with the given link breed. If world.links is given as the breed, all links connecting the two turtles will be returned, regardless of breed. This method ignores the directedness and direction of links. Because link direction is ignored, src and dest are interchangeable.

Gets all links that connect the two turtles with the given link breed. If world.links is given as the breed, all links connecting the two turtles will be returned, regardless of breed. This method ignores the directedness and direction of links. Because link direction is ignored, src and dest are interchangeable.

Attributes

Source
LinkManager.scala
def neighbors(turtle: Turtle, linkSet: AgentSet): Array[Turtle]

Attributes

Source
LinkManager.scala
def otherEnds(turtle: Turtle, links: Array[Link], linkBreed: AgentSet): Array[Turtle]

Attributes

Source
LinkManager.scala
def outNeighbors(src: Turtle, linkBreed: AgentSet): Array[Turtle]

Attributes

Source
LinkManager.scala
def reset(): Unit

Attributes

Source
LinkManager.scala