Vertex

scalation.database.graph.Vertex
See theVertex companion object
class Vertex(_name: String, val prop: Property, _pos: VectorD) extends Identifiable, Spatial, PartiallyOrdered[Vertex], Serializable

The Vertex class maintains properties for a vertex, e.g., a person. A vertex is analogous to a tuple in an RDBMS.

Value parameters

_name

the name of this vertex ('name' from Identifiable), serves as vertex label

_pos

the position (Euclidean coordinates) of this vertex ('pos' from `Spatial)

prop

maps vertex's property names into property values

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Spatial
trait PartiallyOrdered[Vertex]
trait Identifiable
class Object
trait Matchable
class Any
Show all
Known subtypes
class Junction
class Resource
class Sink
class WaitQueue

Members list

Type members

Inherited types

type AsPartiallyOrdered = Function1

Attributes

Inherited from:
PartiallyOrdered

Value members

Concrete methods

Return the center coordinates for this vertex.

Return the center coordinates for this vertex.

Attributes

def show(width_: Int): Unit

SHOW/print this table, one tuple per row. Formatting: regular column is 'width_' chars wide, 'X' is double that FIX - currently only works for width_, not width & @param width_ the standard column width

SHOW/print this table, one tuple per row. Formatting: regular column is 'width_' chars wide, 'X' is double that FIX - currently only works for width_, not width & @param width_ the standard column width

Attributes

override def toString: String

Convert this vertex object to a string.

Convert this vertex object to a string.

Attributes

Definition Classes
Spatial -> Any
override def tryCompareTo[B >: Vertex : AsPartiallyOrdered](other: B): Option[Int]

Compare two spatial objects based on their space coordinates.

Compare two spatial objects based on their space coordinates.

Value parameters

other

the other item to compare with this item

Attributes

Definition Classes
Spatial -> PartiallyOrdered

Inherited methods

def <[B >: Vertex : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def <=[B >: Vertex : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def >[B >: Vertex : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def >=[B >: Vertex : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
override def equals(that: Any): Boolean

Determine whether Identifiable object 'this' equals Identifiable object 'that'. Works since 'id' is unique for all Identifiable objects.

Determine whether Identifiable object 'this' equals Identifiable object 'that'. Works since 'id' is unique for all Identifiable objects.

Attributes

Definition Classes
Identifiable -> Any
Inherited from:
Identifiable
override def hashCode: Int

Return the hashCode as the unique id.

Return the hashCode as the unique id.

Attributes

Definition Classes
Identifiable -> Any
Inherited from:
Identifiable
def me: String

Return the full identity.

Return the full identity.

Attributes

Inherited from:
Identifiable
def s_rescale(factor: Double): VectorD

Rescale from actual-position (e.g., world-coordinates) to animation-position (screen-coordinates).

Rescale from actual-position (e.g., world-coordinates) to animation-position (screen-coordinates).

Value parameters

factor

the space rescaling factor

Attributes

Inherited from:
Spatial
def typeName: String

Get the type of the object.

Get the type of the object.

Attributes

Inherited from:
Identifiable

Concrete fields

val prop: Property
val tokens: Set[Topological]

Inherited fields

val id: Int

Attributes

Inherited from:
Identifiable
val name: String

Attributes

Inherited from:
Identifiable
val pos: VectorD

Attributes

Inherited from:
Spatial