|
From: Andy C. <ac...@ll...> - 2003-04-07 23:54:07
|
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. ============================================ |