Logo BCDDLogo CSC
BCDDBehavioural Contract-Driven Design
version 1.0-beta
ITEN

Appendix C — Glossary

This appendix collects the terms that the manual uses with a particular meaning. For each it indicates the chapter in which the term is introduced and the definition, which applies throughout the manual. At the end are listed the terms of the language specification that the manual does not use, or uses in a narrower sense.

Term Ch. Definition
system (sistema) 1 what is described, of any size: an installation, a program, a device
boundary (confine) 1 interface between a system and a person or another system, through which what passes between the two is observed
side (lato) 1 each of the two counterparts of a boundary; in the example, the person on the stairs and the installation
black box (scatola nera) 1 system of which only what goes in and what comes out is known
guarantee (GUARANTEE) (promessa) 1, 2 what one side of the boundary guarantees to whoever is on the other side; it concerns only what is observed at the boundary
verification (VERIFY) (controllo) 1, 2 indication of who verifies that a guarantee is satisfied, and in what way
pending approval (STATUS HYPOTHESIS) (da approvare) 1, 7 status of a contractual line, or of the CSC, not yet approved, freely modifiable; in the report of bcdd it appears under PENDING APPROVAL, NOT CONTRACT
approved (STATUS RATIFIED BY) (approvata) 7 status of a contractual line, or of the CSC, approved by whoever has the authority, with the decision reference; from that moment it can no longer be modified
part (parte) 1, 13 smaller system contained in a larger system; in BCDD, entity contained in another entity
language model (modello linguistico) 1 program, trained on large amounts of text, that generates text and code from instructions written in natural language
implement, implementation (realizzare, realizzazione) 1 to build the system that keeps the guarantees; the built system, with its internal choices
behaviour (comportamento) 1 what is observed from outside: what goes in, what comes out and when
contract (contratto) 1 set of the approved guarantees and assumptions on a boundary
BCDD 1 language for specifying the behaviour of a system through its boundaries; acronym of Behavioural Contract-Driven Design, design driven by contracts on behaviour
CSC 1, 2 written description of a boundary, contained in a .csc file; acronym of Capability State Contract
comment (--) (commento) 2 note for the reader, ignored by the program
version (VERSION) (versione) 2, 10 number that identifies a draft of the CSC; it changes when the contract changes
keyword (parola chiave) 2 fixed word of the language, in English and in upper case
purpose (PURPOSE) (scopo) 2 sentence that indicates what the boundary is for
event (evento) 2 what happens at an instant and is then over
input event (EVENT IN) (evento in ingresso) 2 event that arrives at the boundary from the other side
state (STATE) (stato) 2 element visible at the boundary that always has a value
type (tipo) 2, 6 set of the values that a state or a datum can take
Boolean 2 logical type, with the values true (true) and false (false)
initial value (INITIAL) (valore iniziale) 2 value of a state at system start-up; mandatory
short name (nome breve) 2, 3, 9 name assigned to a contractual line or to a scenario in order to cite it (g1, a1, s1)
in words, verbal (VERBAL) (a parole, verbale) 2 guarantee written in a natural language, in quotation marks; “verbal” is the name of the corresponding degree, in the sense of “made of words”
string (stringa) 2 text in quotation marks
by judgement (BY JUDGEMENT) (a giudizio) 2 verification in which a person carries out a test and judges
by inspection (BY INSPECTION) (per ispezione) 2 verification that consists in examining an existing document or recording
bcdd 2 command-line program that creates and checks .csc files, submits them to a language model and records the approval of lines (chapter 29)
bcdd check 2 command that checks the form of a file without modifying it
option (opzione) 2 addition to a command that modifies its behaviour
--strict 2 option that makes the check fail even for a single unrecognised line
block (blocco) 2 description contained in the file, from the line that opens it (CSC, ENTITY, BINDING, VERIFICATION, PROFILE) to END
report (rapporto) 2 text printed by bcdd check, divided into numbered sections
error (errore) 2 form that the program recognises but that is not written correctly
unrecognised line (riga non riconosciuta) 2 line that does not correspond to any form of the language; it is not an error, but it is always reported
contractual line (riga contrattuale) 2 line that enters the contract once approved: a guarantee and, from chapter 3, an assumption
degree (grado) 2, 21, 27 way in which a guarantee is written, on which the way it is verified depends: verbal, formal or declared extension
outcome (esito) 2, 5, 24 (1) last line of the report of bcdd check: no errors does not mean that the guarantees are correct (chapter 2); (2) result of a request, succeeded or failed (chapter 5); (3) result of the verification of a guarantee (chapter 24)
assumption (ASSUME) (presupposto) 3 condition on the other side on which the guarantee depends; if it is not satisfied, the guarantee is not violated
provider (chi offre) 4, 12 side of the boundary that keeps the guarantees; the CSC is written from its side
consumer (chi usa) 4, 12 side of the boundary that satisfies the assumptions and relies on the guarantees
output event (EVENT OUT) (evento in uscita) 4 event that the provider sends towards the other side
request (CAPABILITY) (richiesta) 5 what the consumer can ask of the provider; it has a response (accepted or rejected) and an outcome (succeeded or failed)
response (risposta) 5 first conclusion of a request: accepted or rejected
lifecycle (requested, accepted, rejected, completed, failed) (ciclo di vita) 5, 9 the five names of the phases of a request; they fix the order of the phases, not the obligations
autonomous request (AUTONOMOUS) (richiesta autonoma) 5 request started by the provider without the other side requesting it; it has neither requested nor rejected
parameter (parametro) 5, 6 value that accompanies an event or a request
list of values (enumeration) (elenco di valori, enumerazione) 6 type consisting of a list of named values
interval ([a .. b]) (intervallo) 6 limits of the values admitted for an Integer or Real type
type described in words (TYPE … := VERBAL) (tipo descritto a parole) 6 type with a name and a description in quotation marks, which the program does not interpret
undeclared type (tipo non dichiarato) 6 type used without a TYPE line; it is not an error, and it is listed in section 6 of the report
decision reference (riferimento della decisione) 7 identifier with which the approval decision is recorded; required by bcdd ratify
header (intestazione) 7, 12 the CSC or ENTITY line and the lines that follow it before the body, in any order: PURPOSE, the optional STATUS, the optional IMPORT PROFILE. In a CSC the STATUS of the header applies to the lines that do not have their own; in an entity only STATUS HYPOTHESIS is admitted. In the other blocks (chapters 25-27) the header comprises STATUS and IMPORT PROFILE in a BINDING, only IMPORT PROFILE in a verification plan, PURPOSE and STATUS in a profile
bcdd new 7 command that creates the skeleton of a .csc file
bcdd ratify 7 command that records the approval of one contractual line or of all of them, of a BINDING or of a profile, modifying only the STATUS lines
detail (DETAILS) (dettaglio) 8 line that expresses a guarantee or an assumption more precisely, without replacing or contradicting it
named constant (DEFINE) (costante con nome) 8, 23 value, or expression, to which a name is assigned for use in the CSC
to be judged (da giudicare) 8 section 14 of the report: rules that require human judgement, such as the consistency of a detail with a line in words; they are not errors
undecided number (UNDECIDED) (numero non deciso) 8 missing number; the program lists it until it is decided
bcdd refine 8 command with which the language model asks questions and proposes lines, always pending approval
level (livello) 8 number of DETAILS steps that separate a line from a line without DETAILS; bcdd refine does not propose beyond level 2
declaration (dichiarazione) 8, 9 line that declares an element of the CSC (TYPE, CAPABILITY, EVENT, STATE, DEFINE, SCENARIO). It does not have its own STATUS and takes that of the header. The exceptions are details of DEFINEs and of scenarios, which are pending approval like every detail
dialogue file (.dialogo) (file del dialogo) 8 file next to the CSC in which bcdd refine keeps questions and answers
scenario (SCENARIO) (storia) 9 sequence of instants that the guarantees of the CSC must admit or reject
instant of a scenario (@) (istante di una storia) 9 line of a scenario that indicates a time and what happens or is observed at that instant
assertion in words (VERBAL in a scenario) (asserzione a parole) 9 description in words of an instant; it does not require VERIFY
admitted, rejected (EXPECT ADMITTED, EXPECT REJECTED) (ammessa, respinta) 9 indication of whether the scenario satisfies the contract or violates it
starting state (GIVEN) (stato di partenza) 9 values of the states at the start of a scenario, when they are not the initial ones
new version (versione nuova) 10 way of changing an approved contract: it is rewritten with a new number
entity (ENTITY) (entità) 12 system that stands behind one or more boundaries; it is described by the boundaries it provides and those it uses; the description does not indicate where it is located
entity guarantee (promessa d'entità) 12 guarantee that links two or more boundaries of the same entity and that none of the CSCs can express on its own
connector (connettore) 12 (note), App. B term used by bcdd in its messages for a CSC cited by an entity
provides (OFFERS) (offre) 12 line of an entity that indicates a boundary that the entity provides
uses (USES) (usa) 12 line of an entity that indicates a boundary that the entity uses
citation (citazione) 12 line of an entity, of type OFFERS, USES or part, that indicates a CSC or an entity; bcdd looks for it and shows its version, STATUS and outcome
every used boundary is offered (chi usa trova chi offre) 13 rule by which, inside an entity, every boundary used by a part is provided by another part or is an external boundary, that is a boundary that the entity itself uses
parts list (COMPOSED OF) (elenco delle parti) 13 the COMPOSED OF line and the lines of the parts that follow it
part name (nome della parte) 13 name of the role of a part in the entity (pulsante), distinct from the name of the entity that describes it (Pulsante)
internal boundary (confine interno) 13 boundary between two parts of an entity, which the entity neither provides nor uses; it is not observable from outside
public boundary (confine pubblico) 13 boundary that an entity provides or uses towards the outside
external boundary (confine esterno) 14 boundary that a part uses and that no part of the entity provides; it is declared on the entity with USES

| closure, closed entity (chiusura, entità chiusa) | 13 | property of an entity with parts that respects the rule “every used boundary is offered” and the two rules that complete it (E16, E17); bcdd checks it with errors E14, E16 and E17 | | --dir | 13, 15 | option that indicates to bcdd a folder in which to look for cited files; it can be repeated, and the folders are examined in the order in which they are indicated | | channel (canale) | 14 | medium that can lose, delay or reorder what it carries; its behaviour is described in a boundary with its own CSC | | indicated version (versione indicata) | 15 | version written after the name of the CSC in an OFFERS or USES line. A USES line without a version matches any OFFERS line. An OFFERS line without a version does not match a USES line that indicates one | | match (corrispondenza, corrispondere) | 15 | relation between a USES line of a part and an OFFERS line of another part, or a USES line of the entity, with the same name, when the versions respect the rules of chapter 15 | | copy (copia) | 16 | instance of a part contained in an entity; every copy keeps all the guarantees of the part | | multiplicity ([m .. n]) (molteplicità) | 16 | indication of the minimum and maximum number of copies of a part; without a multiplicity the part has one copy | | neighbouring part (parte vicina) | 17 | another part of the same entity that cites one of the same CSCs | | excessive division (divisione eccessiva) | 17 | division into parts beyond what is necessary; a sign of it is an entity with a single part that provides and uses the same boundaries | | entity scenario (storia d'entità) | 18 | scenario written on an entity, in which every name is preceded by the name of the CSC it comes from | | qualified name (Csc.nome) (nome qualificato) | 18 | name of an element preceded by the name of the CSC and by a dot, used in entity scenarios | | optional part (parte facoltativa) | 19 | part that whoever composes the system decides whether to install; the choice is made before the system is used and does not change | | composition (composizione) | 19, 20 | each of the complete forms in which an entity can be assembled; each one is checked separately | | declared absence (assenza dichiarata) | 19 | what is missing only because an optional part is missing; it is not an error, and bcdd lists it in section 10 | | suffix (in: …) (suffisso) | 19 | indication, in the report, of the compositions in which an error or an entry applies | | variant (VARIANT) (variante) | 20 | one of the alternatives of an aspect of the entity, declared with VARIANT group = choice | | choice (scelta) | 20 | name to the right of the = sign in a VARIANT line | | segment (segmento) | 20 | lines of a variant, from the VARIANT line to the next one or to END; they apply only with that choice | | common lines (righe comuni) | 20 | lines of an entity that precede the first VARIANT; they apply in every composition | | choice group (gruppo di scelte) | 20 | set of alternative choices with the same group name (to the left of the = sign), of which only one applies in each composition | | formula (formula) | 21 | guarantee written in a form that a program can check step by step; it has no VERIFY | | step (passo) | 21 | unit of observation: the events that occur at an instant and the values of the states immediately after. Several consecutive steps can have the same instant. Every line of a scenario that begins with @ is a step | | trace (traccia) | 9, 21 | sequence of steps, written in a scenario or recorded on a built system | | condition on the step (condizione sul passo) | 21 | expression that in every step is true or false: an event, a comparison, a phase of a request, combined with NOT, AND, OR, IMPLIES | | precedence (precedenza) | 21 | order in which the operators of a formula without parentheses are applied; ambiguous combinations require parentheses (error E26) | | open line (riga aperta) | 21 | line that ends with an operator or a keyword that requires a continuation, or with an unclosed parenthesis; it therefore continues on the next line | | checks not executed (controlli non eseguiti) | 21, 24 | section 15 of the report: the checks on formulas that bcdd does not execute, with the lines to which they would apply | | always (ALWAYS) (sempre) | 21 | the condition holds in every step | | sooner or later (EVENTUALLY) (prima o poi) | 21 | the condition holds in at least one step | | whenever… then (WHENEVER … THEN) (ogni volta che… allora) | 21 | in every step in which the trigger holds, the consequence must hold in the same step or in a later step | | trigger, consequence (innesco, conseguenza) | 21 | the two conditions of WHENEVER … THEN: the first, when it holds, requires the second to hold; the trigger is also the part p of ALWAYS (p IMPLIES q) and the condition that opens WHILE (chapter 24) | | in the same step (AT ONCE) (nello stesso passo) | 21 | the consequence holds in the very step of the trigger | | while (WHILE), scope (mentre, ambito) | 21 | WHILE c: P: the formula P must hold in the steps in which c holds, which form the scope of P; each continuous stretch in which c holds is a scope of its own; without WHILE the scope is the whole trace | | formal (formale) | 21 | degree of a guarantee written as a formula or with a shorthand, which bcdd reads in full; it indicates how the guarantee can be verified, not that it has been verified | | time limit (WITHIN) (limite di tempo) | 22 | duration within which the condition of EVENTUALLY or the consequence of WHENEVER must hold | | elapsed time (TIME SINCE) (tempo trascorso) | 22 | time passed since the last step in which an event occurred; 0 in the step of the event, infinite before the first event (only in comparisons) | | count (COUNT, COUNT … SINCE, COUNT … IN LAST) (conteggio) | 22 | number of steps in which an event occurred. COUNT counts from the start of the trace. COUNT … SINCE counts after the last step of another event. COUNT … IN LAST d counts in the interval of duration d that ends with the step considered: this step is included, the step exactly d away is excluded | | filter (WITH) (filtro) | 22 | condition on the parameters of an event or of a phase of a request | | repetition (REPEAT … EVERY) (ripetizione) | 22 | steps of a scenario that follow the REPEAT line and repeat with a period, from a minimum to a maximum number of times or without end | | previous value (PREV) (valore precedente) | 22 | value of a state in the previous step; in the first step, the initial value | | shorthand, short form (abbreviazione, forma breve) | 23 | form that expands into an equivalent formula written with the keywords of chapters 21 and 22, the expanded form; its meaning is only that of the expanded form | | expanded form (forma estesa) | 23 | formula equivalent to a shorthand, written with the keywords of chapters 21 and 22; the shorthand is said to “expand” into its expanded form | | closed set of transitions (TRANSITION) (insieme chiuso di transizioni) | 23 | guarantee that lists all the ways in which a state changes value | | derived event (DEFINE EVENT) (evento derivato) | 23 | name given to a condition on the step, used in a formula like an event; it is not written in the steps of scenarios | | function (DEFINE with parameters) (funzione) | 23 | expression with typed parameters, used with the arguments written by name | | named type (TYPE … := Type) (tipo con nome) | 23 | name given to a type, valid throughout the block | | record (Record) (record) | 23 | type made of named fields; x.campo names one of its fields | | indexed state (STATE x[T]) (stato con indice) | 23 | one state for each value of a finite type; it is named with x[valore] | | text verification (verifica sul testo) | 24 | checks executed on the CSC, before construction: form, consistency, scenarios, coverage, every used boundary is offered, entity guarantees, details | | recording verification (verifica sulle registrazioni) | 24 | checks executed on the traces recorded on a built system; no program described in the manual executes it | | recording (registrazione) | 24 | trace observed at the boundaries of a built system | | consistency (coerenza) | 24 | existence of at least one trace that satisfies all the assumptions and all the guarantees together | | coverage (copertura) | 24 | presence, for every guarantee with a trigger, of an admitted scenario in which the trigger occurs | | realisability (realizzabilità) | 24 | existence of a system that satisfies the guarantees whatever the behaviour of the other side; no check guarantees it | | satisfied on the trace (rispettata sulla traccia) | 24 | outcome of a formal guarantee never violated in the recorded trace; it gives no indication about the situations not observed (in the specification SODDISFATTA SULLA TRACCIA) | | violated (violata) | 24 | outcome of a formal guarantee whose formula does not hold in a step of the trace; the outcome indicates the step | | inconclusive (inconclusiva) | 24 | outcome of a formal guarantee that the trace does not allow to be established, because it ends before the outcome can be determined | | not executed (non eseguita) | 24 | outcome of a formal guarantee on what the recording instrument does not observe | | conforming by judgement, non-conforming by judgement, not assessed (conforme a giudizio, non conforme a giudizio, non valutata) | 24 | outcomes of a verbal guarantee, with who judged and on what; “not assessed” if nobody has judged | | assumption not satisfied (presupposto non rispettato) | 3, 24 | outcome that reports the failure of the other side to satisfy an assumption on which the guarantee depends; the guarantee is not violated | | concrete form (BINDING) (forma concreta) | 25 | what someone at the boundary observes or uses of an element of a CSC: a terminal, a text, a colour, a file format. The concrete forms of a boundary are written in a BINDING … END block, distinct from the CSC | | binding (concrete form) (vincolante) | 25 | said of a concrete form observed or used by someone external to the implementation: a person, another program, a third-party system | | “who sees it?” («chi lo vede?») | 25 | criterion that establishes whether an element enters the CSC, the concrete forms, or remains in the implementation | | bound CSC (CSC legata) | 25, 26 | CSC named in the header of a BINDING or of a verification plan, with its version; bcdd looks for it like a cited CSC | | BIND line (riga BIND) | 25 | line of a BINDING that describes in words the concrete form of an element of the bound CSC | | distinguishing name (AS) (nome distintivo) | 25 | name that distinguishes several BINDING blocks of the same CSC; the verification plan uses it with USING, bcdd ratify with --csc | | missing concrete forms (forme concrete mancanti) | 25 | section 12 of the report: the elements of the bound CSC that no BIND line names; they are not errors | | verification plan (VERIFICATION) (piano di prova) | 26 | VERIFICATION … END block that indicates the recording instruments of a boundary, with their resolution, and the scenarios in concrete forms; it contains no guarantees and is not approved | | verification plan coverage (copertura del piano di prova) | 26 | section 13 of the report: for each instrument the formal guarantees it observes in full, and the guarantees not executed | | recording instrument (MEANS) (mezzo di registrazione) | 24, 26 | tool that records what happens at a boundary through the concrete forms of the boundary: a recorder, a sensor, a camera, a program | | observe (said of an instrument) (osservare) | 26 | to record an element; an element that no instrument records is not observed, and the formal guarantees that cite it are not executed | | resolution (RESOLUTION) (risoluzione) | 26 | the smallest time interval that a recording instrument distinguishes; “satisfied on the trace” applies with the resolution of the instrument | | translated scenario (TRANSLATES) (storia tradotta) | 26 | scenario of the verification plan written with the concrete forms, which translates a scenario of the bound CSC | | extension (EXTENSION) (estensione) | 27 | new form of the language, not to be confused with the extension .csc of a file name; it is declared in a profile, with eight fields: KIND, LEVEL, PARAMS, FORM, MEANING, REDUCES TO (optional), VERIFY, SOURCE | | meaning (MEANING) (significato) | 27 | field of an extension that describes in words the meaning of the form; if REDUCES TO is missing, this description applies | | REDUCES TO field (campo REDUCES TO) | 27 | optional field of an extension with its expanded form (chapter 23); if present, the extension is a shorthand and the guarantee that uses it has formal degree | | continuous quantity (SIGNAL) (grandezza continua) | 27 | quantity defined at every instant and not only in the steps, declared with the extension SIGNAL of the profile Segnale | | profile (PROFILE, IMPORT PROFILE) (profilo) | 27 | collection of extensions for a field of use, with a name and a version, which a CSC imports with IMPORT PROFILE; a profile does not import another | | category (categoria) | 27 | kind of element that the use of an extension writes in place of a parameter: Name, Type, Event, Condition, Expression, Duration, Property | | place (posto) | 27 | word of the FORM equal to the name of a parameter, where the use of the extension writes the argument | | declared extension (estensione dichiarata) | 27 | degree of a guarantee written with an extension without REDUCES TO; it is verified as the VERIFY field declares | | trial word (parola in prova) | 27 | word of the language that a future revision may move into a profile, with the same name and the same meaning; it remains reserved even in the CSCs that do not import the profile | | direct box (DI) | 28 | device that takes the signal from the output terminals of the amplifier and carries it to the capture card; in the measurement kit it is one of the two choices of the level sensor and, in that choice, an optional part (chapter 19); in the files it is abbreviated to DI |

Terms that the manual does not use, and why

These are terms of the language specification. The manual does not use them, either because the writer of a CSC does not need them or because the manual replaces them with a term already defined; whoever consults the specification meets them under these names.