001package jmri.jmrix.grapevine;
002
003import jmri.implementation.AbstractSensor;
004
005/**
006 * Implement Sensor for Grapevine.
007 * <p>
008 * Really doesn't do much, because the abstract class and the SerialSensorManager
009 * do all the work in a node-based system.
010 *
011 * @author Bob Jacobsen Copyright (C) 2003, 2006, 2007, 2008
012 */
013public class SerialSensor extends AbstractSensor {
014
015    /**
016     * Create a Sensor object, with both system and user names.
017     *
018     * @param systemName system name including prefix, previously validated in SerialSensorManager
019     * @param _memo the associated SystemConnectionMemo
020     */
021    public SerialSensor(String systemName, GrapevineSystemConnectionMemo _memo) {
022        super(systemName);
023        _knownState = UNKNOWN;
024    }
025
026    /**
027     * Create a Sensor object, with both system and user names.
028     *
029     * @param systemName system name including prefix, previously validated in SerialSensorManager
030     * @param userName free form name
031     * @param _memo the associated SystemConnectionMemo
032     */
033    public SerialSensor(String systemName, String userName, GrapevineSystemConnectionMemo _memo) {
034        super(systemName, userName);
035        _knownState = UNKNOWN;
036    }
037
038    /**
039     * Request an update on status.
040     * <p>
041     * Since status is continually being updated, this isn't active now.
042     * Eventually, we may want to have this move the related AIU to the top of
043     * the polling queue.
044     */
045    @Override
046    public void requestUpdateFromLayout() {
047    }
048
049}