Source code: jflight/flightbook/Task.java
1 /*
2 Project name: JFlight
3 Hosted at: www.sourceforge.net
4 Homepage: jflight.sourceforge.net
5 Licence: GNU public licence (GPL)
6 Filename: Task.java
7 Package: jflight
8 */
9
10 package jflight.flightbook;
11 import jflight.model.Rte;
12 import java.util.*;
13 import jflight.db.*;
14
15 /**
16 Task class; the task (defined as a GPS-route) is identified by the name of a
17 predefined GPS-route. This is the comment used by the GPS.
18
19
20
21 @since JDK1.1.x
22 @author Rüdiger Bien
23
24 CVS-section:
25 @file_version $Revision: 1.5 $
26
27 */
28
29
30
31
32 public class Task extends PersistentObject{
33
34 private String taskName;
35
36 public Task() {
37 this.taskName = new String("-");
38 this.changed = true;
39 }
40
41 public Task( String taskName ) {
42 this.taskName = new String(taskName);
43 this.changed = true;
44 }
45
46 public void setTaskName( String taskName ) {
47 this.taskName = new String(taskName);
48 this.changed = true;
49 }
50
51 public String getTaskName() {
52 return taskName;
53 }
54
55 public String toString()
56 {
57 return taskName;
58 }
59 }