case class Node(shape: RectangularShape, label: String, primary: Boolean, color: Color, x: Double, y: Double, w: Double, h: Double) extends Product with Serializable
This class is used to represent nodes in the graph.
- shape
the shape of the node
- label
the label for the created node
- primary
whether it is a primary/transition/true or secondary/place node/false
- color
the color of the node
- x
the x-coordinate (top left)
- y
the y-coordinate (top left)
- w
the width
- h
the height
- Alphabetic
- By Inheritance
- Node
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Node(shape: RectangularShape, label: String, primary: Boolean, color: Color, x: Double, y: Double, w: Double, h: Double)
- shape
the shape of the node
- label
the label for the created node
- primary
whether it is a primary/transition/true or secondary/place node/false
- color
the color of the node
- x
the x-coordinate (top left)
- y
the y-coordinate (top left)
- w
the width
- h
the height
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
addEdge(edge: Edge): Boolean
Add an outgoing edge to this node.
Add an outgoing edge to this node.
- edge
the edge to add
-
def
addToken(token: Token): Unit
Add a token from this node.
Add a token from this node.
- token
the token to add
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- var color: Color
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val h: Double
-
val
id: Int
Node identifier
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val label: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
outEdges: ListBuffer[Edge]
List of outgoing edges
- val primary: Boolean
-
def
removeEdge(edge: Edge): Unit
Remove an outgoing edge from this node.
Remove an outgoing edge from this node.
- edge
the edge to remove
-
def
removeToken(token: Token): Unit
Remove a token from this node.
Remove a token from this node.
- token
the token to remove
-
def
setColor(color2: Color): Unit
Set (or reset) the color.
- val shape: RectangularShape
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
Convert this node to a string.
Convert this node to a string.
- Definition Classes
- Node → AnyRef → Any
-
val
tokens: ListBuffer[Token]
List of tokens current in this node
- val w: Double
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- val x: Double
- val y: Double