Browse Source

Route.analyze now preserves route conditions

lookup-tables
Stephan Richter 5 years ago
parent
commit
591d9d26f5
  1. 2
      pom.xml
  2. 3
      src/main/java/de/srsoftware/web4rail/Route.java

2
pom.xml

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.srsoftware</groupId>
<artifactId>web4rail</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<name>Web4Rail</name>
<packaging>jar</packaging>
<description>Java Model Railway Control</description>

3
src/main/java/de/srsoftware/web4rail/Route.java

@ -234,6 +234,9 @@ public class Route extends BaseClass implements Comparable<Route>{ @@ -234,6 +234,9 @@ public class Route extends BaseClass implements Comparable<Route>{
public void addPropertiesFrom(Route existingRoute) {
LOG.debug("addPropertiesFrom({})",existingRoute);
disabled = existingRoute.disabled;
conditions.addAll(existingRoute.conditions);
setupActions.addActionsFrom(existingRoute.setupActions);
for (Entry<String, ActionList> entry : triggers.entrySet()) {
String trigger = entry.getKey();

Loading…
Cancel
Save