nextAvailableScene

fun nextAvailableScene(provisioner: Provisioner = provisioners.first()): SceneNumber?

Returns the next available Scene number from the Provisioner's range that can be assigned to a new Scene.

Return

The next available Scene number that can be assigned to a new Scene, or null, if there are no more available numbers in the allocated range.

Parameters

provisioner

Provisioner, who's range is to be used for address generation.

Throws

if no scene range is allocated to the provisioner.