All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bidib.wizard.simulation.events.FeedbackPositionEvent Maven / Gradle / Ivy

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy