NAME
Gruntmaster::Data::Result::Problem - List of problems
TABLE: problems
ACCESSORS
id
data_type: 'text'
is_nullable: 0
author
data_type: 'text'
is_nullable: 1
Full name(s) of problem author(s)/problemsetter(s)/tester(s)/etc
writer
data_type: 'text'
is_nullable: 1
Full name(s) of statement writer(s) (DEPRECATED)
generator
data_type: 'text'
is_nullable: 0
Generator class, without the leading Gruntmaster::Daemon::Generator::
judge
data_type: 'text'
is_nullable: 0
Judge class, without the leading Gruntmaster::Daemon::Judge::
level
data_type: 'text'
is_nullable: 0
Problem level, one of beginner, easy, medium, hard
name
data_type: 'text'
is_nullable: 0
olimit
data_type: 'integer'
is_nullable: 1
Output limit (in bytes)
owner
data_type: 'text'
is_foreign_key: 1
is_nullable: 0
private
data_type: 'boolean'
default_value: false
is_nullable: 0
runner
data_type: 'text'
is_nullable: 0
Runner class, without the leading Gruntmaster::Daemon::Runner::
solution
data_type: 'text'
is_nullable: 1
Solution (HTML)
statement
data_type: 'text'
is_nullable: 0
Statement (HTML)
testcnt
data_type: 'integer'
is_nullable: 0
Number of tests
tests
data_type: 'text'
is_nullable: 1
JSON array of test values for ::Runner::File
timeout
data_type: 'real'
is_nullable: 0
Time limit (in seconds)
value
data_type: 'integer'
is_nullable: 0
Problem value when used in a contest.
genformat
data_type: 'text'
is_nullable: 1
Format (programming language) of the generator if using the Run generator
gensource
data_type: 'text'
is_nullable: 1
Source code of generator if using the Run generator
verformat
data_type: 'text'
is_nullable: 1
Format (programming language) of the verifier if using the Verifier runner
versource
data_type: 'text'
is_nullable: 1
Source code of verifier if using the Verifier runner
PRIMARY KEY
RELATIONS
contest_problems
Type: has_many
Related object: Gruntmaster::Data::Result::ContestProblem
jobs
Type: has_many
Related object: Gruntmaster::Data::Result::Job
opens
Type: has_many
Related object: Gruntmaster::Data::Result::Open
owner
Type: belongs_to
Related object: Gruntmaster::Data::Result::User
problem_statuses
Type: has_many
Related object: Gruntmaster::Data::Result::ProblemStatus
contests
Type: many_to_many
Composing rels: "contest_problems" -> contest
METHODS
is_private([$time])
Returns true if the problem is private at time $time (which defaults to time
).
is_in_archive([$time])
Returns true if the problem is in the archive at time $time (which defaults to time
).
rerun
Reruns all jobs for this problem.
AUTHOR
Marius Gavrilescu <marius@ieval.ro>
COPYRIGHT AND LICENSE
Copyright (C) 2014 by Marius Gavrilescu
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.18.1 or, at your option, any later version of Perl 5 you may have available.