class MutableNodeLike[I, N <: Node] extends MutableNode[I, N]
Represents a mutable node of a directed graph. This class serves as a base implementation of the MutableNode trait.
Thread Safety
This class is thread-safe. It is possible to add multiple child nodes concurrently.
- I
The type of the object that is associated with this node/the type of the object for which this node object is created.
- Source
- MutableNodeLike.scala
- See also
The demo project for example usages.
- Alphabetic
- By Inheritance
- MutableNodeLike
- MutableNode
- Node
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new MutableNodeLike(theIdentifier: I, identifierToString: (I) => String, theVisualProperties: Map[String, String], theChildren: List[N])
- theIdentifier
The underlying object. For all nodes of a graph the hashCode method has to return a unique id unless the nodeId method is overridden. The underlying object must correctly implement the equals/hashCode contract. I.e., the
hashCode
of two object instances that are added to the same graph is different wheneverequals
isfalse
.- identifierToString
A function that converts "an" identifier to a string. By default the given object's
toString
method is called. It is possible that a graph has two nodes with the same textual representation representation but a different identity.
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 addChild(node: N): Unit
- Definition Classes
- MutableNodeLike → MutableNode
- def addChildren(furtherChildren: List[N]): Unit
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def children: List[N]
- Definition Classes
- MutableNodeLike → MutableNode
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(other: Any): Boolean
- Definition Classes
- Node → AnyRef → Any
- def firstChild: N
- Definition Classes
- MutableNodeLike → MutableNode
- def foreachSuccessor(f: (Node) => Unit): Unit
Applies the given function for each successor node.
Applies the given function for each successor node.
- Definition Classes
- MutableNodeLike → Node
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hasOneChild: Boolean
- Definition Classes
- MutableNodeLike → MutableNode
- def hasSuccessors: Boolean
Returns
true
if this node has successor nodes.Returns
true
if this node has successor nodes.- Definition Classes
- MutableNodeLike → Node
- def hashCode(): Int
The hash code of this node.
The hash code of this node. By default the hash code is the unique id.
- Definition Classes
- Node → AnyRef → Any
- def identifier: I
- Definition Classes
- MutableNodeLike → MutableNode
- val identifierToString: (I) => String
- Definition Classes
- MutableNodeLike → MutableNode
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mergeVisualProperties(other: Map[String, String]): Unit
- Definition Classes
- MutableNodeLike → MutableNode
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nodeId: Int
An identifier that uniquely identifies this node in the graph to which this node belongs.
An identifier that uniquely identifies this node in the graph to which this node belongs. By default two nodes are considered equal if they have the same unique id.
- Definition Classes
- MutableNodeLike → Node
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def removeChild(node: N): Unit
- Definition Classes
- MutableNodeLike → MutableNode
- def removeLastAddedChild(): Unit
- Definition Classes
- MutableNodeLike → MutableNode
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toHRR: Option[String]
Returns a human readable representation (HRR) of this node.
Returns a human readable representation (HRR) of this node.
- Definition Classes
- MutableNodeLike → Node
- def toString(): String
- Definition Classes
- AnyRef → Any
- def updateIdentifier(newIdentifier: I): Unit
- Definition Classes
- MutableNodeLike → MutableNode
- def visualProperties: Map[String, String]
- Definition Classes
- MutableNodeLike → Node
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated