19
19
import java .io .IOException ;
20
20
import java .nio .file .Path ;
21
21
import java .util .List ;
22
+ import javafx .event .ActionEvent ;
23
+ import javafx .fxml .FXML ;
22
24
import javax .xml .bind .JAXBException ;
23
25
import static org .cirdles .squid .constants .Squid3Constants .DEMO_SQUID_PROJECTS_FOLDER ;
24
26
import static org .cirdles .squid .constants .Squid3Constants .TaskTypeEnum .GEOCHRON ;
27
+ import org .cirdles .squid .dialogs .SquidMessageDialog ;
25
28
import org .cirdles .squid .exceptions .SquidException ;
26
29
import org .cirdles .squid .parameters .ParametersModelComparator ;
27
30
import org .cirdles .squid .parameters .parameterModels .commonPbModels .CommonPbModel ;
@@ -264,15 +267,58 @@ public void saveAsSquid3Project(File squid3ProjectFileTarget) throws IOException
264
267
265
268
// REPORTS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
266
269
/**
267
- * This method first checks to see if reports folder is initialized
268
270
*
269
- * @throws IOException
271
+ * @return @ throws IOException
270
272
*/
271
273
@ Override
272
- public void generateAllSquid3ProjectReports () throws IOException {
273
- if (squid3Project .hasReportsFolder ()) {
274
- ((Squid3ProjectReportingAPI ) squid3Project ).generateAllReports ();
275
- }
274
+ public Path generateReferenceMaterialSummaryExpressionsReport () throws IOException {
275
+ return ((Squid3ProjectReportingAPI ) squid3Project ).generateReferenceMaterialSummaryExpressionsReport ();
276
+ }
277
+
278
+ /**
279
+ *
280
+ * @return @throws IOException
281
+ */
282
+ @ Override
283
+ public Path generateUnknownsSummaryExpressionsReport () throws IOException {
284
+ return ((Squid3ProjectReportingAPI ) squid3Project ).generateUnknownsSummaryExpressionsReport ();
285
+ }
286
+
287
+ /**
288
+ *
289
+ * @return @throws IOException
290
+ */
291
+ @ Override
292
+ public Path generateTaskSummaryReport () throws IOException {
293
+ return ((Squid3ProjectReportingAPI ) squid3Project ).generateTaskSummaryReport ();
294
+ }
295
+
296
+ /**
297
+ *
298
+ * @return @throws IOException
299
+ */
300
+ @ Override
301
+ public Path generateProjectAuditReport () throws IOException {
302
+ return ((Squid3ProjectReportingAPI ) squid3Project ).generateProjectAuditReport ();
303
+ }
304
+
305
+ /**
306
+ *
307
+ * @return @throws IOException
308
+ */
309
+ @ Override
310
+ public Path generateAllSquid3ProjectReports () throws IOException {
311
+ return ((Squid3ProjectReportingAPI ) squid3Project ).generateAllReports ();
312
+ }
313
+
314
+ /**
315
+ *
316
+ * @return
317
+ * @throws IOException
318
+ */
319
+ @ Override
320
+ public Path generatePerScanReports () throws IOException {
321
+ return ((Squid3ProjectReportingAPI ) squid3Project ).generatePerScanReports ();
276
322
}
277
323
278
324
/**
@@ -285,20 +331,24 @@ public void generateAllSquid3ProjectReports() throws IOException {
285
331
public static void main (String [] args ) throws IOException , SquidException , JAXBException , SAXException {
286
332
Squid3API squid3Ink = Squid3Ink .spillSquid3Ink ();
287
333
288
- // squid3Ink.openDemonstrationSquid3Project();
334
+ squid3Ink .openDemonstrationSquid3Project ();
289
335
// squid3Ink.newSquid3GeochronProjectFromPrawnXML(
290
336
// (new File("Squid3_Resources/ExamplePrawnXMLFiles/836_1_2016_Nov_28_09.50.xml")).toPath());
291
- squid3Ink .newSquid3GeochronProjectFromZippedPrawnXML (
292
- (new File ("zippy/836_1_2016_Nov_28_09.50.xml.zip" )).toPath ());
293
-
337
+ // squid3Ink.newSquid3GeochronProjectFromZippedPrawnXML(
338
+ // (new File("zippy/836_1_2016_Nov_28_09.50.xml.zip")).toPath());
339
+ //
294
340
squid3Ink .generateAllSquid3ProjectReports ();
295
341
System .out .println (squid3Ink .getSquid3Project ().getProjectName ()
296
- + " " + squid3Ink .getSquid3Project ().getPrawnFileHandler ().getReportsEngine ().makeReportFolderStructure ());
297
-
298
- squid3Ink .saveAsSquid3Project (new File ("XXXXXX.squid" ));
299
- squid3Ink .generateAllSquid3ProjectReports ();
300
- System .out .println (squid3Ink .getSquid3Project ().getProjectName ()
301
- + " " + squid3Ink .getSquid3Project ().getPrawnFileHandler ().getReportsEngine ().makeReportFolderStructure ());
342
+ + "\n " + squid3Ink .getSquid3Project ().getPrawnFileHandler ().getReportsEngine ().makeReportFolderStructure ());
343
+ try {
344
+ System .out .println (squid3Ink .generateReferenceMaterialSummaryExpressionsReport ().toString ());
345
+ System .out .println (squid3Ink .generatePerScanReports ().toString ());
346
+ } catch (IOException iOException ) {
347
+ }
348
+ // squid3Ink.saveAsSquid3Project(new File("XXXXXX.squid"));
349
+ // squid3Ink.generateAllSquid3ProjectReports();
350
+ // System.out.println(squid3Ink.getSquid3Project().getProjectName()
351
+ // + " " + squid3Ink.getSquid3Project().getPrawnFileHandler().getReportsEngine().makeReportFolderStructure());
302
352
303
353
System .out .println (squid3Ink .retrieveSquid3ProjectListMRU ());
304
354
}
0 commit comments