首页> 外国专利> APPARATUS AND METHOD FOR GENERATING XML SCRIPT USED IN SECOND SIMULATOR BY CONVERTING PYTHON SCRIPT USED IN FIRST SIMULATOR

APPARATUS AND METHOD FOR GENERATING XML SCRIPT USED IN SECOND SIMULATOR BY CONVERTING PYTHON SCRIPT USED IN FIRST SIMULATOR

机译:通过转换在第一模拟器中使用的Python脚本来生成在第二模拟器中使用的XML脚本的设备和方法

摘要

The present disclosure relates to a method for generating an extensible markup language (XML) script used in a second simulator by converting a Python script used in a first simulator. In the present disclosure, a Python script including topology information and configuration value is received as an input, the Python script is divided into a sequence of tokens, and node information and link information are extracted from the sequence of tokens. Switch nodes are determined using the node information. When a topology structure of a first simulator is determined based on connection relationship between the switch nodes, position information of host nodes and the switch nodes, which will be placed in a second simulator, is generated based on the topology structure, the generated position information is added to the node information, and the node information and link information are converted into an XML format, thereby generating an XML script.;COPYRIGHT KIPO 2019
机译:本公开涉及一种用于通过转换在第一模拟器中使用的Python脚本来生成在第二模拟器中使用的可扩展标记语言(XML)脚本的方法。在本公开中,接收包括拓扑信息和配置值的Python脚本作为输入,将Python脚本划分为令牌序列,并且从令牌序列中提取节点信息和链接信息。使用节点信息确定交换节点。当基于交换节点之间的连接关系确定第一模拟器的拓扑结构时,基于该拓扑结构,生成将放置在第二模拟器中的主机节点和交换节点的位置信息,生成的位置信息被添加到节点信息中,并将节点信息和链接信息转换为XML格式,从而生成XML脚本。; COPYRIGHT KIPO 2019

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号