class LinkManagerImpl[W <: World] extends LinkManager
- Source
- LinkManager.scala
- Alphabetic
- By Inheritance
- LinkManagerImpl
- LinkManager
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new LinkManagerImpl(world: W, linkFactory: LinkFactory[W])
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
-
def
addLink(link: Link): Unit
- Definition Classes
- LinkManagerImpl → LinkManager
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
checkBreededCompatibility(unbreeded: Boolean): Boolean
- Definition Classes
- LinkManagerImpl → LinkManager
-
def
cleanupLink(link: Link): Unit
- Definition Classes
- LinkManagerImpl → LinkManager
-
def
cleanupTurtle(turtle: Turtle): Unit
- Definition Classes
- LinkManagerImpl → LinkManager
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
def
createLink(src: Turtle, dest: Turtle, linkBreed: AgentSet): Link
- Definition Classes
- LinkManagerImpl → LinkManager
-
def
dummyLink(end1: Turtle, end2: Turtle, breed: AgentSet): DummyLink
- Definition Classes
- LinkManagerImpl → LinkManager
-
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
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.- Definition Classes
- LinkManagerImpl → LinkManager
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
inLinks(target: Turtle, linkBreed: AgentSet): Array[Link]
- Definition Classes
- LinkManagerImpl → LinkManager
-
def
inNeighbors(target: Turtle, linkBreed: AgentSet): Array[Turtle]
- Definition Classes
- LinkManagerImpl → LinkManager
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isLinkedTo(src: Turtle, dest: Turtle, linkBreed: AgentSet): Boolean
- Definition Classes
- LinkManagerImpl → LinkManager
-
def
isLinkedWith(src: Turtle, dest: Turtle, linkBreed: AgentSet): Boolean
- Definition Classes
- LinkManagerImpl → LinkManager
-
def
links(turtle: Turtle, linkSet: AgentSet): Array[Link]
- Definition Classes
- LinkManagerImpl → LinkManager
-
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.- Definition Classes
- LinkManagerImpl → LinkManager
-
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.- Definition Classes
- LinkManagerImpl → LinkManager
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
neighbors(turtle: Turtle, linkSet: AgentSet): Array[Turtle]
- Definition Classes
- LinkManagerImpl → LinkManager
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def otherEnds(turtle: Turtle, links: Array[Link], linkBreed: AgentSet): Array[Turtle]
-
def
outLinks(src: Turtle, linkBreed: AgentSet): Array[Link]
- Definition Classes
- LinkManagerImpl → LinkManager
-
def
outNeighbors(src: Turtle, linkBreed: AgentSet): Array[Turtle]
- Definition Classes
- LinkManagerImpl → LinkManager
-
def
removeLink(link: Link): Unit
- Definition Classes
- LinkManagerImpl → LinkManager
-
def
reset(): Unit
- Definition Classes
- LinkManagerImpl → LinkManager
-
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( ... )