.NET 中的声明性语言支持
我正在使用 Visual Studio 开发一个模拟引擎,它将为构建业务流程模拟提供支持。关键功能之一是声明性语言,它允许业务用户快速设置模拟模型。我将给出一个非常简短的例子来说明我的意思:
initialise simulation.
create 100 resources.
create 50 jobs.
create 2 teams of resources.
start simulation with 10 runs.
所以我希望在 Visual Studio 中使用与上面类似的东西来定义模拟模型。现在我知道如何在 java 和 groovy 等其他环境中执行此操作,但我需要在 VS 中开发它,因为这是我的公司使用的。关于 VS 中我能找到什么有什么想法吗?
干杯。
I am developing a simulation engine with Visual Studio that will offer support for building business process simulations. One of the key features will be a declarative language that will allow business users to setup quickly a simulation model. I will give a very brief example of what I mean:
initialise simulation.
create 100 resources.
create 50 jobs.
create 2 teams of resources.
start simulation with 10 runs.
So I would like something similar to the above in Visual Studio to define the simulation models. Now I know how to do this with other environments like java and groovy but I need to develop it in VS as this is what my company uses. Any ideas as to what I can find in VS?
Cheers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
既然你提到了 Groovy,我认为 IronPython 或 IronRuby 就符合要求。 Ruby 应该非常适合 DSL(领域特定语言)编程。
Since you mention Groovy, I would think that either IronPython or IronRuby would fit the bill. Ruby is supposed to be well suited to DSL (domain specific language) programming.
Windows Workflow Foundation (WF) 并不完全是模拟器或模拟语言,而是框架支持声明式编程和强大的软件开发(可以定制以执行模拟类型)。
Visual Studio 2010 (VS2010) 附带了 WF,使用户能够将软件程序或长时间运行的进程创建为一系列任务(或工作流)。 WF 工作流可以用称为 XAML 的 XML 标记语言或可视化设计器工具以声明方式表示,也可以通过 C# 或 VB.NET 等 .NET 支持的语言以程序方式表示。 VS2010支持以上所有方法。
WF 提供了强大的运行时,支持工作流中不同的活动块异步运行。此外,当前的WF还支持通过Web服务或WCF服务进行消息传递,以及通过ADO.NET和其他.NET数据框架与数据源进行数据集成。消息或数据驱动的应用程序可以集成到 WF 工作流程中。
Windows Workflow Foundation (WF) is not exactly a simulator or simulation language but the framework supports declarative programming and robust software development (which may be customized to perform the type of simulations).
Visual Studio 2010 (VS2010) comes with WF that enables users to create software programs or long-running processes as a sequence of tasks (or workflow). A WF workflow can be expressed declaratively in an XML markup language called XAML or with a visual designer tool, or procedurally through a .NET-supported language like C# or VB.NET. All the above approaches are supported in VS2010.
WF provides a robust runtime that support the disparate blocks of activities in a workflow to run asynchronously. In addition, the current WF also has support for messaging through web service or WCF services and data integration with data sources through ADO.NET and other .NET data frameworks. A message- or data-driven application can be integrated into a WF workflow.