afterUnitsRestored

protected open fun afterUnitsRestored()(source)

Called when this resource's units come back by other than a release: at the end of a capacity increase, including the one a goOnShift makes, and of a repair, and at a goOnShift that raises no capacity because the capacity was put back directly while off shift. It is called once for each, except under CapacityChangeRule.WAIT when the return to shift waits behind a decrease still in progress: then once at the return and once when the increase is made. It is not called once the run has ended. A subclass whose waiting requests are not reached by the offer to the resource's own queues offers its units here.