resourceWithQ

fun resourceWithQ(name: String, x: Double, y: Double, growthDegrees: Double = 180.0, queueGap: Double = 60.0, block: ResourceBuilder.() -> Unit = {})(source)

Composes a ResourceWithQ: a resource at (x, y) plus its waiting queue, auto-named "$name:Q" (KSL's convention). The queue head is placed queueGap units from the resource along growthDegrees and the line extends further that way, so the front of the line is nearest the server (8B.1/8I.6). growthDegrees: 0° = right, clockwise (default 180° = line extends left, head at the resource). Saves authoring the resource and queue separately and keeping them in sync.


fun resourceWithQ(resource: ResourceWithQCIfc, x: Double, y: Double, growthDegrees: Double = 180.0, queueGap: Double = 60.0, block: ResourceBuilder.() -> Unit = {})(source)

Composes a ResourceWithQ by passing the resource itself (8K.1). The resource trace name and its actual waiting-queue name are taken from resource (so a custom queue name stays correct, 8K.1b); placement matches the name-based resourceWithQ.