|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SignalMast
Represent a signal mast. A signal mast is one or more signal heads that are treated as a single signal. (Imagine several heads attached to a single mast, though other implementations are possible)
A mast presents an Aspect, as that's a composite of the appearance of the entire signal.
This class has three bound parameters:
Aspects are named by a user defined String name.
This differs from the DARK color defined for the appearance parameter, in that it's independent of that. Lit is intended to allow you to extinquish a signal head for approach lighting, while still allowing it's color to be set to a definite value for e.g. display on a panel or evaluation in higher level logic.
For use in signaling systems, this is a convenient way of storing whether a higher-level of control (e.g. non-vital system or dispatcher) has "held" the signal at stop. It does not effect how this signal head actually works; any appearance can be set and will be displayed even when "held" is set.
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.
| Field Summary |
|---|
| Fields inherited from interface jmri.NamedBean |
|---|
INCONSISTENT, UNKNOWN |
| Method Summary | |
|---|---|
SignalAppearanceMap |
getAppearanceMap()
|
String |
getAspect()
Get current aspect name. |
boolean |
getHeld()
Held is a bound parameter. |
boolean |
getLit()
Lit is a bound parameter. |
SignalSystem |
getSignalSystem()
|
Vector<String> |
getValidAspects()
|
void |
setAspect(String aspect)
Set aspect to a valid name in the current signal system definition. |
void |
setHeld(boolean newHeld)
|
void |
setLit(boolean newLit)
|
| Method Detail |
|---|
void setAspect(String aspect)
IllegalArgumentException - if not a valid aspect nameString getAspect()
Vector<String> getValidAspects()
SignalSystem getSignalSystem()
SignalAppearanceMap getAppearanceMap()
boolean getLit()
void setLit(boolean newLit)
boolean getHeld()
void setHeld(boolean newHeld)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||