30. Creating reports
Class for generating raports of course of action of application Safety Analysis. Document has fixed paragraphs for date, logo and title. Order of other paragraphs depends on what parameters program Safety Analysis has been launched with. Class includes several features which modify created report. Class ReportGenerator is used to integrate features of another classes which together create object of a report. Instance for content of report is a class TextDocument which can be modified by adding additional chunks of data to an object. That chunk is another class called Paragraph which instantiates TextDocument's data. Raw text document consists of object of TextDocument. TextDocument consists of objects of Paragraph. Paragraph consists data which report presents. By default report can be generated as empty text document which is created with constructor with no arguments given. There's second constructor which creates text document with prebuilt three paragraphs consisting date, logo and title.Creating Reports
ReportGenerator