Scrapes all polyhedra in data folder to save a representation which
is accessible by the final users upon call to getPolyhedron()
.
Public fields
version
version of database file
polyhedra.rds.file
path of rds database file
sources.config
Sources configuration for scraping different sources
ledger
rr ledger of scraping process
logger
class logger
Methods
Method existsPolyhedron()
Determines if the database includes a polyhedron which name matches the parameter value
Method getPolyhedronFilename()
gets the filename of the polyhedron matching parameter.
Method getPolyhedron()
gets polyhedron object which name matches the parameter value
Method addPolyhedron()
add polyhedron object to the database
Usage
PolyhedraDatabase$addPolyhedron(
source = "netlib",
source.filename,
polyhedron,
overwrite = FALSE,
save.on.change = FALSE
)
Method configPolyhedraSource()
Process parameter filenames using source.config parameter
Usage
PolyhedraDatabase$configPolyhedraSource(
source.config,
source.filenames = NULL,
max.quant = 0,
save.on.change = FALSE
)
Method saveRDS()
saveRDS
Method cover()
Cover objects and applies covering.code parameter
Usage
PolyhedraDatabase$cover(
mode,
sources = names(self$sources.config),
covering.code,
polyhedra.names = NULL,
max.quant = 0,
save.on.change = FALSE,
seed = NULL
)
Arguments
mode
covering mode. Available values are "scrape.queued", "scrape.retry","skipped", "test"
sources
sources names
covering.code
code for applying in covering
polyhedra.names
polyhedra names to cover (optional)
max.quant
maximum numbers of polyhedra to cover
save.on.change
saves Database state after operation
seed
seed for deterministic random generator
Method scrape()
Scrape polyhedra queued sources
Usage
PolyhedraDatabase$scrape(
mode = "scrape.queued",
sources = names(self$sources.config),
max.quant = 0,
time2scrape.source = 30,
save.on.change = FALSE,
skip.still.queued = FALSE
)
Arguments
mode
covering mode. Available values are "scrape.queued", "scrape.retry","skipped", "test"
sources
sources names
max.quant
maximum numbers of polyhedra to cover
time2scrape.source
maximum time to spend scraping each source
save.on.change
saves Database state after operation
skip.still.queued
Flag unscraped files with status `skipped“
covering.code
code for applying in covering
polyhedra.names
polyhedra names to cover (optional)
Method testRR()
testRR
Usage
PolyhedraDatabase$testRR(sources = names(self$sources.config), max.quant = 0)
Method generateTestTasks()
generate Test tasks for selected polyhedra
Usage
PolyhedraDatabase$generateTestTasks(
sources = names(self$sources.config),
polyhedra.names = NULL,
TestTaskClass,
max.quant = 0
)
Method schedulePolyhedraSources()
Schedules polyhedra sources for scraping
Usage
PolyhedraDatabase$schedulePolyhedraSources(
sources.config = getPackageEnvir(".available.sources"),
source.filenames = NULL,
max.quant = 0,
save.on.change = FALSE
)
Method getAvailableSources()
Returns available sources in current database
Method getAvailablePolyhedra()
Retrieves all polyhedron within the source those names match with search.string
Usage
PolyhedraDatabase$getAvailablePolyhedra(
sources = self$getAvailableSources(),
search.string = NULL,
ignore.case = TRUE
)