class t : object end
The signature of Incubator objects.
method run : unit -> unit
incubator#run ()
starts matching and execution activity
in the Incubator.
method break : unit -> unit
incubator#break ()
stops matching and execution activity in
the Incubator as soon as possible. All activity has stopped,
and all execution threads have been killed, when the method
returns.
method is_running : unit -> bool
incubator#is_running ()
returns true
if the Incubator is
running, false
otherwise.
method add_ligand : Ligand.t -> resident
incubator#add_ligand l
adds ligand l
to incubator
.
The ligand activity state is equal to that of incubator
.
method add_procunit : Procunit.t -> resident
incubator#add_procunit pu
add processing unit pu
to
incubator
. The processing unit activity state is equal to that
of incubator
.
method remove : resident -> unit
Call incubator#remove res
to remove resident res
(either a
ligand or a processing unit) from incubator
. The resident is
first deactivated, then removed. If it is bound to any other
resident, the appropriate releases are executed.
method list_ligands : resident list
list_ligands
returns a list of all the residents which are
ligands in the incubator.
method resident_to_ligand : resident -> Ligand.t
resident_to_ligand r
returns the ligand embedded in the
resident r
if r
is a ligand resident, or raises Not_a_ligand
otherwise.