Package jmri

Interface SignalAppearanceMap

All Known Implementing Classes:
DefaultSignalAppearanceMap

public interface SignalAppearanceMap
Access to signal appearance information.

Maps to an appearance file in a signal system. This interface does not provide any methods to change the map.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Constant representing the "danger" aspect for a signal
    static final int
    Constant representing the "dark" aspect for a signal
    static final int
    Constant representing the "held" aspect for a signal
    static final int
    Constant representing the "permissive" aspect for a signal
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if an aspect can be displayed.
    Get all available aspect names.
    getImageLink(String aspect, String key)
    Get an Image Link associated with a specific aspect and type
    Get a list of valid icon sets.
    getProperty(String aspect, String key)
    Get a property associated with a specific aspect
    Get the associated signal system and the common information it contains.
    getSpecificAppearance(int appearance)
    Return the aspect for a specific appearance.
    Get a list of potential aspects that we could set the SignalMast to, given the state of the advanced signal mast.
    Provide a multi-line summary of the signal system content, typically for printing.
  • Field Details

  • Method Details

    • checkAspect

      boolean checkAspect(String aspect)
      Check if an aspect can be displayed.
      Parameters:
      aspect - the aspect to check
      Returns:
      true if the aspect can be displayed; false otherwise
    • getAspects

      Get all available aspect names.
      Returns:
      an enumeration of available aspects
    • getSignalSystem

      Get the associated signal system and the common information it contains.
      Returns:
      the signal system
    • getProperty

      Get a property associated with a specific aspect
      Parameters:
      aspect - the aspect containing the property
      key - the property key
      Returns:
      the property value or null if none is defined for key
    • getImageLink

      Get an Image Link associated with a specific aspect and type
      Parameters:
      aspect - the aspect
      key - the image link key
      Returns:
      the image link or an empty String if none is defined
    • getImageTypes

      Get a list of valid icon sets.
      Parameters:
      aspect - the aspect to get icon sets for
      Returns:
      a list of sets or an empty list if none are defined
    • getSpecificAppearance

      String getSpecificAppearance(int appearance)
      Return the aspect for a specific appearance.
      Parameters:
      appearance - the appearance
      Returns:
      the aspect
    • getValidAspectsForAdvancedAspect

      Get a list of potential aspects that we could set the SignalMast to, given the state of the advanced signal mast.
      Parameters:
      advancedAspect - the aspect
      Returns:
      a string array of potential aspects or null if none defined
    • summary

      Provide a multi-line summary of the signal system content, typically for printing.

      Not intended for further parsing, i.e. for persistence, as format likely to differ from type to type, and to change often.

      Returns:
      summary string.