Class virtual Switch.switch


class virtual switch : kind:Frame.content_kind -> name:string -> ?mode:track_mode -> ?replay_meta:bool -> child list -> object .. end
Inherits
val mutable selected : (child * Source.source) option
val mutable to_finish : Source.source list
We have to explictly manage our children as they are dynamically created by application of the transition functions. In particular we need a list of all children that have output data in the current round.
val mutable need_eot : bool
Indicates that the former child was left without having finished its track, in which case the switch will artifically produce an EOT.
method private virtual select : child option
The selection method should return None or Some c, where c is a ready child.
val mutable cached_selected : child option option
Don't call #select directly but use #cached_select to ensure consistency during one time tick between #is_ready and #get_frame.
method private cached_select : child option
method after_output : unit
val mutable activation : Source.source list
method private wake_up : Source.source list -> unit
method private sleep : unit
method is_ready : bool
method private get_frame : Frame.t -> unit
method remaining : int
method abort_track : unit