From: Dave D. <djd...@us...> - 2004-05-31 23:19:14
|
Update of /cvsroot/jmri/jmri In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27343 Modified Files: Light.java Log Message: activate Light changes Index: Light.java =================================================================== RCS file: /cvsroot/jmri/jmri/Light.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Light.java 16 May 2004 17:36:16 -0000 1.1 --- Light.java 31 May 2004 23:19:06 -0000 1.2 *************** *** 4,8 **** /** ! * Represent a single Light or digital output bit on the layout. * <P> * Light objects require a number of instance variables. Since --- 4,9 ---- /** ! * Represent a single Light or digital output bit on the physical ! * layout. * <P> * Light objects require a number of instance variables. Since *************** *** 11,17 **** * for setting and editting these instance variables. * <P> ! * Initially, this allows access to explicit information. * <P> ! * Based on SignalHead.java * * @author Dave Duchamp Copyright (C) 2004 --- 12,20 ---- * for setting and editting these instance variables. * <P> ! * Light objects are implemented in a hardware system independent ! * manner. The initial system implementation is SerialLight in ! * the C/MRI system. * <P> ! * Based in part on SignalHead.java * * @author Dave Duchamp Copyright (C) 2004 *************** *** 24,28 **** public static final int OFF = 0x00; ! // control types public static final int SENSOR_CONTROL = 0x01; public static final int FAST_CLOCK_CONTROL = 0x02; --- 27,31 ---- public static final int OFF = 0x00; ! // control types - initially 5 types defined public static final int SENSOR_CONTROL = 0x01; public static final int FAST_CLOCK_CONTROL = 0x02; *************** *** 74,77 **** --- 77,89 ---- */ public void activateLight(); + + /** + * Deactivates a light by control type. This method tests the + * control type, and deactivates the control mechanism, appropriate + * for the control type. Some lights, e.g. signal head lights, + * are controlled by the signal head, so no deactivation is needed + * here. + */ + public void deactivateLight(); } |