Module Bigraph.Ctrl
type param=|I of intInteger parameter
|F of floatFloat parameter
|S of Stdlib.String.tString parameter
The type of control parameters.
type t=|C of Stdlib.String.t * param list * intC (s, ps, ar)creates a control of arityarnamedswith parametersps.
val arity : t -> intarity creturns the arity of controlc.
val compare : t -> t -> intComparison function. Equal control names imply equal arities and parameter types. Note, no check is performed.
val long_name : t -> stringReturn a string containing the name of a control and the values of its parameters. For example,
long_name (C (S,[I 3;F 4.6],3))produces the string"S(3,4.6)".
val name : t -> stringname creturns the name of controlc.
val of_string : string -> tOpposite of
Ctrl.to_string.- raises Invalid_argument
if the input cannot be parsed.
val parse_name : string -> int -> tparse_name s arreturns a control of arityarobtained by parsing strings.
val to_string : t -> stringto_string cgives the string representation of controlcin the form"name:arity"or"name(par_0,par_1,...,par_n):arity".