| 65 |
|
bw.flush(); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
< |
public static void printMachines(BufferedWriter bw, LinkedList list) throws IOException{ |
| 68 |
> |
public static void printAllMachines(BufferedWriter bw, LinkedList list) throws IOException{ |
| 69 |
|
bw.write("<table border=\"0\" align=\"center\">"); |
| 70 |
|
|
| 71 |
|
Iterator it = list.iterator(); |
| 72 |
|
while (it.hasNext()){ |
| 73 |
|
ReportPage rp = (ReportPage)it.next(); |
| 74 |
< |
bw.write("<tr><td><font size=\"4\"><a href=\"../"+rp.getWhen()+rp.getMachineName()+"."+rp.getReport()+".shtml\">"+rp.getMachineName()+"</a></font></td></tr>"); |
| 74 |
> |
bw.write("<tr><td><font size=\"4\"><a href=\"../"+rp.getWhen()+rp.getMachineName()+"."+rp.getReport()+".shtml\">"+rp.getWhen()+rp.getMachineName()+"</a></font></td></tr>"); |
| 75 |
> |
} |
| 76 |
> |
|
| 77 |
> |
bw.write("</table>"); |
| 78 |
> |
bw.flush(); |
| 79 |
> |
} |
| 80 |
> |
|
| 81 |
> |
public static void printMachinesByTime(BufferedWriter bw, LinkedList list, String when) throws IOException{ |
| 82 |
> |
bw.write("<table border=\"0\" align=\"center\">"); |
| 83 |
> |
|
| 84 |
> |
Iterator it = list.iterator(); |
| 85 |
> |
while (it.hasNext()){ |
| 86 |
> |
ReportPage rp = (ReportPage)it.next(); |
| 87 |
> |
if (rp.getWhen().equals(when)){ |
| 88 |
> |
bw.write("<tr><td><font size=\"4\"><a href=\"../"+rp.getWhen()+rp.getMachineName()+"."+rp.getReport()+".shtml\">"+rp.getMachineName()+"</a></font></td></tr>"); |
| 89 |
> |
} |
| 90 |
> |
} |
| 91 |
> |
|
| 92 |
> |
bw.write("</table>"); |
| 93 |
> |
bw.flush(); |
| 94 |
> |
} |
| 95 |
> |
|
| 96 |
> |
public static void printTimesByMachine(BufferedWriter bw, LinkedList list, String machine_name) throws IOException{ |
| 97 |
> |
bw.write("<table border=\"0\" align=\"center\">"); |
| 98 |
> |
|
| 99 |
> |
Iterator it = list.iterator(); |
| 100 |
> |
while (it.hasNext()){ |
| 101 |
> |
ReportPage rp = (ReportPage)it.next(); |
| 102 |
> |
if (rp.getMachineName().equals(machine_name)){ |
| 103 |
> |
bw.write("<tr><td><font size=\"4\"><a href=\"../"+rp.getWhen()+rp.getMachineName()+"."+rp.getReport()+".shtml\">"+rp.getWhen()+"</a></font></td></tr>"); |
| 104 |
> |
} |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
bw.write("</table>"); |