ResourceUnitsLent

@Serializable
@SerialName(value = "ResourceUnitsLent")
data class ResourceUnitsLent(val simTime: Double, val resourceName: String, val lenderEntityId: Long, val borrowerEntityId: Long, val amount: Int) : AnimationEvent(source)

A preemption took amount units of a resource from the entity lenderEntityId, which keeps its allocation but is held, and lent them to the entity borrowerEntityId. The units are drawn with the borrower, whose SeizeAllocated counts them, until an AnimationEvent.ResourceUnitsReturned gives them back. A reader that does not know this event skips it, and draws the lender at the units too.

When the borrower releases and the units pass straight to a waiting preemptor that outranks the lender, no event says so: the lender's units stay lent, and the borrower's Released and the new borrower's SeizeAllocated move them to the new borrower. borrowerEntityId then no longer names who holds them.

Constructors

Link copied to clipboard
constructor(simTime: Double, resourceName: String, lenderEntityId: Long, borrowerEntityId: Long, amount: Int)

Properties

Link copied to clipboard
val amount: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val simTime: Double