[Bio] / FigKernelPackages / SAPserver.pm Repository:
ViewVC logotype

Annotation of /FigKernelPackages/SAPserver.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (view) (download) (as text)

1 : parrello 1.7 #
2 :     # This is a SAS Component.
3 : parrello 1.1 #
4 :     # Copyright (c) 2003-2006 University of Chicago and Fellowship
5 :     # for Interpretations of Genomes. All Rights Reserved.
6 :     #
7 :     # This file is part of the SEED Toolkit.
8 :     #
9 :     # The SEED Toolkit is free software. You can redistribute
10 :     # it and/or modify it under the terms of the SEED Toolkit
11 :     # Public License.
12 :     #
13 :     # You should have received a copy of the SEED Toolkit Public License
14 :     # along with this program; if not write to the University of Chicago
15 :     # at info@ci.uchicago.edu or the Fellowship for Interpretation of
16 :     # Genomes at veronika@thefig.info or download a copy from
17 :     # http://www.theseed.org/LICENSE.TXT.
18 :     #
19 :    
20 :     package SAPserver;
21 :    
22 :     use strict;
23 : parrello 1.9 use base qw(ClientThing);
24 : parrello 1.1
25 :     =head1 Sapling Server Helper Object
26 :    
27 : parrello 1.5 =head2 Description
28 : parrello 1.1
29 :     This module is used to call the sapling server, which is a general-purpose
30 :     server for extracting data from the Sapling database. Each Sapling server
31 : parrello 1.9 function corresponds to a method of this object. In other words, all
32 :     L<SAP/Primary Methods> are also methods here.
33 : parrello 1.1
34 :     =cut
35 :    
36 :     =head3 new
37 :    
38 :     my $ss = SAPserver->new(%options);
39 :    
40 :     Construct a new SAPserver object. The following options are supported.
41 :    
42 :     =over 4
43 :    
44 :     =item url
45 :    
46 :     URL for the sapling server. This option may be used to redirect requests to a
47 :     test version of the server, or to an older server script.
48 :    
49 : parrello 1.5 =item singleton
50 :    
51 :     If TRUE, results from methods will be returned in singleton mode. In singleton
52 :     mode, if a single result comes back, it will come back as a scalar rather than
53 :     as a hash value accessible via an incoming ID.
54 :    
55 : parrello 1.1 =back
56 :    
57 :     =cut
58 :    
59 :     sub new {
60 :     # Get the parameters.
61 :     my ($class, %options) = @_;
62 : parrello 1.9 # Compute the URL.
63 : olson 1.10 $options{url} = 'http://servers.nmpdr.org/sapling/server.cgi' if $options{url} eq '';
64 : parrello 1.9 # Construct the subclass.
65 :     return $class->SUPER::new(SAP => %options);
66 : parrello 1.1 }
67 :    
68 :    
69 : olson 1.10 1;

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3