[docs]classStateBootingResource(StateBooting):""" This class contains the Boot state of the common SMIA. """
[docs]asyncdefrun(self):""" This method implements the boot state of the SMIA of type resource. Here all the required initialization tasks are performed. """# First the common initialization tasks perfomed by any SMIA will be executedawaitsuper().booting_state_logic()# In the booting state of type resource the physical asset has to be checkedcheck_physical_asset_behav=CheckPhysicalAssetBehaviour(self.agent)self.agent.add_behaviour(check_physical_asset_behav)# Wait until the behaviour has finished to pass to running state.awaitcheck_physical_asset_behav.join()_logger.info(f"{self.agent.jid} agent has finished it Boot state.")self.set_next_state(SMIAGeneralInfo.RUNNING_STATE_NAME)