sampo.schemas.scheduled_work#
Overview#
Contains all neccessary info to represent WorkUnit in Scheduler: |
Classes#
- class sampo.schemas.scheduled_work.ScheduledWork(work_unit: sampo.schemas.works.WorkUnit, start_end_time: tuple[sampo.schemas.time.Time, sampo.schemas.time.Time], workers: list[sampo.schemas.resources.Worker], contractor: sampo.schemas.contractor.Contractor | str, equipments: list[sampo.schemas.resources.Equipment] | None = None, materials: list[sampo.schemas.landscape.MaterialDelivery] | None = None, object: sampo.schemas.resources.ConstructionObject | None = None)#
Bases:
sampo.schemas.serializable.AutoJSONSerializable[ScheduledWork]Contains all neccessary info to represent WorkUnit in Scheduler:
WorkUnit
list of workers, that are required to complete task
start and end time
contractor, that complete task
list of equipment, that is needed to complete the task
list of materials - set of non-renewable resources
object - variable, that is used in landscape
- property start_time: sampo.schemas.time.Time#
- property finish_time: sampo.schemas.time.Time#
- property min_child_start_time: sampo.schemas.time.Time#
- property duration: sampo.schemas.time.Time#
- ignored_fields = ['equipments', 'materials', 'object']#
- __str__()#
Return str(self).
- __repr__()#
Return repr(self).
- serialize_serializable_list(value)#
- classmethod deserialize_time(value)#
- classmethod deserialize_workers(value)#
- get_actual_duration(work_estimator: sampo.schemas.time_estimator.WorkTimeEstimator) sampo.schemas.time.Time#
- static start_time_getter()#
- static finish_time_getter()#
- is_overlapped(time: int) bool#
- to_dict() dict[str, Any]#
- __deepcopy__(memodict={})#