Package com.uppaal.model.system
Class GanttRow
java.lang.Object
com.uppaal.model.system.GanttRow
- All Implemented Interfaces:
Cloneable
public class GanttRow extends Object implements Cloneable
The class of gantt row
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
addBar(GanttBar bar)
Adds a new Gantt-bar to rowvoid
clearRow()
Clear the gantt rowObject
clone()
Make a clone of the gantt rowGanttBar
getFromNum(int i)
Get the gantt bar with the indexLimit
maximalNonInfiniteEndTime()
Find the greatest not infinite end time in the row.int
noOfBars()
Get the number of gantt barsvoid
printRowInfo()
Print the row informationvoid
truncate(BigDecimal t)
Cut off contents to the "right" of time t in the entire row
-
Field Details
-
Constructor Details
-
Method Details
-
clearRow
public void clearRow()Clear the gantt row -
addBar
Adds a new Gantt-bar to row- Parameters:
bar
- - The gantt bar
-
noOfBars
public int noOfBars()Get the number of gantt bars- Returns:
- The number of bars of the gantt row
-
getFromNum
Get the gantt bar with the index- Parameters:
i
- - The index- Returns:
- The bar if the gantt row
-
printRowInfo
public void printRowInfo()Print the row information -
truncate
Cut off contents to the "right" of time t in the entire row- Parameters:
t
- - The time
-
maximalNonInfiniteEndTime
Find the greatest not infinite end time in the row.- Returns:
- tmp - The greatest end time
-
clone
Make a clone of the gantt row- Overrides:
clone
in classObject
- Returns:
- theClone - The clone of the gantt row
- Throws:
CloneNotSupportedException
-