001package jmri.jmrix.maple;
002
003import jmri.implementation.AbstractSensor;
004
005/**
006 * Extend jmri.AbstractSensor for Maple systems.
007 *
008 * @author Bob Jacobsen Copyright (C) 2003, 2008
009 */
010public class SerialSensor extends AbstractSensor {
011
012    /**
013     * Create a Sensor object, with only system name.
014     * <p>
015     * 'systemName' has already been validated in SerialSensorManager
016     *
017     * @param systemName the system name for this Sensor
018     */
019    public SerialSensor(String systemName) {
020        super(systemName);
021        _knownState = UNKNOWN;
022    }
023
024    /**
025     * Create a Sensor object, with both system and user names.
026     * <p>
027     * 'systemName' has already been validated in SerialSensorManager
028     *
029     * @param systemName the system name for this Sensor
030     * @param userName   the user name for this Sensor
031     */
032    public SerialSensor(String systemName, String userName) {
033        super(systemName, userName);
034        _knownState = UNKNOWN;
035    }
036
037    /**
038     * Request an update on status.
039     * <p>
040     * Since status is continually being updated, this isn't active now.
041     * Eventually, we may want to have this move the related AIU to the top of
042     * the polling queue.
043     */
044    @Override
045    public void requestUpdateFromLayout() {
046    }
047
048}