abc module

Formatting modules from raw objects to ``jinete```s class hierarchy.

class jinete.loaders.formatters.abc.LoaderFormatter(data)[source]

Bases: abc.ABC

Format a problem instance from a raw object to build jinete’s set of objects.

__init__(data)[source]

Construct a new instance.

Parameters

data (Any) – The object to retrieve the on load instance.

abstract fleet(surface, *args, **kwargs)[source]

Retrieve the fleet object for the current on load instance.

Parameters
  • surface (Surface) – The surface surface object for the current on load instance.

  • args – Additional positional arguments.

  • kwargs – Additional named arguments.

Return type

Fleet

Returns

A surface instance from the loaded instance.

abstract job(surface, *args, **kwargs)[source]

Retrieve the job object for the current on load instance.

Parameters
  • surface (Surface) – The surface object for the current on load instance.

  • args – Additional positional arguments.

  • kwargs – Additional named arguments.

Return type

Job

Returns

A surface instance from the loaded instance.

abstract surface(*args, **kwargs)[source]

Retrieve the surface object for the current on load instance.

Parameters
  • args – Additional positional arguments.

  • kwargs – Additional named arguments.

Return type

Surface

Returns

A surface instance from the loaded instance.