[docs]defmain():# First, the initial configuration must be executedsmia.initial_self_configuration()_logger.info("Initializing SMIA software...")# The AAS model is obtained from the environmental variablesaas_model_path=DockerUtils.get_aas_model_from_env_var()# When the AAS model path has been obtained, it is added to SMIA# aas_model_path = 'SMIA_Operator_article.aasx' # Uncomment to run in a local environmentsmia.load_aas_model(aas_model_path)# The jid and password can also be set as environmental variables. In case they are not set, the values are obtained# from the initialization properties filesmia_jid=os.environ.get('AGENT_ID')smia_psswd=os.environ.get('AGENT_PASSWD')# Create the agent objectsmia_extensible_agent=ExtensibleSMIAAgent(smia_jid,smia_psswd)operator_behaviour=OperatorGUIBehaviour()smia_extensible_agent.add_new_agent_capability(operator_behaviour)smia.run(smia_extensible_agent)
if__name__=='__main__':# Run main program with SMIAmain()