static { try (final BibliographyBuilder local = new BibliographyBuilder()) { try (final BibArticleBuilder bab = local.article()) { try (final BibDateBuilder d = bab.date()) { d.fromNow(); } bab.setTitle("A very important article"); // $NON-NLS-1$ bab.setJournal("The journal of important things"); // $NON-NLS-1$ bab.setStartPage("1"); // $NON-NLS-1$ bab.setEndPage("10"); // $NON-NLS-1$ bab.setVolume("4"); // $NON-NLS-1$ bab.setNumber("33"); // $NON-NLS-1$ try (final BibAuthorsBuilder aa = bab.setAuthors()) { try (final BibAuthorBuilder a = aa.author()) { a.setFamilyName("Funnyman"); // $NON-NLS-1$ a.setPersonalName("Jake"); // $NON-NLS-1$ } } } STATIC_BIB_ENTRY = local.getResult().get(0); } }
/** * build the references to be used when plotting an ECDF * * @return the bibliography of references */ private static final Bibliography __buildReferences() { final BibAuthor hoos; hoos = new BibAuthor( // "Holger H.", //$NON-NLS-1$ "Hoos"); //$NON-NLS-1$ try (final BibliographyBuilder bibBuilder = new BibliographyBuilder()) { try (final BibInProceedingsBuilder inProc = // bibBuilder.inProceedings()) { try (final BibAuthorsBuilder authors = inProc.setAuthors()) { authors.addAuthor(hoos); try (final BibAuthorBuilder author = authors.author()) { author.setPersonalName("Thomas"); // $NON-NLS-1$ author.setFamilyName("St\u00fctzle"); // $NON-NLS-1$ } } inProc.setTitle( // "Evaluating Las Vegas Algorithms \u2012 Pitfalls and Remedies"); //$NON-NLS-1$ try (final BibProceedingsBuilder proc = inProc.proceedings()) { proc.setTitle( // "Proceedings of the 14th Conference on Uncertainty in Artificial Intelligence (UAI'98)"); //$NON-NLS-1$ try (final BibDateBuilder date = proc.startDate()) { date.setYear(1998); date.setMonth(EBibMonth.JULY); date.setDay(24); } try (final BibDateBuilder date = proc.endDate()) { date.setYear(1998); date.setMonth(EBibMonth.JULY); date.setDay(26); } try (final BibAuthorsBuilder editors = proc.setEditors()) { try (final BibAuthorBuilder editor = editors.author()) { editor.setPersonalName("Gregory F."); // $NON-NLS-1$ editor.setFamilyName("Cooper"); // $NON-NLS-1$ } try (final BibAuthorBuilder editor = editors.author()) { editor.setPersonalName("Serafin"); // $NON-NLS-1$ editor.setFamilyName("Moral"); // $NON-NLS-1$ } } try (final BibOrganizationBuilder loc = proc.location()) { loc.setAddress("Madison, WI, USA"); // $NON-NLS-1$ } try (final BibOrganizationBuilder pub = proc.publisher()) { pub.setAddress("San Francisco, CA, USA"); // $NON-NLS-1$ pub.setName("Morgan Kaufmann Publishers Inc."); // $NON-NLS-1$ } } inProc.setStartPage("238"); // $NON-NLS-1$ inProc.setEndPage("245"); // $NON-NLS-1$ inProc.setURL( // "http://www.intellektik.informatik.tu-darmstadt.de/TR/1998/98-02.ps.Z"); //$NON-NLS-1$ } try (final BibInProceedingsBuilder inProc = // bibBuilder.inProceedings()) { try (final BibAuthorsBuilder authors = inProc.setAuthors()) { try (final BibAuthorBuilder author = authors.author()) { author.setPersonalName("Dave Andrew Douglas"); // $NON-NLS-1$ author.setFamilyName("Tompkins"); // $NON-NLS-1$ } authors.addAuthor(hoos); } inProc.setTitle( // "UBCSAT: An Implementation and Experimentation Environment for SLS Algorithms for SAT and MAX-SAT"); //$NON-NLS-1$ try (final BibProceedingsBuilder proc = inProc.proceedings()) { proc.setTitle( // "Revised Selected Papers from the Seventh International Conference on Theory and Applications of Satisfiability Testing (SAT'04)"); //$NON-NLS-1$ try (final BibDateBuilder date = proc.startDate()) { date.setYear(2004); date.setMonth(EBibMonth.MAY); date.setDay(10); } try (final BibDateBuilder date = proc.endDate()) { date.setYear(2004); date.setMonth(EBibMonth.MAY); date.setDay(13); } try (final BibAuthorsBuilder editors = proc.setEditors()) { editors.addAuthor(hoos); try (final BibAuthorBuilder editor = editors.author()) { editor.setPersonalName("David G."); // $NON-NLS-1$ editor.setFamilyName("Mitchell"); // $NON-NLS-1$ } } try (final BibOrganizationBuilder loc = proc.location()) { loc.setAddress("Vancouver, BC, Canada"); // $NON-NLS-1$ } try (final BibOrganizationBuilder pub = proc.publisher()) { pub.setAddress("Berlin, Germany"); // $NON-NLS-1$ pub.setName("Springer-Verlag GmbH"); // $NON-NLS-1$ } proc.setSeries("Lecture Notes in Computer Science (LNCS)"); // $NON-NLS-1$ proc.setVolume("3542"); // $NON-NLS-1$ } inProc.setDOI("10.1007/11527695"); // $NON-NLS-1$ inProc.setStartPage("306"); // $NON-NLS-1$ inProc.setEndPage("320"); // $NON-NLS-1$ inProc.setURL( // "http://ubcsat.dtompkins.com/downloads/sat04proc-ubcsat.pdf?attredirects=0"); //$NON-NLS-1$ } try (BibTechReportBuilder report = bibBuilder.techReport()) { try (final BibAuthorsBuilder authors = report.setAuthors()) { try (final BibAuthorBuilder author = authors.author()) { author.setPersonalName("Nikolaus"); // $NON-NLS-1$ author.setFamilyName("Hansen"); // $NON-NLS-1$ } try (final BibAuthorBuilder author = authors.author()) { author.setPersonalName("Anne"); // $NON-NLS-1$ author.setFamilyName("Auger"); // $NON-NLS-1$ } try (final BibAuthorBuilder author = authors.author()) { author.setPersonalName("Steffen"); // $NON-NLS-1$ author.setFamilyName("Finck"); // $NON-NLS-1$ } try (final BibAuthorBuilder author = authors.author()) { author.setPersonalName("Raymond"); // $NON-NLS-1$ author.setFamilyName("Ros"); // $NON-NLS-1$ } } report.setTitle( // "Real-Parameter Black-Box Optimization Benchmarking: Experimental Setup"); //$NON-NLS-1$ try (final BibOrganizationBuilder pub = report.publisher()) { pub.setAddress("Orsay, France"); // $NON-NLS-1$ pub.setName( // "Universit\u00e9 Paris Sud, Institut National de Recherche en Informatique et en Automatique (INRIA) Futurs, \u00c9quipe TAO"); //$NON-NLS-1$ } try (final BibDateBuilder date = report.date()) { date.setYear(2012); date.setMonth(EBibMonth.MARCH); date.setDay(24); } report.setURL( // "http://coco.lri.fr/BBOB-downloads/download11.05/bbobdocexperiment.pdf"); //$NON-NLS-1$ } return bibBuilder.getResult(); } }