Package com.uppaal.model.core2
Class DataSet2D
java.lang.Object
com.uppaal.model.core2.DataSet2D
public class DataSet2D extends Object implements Iterable<Data2D>
The class data set 2D
-
Field Summary
Fields Modifier and Type Field Description static Point2D.Double
emptyMax
static Point2D.Double
emptyMin
String
title
String
xlabel
String
ylabel
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
addComment(String comment)
Add the comment into the array list for the commentsvoid
addData(String legend, String type, Color color)
Add a new datavoid
addData2D(Data2D data2d)
Add the data2Dvoid
addSample(double x, double y)
Add a new samplevoid
addSample(Point2D.Double p)
Add a new sample into the array list of the Data2DArrayList<String>
getComments()
Get commentsPoint2D.Double
getMaximum()
Get the maximum data2Ddouble
getMaxXDifference()
Get the maximum difference between a lot of the data2DPoint2D.Double
getMinimum()
Get the minimum data2DString
getTitle()
Get the titleString
getXLabel()
Get the label xString
getYLabel()
Get the label yboolean
isEmpty()
Is the array list of the data2D empty?Iterator<Data2D>
iterator()
void
removeData2D(Data2D data2d)
Remove the Data2Dvoid
setLogX(boolean logx)
Set the log x into the data2Dvoid
setLogY(boolean logy)
Set log yvoid
setTitle(String newtitle)
Set titlevoid
setXLabel(String newx)
Set the label x into the data2Dvoid
setYLabel(String newy)
Set the label y into the data2Dint
size()
Ask the data size
-
Field Details
-
Constructor Details
-
DataSet2D
Constructor- Parameters:
title
- - The title stringxlabel
- - The label xylabel
- - The label y
-
-
Method Details
-
addData
Add a new data- Parameters:
legend
- - The legend datatype
- - The type of the datacolor
- - The color
-
setTitle
Set title- Parameters:
newtitle
- - The new title
-
setXLabel
Set the label x into the data2D- Parameters:
newx
- - The new label x
-
setYLabel
Set the label y into the data2D- Parameters:
newy
- - The new label y
-
setLogX
public void setLogX(boolean logx)Set the log x into the data2D- Parameters:
logx
- - Set the log x?
-
setLogY
public void setLogY(boolean logy)Set log y- Parameters:
logy
- - Set the log y ?
-
addData2D
Add the data2D- Parameters:
data2d
- - The input data
-
removeData2D
Remove the Data2D- Parameters:
data2d
- - Remove this data
-
isEmpty
public boolean isEmpty()Is the array list of the data2D empty?- Returns:
- true - empty
-
size
public int size()Ask the data size- Returns:
- data.size
-
addSample
Add a new sample into the array list of the Data2D- Parameters:
p
- - The data2D
-
addSample
public void addSample(double x, double y)Add a new sample- Parameters:
x
- - The log x valuey
- - The log y value
-
addComment
Add the comment into the array list for the comments- Parameters:
comment
- - The comment string
-
getComments
Get comments- Returns:
- Comments - The array list for the comments
-
getTitle
Get the title- Returns:
- title - The title string
-
getXLabel
Get the label x- Returns:
- xLabel - The label x
-
getYLabel
Get the label y- Returns:
- yLabel - The label y
-
getMinimum
Get the minimum data2D- Returns:
- min - the minimum data2D
-
getMaximum
Get the maximum data2D- Returns:
- max - The maximum data2D
-
getMaxXDifference
public double getMaxXDifference()Get the maximum difference between a lot of the data2D- Returns:
- max - The max data2D
-
iterator
-