Class CarTypes

    • Method Detail

      • changeDefaultNames

        public void changeDefaultNames​(java.lang.String type)
        Changes the car types from descriptive to AAR, or the other way. Only removes the default car type names from the list
        Parameters:
        type - Setup.DESCRIPTIVE or Setup.AAR
      • replaceName

        public void replaceName​(java.lang.String oldName,
                                java.lang.String newName)
      • getMaxNameLength

        public int getMaxNameLength()
        Get the maximum character length of a car type when printing on a manifest or switch list. Car "subtypes" or characters after the hyphen are ignored.
        Overrides:
        getMaxNameLength in class RollingStockAttribute
        Returns:
        the maximum character length of a car type
      • getMaxFullNameLength

        public int getMaxFullNameLength()
        Get the maximum character length of a car type including the sub type characters.
        Returns:
        the maximum character length of a car type
      • store

        public void store​(org.jdom2.Element root)
        Create an XML element to represent this Entry. This member has to remain synchronized with the detailed DTD in operations-cars.dtd.
        Parameters:
        root - The common Element for operations-cars.dtd.
      • load

        public void load​(org.jdom2.Element root)
      • setDirtyAndFirePropertyChange

        protected void setDirtyAndFirePropertyChange​(java.lang.String p,
                                                     java.lang.Object old,
                                                     java.lang.Object n)