You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(2) |
---|
From: Luiz F. S. P. <lf...@in...> - 2002-12-11 20:14:32
|
Possuo na minha rede um objeto chamado "Client", que entre os seus estados internos possui um outro objeto chamado "PersonalInfo". O objeto "PersonalInfo" possui estados internos com atributos do cliente, como idade, estado civil, etc. todos da classe IntegerHolder ou StringHolder. Gostaria de saber como posso fazer para carregar estas informações do cliente a partir de um arquivo texto. Tentei ler o arquivo na seção "init" do layer "Main", e criar os objetos da classe "Client" antes de executar o "getPlace().putObject()" mas estou recebendo uma exceção do tipo "ArrayOutOfBound" quando crio o objeto "PersonalInfo" e tento inicializar os seus estados internos com as informações lidas do arquivo. Neste mesmo arquivo há informações para inicialização de objetos de uma outra classe em um outro place ("MarketInfo"). Não posso carregar todos os dados de incialização de todos os objetos na inicialização da rede (init do Main)? Como posso então criar os objetos com estes dados? Segue abaixo o código utilizado : ================================ String filename = "./data/clients.txt"; String record; int i = 0; String temp; try{ BufferedReader in = new BufferedReader(new FileReader(filename)); while((record=in.readLine())!=null){ i++; System.out.println("record ("+i+") "+record); // Creates client object StringTokenizer st = new StringTokenizer(record); PersonalInfo personalInfo = new PersonalInfo(); int id = Integer.valueOf(st.nextToken()).intValue(); System.out.println("Id:"+id); personalInfo.put_sId(new Int(id)); <============ O ERRO ACONTECE AQUI !!! personalInfo.put_sAge(new Str(st.nextToken())); System.out.println("Age:"+personalInfo.read_sAge()); personalInfo.put_sMaritalStatus(new Str(st.nextToken())); System.out.println("MaritalSt:"+personalInfo.read_sMaritalStatus()); personalInfo.put_sNumDependents(new Str(st.nextToken())); personalInfo.put_sZipCode(new Str(st.nextToken())); personalInfo.put_sScholarity(new Str(st.nextToken())); personalInfo.put_sGender(new Str(st.nextToken())); personalInfo.put_sOccupation(new Str(st.nextToken())); personalInfo.put_sResidentialStatus(new Str(st.nextToken())); personalInfo.put_sAccOthersBanks(new Str(st.nextToken())); int income = Integer.valueOf(st.nextToken()).intValue(); personalInfo.put_sIncome(new Int(income)); int performance = Integer.valueOf(st.nextToken()).intValue(); personalInfo.put_sPerformance(new Int(performance)); Client client = new Client(); client.put_sPersonalInfo(personalInfo); getPlace("p2").putObject(client); System.out.println("Client created !!!"); // Creates a market info object MarketInfo marketInfo = new MarketInfo(); marketInfo.put_sId(new Int(id)); marketInfo.put_sPMktInfo(new Str(st.nextToken())); int aoMktInfo = Integer.valueOf(st.nextToken()).intValue(); marketInfo.put_sAOMktInfo(new Int(aoMktInfo)); marketInfo.put_sCOMktInfo(new Str(st.nextToken())); marketInfo.put_sG3MktInfo(new Str(st.nextToken())); getPlace("p16").putObject(marketInfo); } } catch(Exception e) { System.out.println("### Error reading : '"+filename+"'\n"+e); } Grato, Luiz Felipe |
From: Saggioro Icaro-W. <ic...@mo...> - 2002-12-10 16:07:06
|
Gente, Preciso usar uma classe q implementei dentro do c=F3digo de um dos = agentes criados dentro da ferramenta SNTool Como exatamente devo fazer isso ? Quais vari=E1veis CLASSPATH q devem conter o caminho pra classe ? Acredito q n=E3o h=E1 necessidade de criar um Holder, h=E1 ? Se sim como devo fazer ? Obrigado ICaro |
From: Icaro N. S. <in...@bo...> - 2002-11-05 02:19:52
|
Gente, Oi, tudo bem ? Será q alguem poderia me dizer como eu faço pra somar 2 inteiros q retirei de 2 sensores diferentes ? Tomei uma surra disso hoje e resolvi perguntar pra nao ficar mais tempo tentando adivinhar... Valeu ICaro snt...@li... wrote: > Welcome to the Snt...@li... mailing list! > > To post to this list, send your email to: > > snt...@li... > > General information about the mailing list is at: > > https://lists.sourceforge.net/lists/listinfo/sntool-user > > If you ever want to unsubscribe or change your options (eg, switch to > or from digest mode, change your password, etc.), visit your > subscription page at: > > https://lists.sourceforge.net/lists/options/sntool-user/ins%40box.co.uk > > > You can also make such adjustments via email by sending a message to: > > Snt...@li... > > with the word `help' in the subject or body (don't include the > quotes), and you will get back a message with instructions. > > You must know your password to change your options (including changing > the password, itself) or to unsubscribe. It is: > > cpqd021182 > > If you forget your password, don't worry, you will receive a monthly > reminder telling you what all your lists.sourceforge.net mailing list > passwords are, and how to unsubscribe or change your options. There > is also a button on your options page that will email your current > password to you. > > You may also have your password mailed to you automatically off of the > Web page noted above. > _______________________________________________________________________ Yahoo! Encontros O lugar certo para encontrar a sua alma gêmea. http://br.encontros.yahoo.com/ |
From: <ocl...@ig...> - 2002-10-21 03:13:27
|
Prezados, Peço sua ajuda para tentar entender qual o problema com meu trabalho. O arquivo "Copia 3 Autolanche" esta no ponto onde tudo parece funcionar bem. O seu incremento no arquivo "Autolanche" parece estar mostrando um bug da ferramenta pois ao tentar inserir mais uma porta de saida ele cria com mesmo nome de uma que ja existe e nao me deixar seguir em frente. Vocês poderia fazer a gentileza de verificar este assunto? Grato, Oclair Prado _________________________________________________________ Voce quer um iGMail protegido contra vírus e spams? Clique aqui: http://www.igmailseguro.ig.com.br |