|
|
|
@ -42,15 +42,15 @@ class EquipmentBase(DefultBase):
|
|
|
|
# remark: Optional[str]
|
|
|
|
# remark: Optional[str]
|
|
|
|
|
|
|
|
|
|
|
|
class MasterEquipment(DefultBase):
|
|
|
|
class MasterEquipment(DefultBase):
|
|
|
|
name: str
|
|
|
|
name: str = Field(..., max_length=100)
|
|
|
|
|
|
|
|
|
|
|
|
class CustomParameter(DefultBase):
|
|
|
|
class CustomParameter(DefultBase):
|
|
|
|
level: str
|
|
|
|
level: str = Field(..., max_length=50)
|
|
|
|
failure_rates: List[float]
|
|
|
|
failure_rates: List[float]
|
|
|
|
mttr: float
|
|
|
|
mttr: float
|
|
|
|
|
|
|
|
|
|
|
|
class Equipment(EquipmentBase):
|
|
|
|
class Equipment(EquipmentBase):
|
|
|
|
location_tag: str
|
|
|
|
location_tag: str = Field(..., max_length=50)
|
|
|
|
master_equipment: MasterEquipment
|
|
|
|
master_equipment: MasterEquipment
|
|
|
|
|
|
|
|
|
|
|
|
class EquipmentWithCustomParameters(Equipment):
|
|
|
|
class EquipmentWithCustomParameters(Equipment):
|
|
|
|
@ -88,7 +88,7 @@ class EquipmentConfiguration(EquipmentBase):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
equipment_name: str = Field(
|
|
|
|
equipment_name: str = Field(
|
|
|
|
..., alias="equipmentName", description="Name of the equipment"
|
|
|
|
..., alias="equipmentName", description="Name of the equipment", max_length=100
|
|
|
|
)
|
|
|
|
)
|
|
|
|
max_flowrate: float = Field(
|
|
|
|
max_flowrate: float = Field(
|
|
|
|
..., alias="maxFlowrate", ge=0, description="Maximum flow rate"
|
|
|
|
..., alias="maxFlowrate", ge=0, description="Maximum flow rate"
|
|
|
|
@ -102,7 +102,7 @@ class EquipmentConfiguration(EquipmentBase):
|
|
|
|
|
|
|
|
|
|
|
|
# Reliability Distribution Parameters
|
|
|
|
# Reliability Distribution Parameters
|
|
|
|
rel_dis_type: str = Field(
|
|
|
|
rel_dis_type: str = Field(
|
|
|
|
..., alias="relDisType", description="Reliability distribution type"
|
|
|
|
..., alias="relDisType", description="Reliability distribution type", max_length=50
|
|
|
|
)
|
|
|
|
)
|
|
|
|
rel_dis_p1: float = Field(
|
|
|
|
rel_dis_p1: float = Field(
|
|
|
|
..., alias="relDisP1", description="Reliability distribution parameter 1"
|
|
|
|
..., alias="relDisP1", description="Reliability distribution parameter 1"
|
|
|
|
@ -119,7 +119,7 @@ class EquipmentConfiguration(EquipmentBase):
|
|
|
|
|
|
|
|
|
|
|
|
# Corrective Maintenance Distribution Parameters
|
|
|
|
# Corrective Maintenance Distribution Parameters
|
|
|
|
cm_dis_type: str = Field(
|
|
|
|
cm_dis_type: str = Field(
|
|
|
|
..., alias="cmDisType", description="Corrective maintenance distribution type"
|
|
|
|
..., alias="cmDisType", description="Corrective maintenance distribution type", max_length=50
|
|
|
|
)
|
|
|
|
)
|
|
|
|
cm_dis_p1: float = Field(
|
|
|
|
cm_dis_p1: float = Field(
|
|
|
|
...,
|
|
|
|
...,
|
|
|
|
@ -144,7 +144,7 @@ class EquipmentConfiguration(EquipmentBase):
|
|
|
|
|
|
|
|
|
|
|
|
# Inspection Distribution Parameters
|
|
|
|
# Inspection Distribution Parameters
|
|
|
|
ip_dis_type: str = Field(
|
|
|
|
ip_dis_type: str = Field(
|
|
|
|
..., alias="ipDisType", description="Inspection distribution type"
|
|
|
|
..., alias="ipDisType", description="Inspection distribution type", max_length=50
|
|
|
|
)
|
|
|
|
)
|
|
|
|
ip_dis_p1: float = Field(
|
|
|
|
ip_dis_p1: float = Field(
|
|
|
|
..., alias="ipDisP1", description="Inspection distribution parameter 1"
|
|
|
|
..., alias="ipDisP1", description="Inspection distribution parameter 1"
|
|
|
|
@ -161,7 +161,7 @@ class EquipmentConfiguration(EquipmentBase):
|
|
|
|
|
|
|
|
|
|
|
|
# Preventive Maintenance Distribution Parameters
|
|
|
|
# Preventive Maintenance Distribution Parameters
|
|
|
|
pm_dis_type: str = Field(
|
|
|
|
pm_dis_type: str = Field(
|
|
|
|
..., alias="pmDisType", description="Preventive maintenance distribution type"
|
|
|
|
..., alias="pmDisType", description="Preventive maintenance distribution type", max_length=50
|
|
|
|
)
|
|
|
|
)
|
|
|
|
pm_dis_p1: float = Field(
|
|
|
|
pm_dis_p1: float = Field(
|
|
|
|
...,
|
|
|
|
...,
|
|
|
|
@ -186,7 +186,7 @@ class EquipmentConfiguration(EquipmentBase):
|
|
|
|
|
|
|
|
|
|
|
|
# Overhaul Distribution Parameters
|
|
|
|
# Overhaul Distribution Parameters
|
|
|
|
oh_dis_type: str = Field(
|
|
|
|
oh_dis_type: str = Field(
|
|
|
|
..., alias="ohDisType", description="Overhaul distribution type"
|
|
|
|
..., alias="ohDisType", description="Overhaul distribution type", max_length=50
|
|
|
|
)
|
|
|
|
)
|
|
|
|
oh_dis_p1: float = Field(
|
|
|
|
oh_dis_p1: float = Field(
|
|
|
|
..., alias="ohDisP1", description="Overhaul distribution parameter 1"
|
|
|
|
..., alias="ohDisP1", description="Overhaul distribution parameter 1"
|
|
|
|
|