View Javadoc

1   /*
2    *  File: Fahrt.java 
3    *  Copyright (c) 2004-2007  Peter Kliem (Peter.Kliem@jaret.de)
4    *  A commercial license is available, see http://www.jaret.de.
5    *
6    *  This program is free software; you can redistribute it and/or modify
7    *  it under the terms of the GNU General Public License as published by
8    *  the Free Software Foundation; either version 2 of the License, or
9    *  (at your option) any later version.
10   *
11   *  This program is distributed in the hope that it will be useful,
12   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   *  GNU General Public License for more details.
15   *
16   *  You should have received a copy of the GNU General Public License
17   *  along with this program; if not, write to the Free Software
18   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19   */
20  package de.jaret.examples.timebars.fzd.model;
21  
22  import de.jaret.util.date.IntervalImpl;
23  
24  /***
25   * @author Peter Kliem
26   * @version $Id: Fahrt.java 160 2007-01-02 22:02:40Z olk $
27   */
28  public class Fahrt extends IntervalImpl {
29      protected String _beginOrt;
30      protected String _endeOrt;
31      protected String _fahrtNummer;
32      protected Umlauf _umlauf;
33  
34      /***
35       * @param beginOrt
36       * @param endeOrt
37       * @param fahrtNummer
38       */
39      public Fahrt(String beginOrt, String endeOrt, String fahrtNummer) {
40          _beginOrt = beginOrt;
41          _endeOrt = endeOrt;
42          _fahrtNummer = fahrtNummer;
43      }
44  
45      /***
46       * @return Returns the beginOrt.
47       */
48      public String getBeginOrt() {
49          return _beginOrt;
50      }
51  
52      /***
53       * @param beginOrt The beginOrt to set.
54       */
55      public void setBeginOrt(String beginOrt) {
56          String oldVal = _beginOrt;
57          _beginOrt = beginOrt;
58          firePropertyChange("BeginOrt", oldVal, beginOrt);
59      }
60  
61      /***
62       * @return Returns the endeOrt.
63       */
64      public String getEndeOrt() {
65          return _endeOrt;
66      }
67  
68      /***
69       * @param endeOrt The endeOrt to set.
70       */
71      public void setEndeOrt(String endeOrt) {
72          String oldVal = _endeOrt;
73          _endeOrt = endeOrt;
74          firePropertyChange("EndeOrt", oldVal, endeOrt);
75      }
76  
77      /***
78       * @return Returns the fahrtNummer.
79       */
80      public String getFahrtNummer() {
81          return _fahrtNummer;
82      }
83  
84      /***
85       * @param fahrtNummer The fahrtNummer to set.
86       */
87      public void setFahrtNummer(String fahrtNummer) {
88          String oldVal = _fahrtNummer;
89          _fahrtNummer = fahrtNummer;
90          firePropertyChange("FahrtNummer", oldVal, fahrtNummer);
91      }
92  
93      /***
94       * @return Returns the umlauf.
95       */
96      public Umlauf getUmlauf() {
97          return _umlauf;
98      }
99  
100     /***
101      * @param umlauf The umlauf to set.
102      */
103     public void setUmlauf(Umlauf umlauf) {
104         _umlauf = umlauf;
105     }
106 }