Sink

scalation.scala3d.Sink
case class Sink(size: Int, name: String, location: Point3D, color: Color)

The Sink case class is used to remove/terminate vehicles in the animation.

Value parameters

color

the color of the sink

location

the location of the sink in the scene

name

the name of the sink

size

the size of the sink

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def showStats(): Unit

Show the statistics collected by this Sink.

Show the statistics collected by this Sink.

Attributes

def terminate(vehicle: Vehicle, clock: Clock): Unit

Terminate the given vehicle and collect travel-time statistics.

Terminate the given vehicle and collect travel-time statistics.

Value parameters

clock

the animation clock

vehicle

the vehicle to terminate

Attributes

override def toString: String

Convert this Sink to a string.

Convert this Sink to a string.

Attributes

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val exit: Box
val surface: PhongMaterial