my $obj = new Bio::EnsEMBL::Pipeline::Status
('-jobid' => $jobid,
'-status' => $status,
'-created' => $created,
);
sub created
{ my ($self,$arg) = @_;
if (defined($arg)) {
$self->{_created} = $arg;
}
return $self->{_created};
}
1; } |
sub jobid
{ my ($self,$arg) = @_;
if (defined($arg)) {
$self->{_jobid} = $arg;
}
return $self->{_jobid}; } |
sub new
{ my($class,@args) = @_;
my $self = bless {},$class;
my ($jobid,$status,$created) =
rearrange([qw(JOBID
STATUS
CREATED
)],@args);
$jobid || $self->throw("Can't create a status object with no jobid");
$status || $self->throw("Can't create a status object for job ".
$jobid." with no status string");
$created || $self->throw("Can't create a status object for job ".
$jobid." with no created time");
$self->jobid ($jobid);
$self->status ($status);
$self->created ($created);
return $self; } |
sub status
{ my ($self,$arg) = @_;
if (defined($arg)) {
$self->{_status} = $arg;
}
return $self->{_status}; } |