NAME
Math::NumSeq::OEIS::Catalogue::Plugin -- pluggable catalogue extensions
SYNOPSIS
package Math::NumSeq::OEIS::Catalogue::Plugin::MySeqs;
use Math::NumSeq::OEIS::Catalogue::Plugin;
@ISA = 'Math::NumSeq::OEIS::Catalogue::Plugin';
# ...
DESCRIPTION
Catalogue plugins are loaded and used by Math::NumSeq::OEIS::Catalogue
. A plug allows an add-on distribution or semi-independent components to declare which OEIS A-numbers they implement and what NumSeq
sequence parameters can create the sequence.
This is an internal part of Math::NumSeq::OEIS::Catalogue
not yet meant for general use yet, but the intention is for add-on sequences to declare themselves in the A-number catalogue.
A plugin "Foo" should sub-class Math::NumSeq::OEIS::Catalogue::Plugin
, so
package Math::NumSeq::OEIS::Catalogue::Plugin::Foo;
use strict;
use vars '@ISA';
use Math::NumSeq::OEIS::Catalogue::Plugin;
@ISA = ('Math::NumSeq::OEIS::Catalogue::Plugin');
A set of A-numbers can be declared with an arrayref of information records (a hashref each). For example
use constant info_arrayref =>
[
{ anum => 'A999998',
class => 'Math::NumSeq::Foo',
},
{ anum => 'A999999',
class => 'Math::NumSeq::Foo',
parameters => [ param_a => 123, param_b => 456 ],
},
# ...
];
This means A999998 is implemented by class Math::NumSeq::Foo
as
$seq = Math::NumSeq::Foo->new ();
and A999999 likewise but with additional parameters
$seq = Math::NumSeq::Foo->new (param_a => 123,
param_b => 456);
SEE ALSO
HOME PAGE
http://user42.tuxfamily.org/math-numseq/index.html
LICENSE
Copyright 2011, 2012, 2013, 2014, 2016, 2019 Kevin Ryde
Math-NumSeq is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Math-NumSeq is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Math-NumSeq. If not, see <http://www.gnu.org/licenses/>.