Ignore:
Timestamp:
2008-09-08T12:35:53+12:00 (16 years ago)
Author:
kjdon
Message:

BasClas renamed to BaseClassifier, tidied up constructors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/classify/List.pm

    r12891 r17209  
    2727# to see the options, run "perl -S classinfo.pl List"
    2828
    29 use BasClas;
     29use BaseClassifier;
    3030package List;
    3131
     
    3636
    3737sub BEGIN {
    38     @List::ISA = ('BasClas');
     38    @List::ISA = ('BaseClassifier');
    3939}
    4040
     
    6262    push(@$classifierslist, $class);
    6363
    64     if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
    65     if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
    66 
    67     my $self = new BasClas($classifierslist, $inputargs, $hashArgOptLists);
     64    push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});
     65    push(@{$hashArgOptLists->{"OptList"}},$options);
     66
     67    my $self = new BaseClassifier($classifierslist, $inputargs, $hashArgOptLists);
     68
     69    if ($self->{'info_only'}) {
     70    # don't worry about any options etc
     71    return bless $self, $class;
     72    }
    6873
    6974    # Transfer value from Auto Parsing to the variable name that used in previous GreenStone.
Note: See TracChangeset for help on using the changeset viewer.