Package jmri.implementation
Class JmriClockPropertyListener
java.lang.Object
jmri.implementation.JmriSimplePropertyListener
jmri.implementation.JmriClockPropertyListener
- All Implemented Interfaces:
PropertyChangeListener,EventListener
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
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int[](package private) int(package private) int[](package private) Timebase(package private) boolean[](package private) int(package private) static intFields inherited from class jmri.implementation.JmriSimplePropertyListener
_clients, _enabled, _namedBean, _propertyName, _type, _varName, _varType -
Constructor Summary
ConstructorsConstructorDescriptionJmriClockPropertyListener(String propName, int type, String name, Conditional.Type varType, Conditional client, int beginTime, int endTime) -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck if have entered/exited one of the Fast Clock RangesvoidsetRange(int beginTime, int endTime) Methods inherited from class jmri.implementation.JmriSimplePropertyListener
addConditional, calculateClient, getBean, getDevName, getNamedBean, getPropertyName, getType, getVarType, setEnabled
-
Field Details
-
SIZE
-
numRanges
int numRanges -
_beginTimes
int[] _beginTimes -
_endTimes
int[] _endTimes -
_rangeList
boolean[] _rangeList -
_fastClock
-
_currentMinutes
int _currentMinutes
-
-
Constructor Details
-
JmriClockPropertyListener
JmriClockPropertyListener(String propName, int type, String name, Conditional.Type varType, Conditional client, int beginTime, int endTime)
-
-
Method Details
-
setRange
-
propertyChange
Check if have entered/exited one of the Fast Clock RangesThis method is invoked when the minute listener fires.
- Specified by:
propertyChangein interfacePropertyChangeListener- Overrides:
propertyChangein classJmriSimplePropertyListener
-