From: Agustín C. H. <ag...@ds...> - 2010-03-22 08:00:32
|
Hi Jiang, lijiang wrote: > hello, everyone, > > I have read the example code of simulation with failure. In the > example, class "HyperExponential" is used to produce the random of > failure-number,failure-begin-time and failure-length. And it seems > that the failure on a resource happens only one time. Yes, u r right. > In my Project I want to do this job: On a certain resource the > failures should be produced many times with a certain percent. For > example: On a resource "Res1" the failures should be stochastic > produced many times during 100 minutes. And the sum of > failure-intervals should be 5% of the whole time-interval. It means > that the sum of the failures on "Res1" should be 5 minutes. > > Question1: > In GridSim can we let many failures produced on a certain resource? > When yes, how? On RegionalGISWithFailure class, check what is done on the event of a failure. Just do the same everytime u want a failure. Essentially, the regGisWithFailure class sends an GridSimTags.GRIDRESOURCE_FAILURE event to itself in order to start failing resources. On the reception of this event, it is decided which resource will fail, when and how long the failure will be. If u want each res to fail multiple times, u have to modify the way how RegionalGISWithFailure behaves on the reception of this event. > > Question2: > Can class "HyperExponential" produce this kind of radom failures? When > not, is there any other java-class that can do it? "HyperExponential" is only a way to generate random numbers, what u use them for is up to u. ut I'd say u'll have to implement it yourself. Regards, Agustin > > Thanks > > regards > > Jiang Li > > ------------------------------------------------------------------------ > Hotmail:Microsoft 强大的垃圾邮件防护技术,为您提供可靠的电子邮件保 > 障。 立即注册。 <https://signup.live.com/signup.aspx?id=60969> > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ------------------------------------------------------------------------ > > _______________________________________________ > Gridsim-users mailing list > Gri...@li... > https://lists.sourceforge.net/lists/listinfo/gridsim-users > -- Dr. Agustin Caminero Assistant Professor Dept. of Communication and Control Systems The National University of Distance Education Madrid. Spain E-Mail:acc...@sc... Phone: +34 913 989 468 http://www.uned.es |