Свойство | Тип | Описание | |
---|---|---|---|
$language | language id without judge id | ||
$task | object of the task |
Метод | Описание | |
---|---|---|
__construct ( $task ) | ||
get_compiler_info ( string $language ) : compiler | Return the infomation of the compiler of specified language | |
get_languages ( ) | Return an array of programming languages supported by this judge | |
is_available ( ) : true | Whether the judge is avaliable | |
judge ( ) : updated | Judge the current task | |
parse_options ( $options, &$task ) : throw | Put options into task |
Метод | Описание | |
---|---|---|
convert_to_utf8 ( $string ) | If string is not encoded in UTF-8, convert it into utf-8 charset | |
create_temp_files ( ) : array | Save files of current task to a temp directory | |
diff ( ) | Compare the stdout of program and the output of testcase |
protected convert_to_utf8 ( $string ) |
protected create_temp_files ( ) : array | ||
Результат | array | of the full path of saved files |
static public get_compiler_info ( string $language ) : compiler | ||
$language | string | ID of the language |
Результат | compiler | information or null |
static public get_languages ( ) |
static public is_available ( ) : true | ||
Результат | true | for yes, false for no |
public judge ( ) : updated | ||
Результат | updated | task or false |
static public parse_options ( $options, &$task ) : throw | ||
Результат | throw | exceptions on error |