Class ADT.TreeScheduler()->Consumer
- Description
A resource consumer.
All consumers (both active and inactive) are nodes in a dependency tree. This means that to avoid excessive garbage detach() must be called in consumers that are no longer to be used.
Active consumers are kept in a (min-)Heap.
- Inherit
this_program
inherit ::this_program : this_program
- Variable
children
array
(Consumer
) ADT.TreeScheduler.Consumer.children- Description
Consumers that depend on us.
- Variable
parent
Consumer
|zero
ADT.TreeScheduler.Consumer.parent- Description
Consumer that we depend on.
- Method
create
ADT.TreeScheduler.Consumer ADT.TreeScheduler.Consumer(
int
|float
weight
,mixed
v
,Consumer
|void
parent
)