|
From: Andy C. <ac...@ll...> - 2003-04-08 00:03:23
|
p.s. I resolved my problem with BasicAction and it shouldn't have been on the subject line... Andy At 04:53 PM 4/7/2003 -0800, you wrote: >Dear Repast developers, > >For my own project, I am trying to extend Repast's ScheduleBase and >Schedule via inheritance, but have run into a problem with protections... >Namely, in ScheduleBase, the member function fillGroup is private. > >I don't have a tremendous amount of experience with protection levels in >Java; I tend to use public or protected when I think of it, and package >level when I forget. ;-) So, I suppose question number one is whether or >not there are compelling reasons for this particular choice. Question 2 is >what would you recommend I do about it? For the time being, I'm going to >munge my copy of Repast to make this protected, but I don't want to do >that longterm. Is this the forum by which I should ask if that protection >can be revisited for the next release? > >If there are more elegant solutions, by all means let me know what they >are... I'm trying to override the preexecute function to incorporate some >(very basic) parallel synchronization. If I'm correct, I don't have to >override fillgroup, just call it as is currently being done... > >Best, >Andy > >============================================ >Andrew J. Cleary, Software Engineer/Computational Scientist >Lawrence Livermore National Labs, 925-424-5890. >============================================ > > > >------------------------------------------------------- >This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just >$79/mo with 500 GB of bandwidth! No other company gives more support or >power for your dedicated server >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ >_______________________________________________ >Repast-developer mailing list >Rep...@li... >https://lists.sourceforge.net/lists/listinfo/repast-developer |