Package com.uppaal.model.system
Class GanttChart
java.lang.Object
com.uppaal.model.system.GanttChart
- All Implemented Interfaces:
Cloneable
public class GanttChart extends Object implements Cloneable
The class Gantt chart
-
Constructor Summary
Constructors Constructor Description GanttChart()
Constructor -
Method Summary
Modifier and Type Method Description void
addRow(GanttRow row)
Add a new row into the chartvoid
clearChart()
Clear the rows, but keep id-strings and empty lists for each rowObject
clone()
GanttRow
getRow(int i)
Get the rowLimit
maximalNonInfiniteEndTime()
Get the maximum non infinite end timeint
noOfRows()
Get the number of the rowsvoid
printGanttInfo()
Printing the gantt chart informationvoid
truncate(int from)
Remove everything from the input datavoid
truncate(BigDecimal t)
Remove everything to the "right" of time t in chart
-
Constructor Details
-
GanttChart
public GanttChart()Constructor
-
-
Method Details
-
addRow
Add a new row into the chart- Parameters:
row
- - The gantt chart row
-
noOfRows
public int noOfRows()Get the number of the rows- Returns:
- rows number
-
getRow
Get the row- Parameters:
i
- - The index- Returns:
- The gantt chart row
-
truncate
Remove everything to the "right" of time t in chart- Parameters:
t
- - The time value
-
truncate
public void truncate(int from)Remove everything from the input data- Parameters:
from
- - The from data
-
clearChart
public void clearChart()Clear the rows, but keep id-strings and empty lists for each row -
maximalNonInfiniteEndTime
Get the maximum non infinite end time- Returns:
- tmp - The maximum end time
-
printGanttInfo
public void printGanttInfo()Printing the gantt chart information -
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-