Package com.uppaal.model.core2
Class DataSet2D
- java.lang.Object
-
- com.uppaal.model.core2.DataSet2D
-
-
Field Summary
Fields Modifier and Type Field Description static Point2D.DoubleemptyMaxstatic Point2D.DoubleemptyMinStringtitleStringxlabelStringylabel
-
Method Summary
Modifier and Type Method Description voidaddComment(String comment)Add the comment into the array list for the commentsvoidaddData(String legend, String type, Color color)Add a new datavoidaddData2D(Data2D data2d)Add the data2DvoidaddSample(double x, double y)Add a new samplevoidaddSample(Point2D.Double p)Add a new sample into the array list of the Data2DArrayList<String>getComments()Get commentsPoint2D.DoublegetMaximum()Get the maximum data2DdoublegetMaxXDifference()Get the maximum difference between a lot of the data2DPoint2D.DoublegetMinimum()Get the minimum data2DStringgetTitle()Get the titleStringgetXLabel()Get the label xStringgetYLabel()Get the label ybooleanisEmpty()Is the array list of the data2D empty?Iterator<Data2D>iterator()voidremoveData2D(Data2D data2d)Remove the Data2DvoidsetLogX(boolean logx)Set the log x into the data2DvoidsetLogY(boolean logy)Set log yvoidsetTitle(String newtitle)Set titlevoidsetXLabel(String newx)Set the label x into the data2DvoidsetYLabel(String newy)Set the label y into the data2Dintsize()Ask the data size-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
emptyMin
public static final Point2D.Double emptyMin
-
emptyMax
public static final Point2D.Double emptyMax
-
title
public String title
-
xlabel
public String xlabel
-
ylabel
public String ylabel
-
-
Method Detail
-
addData
public void addData(String legend, String type, Color color)
Add a new data- Parameters:
legend- - The legend datatype- - The type of the datacolor- - The color
-
setTitle
public void setTitle(String newtitle)
Set title- Parameters:
newtitle- - The new title
-
setXLabel
public void setXLabel(String newx)
Set the label x into the data2D- Parameters:
newx- - The new label x
-
setYLabel
public void setYLabel(String newy)
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
public void addData2D(Data2D data2d)
Add the data2D- Parameters:
data2d- - The input data
-
removeData2D
public void removeData2D(Data2D data2d)
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
public void addSample(Point2D.Double p)
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
public void addComment(String comment)
Add the comment into the array list for the comments- Parameters:
comment- - The comment string
-
getComments
public ArrayList<String> getComments()
Get comments- Returns:
- Comments - The array list for the comments
-
getTitle
public String getTitle()
Get the title- Returns:
- title - The title string
-
getXLabel
public String getXLabel()
Get the label x- Returns:
- xLabel - The label x
-
getYLabel
public String getYLabel()
Get the label y- Returns:
- yLabel - The label y
-
getMinimum
public Point2D.Double getMinimum()
Get the minimum data2D- Returns:
- min - the minimum data2D
-
getMaximum
public Point2D.Double 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
-
-