Comments (2)
My current proposition is to include a new feature into the Multi-run framework to define a template. This template would contain an attribute for the parameters into the template, and inner XML. This XML would have its attributes searched for %[ParameterName]% and on invocation of the template have it replaced with the given parameter's value. This could greatly reduce the amount of duplicate lines, making it easier to validate.
from xtmf.
In 8b403b4 I've implement the logic for templates and the ability to import/execute other multi-run files recursively. The following files would show how to use a template to create another template that is able to execute a model system.
TemplateTest.xml
<Root>
<import Path="..\..\Input\TemplateTest2.xml" />
<executeTemplate Name="ExecuteWaitTwice" Dur1="5 seconds" Dur2="10 seconds" />
</Root>
TemplateTest2.xml
<Root>
<template Name="ExecuteWaitTwice" Parameters="Dur1;Dur2">
<template Name="ExecuteWait" Parameters="Duration">
<run RunAs="%%Duration%%" Name="%%Duration%%:">
<ChangeParameter ParameterPath="Wait time" Value="%%Duration%%" />
</run>
</template>
<executeTemplate Name="ExecuteWait" Duration="%Dur1%" />
<executeTemplate Name="ExecuteWait" Duration="%Dur2%" />
</template>
</Root>
from xtmf.
Related Issues (20)
- Add export subarea tool to C#
- rewrite subarea tool C# TMGToolbox1 to run traffic assignment
- Remove Dead Code
- Create architecture diagram HOT 1
- XTMF 1.5 Feature Brainstorm HOT 2
- RunWindow console output should auto prepend module information and log message time HOT 3
- Allow Queued runs to be reordered HOT 2
- Create an exclude list for module dlls.
- Migrate all EMME Modules to TMG.EMME
- When adding / setting a module type, expand it. HOT 1
- Double clicking a non-collection module should set module type
- Revert to last save
- Show previous run names
- Add a Multi-run command to automatically fail. HOT 1
- Allow markup from XTMF modules to direct to a URL for documentation. HOT 1
- Display advanced run options by default HOT 2
- provide logs from each client on the main window during estimation run HOT 3
- Add "date last modified" info to model systems HOT 1
- Add normalization functions for ODMath.
- View source code when looking at a module
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xtmf.