jmri.implementation
Class JmriClockPropertyListener

java.lang.Object
  extended by jmri.implementation.JmriSimplePropertyListener
      extended by jmri.implementation.JmriClockPropertyListener
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class JmriClockPropertyListener
extends JmriSimplePropertyListener

A service class for monitoring a bound property in one of the JMRI Named beans For use with properties having two states which are determined by containment in an interval (e.g. Fast Clock ranges).

This file is part of JMRI.

JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Since:
2.5.1
Author:
Pete Cressman Copyright (C) 2009

Method Summary
 void propertyChange(PropertyChangeEvent evt)
          Check if have entered/exited one of the Fast Clock Ranges This method is invoked when the minute listener fires.
 void setRange(int beginTime, int endTime)
           
 
Methods inherited from class jmri.implementation.JmriSimplePropertyListener
addConditional, calculateClient, getDevName, getPropertyName, getType, getVarType, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setRange

public void setRange(int beginTime,
                     int endTime)

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Check if have entered/exited one of the Fast Clock Ranges

This method is invoked when the minute listener fires.

Specified by:
propertyChange in interface PropertyChangeListener
Overrides:
propertyChange in class JmriSimplePropertyListener


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads