Record Class LineChart<X extends Number & Comparable<X>, Y extends Number & Comparable<Y>>
java.lang.Object
java.lang.Record
ai.timefold.solver.benchmark.impl.report.LineChart<X,Y>
- All Implemented Interfaces:
Chart
public record LineChart<X extends Number & Comparable<X>, Y extends Number & Comparable<Y>>(String id, String title, String xLabel, String yLabel, List<X extends Number & Comparable<X>> keys, List<Dataset<Y extends Number & Comparable<Y>>> datasets, boolean stepped, boolean timeOnX, boolean timeOnY)
extends Record
implements Chart
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classLineChart.Builder<X extends Number & Comparable<X>, Y extends Number & Comparable<Y>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondatasets()Returns the value of thedatasetsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.keys()Returns the value of thekeysrecord component.booleanstepped()Returns the value of thesteppedrecord component.booleantimeOnX()Returns the value of thetimeOnXrecord component.booleantimeOnY()Returns the value of thetimeOnYrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.voidwriteToFile(Path parentFolder) xLabel()Returns the value of thexLabelrecord component.booleanxMax()xMin()yLabel()Returns the value of theyLabelrecord component.booleanyMax()yMin()
-
Constructor Details
-
LineChart
public LineChart(String id, String title, String xLabel, String yLabel, List<X> keys, List<Dataset<Y>> datasets, boolean stepped, boolean timeOnX, boolean timeOnY) Creates an instance of aLineChartrecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentxLabel- the value for thexLabelrecord componentyLabel- the value for theyLabelrecord componentkeys- the value for thekeysrecord componentdatasets- the value for thedatasetsrecord componentstepped- the value for thesteppedrecord componenttimeOnX- the value for thetimeOnXrecord componenttimeOnY- the value for thetimeOnYrecord component
-
-
Method Details
-
xMin
-
xMax
-
yMin
-
yMax
-
xStepSize
-
yStepSize
-
xLogarithmic
public boolean xLogarithmic() -
yLogarithmic
public boolean yLogarithmic() -
points
-
writeToFile
- Specified by:
writeToFilein interfaceChart
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
title
-
xLabel
-
yLabel
-
keys
-
datasets
-
stepped
public boolean stepped()Returns the value of thesteppedrecord component.- Returns:
- the value of the
steppedrecord component
-
timeOnX
public boolean timeOnX()Returns the value of thetimeOnXrecord component.- Returns:
- the value of the
timeOnXrecord component
-
timeOnY
public boolean timeOnY()Returns the value of thetimeOnYrecord component.- Returns:
- the value of the
timeOnYrecord component
-