abc module¶
Defines the loader’s abstract interface to load problem instances from external sources.
-
class
jinete.loaders.abc.
Loader
(formatter_cls=None)[source]¶ Bases:
abc.ABC
Load a problem instance from external sources and build the needed class hierarchy to generate solutions.
-
__init__
(formatter_cls=None)[source]¶ Construct a new instance.
- Parameters
formatter_cls (Type[LoaderFormatter]) – The formatter from raw data to the problem instance’s class hierarchy.
-
abstract property
fleet
¶ Retrieve the fleet object for the current on load instance.
- Return type
- Returns
A surface instance from the loaded instance.
-
abstract property
job
¶ Retrieve the job object for the current on load instance.
- Return type
- Returns
A surface instance from the loaded instance.
-
abstract property
surface
¶ Retrieve the surface object for the current on load instance.
- Return type
- Returns
A surface instance from the loaded instance.
-