如何在Optaplanner中加载xml [英] How do I load a xml in Optaplanner

查看:94
本文介绍了如何在Optaplanner中加载xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个MySQL数据库,其条目类似于Nurse名册,现在我需要将此数据发送到部署在服务器上的optaplanner.我需要将其发送到服务器上部署的optaplanner文件夹中的哪个文件中,以使结果显示在我的网页上.

I have created a MySQL database with entries similar to nurse roster, Now i need to send this data to optaplanner deployed on my server. To which file do i need to send it in the optaplanner folder deployed on server to get the results displayed on my webpage.

我正在使用Xstream生成XML文件.

I'm using Xstream to generate XML file.

任何人都可以给我简要介绍一下如何使此功能起作用,并让我获得预期的结果.

Can any one please give me brief on how to make this functionality work and get me the desired results.

推荐答案

从XML到XML的整个数据集序列化都是optaplanner-examples的一部分:OptaPlanner本身不提供或不需要任何序列化格式.话虽如此,optaplanner-examples包含以下序列化格式:

The whole dataset serialization from and to XML is part of optaplanner-examples: OptaPlanner itself doesn't provide or require any serialization format. That being said, optaplanner-examples includes the following serialization formats:

每个示例:尚未解决的数据目录中的 XStream XML格式.该格式由域类上的XStream批注(@XStreamAlias等)定义.在某些情况下,XML格式过于冗长,从而导致OutOfMemoryError,例如对于较大的MachineReassignment B数据集. 大多数示例:导入和导出数据目录中特定于比赛的TXT格式.格式由比赛定义(请参阅文档).在示例GUI中,单击导入"按钮以加载它们.

Every example: XStream XML format in data directories unsolved and solved. The format is defined by the XStream annotations (@XStreamAlias etc) on the domain classes. In some cases the XML format is too verbose, causing OutOfMemoryError, for example for the big MachineReassignment B datasets. Most examples: Competition specific TXT format in data directories import and export. The format is defined by the competition (see docs). In the examples GUI, click on button Import to load them.

这篇关于如何在Optaplanner中加载xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆