CloneSet71


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
39220.988class_body_declarations[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14042
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/action/Start.java
23934
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportStart.java
Next
Last
Clone Instance
1
Line Count
40
Source Line
42
Source File
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/action/Start.java

private static final Set commands = new HashSet();

static {
  commands.add(ActionNames.ACTION_START);
  commands.add(ActionNames.ACTION_STOP);
  commands.add(ActionNames.ACTION_SHUTDOWN);
}

private StandardJMeterEngine engine;

/**
 * Constructor for the Start object.
 */
public Start() {
}

/**
 * Gets the ActionNames attribute of the Start object.
 * 
 * @return the ActionNames value
 */
public Set getActionNames() {
  return commands;
}

public void doAction(ActionEvent e) {
  if (e.getActionCommand().equals(ActionNames.ACTION_START)) {
    popupShouldSave(e);
    startEngine();
  }
  else
    if (e.getActionCommand().equals(ActionNames.ACTION_STOP)) {
      if (engine != null) {
        GuiPackage.getInstance().getMainFrame().showStoppingMessage("");
        engine.stopTest();
        engine = null;
      }
    }
    else
      if (e.getActionCommand().equals(ActionNames.ACTION_SHUTDOWN)) {
        if (engine != null) {
          GuiPackage.getInstance().getMainFrame().showStoppingMessage("");
          engine.askThreadsToStop();
          engine = null;
        }
      }
}


First
Previous
Clone Instance
2
Line Count
39
Source Line
34
Source File
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportStart.java

//private static final Logger log = LoggingManager.getLoggerForClass();
private static final Set commands = new HashSet();

static {
  commands.add(ActionNames.ACTION_START);
  commands.add(ActionNames.ACTION_STOP);
  commands.add(ActionNames.ACTION_SHUTDOWN);
}

private StandardJMeterEngine engine;

/**
 * Constructor for the Start object.
 */
public ReportStart() {
}

/**
 * Gets the ActionNames attribute of the Start object.
 * 
 * @return the ActionNames value
 */
public Set getActionNames() {
  return commands;
}

public void doAction(ActionEvent e) {
  if (e.getActionCommand().equals(ActionNames.ACTION_START)) {
    popupShouldSave(e);
    startEngine();
  }
  else
    if (e.getActionCommand().equals(ActionNames.ACTION_STOP)) {
      if (engine != null) {
        ReportGuiPackage.getInstance().getMainFrame().showStoppingMessage("");
        engine.stopTest();
        engine = null;
      }
    }
    else
      if (e.getActionCommand().equals(ActionNames.ACTION_SHUTDOWN)) {
        if (engine != null) {
          ReportGuiPackage.getInstance().getMainFrame().showStoppingMessage("");
          engine.askThreadsToStop();
          engine = null;
        }
      }
}


Clone AbstractionParameter Count: 2Parameter Bindings

//private static final Logger log = LoggingManager.getLoggerForClass();
private static final Set commands = new HashSet();

static {
  commands.add(ActionNames.ACTION_START);
  commands.add(ActionNames.ACTION_STOP);
  commands.add(ActionNames.ACTION_SHUTDOWN);
}

private StandardJMeterEngine engine;

/**
         * Constructor for the Start object.
         */
public [[#variabledfe6960]]() {
}

/**
         * Gets the ActionNames attribute of the Start object.
         * 
         * @return the ActionNames value
         */
public Set getActionNames() {
  return commands;
}

public void doAction(ActionEvent e) {
  if (e.getActionCommand().equals(ActionNames.ACTION_START)) {
    popupShouldSave(e);
    startEngine();
  }
  else
    if (e.getActionCommand().equals(ActionNames.ACTION_STOP)) {
      if (engine != null) {
         [[#variabledfe68e0]].getInstance().getMainFrame().showStoppingMessage("");
        engine.stopTest();
        engine = null;
      }
    }
    else
      if (e.getActionCommand().equals(ActionNames.ACTION_SHUTDOWN)) {
        if (engine != null) {
           [[#variabledfe68e0]].getInstance().getMainFrame().showStoppingMessage("");
          engine.askThreadsToStop();
          engine = null;
        }
      }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#dfe6960]]
Start 
12[[#dfe6960]]
ReportStart 
21[[#dfe68e0]]
GuiPackage 
22[[#dfe68e0]]
ReportGuiPackage