## 4 Control Scenarios
### Total Flow Chart of Service  
Figure 7 shows a flow chart of the scenario of the whole system. The system flow chart consists of six steps (step 0 to step 5). Each step shows the fire extinguish process according to the time from the ignition stage to the extinguishment stage of the fire in the building. One of the advantages of the proposed system is that it performs extinguishment procedures on these steps. In other words, when a fire occurs, the device is to be prepared for the failure of the device due to fire. The bar shown in Figure 7 indicates the life expectancy of each device in case of fire. From the first stage of the fire to the extinguishment stage, this system is designed to facilitate fire evacuation and rescue. As shown in Table 4, the entire system is operated by sensors, servers, and actuators at each step. The environmental information obtained from the smart sensors is transmitted to the server through the Smart ZigBee Gateway. When a fire occurs in the building, the server sends the state information to the user and the manager through the actuator. The manager monitors the information on the fire situation and immediately reports to the fire department.  
Figure 6: AR-based smart building and town disaster management main service packages.  
Figure 7: Total flow chart of service.  
\begin{table}
\begin{tabular}{c c c c c c c c c} \hline \hline \multirow{2}{*}{**Step**} & \multirow{2}{*}{**Description**} & \multicolumn{4}{c}{**Sensor**} & \multirow{2}{*}{**Server**} & \multirow{2}{*}{**Actualor**} \\ \cline{3-3} \cline{5-8}  & & & **Cognitive Sensor** & & & **Eatinction Sensor** & & \\ \hline \multirow{4}{*}{Prevention} & \(\bullet\) & Preventing fire in buildings & \(\bullet\) & Smart Gas & & & & \\  & through Smart Gas Leakage & \(\bullet\) & Leakage Sensor & \(\bullet\) & & & & \\  & & Sensor and electric & \(\bullet\) & electric leak detector & & & & \\  & leak detector & \(\bullet\) & & & & & \\ \hline \multirow{4}{*}{Ignite} & \(\bullet\) & Initial ignition step & \(\bullet\) & Smart Gas & & & & \\  & & Smoke Detection through the & \(\bullet\) & Multi Gas Detector & \(\bullet\) & Leakage Sensor & \(\bullet\) & Smart Zigbee Gateway & \(\bullet\) & Fire control Bell \\  & Smart Integrated Gas Sensor & & \(\bullet\) & electric leak detector & & & & \\ \hline \multirow{4}{*}{Sensing} & \(\bullet\) & Ignition progression step & \(\bullet\) & Multi Gas Detector & & & & \\  & & As the ignition progresses, & \(\bullet\) & Flame Detection Sensor & & & & \\  & flame detection and smoke & \(\bullet\) & Smoke Detector & - & & & & \\  & detection, ignition progress & \(\bullet\) & CCTV & & & & & \\  & monitoring through CCTV & \(\bullet\) & Occupant Sensor & & & & & \\  & and personnel detectors & \(\bullet\) & Occupant Sensor & & & & \\ \hline \multirow{4}{*}{Extinguish} & \(\bullet\) & Extinguish step by & \(\bullet\) & Flame Detection Sensor & \(\bullet\) & Multi Gas Detector & & \\  & fire fighting, & \(\bullet\) & Smoke Detector & \(\bullet\) & Flame Detection Sensor & \(\bullet\) & Smart Zigbee Gateway & \(\bullet\) & \\  & Fire fighting monitor the fire & \(\bullet\) & CCTV & & & & & \\  & situation and personnel status & \(\bullet\) & Temperature Sensor & \(\bullet\) & CCTV & & & \\  & & & Occupant Sensor & & & & \\ \hline \multirow{4}{*}{Evacuation} & \(\bullet\) & Evacuation step of & \(\bullet\) & Temperature Sensor & & & & \\  & the rescues monitor the fire & \(\bullet\) & Occupant Sensor & & & & \\  & & & & & & & \\  & & safe route & & & & & \\ \hline \hline \end{tabular}
\end{table}
Table 4: Sensor and actuator in the service step.  
The following is a detailed description of each service package.