NAME
Astro::NED::Response::Objects - a container for NED Object query objects
SYNOPSIS
use Astro::NED::Response::Objects;
# create an empty container.
my $objs = Astro::NED::Response::Objects->new();
# add an object of type Astro::NED::Response::Object
$objs->addobject( $obj );
# parse a NED object query and add the objects to the container
$objs->parseHTML( $html );
# get the number of objects
my $nobj = $objs->nobjects;
# get the objects as a list
my @objs = $objs->objects;
DESCRIPTION
This class implements a container for Astronomical objects returned by an Astro::NED::Query::Objects query. The objects are stored as Astro::NED::Response::Object objects.
The most useful methods for the general user are the nobjects and objects methods.
Object Methods
- new
-
$objs = Astro::NED::Response::Objects->new();
creates an empty container
- parseHTML
-
$objs->parseHTML( $html );
parse the HTML response from a NED "Objects" query and add the objects to the container.
- addobject
-
$objs->addobject( $obj );
add an object of type Astro::NED::Response::Object.
- nobjects
-
$nobjs = $objs->nobjects;
returns the number of objects in the container
- objects
-
@objects = $objs->objects;
returns the objects as a Perl list.
EXPORT
None by default.
AUTHOR
Diab Jerius, <djerius@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (C) 2003 Smithsonian Astrophysical Observatory. All rights are of course reserved.
It is released under the GNU General Public License. You may find a copy at
http://www.fsf.org/copyleft/gpl.html
SEE ALSO
Astro::NED::Response::Object, Astro::NED::Query::Objects, perl.