data-driven

Data-driven state machine application

柔情痞子 提交于 2019-12-07 16:36:21
问题 We are currently working on a "data-driven" state machine application. Right now, the state flows are all configured in the database, but none of the decision/business logic is configurable in the DB with our current design. Because of this, the code has to basically "know" the state flow as well, so there's really no point in configuring the flow in the database. I have a design in mind that would allow us to wire together a state pattern using dependency-injection (Spring.NET), but I'm not

Is configuration-driven GWT UI possible?

和自甴很熟 提交于 2019-12-07 15:59:01
问题 I'd like to have a GWT app with a UI that is configuration-driven, meaning that if I make certain database changes, or deploy a different XML descriptor (outside the WAR), then I can change the look, feel and behavior of the UI without deploying any code changes. My reasons for wanting this lay outside the context of this question and I would need to provide way-too-big of an irrelevant backstory to justify placing it all in this question. For instance, say with one particular configuration,

Mstest name instead Data Row with Data-Driven testing

我是研究僧i 提交于 2019-12-04 07:47:43
I use MsTests and Data Driven approach for testing. (Excel is data storage for tests) tests result dont provide any information about tests data. For example: Result look as: testname (Data row 5). And it is not clear for me. How can i customise output test result? For example testname (Test data (word, number, or row named)) I found only one solution: I have MyData.xlsx file with 1000 rows. Simple logic: "A" column = 1, "B" column = A*2+2. Rows 5,6,7 and 11,12,13 conteins zero for make a failed results. SourceCode of my Test: public TestContext TestContext { get; set; } [TestMethod]

Build Mocha test dynamically after getting data from webdriver.io

▼魔方 西西 提交于 2019-12-04 03:36:40
问题 I'm looking for a solution to define Mocha tests after getting data asynchronously. For now, I use gulp-webdriver to getting HTML content with Selenium. And I want tests certain HTML tags structure. For example, I want to get all buttons structure from an HTML page. 1° In Mocha Before(), I get buttons : var buttons = browser.url("url").getHTML("button"); 2° And after that, I want tests each button in a separate it : buttons.forEach(function(button) { it() }); The only solution found is

Data-driven cluster colour with mapboxgl

时间秒杀一切 提交于 2019-11-28 14:25:52
I am trying to draw circle which colour depends on a "group" attribute in my geojson. I followed a simple example with these colours: map.addSource("data", { type: "geojson", data: url, cluster: true, clusterMaxZoom: 12, // Max zoom to cluster points on clusterRadius: 20 // Radius of each cluster when clustering points (defaults to 50) }); map.addLayer({ 'id': 'population', 'type': 'circle', 'source': 'data', 'paint': { // make circles larger as the user zooms from z12 to z22 'circle-radius': { 'base': 1.75, 'stops': [[12, 2], [22, 180]] }, // color circles by ethnicity, using a match

Data-driven cluster colour with mapboxgl

限于喜欢 提交于 2019-11-27 08:30:11
问题 I am trying to draw circle which colour depends on a "group" attribute in my geojson. I followed a simple example with these colours: map.addSource("data", { type: "geojson", data: url, cluster: true, clusterMaxZoom: 12, // Max zoom to cluster points on clusterRadius: 20 // Radius of each cluster when clustering points (defaults to 50) }); map.addLayer({ 'id': 'population', 'type': 'circle', 'source': 'data', 'paint': { // make circles larger as the user zooms from z12 to z22 'circle-radius':

What is data-driven programming?

假如想象 提交于 2019-11-27 06:28:35
I've been tasked at work to write a detailed engineering plan for a logistics application that we are coding to propose to a customer. I have been told that it is a data-driven application. What does it mean for an application to be "data-driven"? What is the opposite? I can't seem to get any really clear answer for this although while web searching I can see many people posting their own examples. Any help would be greatly appreciated. Data driven progamming is a programming model where the data itself controls the flow of the program and not the program logic. It is a model where you control

What is data-driven programming?

元气小坏坏 提交于 2019-11-26 12:01:08
问题 I\'ve been tasked at work to write a detailed engineering plan for a logistics application that we are coding to propose to a customer. I have been told that it is a data-driven application. What does it mean for an application to be \"data-driven\"? What is the opposite? I can\'t seem to get any really clear answer for this although while web searching I can see many people posting their own examples. Any help would be greatly appreciated. 回答1: Data driven progamming is a programming model