PlannedTask¤
PlannedTask
dataclass
¤
Represents the plannedTask element in an equipment register.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task
|
str
|
A description of the task that is planned. |
required |
due_date
|
date
|
The date that the planned maintenance task is due to be completed. |
required |
performed_by
|
str
|
The person or company that will perform the planned maintenance task. |
''
|
due_date
instance-attribute
¤
due_date: date
The date that the planned maintenance task is due to be completed.
performed_by
class-attribute
instance-attribute
¤
performed_by: str = ''
The person or company that will perform the planned maintenance task.
from_xml
classmethod
¤
from_xml(element: Element[str]) -> PlannedTask
Convert an XML element into a PlannedTask instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element
|
Element[str]
|
A plannedTask XML element from an equipment register. |
required |
Returns:
| Type | Description |
|---|---|
PlannedTask
|
The PlannedTask instance. |
Source code in src/msl/equipment/schema.py
546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 | |
to_xml
¤
Convert the PlannedTask class into an XML element.
Returns:
| Type | Description |
|---|---|
Element[str]
|
The PlannedTask as an XML element. |
Source code in src/msl/equipment/schema.py
562 563 564 565 566 567 568 569 570 571 572 573 574 | |