31.05.2014 Views

Altra Tesina - Progettoatena.It

Altra Tesina - Progettoatena.It

Altra Tesina - Progettoatena.It

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.5 Ordinazioni<br />

Le classi di questo package (Figura 4-5) gestiscono i dati relativi alle ordinazioni dei clienti.<br />

Da notare come per ogni ordinazione si tenga traccia di tutti i dipendenti che l’hanno gestita:<br />

l’eventuale commesso che l’ha registrata, nel caso non sia stata fatta tramite web; i cuochi che<br />

l’hanno preparata; il fattorino che l’ha consegnata. Questo serve per ricavare le statistiche richieste<br />

dal Requisito #8 dell’SRS.<br />

Pagamento<br />

-modalità: modoPagamento<br />

<br />

Commesso<br />

<br />

Cuoco<br />

<br />

Fattorino<br />

0..1<br />

*<br />

0..1<br />

ricevuto da<br />

presa da<br />

consegnata da<br />

1<br />

*<br />

*<br />

*<br />

Ordinazione<br />

-stato: OrderState<br />

-data : Date<br />

-/importo: Money<br />

+CalcolaImporto()<br />

numeroVoce<br />

*<br />

*<br />

fatta da<br />

/luogo consegna<br />

1<br />

1<br />

<br />

Cliente<br />

<br />

Indirizzo<br />

1<br />

*<br />

Reclamo<br />

-descrizione : String<br />

*<br />

*<br />

1<br />

<br />

Prodotto<br />

LineaOrdinazione<br />

-qtà : Quantity<br />

ListaReclami<br />

-reclami : Integer<br />

<br />

List<br />

Figura 4-5 Class Diagram Ordinazioni<br />

16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!