org.bidib.wizard.simulation.events.FeedbackPositionEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-simulation Show documentation
Show all versions of bidibwizard-simulation Show documentation
jBiDiB BiDiB Wizard Simulation POM
The newest version!
package org.bidib.wizard.simulation.events;
import org.apache.commons.lang3.builder.ToStringBuilder;
public class FeedbackPositionEvent {
private final String nodeAddr;
private final int position;
private final Integer carAddress;
public FeedbackPositionEvent(String nodeAddr, int position, Integer carAddress) {
this.nodeAddr = nodeAddr;
this.position = position;
this.carAddress = carAddress;
}
public FeedbackPositionEvent(String nodeAddr, int position) {
this(nodeAddr, position, null);
}
public String getNodeAddr() {
return nodeAddr;
}
public int getPosition() {
return position;
}
public Integer getCarAddress() {
return carAddress;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
}