CloneSet189


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
29230.986class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
129517
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/gantt/TaskSeriesCollection.java
229557
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/gantt/TaskSeriesCollection.java
Next
Last
Clone Instance
1
Line Count
29
Source Line
517
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/gantt/TaskSeriesCollection.java

/**
 * Returns the start value of a sub-interval for a given item.
 *
 * @param rowKey  the row key.
 * @param columnKey  the column key.
 * @param subinterval  the subinterval.
 *
 * @return The start value (possibly <code>null</code>).
 */
public Number getStartValue(Comparable rowKey, Comparable columnKey, int subinterval) {
  Number result = null;
  int row = getRowIndex(rowKey);
  TaskSeries series = (TaskSeries) this.data.get(row);
  Task task = series.get(columnKey.toString());
  if (task != null) {
    Task sub = task.getSubtask(subinterval);
    if (sub != null) {
      TimePeriod duration = sub.getDuration();
      result = new Long(duration.getStart().getTime());
    }
  }
  return result;
}

/**
 * Returns the end value of a sub-interval for a given item.
 *
 * @param row  the row index (zero-based).
 * @param column  the column index (zero-based).
 * @param subinterval  the subinterval.
 *
 * @return The end value (possibly <code>null</code>).
 */
public Number getEndValue(int row, int column, int subinterval) {
  Comparable rowKey = getRowKey(row);
  Comparable columnKey = getColumnKey(column);
  return getEndValue(rowKey, columnKey, subinterval);
}


First
Previous
Clone Instance
2
Line Count
29
Source Line
557
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/gantt/TaskSeriesCollection.java

/**
 * Returns the end value of a sub-interval for a given item.
 *
 * @param rowKey  the row key.
 * @param columnKey  the column key.
 * @param subinterval  the subinterval.
 *
 * @return The end value (possibly <code>null</code>).
 */
public Number getEndValue(Comparable rowKey, Comparable columnKey, int subinterval) {
  Number result = null;
  int row = getRowIndex(rowKey);
  TaskSeries series = (TaskSeries) this.data.get(row);
  Task task = series.get(columnKey.toString());
  if (task != null) {
    Task sub = task.getSubtask(subinterval);
    if (sub != null) {
      TimePeriod duration = sub.getDuration();
      result = new Long(duration.getEnd().getTime());
    }
  }
  return result;
}

/**
 * Returns the percentage complete value of a sub-interval for a given item.
 *
 * @param row  the row index (zero-based).
 * @param column  the column index (zero-based).
 * @param subinterval  the sub-interval.
 *
 * @return The percent complete value (possibly <code>null</code>).
 */
public Number getPercentComplete(int row, int column, int subinterval) {
  Comparable rowKey = getRowKey(row);
  Comparable columnKey = getColumnKey(column);
  return getPercentComplete(rowKey, columnKey, subinterval);
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
     * Returns the start value of a sub-interval for a given item.
     *
     * @param rowKey  the row key.
     * @param columnKey  the column key.
     * @param subinterval  the subinterval.
     *
     * @return The start value (possibly <code>null</code>).
     */
/**
     * Returns the end value of a sub-interval for a given item.
     *
     * @param rowKey  the row key.
     * @param columnKey  the column key.
     * @param subinterval  the subinterval.
     *
     * @return The end value (possibly <code>null</code>).
     */
public Number  [[#variable1aaf57e0]](Comparable rowKey, Comparable columnKey, int subinterval) {
  Number result = null;
  int row = getRowIndex(rowKey);
  TaskSeries series = (TaskSeries) this.data.get(row);
  Task task = series.get(columnKey.toString());
  if (task != null) {
    Task sub = task.getSubtask(subinterval);
    if (sub != null) {
      TimePeriod duration = sub.getDuration();
      result = new Long(duration. [[#variable1aaf5720]]().getTime());
    }
  }
  return result;
}

/**
     * Returns the end value of a sub-interval for a given item.
     *
     * @param row  the row index (zero-based).
     * @param column  the column index (zero-based).
     * @param subinterval  the subinterval.
     *
     * @return The end value (possibly <code>null</code>).
     */
/**
     * Returns the percentage complete value of a sub-interval for a given item.
     *
     * @param row  the row index (zero-based).
     * @param column  the column index (zero-based).
     * @param subinterval  the sub-interval.
     *
     * @return The percent complete value (possibly <code>null</code>).
     */
public Number  [[#variable1aaf5680]](int row, int column, int subinterval) {
  Comparable rowKey = getRowKey(row);
  Comparable columnKey = getColumnKey(column);
  return [[#variable1aaf5680]](rowKey, columnKey, subinterval);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1aaf57e0]]
getStartValue 
12[[#1aaf57e0]]
getEndValue 
21[[#1aaf5720]]
getStart 
22[[#1aaf5720]]
getEnd 
31[[#1aaf5680]]
getEndValue 
32[[#1aaf5680]]
getPercentComplete