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. |
to_xml ¤
Convert the PlannedTask class into an XML element.
Returns:
Type | Description |
---|---|
Element[str]
|
The PlannedTask as an XML element. |