trait MutableNode[I, N <: Node] extends Node
Common interface of all mutable nodes of a directed graph. This class basically serves as a small adapter class for some arbitrary node.
- I
The type of the object that is associated with this node/the type of the object for which this node object is created.
- N
The type of the node of the child nodes that can be added or removed.
- Source
- MutableNode.scala
- See also
The demo project for example usages.
- Alphabetic
- By Inheritance
- MutableNode
- Node
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def addChild(node: N): Unit
- abstract def children: List[N]
- abstract def firstChild: N
- abstract def foreachSuccessor(f: (Node) => Unit): Unit
Applies the given function for each successor node.
Applies the given function for each successor node.
- Definition Classes
- Node
- abstract def hasOneChild: Boolean
- abstract def hasSuccessors: Boolean
Returns
true
if this node has successor nodes.Returns
true
if this node has successor nodes.- Definition Classes
- Node
- abstract def identifier: I
- abstract def identifierToString: (I) => String
- abstract def mergeVisualProperties(other: Map[String, String]): Unit
- abstract 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
- Node
- abstract def removeChild(node: N): Unit
- abstract def removeLastAddedChild(): Unit
- abstract def toHRR: Option[String]
Returns a human readable representation (HRR) of this node.
Returns a human readable representation (HRR) of this node.
- Definition Classes
- Node
- abstract def updateIdentifier(newIdentifier: I): 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(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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- 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
- 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
- def visualProperties: Map[String, String]
- Definition Classes
- 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