From: guang c. <gua...@ya...> - 2006-12-31 13:07:04
|
Hi Jeroen, Hi repast-interest group, Sincerely thank you for your great help! For some reason, I did not receive e-mail directly from Jeroen. Fortunately, because Jeroen not only sent it to me but also sent it to this group, I finally received his help through this group e-mail. This is a great group. We really appreciate for the chance that we could learn from each other and help each other. I sincerely hope that everyone could have a wonderful new year, and learn more and help more! Jeroen, I will e-mail you late after I test your codes, and hope to learn more from you. I am in Florida, North port, and Orlando areas. Let me know if you have a chance to visit here. Regards, Guang --- rep...@li... wrote: > Send Repast-interest mailing list submissions to > rep...@li... > > To subscribe or unsubscribe via the World Wide Web, > visit > > https://lists.sourceforge.net/lists/listinfo/repast-interest > or, via email, send a message with subject or body > 'help' to > rep...@li... > > You can reach the person managing the list at > rep...@li... > > When replying, please edit your Subject line so it > is more specific > than "Re: Contents of Repast-interest digest..." > > > Today's Topics: > > 1. convert the ticks to date (years) (guang chen) > 2. Re: convert the ticks to date (years) (Jeroen > van Dijk) > 3. Problems taking a snapshot from the code in > Repast J > (Jeroen van Dijk) > 4. (no subject) (saqib dilshad) > 5. Go typescript it venal (Bettie Bowen) > 6. Re: (no subject) (David Zhu) > 7. Re: (no subject) (saqib dilshad) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 29 Dec 2006 05:00:20 -0800 (PST) > From: guang chen <gua...@ya...> > Subject: [Repast-interest] convert the ticks to date > (years) > To: repast-interest > <rep...@li...> > Message-ID: > <170...@we...> > Content-Type: text/plain; charset=iso-8859-1 > > Hi All, > > I am interested in learning from all of you > regarding > a > conversion method that can convert the ticks into a > date if possible. > > I appreciate if you could help me and let me study > your method and codes. I believe that I am able to > provide you a help in other areas, too if you need. > > Thanks, Best regards, > > Happy New Year! > > Guang > 321-262-6631 (cell) > > > > > ------------------------------ > > Message: 2 > Date: Fri, 29 Dec 2006 14:18:58 +0100 > From: "Jeroen van Dijk" <je...@se...> > Subject: Re: [Repast-interest] convert the ticks to > date (years) > To: "guang chen" <gua...@ya...>, > "repast-interest" > <rep...@li...> > Message-ID: > <5CD...@ra...ern> > Content-Type: text/plain; charset="us-ascii" > > > Hi Guang, > > I just made these kinds of methods. See the previous > post in this > mailing list for the implementation of a clock in > the model's interface. > > Here is the code to convert the ticks (it's not that > complicated): > > public java.util.Date getDate( double tick ) { > //Start time plus the ticks times the time unit > > return new Date(calender.getTimeInMillis() + > (long)( > millisecondsPerTick * tick ) ); > } > > In order to use this you need the member variables: > > GregorianCalendar calendar > long millisecondsPerTick //in my model this is > 3600000, meaning that one > tick equals one hour. > > You need to initialize the calendar as follows: > calendar = new GregorianCalendar(); > calender.setTime( someStartDate ); > > > Hope this helps! > > Jeroen > > > -----Original Message----- > From: rep...@li... > [mailto:rep...@li...] > On Behalf Of > guang chen > Sent: Friday, December 29, 2006 2:00 PM > To: repast-interest > Subject: [Repast-interest] convert the ticks to date > (years) > > Hi All, > > I am interested in learning from all of you > regarding > a > conversion method that can convert the ticks into a > date if possible. > > I appreciate if you could help me and let me study > your method and codes. I believe that I am able to > provide you a help in other areas, too if you need. > > Thanks, Best regards, > > Happy New Year! > > Guang > 321-262-6631 (cell) > > > ------------------------------------------------------------------------ > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share > your > opinions on IT & business topics through brief > surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE > V > _______________________________________________ > Repast-interest mailing list > Rep...@li... > https://lists.sourceforge.net/lists/listinfo/repast-interest > > > > ------------------------------ > > Message: 3 > Date: Fri, 29 Dec 2006 14:59:05 +0100 > From: "Jeroen van Dijk" <je...@se...> > Subject: [Repast-interest] Problems taking a > snapshot from the code in > Repast J > To: "repast-interest" > <rep...@li...> > Message-ID: > <5CD...@ra...ern> > Content-Type: text/plain; charset="us-ascii" > > Hi everyone, > > I want to take a snapshot of my model. I'm using the > method > takeSnapshot() of the > uchicago.src.sim.gui.DisplaySurface class. However > this I get the error below. Obviously, I'm not in > the possession of the > ComponentSampleModelJAI class. I have tried to > download the JAI library, > but I only found an .exe library. Can someone that > has managed to take a > snapshot give some help on this? > > Thanks for the help in advance, > > Jeroen > > Exception in thread "Thread-4" > java.lang.NoClassDefFoundError: > javax/media/jai/ComponentSampleModelJAI > at > === message truncated === |