#------------------------------------------------------------
# Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#------------------------------------------------------------
package RPS::Mechanical::US::Job::CreateTextStatements;

use strict;
use warnings;
use Sys::Hostname;

use lib '/app/tools/common/lib';
use Common::Assert;

use lib '/app/tools/rps/lib';
use RPS::Config;

use lib '/app/tools/job/lib';
use Job::Job;

use base 'Job::ChildJob';

sub _generateCommandLine {
    my ($self) = @_;

    my $runID = $self->getCommandLineArg('runID');
    assert($runID);

    my $clientID = $self->clientID();

    my $filePath = $self->getCommandLineArg('filePath');
    assert($filePath);

    my $config     = RPS::Config->new();
    my $scriptPath = $config->get('statement_script_dir');

    my $commandLine = "nice $scriptPath/createAllMechanicalStatementsText.pl -c $clientID -r $runID -p $filePath";

    return $commandLine;
}

sub _defaultClass    { return 'CreateStatement'; }
sub _defaultSubclass { return 'MechanicalStatementText'; }

###
1;    #
###
