Sunteți pe pagina 1din 10

Scopul lucrrii: Analiza principalelor elemente ale respectivului limbaj.

Structura i
funciile acestuia.
Partea teoretica
Utilizind doar citeva funcii specifice care de regul sunt utilizate mai mult pe parcursul
proceselor sau a funciilor.
Pentru utilizarea acestui limba a fost standartizat digrama de mesae MSC-2000 cu
posibilitatea de a utiliza diagrama rapid H-MSC. In cazul in care avem acela nivel erarhic de
amplasare a blocului se utilizeaz MSC, in cazul cind nivellel difer se utilizeaz H-MSC.
Nivelele:

Primele 3 nivele sunt absolut identice in structura sistemului SDL 92/96. Folosesc
acelai concept de baz utiliznd nite funcii mai specific in ceea ce privete declararea.
Urmtorul nivel reprezint nivelul procedurilor i a funciilor:

Procedura de regul va fi utilizat att local cit i global.


o Global- n interiorul sistemului.
o Local- in interiorul procesului.
Funcia la rindul sau poate fi utilizat de unu sau mai multe ori in acela limbaj.

De regul att procedurile ct i funciile au scopul de a soluiona unele probleme. In


limbajul respectiv procedura sau funcia poate fi iniiat cu ajutorul a doua cuvinte.

Alternative [nume ]
Bibliotecile
Corpul programului
Finisare + raspuns
END alternative [nume]

Funcia in general presupune nite elemente mai specifice care poate analiza diverse
rezultate i activiti interne ale limbajului de programare . Urmtorul element corespunde cu
intrebuinarea rezultatului in interiorul reelei fizicede transmisiuni de date. L a acest nivel
comutatoarele au funcia de realiza sesiunea dintre 2 sau mai multe echipamente.
Un exemplu specific poate fi utilizat in limbajul SDL-200( este reprezentat in figura
urmtoare)

Unde
1.
2.
3.
4.
5.

S- sursa
D- destinaie
R/K router sau comutator
Mes-mesajul format de la sursa. De regul are valoare nu mai mare de 84 octei.
Mes Raport- corespunde cu mesajul de avertizare/ informare a nodului de reea din partea
destinaiei sau destinatarului.

Interior:
Registre (serie , paralel).Se utilizeaz doua registre

LLid are loc identificarea logic a unui link


MPCP- este un protocol care verific paralel mai multe puncte din interiorul reelei

Iniial de la orice surs pot fi iniiate nite mesaje de tim Gate. In cazul in care exist un mesaj ,
el se va numi Dgate.
Dup formarea acestui mesaj reeaua activ de comunicaii cu ajutorul protocolului
MPCP verific toate nodurile de comunicaie i toi indentificatori reali din aceasta reea. Dupa
ID corespunztor se determin destinaia. De la destinaie spre reeaua respectiv dup primirea
semnalului de autorizare este trimis mesajul REPORT care deja in sine conine nite parametrii
specifici a nodului de transmisiune respectiv.
Volumul acestui mesaj este variabil i are de la 400-55 B. Paralel la aceasta, acest semnal
poate avea un deranjament ctre reeaua activ. Adica de la terminalul S este transmis un tip
de informaie cu nite semnale S, iar de ka terminale D conform parametrilor exist posibilitate
pierderii sincronizrii transmiterii datelo.Pentru aceasta se utilizeazp mesajul REGISTER i
DREGISTER.
Structura limbajului SDL 200 permite de a utiliza diferite tipuri de date, astfel tipuri de
date pot fi :

Tipuri de date abstracte


Tipuri de date definite de ctre sistemul de programare;
Tipuri de date redefinite

Tipurile redefinte sunt numite tipuri de date STD ce corespund cu nite datagrame
utilizate la momentul de fa in interiorul unui sau altui eveniment.
In interiorul acestei structure pot fi utilizate mai multe procedure i procese. Fiecare
process i procedur are un numit identificator.

- process
-procedur

Aceste dou elemente pot fi utilizate cu scopul de a apela unele rezultate anterioare din
interiorul limbajului SDL-2000.
Spre eosebire de limbajul SDL 92/96 , SDL-2000 presupune omiterea dezavantajelor
refiritoare la viteza ct i la posibilitatea obinerii a nite identificatori Pid ct i diferite ipuri de
date care sporete viteza de lucru de la o anumit baz de date spre un process sau o procedur.
Dezavantajul de baz a sistemului SDL-2000 este semicostul software-ului utilizat i nu
permite organizarea diferitor activiti in timp real. Cu acest scop se utilizeaz alte tipuri de
limbaje QSDL sau SDLRT.
Partea Practic

START SYSTEM;
SYSTEM_DEFINITION::SYSTEM Q;
BLOCK_DEFINITION_SET::
B1,B2,B4,B5,B6,B7,B8,B9,B10,B11,B12,B13,B14,B15;
CHANNEL_DEFINITION_SET:: C0 ,C1,C2,C3,C4, C5, C6, C7, C8, C9, C10, C11
C12, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23, C24, C25, C26, C27;
SIGNAL_DEFINITION_SET:: S0,S1,S2,S3,S4, S5, S6, S7, S8, S9, S10, S11 S12, S13,
S14, S15, S16, S17, S18, S19, S20, S21, S22, S23, S24, S25, S26, S27;

DATA_TYPE _DEFINITION::<character STRING>;


FUNCTION_TYPE_DEFINITION::<process P1>,<process P2>;
END_SYSTEM_DEFINITION::SYSTEM Q;
SPLIT C25 INTO C25.1, C25.2;
SYSTEM_HEADING_DEFINITION::SYSTEM Z;
BLOCK_DEFINITION_SET:: B1,B2,B5, B7, B8 ,B10;
CHANNEL_DEFINITION_SET:: C0, C1,C2,C3,C4, C5, C6, C7,C10,C11,C12;
SIGNAL_DEFINITION_SET:: S0, S1,S2,S3,S4, S5, S6, S7,S10,S11;
DATA_TYPE_DEFINITION::<character STRING>;
END_SYSTEM_HEADING_DEFINITION::SYSTEM Z;
BLOCK B1;
BLOCK B1 INTERCONECTION AREA ENV,B5,B2;
CHANNEL C0 FROM ENV TO B1 WITH S0;
process P1;
state S1;
task Counter=0;
Set T(35);
input I1::=C0;
output O1::=C1,O2::=C2;
nextstate S2;
task counter=0;
Set T(20);
process P2;
input I1;
output::=C1,output::=C2;
New type Stringuitility;
Operators count:Charstring;
alternative C++;
#include <stdio.h>

#include<inath.h>
#include<iostream.h>
int T1,T2,T3;
viod main(void)
{printf(Introduceti va rog timpii de retinere
:T1,T2,T3/n);
scanf( %d \n %d \n %d \n,&T1, &T2, &T3);
if((T1<T2)&&(T1<T3))
{Printf(Timpul minim de retinere pentru calea 1 este T1);
}
else if ((T2<T1)&&(T2<T3))
{printf(Timpul minim de retinere pentru calea 2 este T2);
}
else if ((T3<T1)&&(T3<T2))
{Printf(Timpul minim de retinere pentru calea 3 este T3);
}
getch()
return 0;}
END alternative C++;
END New type Stringuitility;
end process P2;
nextstate S3;
end process P1;
END BLOCK B1;
BLOCK B2;
BLOCK INTERCONECTION AREA B1,B5;
CHANNEL C1 FROM B1 TO B2 WITH S1;
END BLOCK B2;
CHANNEL C11 FROM B5 TO ENV WITH S11;
SPLIT C25 INTO C25.1, C25.2;

BLOCK B5;
BLOCK B5 INTERCONECTION AREA B1,B2,B7;
SUBBLOCK B5.1,B5.2 IS ASSOCIATED WITH BLOCK B3;
CHANNEL C2 FROM B1 TO B5.1 WITH S2;
CHANNEL C10 FROM B2 TO B5.1 WITH S10;
CHANNEL C4 FROM B5.2 TO B5.1 WITH S4;
CHANNEL C3 FROM B5.1 TO B8 WITH S3;
CHANNEL C11 FROM B5.1 TO ENV WITH S4;
END SUBBLOCK B5.1,B5.2;
END BLOCK B5;
BLOCK B8;
BLOCK B8 INTERCONECTION AREA B5,B7,B9;
CHANNEL C5 FROM B8 TO B7 WITH S5;
END BLOCK B8;
CHANNEL C25 FROM ENV TO B9 WITH S25;
SPLIT C25 INTO C25.1,C25.2;
BLOCK B10;
BLOCK B10 INTERCONECTION AREA B7,ENV;
CHANNEL C25.1 FROM B10 TO ENV WITH S25;
END BLOCK B10;
BLOCK B7;
BLOCK B7 INTERCONECTION AREA B8,B10,B6;
CHANNEL C6 FROM B7 TO B10 WITH S6;
END BLOCK B7;
END_SYSTEM_HEADING::SYSTEM Z;
SPLIT C11 INTO C11.1,C11.2,C11.3;
SYSTEM_HEADING_DEFINITION::N;
BLOCK_DEFINITION_SET:: B12,B13,B4,B14,B9,B15;
CHANNEL_DEFINITION_SET:: C12,
C13,C14,C15,C16,C17,C18,C19,C20,C21,C22,C23,C24,C25,C26, C27;

SIGNAL_DEFINITION_SET:: S12,
S13,S14,S15,S16,S17,S18,S19,S20,S21,S22,S23,S24,S25,S26, S27;
BLOCK B12;
BLOCK B12 INTERCONNECTION AREA ENV,B13,B4;
CHANNEL C11.3 FROM ENV TO B12 WITH S11;
CHANNEL C13 FROM B12 TO B13 WITH S13;
END BLOCK B12;
BLOCK B4;
BLOCK B4 INTERCONECTION AREA ENV,B12,B13,B14;
SUBBLOCK B4.1,B4.2 IS ASSCIATED WITH BLOCK B4;
CHANNEL C11.1 FROM ENV TO B4.1 WITH S11;
CHANNEL C16 FROM B4.1 TO B4.2 WITH S16;
CHANNEL C17 FROM B14 TO B4.1 WITH S17;
CHANNEL C14 FROM B4.1 TO B12 WITH S14;
CHANNEL C15 FROM B13 TO B4.2 WITH S5;
CHANNEL C18 FROM B4.2 TO ENV WITH S18;
END SUBBLOCK B4.1, B4.2;
END BLOCK B4;
CHANNEL C18 FROM B14 TO ENV WITH S18;
SPLIT C18 INTO C18.1, C18.2;
BLOCK B14;
BLOCK B14 INTERCONECTION AREA B4,ENV, B9;
CHANNEL C11.2 FROM ENV TO B14 WITH S11;
CHANNEL C18.1 FROM ENV TO B14 WITH S18;
END BLOCK B14;
BLOCK B9;
BLOCK B9 INTERCONECTION AREA ENV,B14,B15,B8;
SUBBLOCK B9.1,B9.2,B9.3,B9.4 IS ASSOCIATED WITH BLOCK B9;
CHANNEL C12 FROM B8 TO B9.1 WITH S12;
CHANNEL C27 FROM B14 TO B9.1 WITH S27;

CHANNEL C20 FROM B9.2 TO B9.1 WITH S20;


CHANNEL C19 FROM B9.1 TO B9.3 WITH S19;
CHANNEL C21 FROM B9.2 TO B9.4 WITH S21;
CHANNEL C22 FROM B9.3 TO B9.4 WITH S22;
CHANNEL C23 FROM B9.3 TO B15 WITH S23;
CHANNEL C24 FROM B9.4 TO B15 WITH S24;
CHANNEL C25 FROM ENV TO B9.3 WITH S25;
END SUBBLOCK B9.1, B9.2,B9.3,B9.4;
END BLOCK B9;
CHANNEL C26 FROM ENV TO ENV WITH C26;
SPLIT C26 INTO C26.1, C26.2;
BLOCK B15;
BLOCK B15 INTERCONECTION AREA B9,ENV;
CHANNEL C26.2 FROM B15 TO ENV WITH S26;
END BLOCK B15;
END_SYSTEM_HEADING::SYSTEM N;
BLOCK B11;
BLOCK B11 INTERCONECTION AREA B6,ENV;
CHANNEL C26.1 FROM B15 TO ENV WITH S26;
END BLOCK B11;
BLOCK B6;
BLOCK B6 INTERCONECTION AREA B11,B7,ENV;
SUBBLOCK B6.1,B6.2 IS ASSOCIATED WITH B6;
CHANNEL C7 FROM B6.1 TO B7 WITH S7;
CHANNEL C8 FROM B6.1 TO B11 WITH S8;
CHANNEL C9 FROM B6.2 TO B6.1 WITH S9;
CHANNEL C25.2 FROM B6.2 TO ENV WITH S25;
END SUBBLOCK B6.2, B6.2;
END BLOCK B6;

END SYSTEM Q;
STOP SYSTEM.
Concluzie:
In lucrarea de laborator am invat despre limbajul descripiv SDL2000. Astfel am invata noile
moduri de specificare a systemelor, subsystemelor, blocurilor si sublocurilor, care sunt putin
diferentiate de cele din SDL92/96.