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

Diff of /FigKernelPackages/TransactionProcessor.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1, Thu Aug 11 03:09:41 2005 UTC revision 1.4, Thu Aug 11 23:35:08 2005 UTC
# Line 182  Line 182 
182      $self->{orgStats}->Add($name, 1);      $self->{orgStats}->Add($name, 1);
183  }  }
184    
185    =head3 AddStats
186    
187    C<< $xprc->AddStats($name1, $name2, ... $nameN); >>
188    
189    Insure statistics with the specified names exist in the organism statistics
190    object.
191    
192    =over 4
193    
194    =item name1, name2, ..., nameN
195    
196    Names of the statistics to create.
197    
198    =back
199    
200    =cut
201    #: Return Type ;
202    sub AddStats {
203        # Get the parameters.
204        my ($self, @names) = @_;
205        # Create the statistics.
206        map { $self->{orgStats}->Add($_, 0) } @names;
207    }
208    
209  =head3 AddMessage  =head3 AddMessage
210    
211  C<< $xprc->AddMessage($message); >>  C<< $xprc->AddMessage($message); >>
# Line 256  Line 280 
280      # Roll it up into the global statistics object.      # Roll it up into the global statistics object.
281      $self->{stats}->Accumulate($retVal);      $self->{stats}->Accumulate($retVal);
282      # Count this genome.      # Count this genome.
283      $self->{stats}->Add("genome", 1);      $self->{stats}->Add("genomes", 1);
284      # Return the genome statistics.      # Return the genome statistics.
285      return $retVal;      return $retVal;
286  }  }
# Line 482  Line 506 
506      # Get the parameters.      # Get the parameters.
507      my ($self) = @_;      my ($self) = @_;
508      # Return the directory name.      # Return the directory name.
509      return $self->Directory;      return $self->{directory};
510  }  }
511    
512  =head3 IDHash  =head3 IDHash

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3