trait LinkManager extends AnyRef
- Alphabetic
- By Inheritance
- LinkManager
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def addLink(link: Link): Unit
- abstract def checkBreededCompatibility(unbreeded: Boolean): Boolean
- abstract def cleanupLink(link: Link): Unit
- abstract def cleanupTurtle(turtle: Turtle): Unit
- abstract def createLink(src: Turtle, dest: Turtle, linkBreed: AgentSet): Link
- abstract def dummyLink(end1: Turtle, end2: Turtle, breed: AgentSet): DummyLink
-
abstract
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
anddest
are interchangeable. - abstract def inLinks(target: Turtle, linkBreed: AgentSet): Array[Link]
- abstract def inNeighbors(target: Turtle, linkBreed: AgentSet): Array[Turtle]
- abstract def isLinkedTo(src: Turtle, dest: Turtle, linkBreed: AgentSet): Boolean
- abstract def isLinkedWith(src: Turtle, dest: Turtle, linkBreed: AgentSet): Boolean
- abstract def links(target: Turtle, linkSet: AgentSet): Array[Link]
-
abstract
def
linksTo(src: Turtle, dest: Turtle, linkBreed: AgentSet): Array[Link]
Gets all links going from
src
todest
of the given breed.Gets all links going from
src
todest
of the given breed. Thus, directed, outgoing links fromsrc
todest
as well as undirected links connecting them will be included. Ifworld.links
is given as the breed, *all* such links will be returned, regardless of breed. Note that nolinksFrom
is provided as you can simply reverse the arguments to this method. -
abstract
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
anddest
are interchangeable. - abstract def neighbors(target: Turtle, linkSet: AgentSet): Array[Turtle]
- abstract def outLinks(src: Turtle, linkBreed: AgentSet): Array[Link]
- abstract def outNeighbors(src: Turtle, linkBreed: AgentSet): Array[Turtle]
- abstract def removeLink(link: Link): Unit
- abstract def reset(): Unit
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )