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 N - Z > Programmazione > [PROGRAMMAZIONE] Help 2^ Progettino!!! A.A.04/05
Pages (38): « First ... « 21 22 23 24 [25] 26 27 28 29 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by mark
io le classi aggiornate non le trovo


prova qui

http://homes.dico.unimi.it/prog/tur...progettino1.tgz

__________________
Il Pega
www.pegasus83.com

14-12-2003 21:31
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
leon
.amico.

User info:
Registered: Oct 2003
Posts: 28 (0.00 al dì)
Location: Milano prov.
Corso: Informatica
Anno: I
Time Online: 2:59:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

In analizzatoreTesto c'è anche il metodo getTavolaOccorrenze.
questo cosa deve restituire?
E' fatto nella stessa identica maniera fatta negli esempi?

Io riesco a compilare.
quando esegui il file indice.txt mi viene creato in maniera corretta ma gli altri due sono vuoiti.
da che caz. dipende?

14-12-2003 21:31
Click Here to See the Profile for leon Click here to Send leon a Private Message Find more posts by leon Add leon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by leon
In analizzatoreTesto c'è anche il metodo getTavolaOccorrenze.
questo cosa deve restituire?
E' fatto nella stessa identica maniera fatta negli esempi?

Io riesco a compilare.
quando esegui il file indice.txt mi viene creato in maniera corretta ma gli altri due sono vuoiti.
da che caz. dipende?


sostanzialmente sono al tuo stesso punto. mi viene creato l'indice solo se per adesso escludo mettendo come commenti parole chiave e occorrenze....altrimenti errori su errori

il metodo getTavolaOccorrenze deve restituire l'elenco delle semplici parole che trovi nel testo...

__________________
Il Pega
www.pegasus83.com

14-12-2003 21:36
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gioe
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 521 (0.06 al dì)
Location: Piacenza
Corso: Informatica
Anno: 3
Time Online: 25 Days, 8:18:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by leon
io non riesco a capire:
in AnalizzatoreTesto pian piano che trovo le parole chiave costruisco degli oggetti di tipo Occorrenze
e aggiungo questi oggetti ad una sequenza.
Alla fine creo un iterato contenente tutti gli oggetti di occorrenze e faccio retur l'itearatore.
Ora in nella classe Occorrenze c'è da implementrare dei metodi per i quali è necessario scandire l'iterator creato da analizzatoretesto tipo il metodo ListaLinee o il metodo umeroOccorrenze


COME FACCIO A PASSARE L'ITERATOR DI ANALIZZATORE TESTO A OCCORRRENZE.
Se non bisogna fare così come si deve fare?


Prima di mettere l'occorrenza nella sequenza guardi se nella sequenza c'è un'occorrenza.equals(occorenza altra) se nn c'è aggiungi l'occorrenza alla sequenza, se c'è invece aggiungi solo la linea col metodo della classe Occorrenze aggiungiLinea(int linea) e poi fai return iterator delle occorrenze...spero sia di aiuto

__________________
@~@~@~@~@~@~@~@~@~@

TIMEO DANAOS ET DONA FERENTES

@~@~@~@~@~@~@~@~@~@

14-12-2003 21:38
Click Here to See the Profile for Gioe Click here to Send Gioe a Private Message Find more posts by Gioe Add Gioe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Gioe
Prima di mettere l'occorrenza nella sequenza guardi se nella sequenza c'è un'occorrenza.equals(occorenza altra) se nn c'è aggiungi l'occorrenza alla sequenza, se c'è invece aggiungi solo la linea col metodo della classe Occorrenze aggiungiLinea(int linea) e poi fai return iterator delle occorrenze...spero sia di aiuto


tu l'hai finito?

__________________
Il Pega
www.pegasus83.com

14-12-2003 21:40
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Masca
.amico.

User info:
Registered: Oct 2003
Posts: 36 (0.00 al dì)
Location:
Corso: Info
Anno: boh 2 || 3
Time Online: 16:00:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io ho lo stesso problema di leon , come faccio nella classe Occorrenze a far riferimento all'iteratore creato nella classe AnalizzatoreTesto ????
sclero!sto pensando di Abbandonare ma mi girano troppo!
HELP!

__________________
ringrazio carl von linde inventore del frigorifero
la birra ha tutto un altro sapore, grazie

14-12-2003 21:50
Click Here to See the Profile for Masca Click here to Send Masca a Private Message Find more posts by Masca Add Masca to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

siam messi tutti un po' così...

__________________
Il Pega
www.pegasus83.com

14-12-2003 21:54
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gioe
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 521 (0.06 al dì)
Location: Piacenza
Corso: Informatica
Anno: 3
Time Online: 25 Days, 8:18:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Pegasus83
tu l'hai finito?


Quasi... nn capisco per il getParolechiave() se devono essere solo in ordine alfabetico o in ordine alfabetico rispetto al titolo.... se è la seconda nn saprei proprio come fare =_=

__________________
@~@~@~@~@~@~@~@~@~@

TIMEO DANAOS ET DONA FERENTES

@~@~@~@~@~@~@~@~@~@

14-12-2003 22:08
Click Here to See the Profile for Gioe Click here to Send Gioe a Private Message Find more posts by Gioe Add Gioe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Gioe
Quasi... nn capisco per il getParolechiave() se devono essere solo in ordine alfabetico o in ordine alfabetico rispetto al titolo.... se è la seconda nn saprei proprio come fare =_=


in che senso rispetto al titolo???

__________________
Il Pega
www.pegasus83.com

14-12-2003 22:10
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gioe
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 521 (0.06 al dì)
Location: Piacenza
Corso: Informatica
Anno: 3
Time Online: 25 Days, 8:18:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Pegasus83
in che senso rispetto al titolo???


nel testo del progetto dice "lessicograficamente rispetto al titolo della voce" penso che intenda le parole chiave tra un titolo e l'altro, se fosse davvero così sarebbe veramente un casino.... spero vivamente di aver capito male :cry:

__________________
@~@~@~@~@~@~@~@~@~@

TIMEO DANAOS ET DONA FERENTES

@~@~@~@~@~@~@~@~@~@

14-12-2003 22:14
Click Here to See the Profile for Gioe Click here to Send Gioe a Private Message Find more posts by Gioe Add Gioe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ah quello non l'ho capito manco io.......ma chi è che l'ha capito tutto?!?!?

__________________
Il Pega
www.pegasus83.com

14-12-2003 22:15
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
LjL
.consigliere.

User info:
Registered: Dec 2003
Posts: 144 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Primo
Time Online: 16:25:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Pegasus83
io sono incasinato con il metodo compareTo, quanso faccio partire mi dice
java.lang.StackOverflowError

Non è che in qualche modo (cast sbagliati?) il tuo compareTo() richiama se stesso?

__________________
by LjL
ljlbox@tiscali.it
http://ljl.150m.com - appunti corsi

14-12-2003 22:15
Click Here to See the Profile for LjL Click here to Send LjL a Private Message Visit LjL's homepage! Find more posts by LjL Add LjL to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by LjL
Non è che in qualche modo (cast sbagliati?) il tuo compareTo() richiama se stesso?


sto controllando ma sono in sclero totale....son da due giorni e mezzo su sto coso...

__________________
Il Pega
www.pegasus83.com

14-12-2003 22:16
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
LjL
.consigliere.

User info:
Registered: Dec 2003
Posts: 144 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Primo
Time Online: 16:25:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by leon
io non riesco a capire:
in AnalizzatoreTesto pian piano che trovo le parole chiave costruisco degli oggetti di tipo Occorrenze
e aggiungo questi oggetti ad una sequenza.
Alla fine creo un iterato contenente tutti gli oggetti di occorrenze e faccio retur l'itearatore.
Ora in nella classe Occorrenze c'è da implementrare dei metodi per i quali è necessario scandire l'iterator creato da analizzatoretesto tipo il metodo ListaLinee o il metodo umeroOccorrenze


COME FACCIO A PASSARE L'ITERATOR DI ANALIZZATORE TESTO A OCCORRRENZE.
Se non bisogna fare così come si deve fare?

Uh? Perché vuoi scandire l'Iterator?
La variabile ("variabile" in senso lato) che contiene la lista linee (e di conseguenza quella che contiene il numero delle occorrenze, se c'è) non viene creata da AnalizzatoreTesto.
O meglio, viene creata *indirettamente* da AnalizzatoreTesto - nel senso che AnalizzatoreTesto chiede a Occorrenze di crearla tramite il metodo aggiungiLinea() (e il costruttore di Occorrenze).

L'unica cosa che Occorrenze dev'essere in grado di fare è restituire quella lista sotto forma di Iterator. Ma non mi pare che siano necessarie particolari "scansioni" per fare ciò.

__________________
by LjL
ljlbox@tiscali.it
http://ljl.150m.com - appunti corsi

14-12-2003 22:20
Click Here to See the Profile for LjL Click here to Send LjL a Private Message Visit LjL's homepage! Find more posts by LjL Add LjL to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
LjL
.consigliere.

User info:
Registered: Dec 2003
Posts: 144 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Primo
Time Online: 16:25:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Masca
io ho lo stesso problema di leon , come faccio nella classe Occorrenze a far riferimento all'iteratore creato nella classe AnalizzatoreTesto ????
sclero!sto pensando di Abbandonare ma mi girano troppo!
HELP!

Ma mi spiegate cosa diavolo è questa idea di usare in Occorrenze roba creata in AnalizzatoreTesto?
Occorrenze e VoceIndice offrono servizi ad Analizzatore testo, non viceversa.

Questo è almeno quanto succede nel mio progettino, ma direi proprio che è anche l'implementazione più straight-forward dell'Universo...

__________________
by LjL
ljlbox@tiscali.it
http://ljl.150m.com - appunti corsi

14-12-2003 22:22
Click Here to See the Profile for LjL Click here to Send LjL a Private Message Visit LjL's homepage! Find more posts by LjL Add LjL to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 05:05.    Post New Thread    Post A Reply
Pages (38): « First ... « 21 22 23 24 [25] 26 27 28 29 » ... 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.227 seconds (34.88% PHP - 65.12% MySQL) con 24 query.