| 17 |
|
*/ |
| 18 |
|
public final String REVISION = "$Revision$"; |
| 19 |
|
|
| 20 |
+ |
public static final int HOUR = 0; |
| 21 |
+ |
public static final int DAY = 1; |
| 22 |
+ |
public static final int WEEK = 2; |
| 23 |
+ |
public static final int MONTH = 3; |
| 24 |
+ |
|
| 25 |
+ |
|
| 26 |
|
//---STATIC METHODS--- |
| 27 |
|
|
| 28 |
|
//---CONSTRUCTORS--- |
| 29 |
|
|
| 30 |
< |
public ReportPage(String location, String description, int type){ |
| 30 |
> |
public ReportPage(String location, String machine_name, String when, String report, int type){ |
| 31 |
|
|
| 32 |
< |
if (type < 0 || type > 3){ |
| 32 |
> |
if (type < HOUR || type > MONTH){ |
| 33 |
|
System.out.println("Could not add the page."); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
_location = location; |
| 37 |
< |
_description = description; |
| 37 |
> |
_machine_name = machine_name; |
| 38 |
> |
_when = when; |
| 39 |
> |
_report = report; |
| 40 |
|
_type = type; |
| 41 |
|
} |
| 42 |
|
|
| 62 |
|
return _location; |
| 63 |
|
} |
| 64 |
|
|
| 65 |
< |
public String getDescription(){ |
| 66 |
< |
return _description; |
| 65 |
> |
public String getMachineName(){ |
| 66 |
> |
return _machine_name; |
| 67 |
|
} |
| 68 |
+ |
|
| 69 |
+ |
public String getWhen(){ |
| 70 |
+ |
return _when; |
| 71 |
+ |
} |
| 72 |
|
|
| 73 |
+ |
public String getReport(){ |
| 74 |
+ |
return _report; |
| 75 |
+ |
} |
| 76 |
+ |
|
| 77 |
|
public int getType(){ |
| 78 |
|
return _type; |
| 79 |
|
} |
| 80 |
+ |
|
| 81 |
|
|
| 82 |
|
|
| 83 |
|
//---ATTRIBUTES--- |
| 84 |
|
|
| 85 |
|
private String _location; |
| 86 |
< |
private String _description; |
| 86 |
> |
private String _machine_name; |
| 87 |
> |
private String _when; |
| 88 |
> |
private String _report; |
| 89 |
|
private int _type; |
| 90 |
|
|
| 91 |
|
//---STATIC ATTRIBUTES--- |
| 73 |
– |
|
| 74 |
– |
public static int HOUR = 0; |
| 75 |
– |
public static int DAY = 1; |
| 76 |
– |
public static int WEEK = 2; |
| 77 |
– |
public static int MONTH = 3; |
| 92 |
|
|
| 93 |
|
} |