Definition at line 1 of file CAContinuousDisinfectPlant.c.
◆ CAContinuousDisinfectPlant()
void CAContinuousDisinfectPlant::CAContinuousDisinfectPlant |
( |
float | quantity_used_per_second | ) |
|
|
inlineprotected |
◆ Execute()
Definition at line 81 of file CAContinuousDisinfectPlant.c.
82 {
84
87
90 else
91 {
93 {
96
98
100 {
101
102
104
105 }
106
108
110 }
111 else
112 {
116 }
117 }
118 }
void CalcAndSetQuantity()
void OnCompletePogress(ActionData action_data)
float m_PlantNeededSpraying
float m_SpentQuantityTotal
References CalcAndSetQuantity(), CABase::m_Action, CAContinuousQuantity::m_ItemQuantity, m_Plant, m_PlantNeededSpraying, CAContinuousQuantity::m_QuantityUsedPerSecond, CAContinuousQuantity::m_SpentQuantity, m_SpentQuantityTotal, CAContinuousBase::OnCompletePogress(), UA_ERROR, UA_FINISHED, and UA_PROCESSING.
◆ GetProgress()
◆ Setup()
Definition at line 14 of file CAContinuousDisinfectPlant.c.
15 {
19 {
21
24 string selection;
25
27 {
30 if (slot)
31 break;
32 }
33
34 if (slot && slot.GetPlant())
35 {
36 m_Plant = PlantBase.Cast(slot.GetPlant());
38 {
43 else
49
51 }
52 }
53 }
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79 }
ref Param1< float > m_SpentUnits
Super root of all classes in Enforce script.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
static proto float Min(float x, float y)
Returns smaller of two given values.
References Class::CastTo(), CAContinuousQuantity::m_ItemQuantity, m_Plant, m_PlantNeededSpraying, CAContinuousQuantity::m_QuantityUsedPerSecond, CAContinuousQuantity::m_SpentQuantity, CAContinuousQuantity::m_SpentUnits, m_StartQuantity, m_TimeToComplete, and Math::Min().
◆ m_Plant
PlantBase CAContinuousDisinfectPlant::m_Plant |
|
protected |
◆ m_PlantNeededSpraying
float CAContinuousDisinfectPlant::m_PlantNeededSpraying |
|
protected |
◆ m_SpentQuantityTotal
float CAContinuousDisinfectPlant::m_SpentQuantityTotal |
|
protected |
◆ m_StartQuantity
float CAContinuousDisinfectPlant::m_StartQuantity |
|
protected |
◆ m_TimeToComplete
float CAContinuousDisinfectPlant::m_TimeToComplete |
|
protected |
The documentation for this class was generated from the following file: