added Relay to tiles

This commit is contained in:
Stephan Richter
2020-11-01 00:43:07 +01:00
parent 6932536d05
commit cc7fbd2bda
7 changed files with 233 additions and 6 deletions

View File

@@ -186,10 +186,6 @@ public abstract class Turnout extends Tile implements Device{
return getClass().getSimpleName()+t("(Address: {}, Ports {} and {})",address,portA,portB);
}
public void toggle() {
state = State.STRAIGHT;
}
@Override
public Tile update(HashMap<String, String> params) throws IOException {
if (params.containsKey(PROTOCOL)) protocol = Protocol.valueOf(params.get(PROTOCOL));