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] Progetto Telefonia
Pages (5): « 1 [2] 3 4 5 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
altersystem
.illuminato.

User info:
Registered: Apr 2004
Posts: 228 (0.03 al dì)
Location:
Corso: informatica paranormale
Anno: I
Time Online: 4 Days, 19:11:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by lino
Voi come gestite gli abbonati?


memorizzando il "Cliente" in una struttura che colleziona oggetti.


Originally posted by lino
visto che le info sul costo delle varie tariffe sono conosciute a priori, come e dove le memorizzate?


io le utilizzo nelle tre classi che ho costruito come dei semplici campi private;
es:
le tariffe 10c/minuto e 11c/minuto, della classe Easy sono campi privati della classe stessa. (che vengono restituiti da un metodo della stessa classe a secondo che il cliente chiamato sia di "telesuono" o meno)

Last edited by altersystem on 05-07-2004 at 22:42

05-07-2004 22:39
Click Here to See the Profile for altersystem Click Here to See the Blog of altersystem Click here to Send altersystem a Private Message Find more posts by altersystem Add altersystem to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
altersystem
.illuminato.

User info:
Registered: Apr 2004
Posts: 228 (0.03 al dì)
Location:
Corso: informatica paranormale
Anno: I
Time Online: 4 Days, 19:11:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io ho qualche problema con la tariffa "friend" (tre amici),
qualcuno l'ha già implementata?

thanks

05-07-2004 22:48
Click Here to See the Profile for altersystem Click Here to See the Blog of altersystem Click here to Send altersystem a Private Message Find more posts by altersystem Add altersystem to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lino
.precettore.

User info:
Registered: Jun 2003
Posts: 96 (0.01 al dì)
Location: lodi
Corso: informatica
Anno: terzo
Time Online: 2 Days, 1:25:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Io ho creato la classe astratta Piani con un solo metodo astratto getTariffa e poi ad ogni tariffa ho associato una classe. Per i campi privati che dici ok, ma la compagnia, visto che sono solo 2(o telesuono o altre) dove le memorizzi?

06-07-2004 08:56
Click Here to See the Profile for lino Click here to Send lino a Private Message Find more posts by lino Add lino to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
altersystem
.illuminato.

User info:
Registered: Apr 2004
Posts: 228 (0.03 al dì)
Location:
Corso: informatica paranormale
Anno: I
Time Online: 4 Days, 19:11:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by lino
Io ho creato la classe astratta Piani con un solo metodo astratto getTariffa e poi ad ogni tariffa ho associato una classe. Per i campi privati che dici ok, ma la compagnia, visto che sono solo 2(o telesuono o altre) dove le memorizzi?


ci sono due strade, o la colleghi all'oggetto cliente, oppure all'oggetto pianotariffario.

spero di essere chiaro.

06-07-2004 09:01
Click Here to See the Profile for altersystem Click Here to See the Blog of altersystem Click here to Send altersystem a Private Message Find more posts by altersystem Add altersystem to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lino
.precettore.

User info:
Registered: Jun 2003
Posts: 96 (0.01 al dì)
Location: lodi
Corso: informatica
Anno: terzo
Time Online: 2 Days, 1:25:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Altra domanda... come vengono istanziati gli abbonati?
Mi spiego... di solito recuperiamo dati da file in input, qui dobbiamo crearli noi dal nulla. Li memorizzi in una sequenza

06-07-2004 14:50
Click Here to See the Profile for lino Click here to Send lino a Private Message Find more posts by lino Add lino to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
altersystem
.illuminato.

User info:
Registered: Apr 2004
Posts: 228 (0.03 al dì)
Location:
Corso: informatica paranormale
Anno: I
Time Online: 4 Days, 19:11:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by lino
Altra domanda... come vengono istanziati gli abbonati?
Mi spiego... di solito recuperiamo dati da file in input, qui dobbiamo crearli noi dal nulla. Li memorizzi in una sequenza


esatto, l'inserimento non deve essere interattivo.

una domanda: tu come fai a mantenere l'allineamento dei campi nella bolletta da stampare???

06-07-2004 15:03
Click Here to See the Profile for altersystem Click Here to See the Blog of altersystem Click here to Send altersystem a Private Message Find more posts by altersystem Add altersystem to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lino
.precettore.

User info:
Registered: Jun 2003
Posts: 96 (0.01 al dì)
Location: lodi
Corso: informatica
Anno: terzo
Time Online: 2 Days, 1:25:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Quella dell'allineamento è una cosa lunga da spiegare, io parto da una stringa vuota di caratteri tanti quanti sono quelli di una singola riga..... come scrivi sul file di testo lo stesso metodo?

06-07-2004 15:43
Click Here to See the Profile for lino Click here to Send lino a Private Message Find more posts by lino Add lino to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
altersystem
.illuminato.

User info:
Registered: Apr 2004
Posts: 228 (0.03 al dì)
Location:
Corso: informatica paranormale
Anno: I
Time Online: 4 Days, 19:11:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by lino
Quella dell'allineamento è una cosa lunga da spiegare, io parto da una stringa vuota di caratteri tanti quanti sono quelli di una singola riga..... come scrivi sul file di testo lo stesso metodo?


Utilizzando il metodo print(stringa) della classe FileOutputManager (package prog);

;-)

06-07-2004 21:55
Click Here to See the Profile for altersystem Click Here to See the Blog of altersystem Click here to Send altersystem a Private Message Find more posts by altersystem Add altersystem to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
cristiano
.amico.

User info:
Registered: Nov 2003
Posts: 37 (0.00 al dì)
Location: Milano
Corso: informatica
Anno: segùndo
Time Online: 8:16:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Se posso essere utile per 'friend' ho messo i 3numeri in un [], e ho aggiunto getNumeri(), metodo che userà la tel.-
Più che altro ho problemi con le date, esclusa l'interazione con l'esterno come faccio a iniz.le tariffe con le date di validità?
thanks

07-07-2004 01:04
Click Here to See the Profile for cristiano Click Here to See the Blog of cristiano Click here to Send cristiano a Private Message Find more posts by cristiano Add cristiano to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
altersystem
.illuminato.

User info:
Registered: Apr 2004
Posts: 228 (0.03 al dì)
Location:
Corso: informatica paranormale
Anno: I
Time Online: 4 Days, 19:11:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

dovrebbe essere così:
una chiamata è valida se la data di chiamata è compresa tra le date di inizio e fine validità del piano tariffario; quindi ciascuno dei tre piani tariffari potrebbe averle già memorizzare come variabili fisse. (almeno credo)
Puoi usare la classe Data del package prog.

ciao

07-07-2004 16:14
Click Here to See the Profile for altersystem Click Here to See the Blog of altersystem Click here to Send altersystem a Private Message Find more posts by altersystem Add altersystem to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
cristiano
.amico.

User info:
Registered: Nov 2003
Posts: 37 (0.00 al dì)
Location: Milano
Corso: informatica
Anno: segùndo
Time Online: 8:16:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

grazie ALter, anche se certi metodi sono deprecated, stanotte continuo, buon lavoro.

07-07-2004 19:24
Click Here to See the Profile for cristiano Click Here to See the Blog of cristiano Click here to Send cristiano a Private Message Find more posts by cristiano Add cristiano to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
altersystem
.illuminato.

User info:
Registered: Apr 2004
Posts: 228 (0.03 al dì)
Location:
Corso: informatica paranormale
Anno: I
Time Online: 4 Days, 19:11:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by cristiano
grazie ALter, anche se certi metodi sono deprecated, stanotte continuo, buon lavoro.


Off-Topic:
spero che il prof. Grossi non mi bocci per colpa di un metodo deprecated
:-D

Off-Topic:
a proposito, nessuno di voi ha mai seguito gli esami orali?
vi risulta che siano particolarmente esigenti sui progetti?
o che boccino anche per errori veniali sul codice?

happy coding,
alter

Last edited by altersystem on 07-07-2004 at 21:35

07-07-2004 21:33
Click Here to See the Profile for altersystem Click Here to See the Blog of altersystem Click here to Send altersystem a Private Message Find more posts by altersystem Add altersystem to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
cristiano
.amico.

User info:
Registered: Nov 2003
Posts: 37 (0.00 al dì)
Location: Milano
Corso: informatica
Anno: segùndo
Time Online: 8:16:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

sinceramente non lo so, è solo che nel testo propone la classe GregorianCalendar piuttosto che Date.Avrei preferito anch'io usare date ma nel dubbio...a proposito, grazie per le delucidazioni sull'"interazione", credo sia più semplice..
..per ora

07-07-2004 23:10
Click Here to See the Profile for cristiano Click Here to See the Blog of cristiano Click here to Send cristiano a Private Message Find more posts by cristiano Add cristiano to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
altersystem
.illuminato.

User info:
Registered: Apr 2004
Posts: 228 (0.03 al dì)
Location:
Corso: informatica paranormale
Anno: I
Time Online: 4 Days, 19:11:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by cristiano
...per 'friend' ho messo i 3numeri in un [], e ho aggiunto getNumeri(), metodo che userà la tel.-


dove inizializzi l'array, nel cliente?, o nel costruttore di Friend?

08-07-2004 12:52
Click Here to See the Profile for altersystem Click Here to See the Blog of altersystem Click here to Send altersystem a Private Message Find more posts by altersystem Add altersystem to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
cristiano
.amico.

User info:
Registered: Nov 2003
Posts: 37 (0.00 al dì)
Location: Milano
Corso: informatica
Anno: segùndo
Time Online: 8:16:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

iniz. l'array dal costruttore,(immaginandolo come scelta dell'utente)di friend,il quale ha 3 arg in più rispetto agli altri.
ho aggiunto anche il relativo getNumeri.

08-07-2004 23:27
Click Here to See the Profile for cristiano Click Here to See the Blog of cristiano Click here to Send cristiano a Private Message Find more posts by cristiano Add cristiano to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 12:08.    Post New Thread    Post A Reply
Pages (5): « 1 [2] 3 4 5 »   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.043 seconds (83.97% PHP - 16.03% MySQL) con 26 query.