001package jmri.jmrix.rps;
002
003import javax.vecmath.Point3d;
004
005/**
006 * Holds all the state information for a single receiver.
007 *
008 * @author Bob Jacobsen Copyright (C) 2008
009 */
010public class Receiver {
011
012    public Receiver(Point3d position) {
013        this.position = position;
014    }
015
016    public void setPosition(Point3d position) {
017        this.position = position;
018    }
019
020    public Point3d getPosition() {
021        return position;
022    }
023    private Point3d position;
024
025    public boolean isActive() {
026        return active;
027    }
028
029    public void setActive(boolean active) {
030        this.active = active;
031    }
032    boolean active = false;
033
034    int last = -1;
035
036    public int getLastTime() {
037        return last;
038    }
039
040    public void setLastTime(int m) {
041        last = m;
042    }
043
044    int min = 0;
045
046    public int getMinTime() {
047        return min;
048    }
049
050    public void setMinTime(int m) {
051        min = m;
052    }
053
054    int max = 99999;
055
056    public int getMaxTime() {
057        return max;
058    }
059
060    public void setMaxTime(int m) {
061        max = m;
062    }
063
064}