1Math::NumSeq::OEIS::CatUasleorguCeo:n:tPrliubguitne(d3M)Paetrhl::DNoucmuSmeeqn:t:aOtEiIoSn::Catalogue::Plugin(3)
2
3
4
6 Math::NumSeq::OEIS::Catalogue::Plugin -- pluggable catalogue extensions
7
9 package Math::NumSeq::OEIS::Catalogue::Plugin::MySeqs;
10 use Math::NumSeq::OEIS::Catalogue::Plugin;
11 @ISA = 'Math::NumSeq::OEIS::Catalogue::Plugin';
12 # ...
13
15 Catalogue plugins are loaded and used by
16 "Math::NumSeq::OEIS::Catalogue". A plug allows an add-on distribution
17 or semi-independent components to declare which OEIS A-numbers they
18 implement and what "NumSeq" sequence parameters can create the
19 sequence.
20
21 This is an internal part of "Math::NumSeq::OEIS::Catalogue" not yet
22 meant for general use yet, but the intention is for add-on sequences to
23 declare themselves in the A-number catalogue.
24
25 A plugin "Foo" should sub-class
26 "Math::NumSeq::OEIS::Catalogue::Plugin", so
27
28 package Math::NumSeq::OEIS::Catalogue::Plugin::Foo;
29 use strict;
30 use vars '@ISA';
31 use Math::NumSeq::OEIS::Catalogue::Plugin;
32 @ISA = ('Math::NumSeq::OEIS::Catalogue::Plugin');
33
34 A set of A-numbers can be declared with an arrayref of information
35 records (a hashref each). For example
36
37 use constant info_arrayref =>
38 [
39 { anum => 'A999998',
40 class => 'Math::NumSeq::Foo',
41 },
42 { anum => 'A999999',
43 class => 'Math::NumSeq::Foo',
44 parameters => [ param_a => 123, param_b => 456 ],
45 },
46 # ...
47 ];
48
49 This means A999998 is implemented by class "Math::NumSeq::Foo" as
50
51 $seq = Math::NumSeq::Foo->new ();
52
53 and A999999 likewise but with additional parameters
54
55 $seq = Math::NumSeq::Foo->new (param_a => 123,
56 param_b => 456);
57
59 Math::NumSeq::OEIS::Catalogue
60
62 http://user42.tuxfamily.org/math-numseq/index.html
63
65 Copyright 2011, 2012, 2013, 2014, 2016, 2019, 2020 Kevin Ryde
66
67 Math-NumSeq is free software; you can redistribute it and/or modify it
68 under the terms of the GNU General Public License as published by the
69 Free Software Foundation; either version 3, or (at your option) any
70 later version.
71
72 Math-NumSeq is distributed in the hope that it will be useful, but
73 WITHOUT ANY WARRANTY; without even the implied warranty of
74 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
75 General Public License for more details.
76
77 You should have received a copy of the GNU General Public License along
78 with Math-NumSeq. If not, see <http://www.gnu.org/licenses/>.
79
80
81
82perl v5.34.1 2022-M0a6t-h0:6:NumSeq::OEIS::Catalogue::Plugin(3)