On Tue, 21 Aug 2001 03:47, giacomo wrote:
> On Mon, 20 Aug 2001, Peter Donald wrote:
> > On Mon, 20 Aug 2001 20:47, Carsten Ziegeler wrote:
> > > Yes, the first thought I had about the name was exactly
> > > "AndRotateStrategy".
> >
> > Sounds good to me unless anyone else has any preferences?
>
> Well, it might be irritating but that Strategy runs like this:
>
> Strategy1 || Strategy2
> ie.
> size > 10M || (currentTime - last) > 24hours
>
> Isn't it? Shouldn't it be OrRotateStrategy?
doh! Good point.
OrRotateStrategy kinda works ... I think I prefer MultiRotateStrategy. Not
sure.
>
> Giacomo
>
> > > Should I repost the contribution with the new name?
> >
> > Naah - I will just rename locally ;)
> >
> > > Carsten
> > >
> > > > Peter Donald wrote:
> > > >
> > > > Hmmm. What about the names
> > > >
> > > > * MultiRotateStrategy (multiple strategies)
> > > > * AndRotateStrategy (ands the results of multiple strategies)
> > > >
> > > > or something else ???
> > > >
> > > > On Mon, 20 Aug 2001 17:03, Carsten Ziegeler wrote:
> > > > > Hi,
> > > > >
> > > > > attached is a simple version of a HierarchicalRotateStrategy (also
> > > > > the name might not be perfect).
> > > > > It can be initialized with an array of RotateStrategy objects. If
> > > > > the isRotationNeeded() method is needed this array is queried until
> > > > > all objects are processed or the first one responds with true.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Cheers,
Pete
*-----------------------------------------------------*
* "Faced with the choice between changing one's mind, *
* and proving that there is no need to do so - almost *
* everyone gets busy on the proof." *
* - John Kenneth Galbraith *
*-----------------------------------------------------*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]