c

org.nlogo.agent

LinkManagerImpl

class LinkManagerImpl extends LinkManager

Source
LinkManager.scala
Linear Supertypes
LinkManager, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LinkManagerImpl
  2. LinkManager
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LinkManagerImpl(world: World, linkFactory: LinkFactory)

Value Members

  1. def addLink(link: Link): Unit
    Definition Classes
    LinkManagerImplLinkManager
  2. def checkBreededCompatibility(unbreeded: Boolean): Boolean
    Definition Classes
    LinkManagerImplLinkManager
  3. def cleanupLink(link: Link): Unit
    Definition Classes
    LinkManagerImplLinkManager
  4. def cleanupTurtle(turtle: Turtle): Unit
    Definition Classes
    LinkManagerImplLinkManager
  5. def createLink(src: Turtle, dest: Turtle, linkBreed: AgentSet): Link
    Definition Classes
    LinkManagerImplLinkManager
  6. def getLink(src: Turtle, dest: Turtle, linkBreed: AgentSet): Option[Link]

    Gets a specific link for the given turtles and link breed.

    Gets a specific link for the given turtles and link breed. Note that unlike the other methods in this class, if world.links is given as the breed, *only* an unbreeded link can be found. Thus, there can only be a single matching link. If the breed is undirected, src and dest are interchangeable.

    Definition Classes
    LinkManagerImplLinkManager
  7. def inLinks(target: Turtle, linkBreed: AgentSet): Array[Link]
    Definition Classes
    LinkManagerImplLinkManager
  8. def inNeighbors(target: Turtle, linkBreed: AgentSet): Array[Turtle]
    Definition Classes
    LinkManagerImplLinkManager
  9. def links(turtle: Turtle, linkBreed: AgentSet): Array[Link]
    Definition Classes
    LinkManagerImplLinkManager
  10. def linksTo(src: Turtle, dest: Turtle, linkBreed: AgentSet): Array[Link]

    Gets all links going from src to dest of the given breed.

    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.

    Definition Classes
    LinkManagerImplLinkManager
  11. def linksWith(src: Turtle, dest: Turtle, linkBreed: AgentSet): Array[Link]

    Gets all links that connect the two turtles with the given link breed.

    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.

    Definition Classes
    LinkManagerImplLinkManager
  12. def neighbors(turtle: Turtle, linkBreed: AgentSet): Array[Turtle]
    Definition Classes
    LinkManagerImplLinkManager
  13. def otherEnds(turtle: Turtle, links: Array[Link], linkBreed: AgentSet): Array[Turtle]
  14. def outLinks(src: Turtle, linkBreed: AgentSet): Array[Link]
    Definition Classes
    LinkManagerImplLinkManager
  15. def outNeighbors(src: Turtle, linkBreed: AgentSet): Array[Turtle]
    Definition Classes
    LinkManagerImplLinkManager
  16. def removeLink(link: Link): Unit
    Definition Classes
    LinkManagerImplLinkManager
  17. def reset(): Unit
    Definition Classes
    LinkManagerImplLinkManager