Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Fondamenti di architettura e programmazione > [Progetto] TV Serial Cataloger
Pages (16): « First ... « 6 7 8 9 [10] 11 12 13 14 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
-MaVeRiK86-
.primate.

User info:
Registered: Feb 2008
Posts: 77 (0.01 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno:
Time Online: 20:54:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Stella20
...io il metodo main l'ho richiamato solo nella classe DB..poi ci pensa il prof...

E se il prof usa un suo main?

17-09-2009 21:02
Click Here to See the Profile for -MaVeRiK86- Click here to Send -MaVeRiK86- a Private Message Find more posts by -MaVeRiK86- Add -MaVeRiK86- to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
AnTHrAx
.dead end.

User info:
Registered: Apr 2004
Posts: 100 (0.01 al dì)
Location: milano
Corso: comunicazione digitale
Anno: 5
Time Online: 21:07:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

nono è sbagliato stella!
tu il metodo main non lo devi fare nella classe DB!
Il main lo devi fare solo al fine di testare tutti i tuoi metodi!

__________________
:O

17-09-2009 21:03
Click Here to See the Profile for AnTHrAx Click here to Send AnTHrAx a Private Message Find more posts by AnTHrAx Add AnTHrAx to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Stella20
.primate.

User info:
Registered: Jul 2009
Posts: 65 (0.01 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: 2
Time Online: 18:16:14 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

adesso ho riletto il testo e nella sezione modalità di consegna il prof richiede un file in cui si spieghi il modo con cui ci si interfaccia con il programma cioè???

17-09-2009 21:06
Click Here to See the Profile for Stella20 Click here to Send Stella20 a Private Message Find more posts by Stella20 Add Stella20 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sHADOw001
.fedelissimo.

User info:
Registered: Jan 2008
Posts: 51 (0.01 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno:
Time Online: 19:48:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Stella a m'è m'ha cannato il ValidatoreHTML perchè avevo messo anche il main..
inviagli solo le cose richieste nella consegna, niente di più!

17-09-2009 21:08
Click Here to See the Profile for sHADOw001 Click here to Send sHADOw001 a Private Message Find more posts by sHADOw001 Add sHADOw001 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Stella20
.primate.

User info:
Registered: Jul 2009
Posts: 65 (0.01 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: 2
Time Online: 18:16:14 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

quindi niente main nel codice???

17-09-2009 21:09
Click Here to See the Profile for Stella20 Click here to Send Stella20 a Private Message Find more posts by Stella20 Add Stella20 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
giron
.primate.

User info:
Registered: Jun 2006
Posts: 62 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 16:21:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

se nel vostro mai avete 3 query (una serialQuery, una titleSubstringQuery e una beforeYearQuery), in quest'ordine, e la serialQuery non ritorna risultati, nel senso che non esiste nessun episodio facente parte di quella serie, partirà un eccezione giusto? ma allora le successive due query che potevano essere corrette e dar luogo a dei risultati, non verranno eseguite...giusto?

17-09-2009 21:09
Click Here to See the Profile for giron Click here to Send giron a Private Message Find more posts by giron Add giron to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
giron
.primate.

User info:
Registered: Jun 2006
Posts: 62 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 16:21:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

tu puoi inviare una classe con metodo main, ma non deve essere nessuna delle classi richieste dal prof..creati una nuova classe chiamata main per fare i test

17-09-2009 21:12
Click Here to See the Profile for giron Click here to Send giron a Private Message Find more posts by giron Add giron to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Stella20
.primate.

User info:
Registered: Jul 2009
Posts: 65 (0.01 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: 2
Time Online: 18:16:14 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

xkè dovrebbe lanciare eccezioni nel caso in cui la ricerca non ritorni alcun episodio??no no..se non trova episodi che soddisfano quella ricerca può benissimo eseguire le altre due...

qualcuno mi spiega cosa intende il prof con un file che indichi il modo con cui interfacciarsi col programma???mi riferisco alla relazione

17-09-2009 21:13
Click Here to See the Profile for Stella20 Click here to Send Stella20 a Private Message Find more posts by Stella20 Add Stella20 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sHADOw001
.fedelissimo.

User info:
Registered: Jan 2008
Posts: 51 (0.01 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno:
Time Online: 19:48:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by giron
se nel vostro mai avete 3 query (una serialQuery, una titleSubstringQuery e una beforeYearQuery), in quest'ordine, e la serialQuery non ritorna risultati, nel senso che non esiste nessun episodio facente parte di quella serie, partirà un eccezione giusto? ma allora le successive due query che potevano essere corrette e dar luogo a dei risultati, non verranno eseguite...giusto?

Bella domanda..è quello che mi sto chiedendo anche io.Non vedo alternative anche perchè l'unica sarebbe usare un System.out.println("Non ci sono risultati"); e proseguire, ma non mi sembra una buona soluzione!

17-09-2009 21:15
Click Here to See the Profile for sHADOw001 Click here to Send sHADOw001 a Private Message Find more posts by sHADOw001 Add sHADOw001 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sHADOw001
.fedelissimo.

User info:
Registered: Jan 2008
Posts: 51 (0.01 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno:
Time Online: 19:48:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Stella20
qualcuno mi spiega cosa intende il prof con un file che indichi il modo con cui interfacciarsi col programma???mi riferisco alla relazione

Se magari hai un ordine preciso con cui eseguire i tuoi metodi, quali eccezioni far lanciare al main, se vanno gestite in un modo particolare..penso cose così..

17-09-2009 21:18
Click Here to See the Profile for sHADOw001 Click here to Send sHADOw001 a Private Message Find more posts by sHADOw001 Add sHADOw001 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Stella20
.primate.

User info:
Registered: Jul 2009
Posts: 65 (0.01 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: 2
Time Online: 18:16:14 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non intende magari come far partire il programma dato che non c'è un vero e proprio main??
da quello ke mi sembra di aver capito ognuno lo gestisce a modo suo..
io ho consegnato l'ultimo progetto con il main all'interno di una classe richiesta e non ha dato nessun problema...
in questo caso penso sia la classe DB da cui far partire l'intero programma e quindi in questa classe inserire un metodo main per istanziare un oggetto e richiamare i vari metodi..

17-09-2009 21:22
Click Here to See the Profile for Stella20 Click here to Send Stella20 a Private Message Find more posts by Stella20 Add Stella20 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sHADOw001
.fedelissimo.

User info:
Registered: Jan 2008
Posts: 51 (0.01 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno:
Time Online: 19:48:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non penso che lui utilizzi direttamente la tua classe DB per far partire il progetto, ma un suo main comune a tutti i progetti.Lui lancia i metodi e si aspetta che si comportino in un certo modo..se ho ben capito il tuo dubbio..

17-09-2009 21:26
Click Here to See the Profile for sHADOw001 Click here to Send sHADOw001 a Private Message Find more posts by sHADOw001 Add sHADOw001 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
giron
.primate.

User info:
Registered: Jun 2006
Posts: 62 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 16:21:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by giron se nel vostro mai avete 3 query (una serialQuery, una titleSubstringQuery e una beforeYearQuery), in quest'ordine, e la serialQuery non ritorna risultati, nel senso che non esiste nessun episodio facente parte di quella serie, partirà un eccezione giusto? ma allora le successive due query che potevano essere corrette e dar luogo a dei risultati, non verranno eseguite...giusto? Bella domanda..è quello che mi sto chiedendo anche io.Non vedo alternative anche perchè l'unica sarebbe usare un System.out.println("Non ci sono risultati"); e proseguire, ma non mi sembra una buona soluzione!



Si ho pensato anche io a fare ritornare una stringa con "Non ci sono risutlati" ma il metodo public Episode[] query(Query q) deve ritornare
un array di episodi quinti non puoi ritornare un System.out.println("").


Comunque, pensandoci bene, è una cosa che deve gestire il prof nel main. Infatti, considerando l'esempio che ho fatto delle 3 query, basta mettere un try nel codice della prima query e un catch prima della seconda query..a quel punto verrebbe stampata l'eccezione per la prima query ma le altre verrebbero eseguite subito dopo. :) :)

17-09-2009 21:27
Click Here to See the Profile for giron Click here to Send giron a Private Message Find more posts by giron Add giron to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sHADOw001
.fedelissimo.

User info:
Registered: Jan 2008
Posts: 51 (0.01 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno:
Time Online: 19:48:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Mi auguro vivamente che la pensi come te, altrimenti qui si blocca tutto :D
Ma ho tanta paura che lui alla dichiarazione del main faccia un bel
throws Exception
e lanci il programma....

17-09-2009 21:29
Click Here to See the Profile for sHADOw001 Click here to Send sHADOw001 a Private Message Find more posts by sHADOw001 Add sHADOw001 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
giron
.primate.

User info:
Registered: Jun 2006
Posts: 62 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 16:21:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Mi auguro vivamente che la pensi come te, altrimenti qui si blocca tutto Ma ho tanta paura che lui alla dichiarazione del main faccia un bel throws Exception e lanci il programma....



mmm...ma allora l'alternativa sarebbe mettere un try catch nel metodo public Episode[] query(Query q)

no?

troppi dubbi...gli darebbe fastidio un try catch all'interno di un metodo?

17-09-2009 21:34
Click Here to See the Profile for giron Click here to Send giron a Private Message Find more posts by giron Add giron to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 09:51.    Post New Thread    Post A Reply
Pages (16): « First ... « 6 7 8 9 [10] 11 12 13 14 » ... Last »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.064 seconds (74.34% PHP - 25.66% MySQL) con 23 query.