Transport

scalation.simulation.agent.Transport
See theTransport companion class
object Transport extends EdgeType

The Transport companion object establishes itself as a EdgeType and provides a method of collecting its edge instances.

Attributes

Companion
class
Graph
Supertypes
class EdgeType
trait Serializable
trait Identifiable
class Object
trait Matchable
class Any
Show all
Self type
Transport.type

Members list

Value members

Concrete methods

def add(transport: Transport): Unit

Add the transport edge to the Transport edge type.

Add the transport edge to the Transport edge type.

Value parameters

transport

the transport edge to add

Attributes

def calcEndPoints(from: Vertex, to: Vertex, shift1: VectorD, shift2: VectorD): (VectorD, VectorD)

Calculate the coordinates of the two end-points of the edge/transport.

Calculate the coordinates of the two end-points of the edge/transport.

Value parameters

from

the from vertex

shift1

the x-y shift for the transport's first end-point (from-side)

shift2

the x-y shift for the transport's second end-point (to-side)

to

the to vertex

Attributes

Inherited methods

inline def -(et2: EdgeType): EdgeType

Attributes

Inherited from:
EdgeType
def add(es: Edge*): Unit

Add edges into the existing list of edges in this edge-type.

Add edges into the existing list of edges in this edge-type.

Value parameters

es

the edges to add

Attributes

Inherited from:
EdgeType
def check: Boolean

Check that the properties names are in the schema for this edge-type, returning whether they match the schema.

Check that the properties names are in the schema for this edge-type, returning whether they match the schema.

Attributes

Inherited from:
EdgeType
def delete(e: Edge): EdgeType

Delete a single edge from the existing list of edges in this edge-type. returning the updated edge type/set.

Delete a single edge from the existing list of edges in this edge-type. returning the updated edge type/set.

Value parameters

e

the edge to delete

Attributes

Inherited from:
EdgeType

Make all the edges in this edge-type distinct, i.e., no duplicate edges.

Make all the edges in this edge-type distinct, i.e., no duplicate edges.

Attributes

Inherited from:
EdgeType
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

Expand this edge-type with both its from and to vertex-types.

Expand this edge-type with both its from and to vertex-types.

Attributes

Inherited from:
EdgeType

Expand this edge-type with its from vertex-type.

Expand this edge-type with its from vertex-type.

Attributes

Inherited from:
EdgeType

Expand this edge-type with its 'to' vertex-type, appending its properties.

Expand this edge-type with its 'to' vertex-type, appending its properties.

Attributes

Inherited from:
EdgeType
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 insert(e: Edge): EdgeType

Insert a single edge into the existing list of edges in this edge-type. returning the updated edge type/set.

Insert a single edge into the existing list of edges in this edge-type. returning the updated edge type/set.

Value parameters

e

the edge to insert

Attributes

Inherited from:
EdgeType
infix def intersect(et2: EdgeType): EdgeType

Intersect this edge-type with a second edge-type.

Intersect this edge-type with a second edge-type.

Value parameters

et2

the second edge-type

Attributes

Inherited from:
EdgeType
def limit(n: Int, s: Int): EdgeType

Limit the number of edges to n after skipping the first s.

Limit the number of edges to n after skipping the first s.

Value parameters

n

the number of edges to keep

s

the number of edges to skip

Attributes

Inherited from:
EdgeType
def me: String

Return the full identity.

Return the full identity.

Attributes

Inherited from:
Identifiable
infix def minus(et2: EdgeType): EdgeType

Subtract (minus) second edge-type from this edge-type.

Subtract (minus) second edge-type from this edge-type.

Value parameters

et2

the second edge-type

Attributes

Inherited from:
EdgeType

Return a new shape object based on the shape template.

Return a new shape object based on the shape template.

Attributes

Inherited from:
EdgeType
def orderBy(pname: String): EdgeType

Order the edges within this edge-type by the values of the given property name.

Order the edges within this edge-type by the values of the given property name.

Value parameters

pname

the property name on which to sort

Attributes

Inherited from:
EdgeType
inline def project(x: String): EdgeType

Attributes

Inherited from:
EdgeType

Project each edge in this edge-type down to the given subschema x of properties.

Project each edge in this edge-type down to the given subschema x of properties.

Value parameters

x

the subset of property names (subschema) to project onto

Attributes

Inherited from:
EdgeType
def rename(pOld: String, pNew: String): EdgeType

Rename the old property name with the new property name.

Rename the old property name with the new property name.

Value parameters

pNew

new property name

pOld

existing property name

Attributes

Inherited from:
EdgeType
def select(pred: Property => Boolean): EdgeType

Select the edges in this edge-type that satisfy the predicate.

Select the edges in this edge-type that satisfy the predicate.

Value parameters

pred

the predicate to satisfy

Attributes

Inherited from:
EdgeType
def show(rng: Range): Unit

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

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

Value parameters

rng

the range of edges to show (e.g, 0 until 10), defaults to all

Attributes

Inherited from:
EdgeType
override def toString: String

Convert this edge-type to a string.

Convert this edge-type to a string.

Attributes

Definition Classes
EdgeType -> Any
Inherited from:
EdgeType
def typeName: String

Get the type of the object.

Get the type of the object.

Attributes

Inherited from:
Identifiable
infix def union(et2: EdgeType): EdgeType

Union this edge-type with a second edge-type with no duplication.

Union this edge-type with a second edge-type with no duplication.

Value parameters

et2

the second edge-type

Attributes

Inherited from:
EdgeType
infix def unionAll(et2: EdgeType): EdgeType

Union this edge-type with a second edge-type.

Union this edge-type with a second edge-type.

Value parameters

et2

the second edge-type

Attributes

Inherited from:
EdgeType
inline def π(x: String): EdgeType

Attributes

Inherited from:
EdgeType
inline def σ(pred: Property => Boolean): EdgeType

Attributes

Inherited from:
EdgeType
inline def (et2: EdgeType): EdgeType

Attributes

Inherited from:
EdgeType
inline def (et2: EdgeType): EdgeType

Attributes

Inherited from:
EdgeType

Inherited fields

val color: Color

Attributes

Inherited from:
EdgeType
val edges: ArrayBuffer[Edge]

Attributes

Inherited from:
EdgeType

Attributes

Inherited from:
EdgeType
val id: Int

Attributes

Inherited from:
Identifiable
val name: String

Attributes

Inherited from:
Identifiable
val schema: Schema

Attributes

Inherited from:
EdgeType

Attributes

Inherited from:
EdgeType
val to: VertexType

Attributes

Inherited from:
EdgeType