package electrod

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Libelectrod.RelationSource

Type of relations.

Sourcetype t =
  1. | Const of {
    1. name : Name.t;
    2. arity : int;
    3. scope : Scope.t;
    }
  2. | Var of {
    1. name : Name.t;
    2. arity : int;
    3. scope : Scope.t;
    4. fby : Scope.t option;
    }

A relation is either static (const) or dynamic (var). In the latter case, it may either be specified in a unique scope or with a scope for the initial instant and then a scope for all other instants. The arity is compulsorily specified by the user for empty bounds and optionally otherwise.

Sourceval const : Name.t -> int -> Scope.t -> t

Constructors

Sourceval var : Name.t -> int -> Scope.t -> Scope.t option -> t
Sourceval arity : t -> int

Arity of the relation. (> 0)

Sourceval name : t -> Name.t
Sourceval equal : t -> t -> bool
Sourceval is_set : t -> bool

Tells whether the relation is a set or a relation of arity > 1.

Sourceval is_nary : t -> bool
Sourceval is_const : t -> bool
Sourceval is_var : t -> bool
Sourceval scope : t -> Scope.t

Returns the scope of a relation (for variable relations: not fby!)

Sourceval must : t -> Tuple_set.t
Sourceval may : t -> Tuple_set.t
Sourceval sup : t -> Tuple_set.t
Sourceval pp : ?print_name:bool -> Containers.Format.formatter -> t -> unit
Sourceval to_string : ?print_name:bool -> t -> string
OCaml

Innovation. Community. Security.