|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SignalAppearanceMap
Access to signal apperance information.
Maps to an appearance* file in a signal system. This interface does not provide any methods to change the map.
| Field Summary | |
|---|---|
static int |
DANGER
Constant representing the "danager" apsect for a signal |
static int |
DARK
Constant representing the "dark" apsect for a signal |
static int |
HELD
Constant representing the "held" apsect for a signal |
static int |
PERMISSIVE
Constant representing the "permissive" apsect for a signal |
| Method Summary | |
|---|---|
boolean |
checkAspect(String aspect)
Check if an aspect can be displayed by this particular Map |
Enumeration<String> |
getAspects()
Get all available aspect names |
String |
getImageLink(String aspect,
String key)
Get an Image Link associated with a specific aspect and type |
Vector<String> |
getImageTypes(String aspect)
Return a list of valid icon sets |
String |
getProperty(String aspect,
String key)
Get a property associated with a specific aspect |
SignalSystem |
getSignalSystem()
Get the associated signal system and the common information it contains |
String |
getSpecificAppearance(int appearance)
Return an aspect for a specific appearance |
String[] |
getValidAspectsForAdvancedAspect(String advancedAspect)
Returns a list of postential aspects that we could set the signalmast to given the state of the advanced signal mast. |
void |
setAppearances(String aspect,
List<NamedBeanHandle<SignalHead>> heads)
Set the associated SignalHeads to the appropriate appearance for a specified aspect. |
| Field Detail |
|---|
static final int HELD
static final int PERMISSIVE
static final int DANGER
static final int DARK
| Method Detail |
|---|
void setAppearances(String aspect,
List<NamedBeanHandle<SignalHead>> heads)
Does not change state of map, just of the SignalHeads in the list.
boolean checkAspect(String aspect)
Enumeration<String> getAspects()
SignalSystem getSignalSystem()
String getProperty(String aspect,
String key)
String getImageLink(String aspect,
String key)
Vector<String> getImageTypes(String aspect)
String getSpecificAppearance(int appearance)
String[] getValidAspectsForAdvancedAspect(String advancedAspect)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||