Hi Orekit team
I have an architectural question.
Sometimes I create custom EventDetector
, mostly a copy of Orekit ones, adding maybe some local variable, but keeping the g
function as it is.
Yes, it is a quite ugly copy paste due to the fact that I cannot directly extends
from the EventDetector
as normally the complete constructor (with the Handler) is private
.
I noticed that in ExtremumApproachDetector
the complete constructor is indeed public
.
public ExtremumApproachDetector(
final double maxCheck, final double threshold, final int maxIter,
final EventHandler<? super ExtremumApproachDetector> handler,
final PVCoordinatesProvider secondaryPVProvider) {
super(maxCheck, threshold, maxIter, handler);
this.secondaryPVProvider = secondaryPVProvider;
}
As this is a new event detector, I wonder if the tendency will be to move all the constructors to public
(that would help a lot class inheritance) or it was just random.
Thanks
Alberto