rrwo has asked for the wisdom of the Perl Monks concerning the following question:

I need a better name for a Perl module. I asked the following on comp.lang.perl.modules a few days ago with no answers:

I  am working on a module which will be used to filter setpoint alarms in
an energy management system based on when they last occurred: if a given
value between a range was triggered in the last X seconds, return false,
otherwise return true.

The module may have more generic uses as an age-filter of numerical
values:
$f->add_point('100,199', 900); # 100..199 once every 15 min $f->add_point('200,' , 60); # 200... once every minute $f->test_point(210); # returns true $f->test_point(211); # returns false sleep(61); # wait over 60 seconds $f->test_point(211); # returns true now
It's tentatively called SetPoint::AgeFilter but SetPoint::* is not very friendly towards the module-name hierarchy. The Filter::* namespace isn't appropriate since Perl source filters are used there. I'm open to suggestions for better names.

Replies are listed 'Best First'.
Re: Need a better name for a module...
by kschwab (Vicar) on Jul 11, 2001 at 04:26 UTC
    Perhaps if you generalized the interface a bit more, and made it apply to any sort of data in a list ?

    List::Aged perhaps ? or maybe List::Expires ?

    Update:It occurs to me I might be clearer with an example:

    use List::Aged; my $list=List::Aged->new(); $list->add( -expires => "60 seconds", "some","list", "of","random","stuff"); $list->add( -expires => "10 hours", "whee"); $list->exists("random"); # true, for now sleep(61); $list->exists("random"); # false now $list->exists("whee"); # true
    Then again, a list would denote values that don't have to be unique. The exists() routine sort of denotes unique members. Blech.
Re: Need a better name for a module...
by MZSanford (Curate) on Jul 11, 2001 at 14:51 UTC
    If the points are specifically for Power Managment, Sys::APM might be good, but if this is a more general print a status using coll looking dot bars (which i find myself doing quite a bit), i think that Term::StatusPoints or maybe Time::Points if the major usage is checking time past. In short, i am as indecisive as anyone on such things, and should probably stay quiet.

    :-)

    may the foo be with you

      Good point. Maybe a Misc::* namespace makes the best sense.

A reply falls below the community's threshold of quality. You may see it by logging in.