new SlotManager()
Methods
-
getNumberEntries()
-
Gets the total number of valid slots in this
SlotManager.Returns:
Number of valid slots
- Type
- olympe.df.PONumber
-
getSize()
-
Gets the total size of all the slots of this manager.
Returns:
This slot manager total size
- Type
- olympe.df.PONumber
-
move(id, rank)
-
Move the slot associated by the id to the specified rank
Parameters:
Name Type Description idstring ranknumber -
registerSlot(id [, size] [, rank])
-
Register a slot of the specified size, at the end of the slot manager.
Parameters:
Name Type Argument Default Description idstring slot identifier
sizeolympe.df.PONumber <optional>
olympe.df.ONumber.ONE the slot size
rankolympe.df.PONumber | number <optional>
if not defined, auto manage the rank.
Returns:
the start position of the new slot
- Type
- olympe.df.PONumber
-
releaseAllSlots()
-
Releases all the slots in this
SlotManager. -
releaseSlot(id)
-
Remove the slot with the specified id, if exist
Parameters:
Name Type Description idstring the slot id to release
Olympe SDK