implemented storing of routes

This commit is contained in:
Stephan Richter
2020-09-21 14:27:21 +02:00
parent 67623f49bc
commit 5c67e6089d
9 changed files with 156 additions and 66 deletions

View File

@@ -7,7 +7,7 @@ import de.srsoftware.tools.Tag;
public abstract class Contact extends Tile{
private boolean active = false;
private String trigger = null;
public void activate() throws IOException {
active = true;
@@ -41,4 +41,10 @@ public abstract class Contact extends Tile{
plan.stream("place "+tag);
}
public String trigger() {
if (trigger == null) trigger = getClass().getSimpleName()+"-"+id();
return trigger;
}
}