Your ideas about a Reporting Common Interface

The M&T Special Interest Group is considering developing a new Common Interface specification so that any Process Modelling Component could be asked by a Process Modelling Environment to create a report and hand it over to the PME.

Moderator: wbarrett

Your ideas about a Reporting Common Interface

Postby colancto » 14 December 2017, 10:34

The Unit Operation interface specification includes an ICapeUnitReport interface that lets a Unit Operation be asked to provide a report to the PME, for example for inclusion in the general report that a PME is delivering to the Flowsheet User.
In the way it was designed this interface could in fact be implemented on any PMC (a Property Package, a Flowsheet Monitoring Component) but since this is not stated in the interface description, this was never done and anyway no PME would know about the presence of such an interface on a PMC which is not a Unit Operation.
This makes the case for having a common interface dedicated to reporting and available for implementation on any type of PMC.
The ICapeUnitReport interface may be seen as a bit limited in scope, especially with respect to the format of reports that can be provided by the PMC and taken care of by the PME. A kind of workaround was devised through the NamedValues feature of SimulationContext in order to let know to a Unit Operation that a PME accepts a format such as HTML. It seems necessary to get rid of this workaround and to include in a new Common interface specification on reporting a better coverage of the format issue.
The CO-LaN community has been asked to provide feedback on this proposal which is sketched above. Any views of necessary features of a Reporting Common interface are welcome through this forum.
User avatar
colancto
Administrateur
 
Posts: 92
Joined: 23 October 2012, 11:46

Re: Your ideas about a Reporting Common Interface

Postby bcbooo » 31 December 2017, 08:44

Colan should define the format of XML report message.For example use the desciplines of Microsoft docx XML file, which could report as table, title, text pharagraph. All the report messages are normal XML strings, but Simulator could display them likes Microsoft Word.
bcbooo
 
Posts: 66
Joined: 22 November 2012, 06:41
Location: China

Re: Your ideas about a Reporting Common Interface

Postby jasper » 31 December 2017, 13:30

Which DTD would you suggest would describe the XML?
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Your ideas about a Reporting Common Interface

Postby bcbooo » 01 January 2018, 01:14

Happy new year Jasper!

I suggest Colan defines one custom XML format, which is simple and has sufficient fucntions, likes the following:

<title1>1. Sample title</title1>

<title2> 1.1 Sample sub title </title2>

<paragraph> The sample texts. </paragraph>


<table>

<row>
<range>cell1 message</range> <range>cell2 message</range>
</row>

<row>
<range>cell1 message</range> <range>cell2 message</range>
</row>

</table>
bcbooo
 
Posts: 66
Joined: 22 November 2012, 06:41
Location: China

Re: Your ideas about a Reporting Common Interface

Postby jasper » 01 January 2018, 09:20

Happy new year. So you are suggesting a sub-set to HTML, more or less. This gets complicated rather quickly (defining how paragraph data aligns, defining how images are inserted, etc). I fear that such a DTD is somewhat out of scope for CO-LaN, plus, all PMEs would have to come up with a renderer for such a format.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Your ideas about a Reporting Common Interface

Postby bcbooo » 01 January 2018, 12:37

Don't to care text align, color, font size, font name problems, just simplest desciplines as I mentioned.

The simulator has it's own style to display them, for example the specified font, line space, color for title.

Complicated XML standards will make nobody to fill them.
bcbooo
 
Posts: 66
Joined: 22 November 2012, 06:41
Location: China


Return to Reporting Common interface

Who is online

Users browsing this forum: No registered users and 1 guest

cron