Class TrainSchedule

    • Constructor Detail

      • TrainSchedule

        public TrainSchedule​(java.lang.String id,
                             java.lang.String name)
      • TrainSchedule

        public TrainSchedule​(org.jdom2.Element e)
        Construct this Entry from XML. This member has to remain synchronized with the detailed DTD in operations-trains.xml
        Parameters:
        e - Consist XML element
    • Method Detail

      • getId

        public java.lang.String getId()
      • setName

        public void setName​(java.lang.String name)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getName

        public java.lang.String getName()
      • setComment

        public void setComment​(java.lang.String comment)
      • getComment

        public java.lang.String getComment()
      • addTrainId

        public void addTrainId​(java.lang.String id)
        Adds the train id for a train that needs to be built
        Parameters:
        id - The train id
      • removeTrainId

        public void removeTrainId​(java.lang.String id)
        Removes the train id for a train that needs to be built
        Parameters:
        id - The train id
      • containsTrainId

        public boolean containsTrainId​(java.lang.String id)
        Used to determine if train is to be built using this schedule
        Parameters:
        id - the id of the train to be tested
        Returns:
        true if this train's build enable should be set
      • store

        public org.jdom2.Element store()
        Create an XML element to represent this Entry. This member has to remain synchronized with the detailed DTD in operations-config.xml.
        Returns:
        Contents in a JDOM Element
      • propertyChange

        public void propertyChange​(java.beans.PropertyChangeEvent e)
      • setDirtyAndFirePropertyChange

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