task_yaml

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2023 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Identifier added in v0.2.0

func Identifier(fs afero.Fs, path string) bool

func Parser added in v0.2.0

func Parser(fs afero.Fs, path string) (problems.Problem, error)

Types

type Problem

type Problem struct {
	TaskYAML

	StatementList  problems.Contents
	AttachmentList problems.Attachments

	InputPathPattern  string
	AnswerPathPattern string

	Path string
	// contains filtered or unexported fields
}

func (Problem) Attachments

func (p Problem) Attachments() problems.Attachments

func (Problem) Checker

func (p Problem) Checker() problems.Checker

func (Problem) Files

func (p Problem) Files() []problems.File

func (Problem) GetTaskType

func (p Problem) GetTaskType() problems.TaskType

func (Problem) HTMLStatements

func (p Problem) HTMLStatements() problems.Contents

func (Problem) InputOutputFiles

func (p Problem) InputOutputFiles() (string, string)

func (Problem) Interactive

func (p Problem) Interactive() bool

func (Problem) Languages

func (p Problem) Languages() []language.Language

func (Problem) MemoryLimit

func (p Problem) MemoryLimit() int

func (Problem) Name

func (p Problem) Name() string

func (Problem) PDFStatements

func (p Problem) PDFStatements() problems.Contents

func (Problem) Statements

func (p Problem) Statements() problems.Contents

func (Problem) StatusSkeleton

func (p Problem) StatusSkeleton(name string) (*problems.Status, error)

func (Problem) Tags

func (p Problem) Tags() []string

func (Problem) TimeLimit

func (p Problem) TimeLimit() int

func (Problem) Titles

func (p Problem) Titles() problems.Contents

type TaskYAML

type TaskYAML struct {
	Name                string `yaml:"name"`
	Title               string
	TimeLimit           float64 `yaml:"time_limit"`
	MemoryLimit         int     `yaml:"memory_limit"`
	InputCount          int     `yaml:"n_input"`
	Infile              string
	Outfile             string
	PrimaryLanguage     string           `yaml:"primary_language"`
	TokenMode           string           `yaml:"token_mode"`
	MaxSubmissionCount  int              `yaml:"max_submission_number"`
	PublicTestcases     string           `yaml:"public_testcases"`
	FeedbackLevel       string           `yaml:"feedback_level"`
	ScoreType           string           `yaml:"score_type"`
	ScoreTypeParameters [][2]interface{} `yaml:"score_type_parameters"`
	ScorePrecision      int              `yaml:"score_precision"`
	ScoreMode           string           `yaml:"score_mode"`
	TotalValue          int              `yaml:"total_value"`
	OutputOnly          bool             `yaml:"output_only"`
	TaskTypeParameters  []string         `yaml:"task_type_parameters"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL