001package jmri.implementation;
002
003
004/**
005 * A signal head that exists only within the program.
006 * <p>
007 * This can be useful e.g. as part of a more complex signal calculation.
008 *
009 * @author Bob Jacobsen Copyright (C) 2005
010 */
011public class VirtualSignalHead extends DefaultSignalHead {
012
013    public VirtualSignalHead(String sys, String user) {
014        super(sys, user);
015    }
016
017    public VirtualSignalHead(String sys) {
018        super(sys);
019    }
020
021    @Override
022    protected void updateOutput() {
023    }
024
025    @Override
026    boolean isTurnoutUsed(jmri.Turnout t) {
027        return false;
028    }
029
030    /**
031     * Remove references to and from this object, so that it can eventually be
032     * garbage-collected.
033     */
034    @Override
035    public void dispose() {
036        super.dispose();
037    }
038}