labscheduler.sila_server.feature_implementations.labconfigurationcontroller_impl module¶
- class labscheduler.sila_server.feature_implementations.labconfigurationcontroller_impl.LabConfigurationControllerImpl(parent_server: Server, scheduler_interface: SchedulerInterface)[source]¶
Bases:
LabConfigurationControllerBase- ConfigureJobShop(JobShop: list[Machine], *, metadata: MetadataDict) ConfigureJobShop_Responses[source]¶
- Sets the Job-Shop (set of devices in the lab) for the scheduler.
It will be kept until this method is called again.
- Parameters:
JobShop – A list of machines/devices available in the job-shop/laboratory to schedule operations on.
metadata – The SiLA Client Metadata attached to the call
- LoadJobShopFromFile(ConfigurationFile: str, *, metadata: MetadataDict) LoadJobShopFromFile_Responses[source]¶
Deprecation warning: This function is deprecated and will be removed in future versions. Loads a job shop configuration from a YAML file.
- _abc_impl = <_abc._abc_data object>¶
- _parse_jobshop_from_yaml_file(yaml_file: str) list[Machine][source]¶
Deprecation warning: This function is deprecated and will be removed in future versions.
Parses a YAML file to create a list of Machine objects. The YAML file should contain a dictionary with two keys: - pythonlab_translation: a dictionary mapping device types to their corresponding classes - sila_servers: a dictionary where each key is a device type and the value is a list of devices with their parameters. Each device in the sila_servers list should have a name and a dictionary of parameters, including capacity, min_capacity, process_capacity, and allows_overlap. The function returns a list of Machine objects created from the data in the YAML file.