[jboss-jira] [JBoss JIRA] (JBRULES-3492) Planner Benchmarker: visualize the output files

Lukáš Petrovický (JIRA) jira-events at lists.jboss.org
Mon May 7 07:46:17 EDT 2012


    [ https://issues.jboss.org/browse/JBRULES-3492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12690709#comment-12690709 ] 

Lukáš Petrovický commented on JBRULES-3492:
-------------------------------------------

OK, my suggestion, feel free to disregard. Let's say we have the ProblemIO interface with the following methods:

- read(); that one we already have
- write(); that one we already have, used for writing the primary result, as is now
- visualize(Solution solution, BufferedImage image) for visualizing the solution; we're providing Image object, so that we can control the image format, name etc.
- thumbnail(Solution solution, BufferedImage image) for providing a thumbnail for the solution; if this method isn't implemented, Planner will shrink the result of visualize().
- Collection<AuxilliaryFile> writeAuxilliary(Solution solution, String suggestedFilenameWithoutExtension) for writing as many auxilliary representations of the solution (PDF, HTML etc.)

AuxilliaryFile interface (used by the user to specify what has been written and where) could look like this:

- String getType();  user-supplied file type, for example "Print-ready PDF"
- File getSource(); user-supplied file where the information has been written.

Planner could then take the list of these auxilliary files and link to all of them from the benchmark report.
                
> Planner Benchmarker: visualize the output files
> -----------------------------------------------
>
>                 Key: JBRULES-3492
>                 URL: https://issues.jboss.org/browse/JBRULES-3492
>             Project: Drools
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: drools-planner
>            Reporter: Geoffrey De Smet
>            Assignee: Geoffrey De Smet
>
> If we add a method (on ProblemIO or a new interface ProblemVisualizator) to do vizualization of a Solution:
>   public void visualize(Solution solution, BufferedImage image)
> or
>   public File visualize(Solution solution, File dir, String filename)
> then we can:
> - link to it from the benchmark report
> - try to get a thumbnail grid (rows are solvers, columns are problems)
> -- By default, thumbnails are generated with ImageIO.scale
> -- But a thumbnail needs to be customizable:
> --- draw with VRP's panel to a specific image size
> --- draw JFreeChart to a specific image size
> --- So both the methods proposed above are unsufficient

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jboss-jira mailing list