m-k Posted December 31, 2019 Share Posted December 31, 2019 I like to display the results of an accuracy measurement. My software recordes the data and calculates the offset.For example during a measurement phase the software collects data regarding the precision and calculates the offsets relative to the average pose. And I like to create a report with the normal distrubtion for the x, y and theta coordinate and the a statistic about the average offset, the max and min error. Each AccuraI have read the tutorials of jasper and I understood how to add simple data sets. But how can I create a report for complex data.Here an example. This is the representation of my data as it is stored in my java classes.TestResultdoneAt : TimestamprobotName : StringaccuracyResults : MeasurementPhaseResult[]measurementPhaseName : StringaccuracyResults : AccuracyResult[]category: Enum of categoriesoffsets : Pose[]{- x: Double,- y: Double, - theta: Double}Example data as json string{ "doneAt": { "date": { "year": 2019, "month": 12, "day": 31 }, "time": { "hour": 12, "minute": 27, "second": 53, "nano": 529000000 } }, "robotName": "Dummy_Robot", "accuracyResults": [ { "measurementPhaseName": "DummyPhase #1", "accuracyResults": [ { "category": "ABSOLUTE", "offsets": [ { "x": 1.0, "y": 1.0, "theta": 1.0 }, { "x": 2.0, "y": 2.0, "theta": 2.0 }, { "x": 2.0, "y": 2.0, "theta": 2.0 }, { "x": 2.0, "y": 2.0, "theta": 2.0 } ] }, { "category": "PRECISION", "offsets": [ { "x": 1.0, "y": 1.0, "theta": 1.0 }, { "x": 2.0, "y": 2.0, "theta": 2.0 } ] } ] }, { "measurementPhaseName": "DummyPhase #2", "accuracyResults": [ { "category": "ABSOLUTE", "offsets": [ { "x": 1.0, "y": 1.0, "theta": 1.0 }, { "x": 2.0, "y": 2.0, "theta": 2.0 }, { "x": 2.0, "y": 2.0, "theta": 2.0 } ] } ] } ]} Link to comment Share on other sites More sharing options...
m-k Posted December 31, 2019 Author Share Posted December 31, 2019 Also asked on stack overflowhttps://stackoverflow.com/questions/59544383/jasper-reports-create-report-for-complex-data Link to comment Share on other sites More sharing options...
I am Leo Posted January 21, 2020 Share Posted January 21, 2020 Define the type of your parameter. Like below[/code]Then use getter as normal $P{carBasicInfo}.getName()[/code] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now