Resource

scalation.simulation.process.Resource
See theResource companion class
object Resource

The Resource companion object provides a builder method for resources.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Resource.type

Members list

Value members

Concrete methods

def apply(name: String, line: WaitQueue, units: Int, serviceTime: Variate, xy: (Int, Int)): Resource

Create a resource using defaults for width 'w' and height 'h'.

Create a resource using defaults for width 'w' and height 'h'.

Value parameters

line

the line/queue where entities wait

name

the name of the resource

serviceTime

the service time distribution

units

the number of service units (e.g., bank tellers)

xy

the (x, y) coordinates for the top-left corner of the resource.

Attributes

def group(serviceTime: Variate, xy: (Int, Int), rsc: (String, WaitQueue, Int, (Int, Int))*): List[Resource]

Create a group of related resources using defaults for width 'w' and height 'h'.

Create a group of related resources using defaults for width 'w' and height 'h'.

Value parameters

rsc

repeated resource specific info: name, line, units, offset

serviceTime

the service time distribution

xy

the (x, y) coordinates for the top-left corner of the reference resource.

Attributes