void setScheduler(boolean Scheduler) { setProperty(new BooleanProperty(SCHEDULER, Scheduler)); } /** * Get the Scheduler value. * * @return the Scheduler value. */ public boolean getScheduler() { return getPropertyAsBoolean(SCHEDULER); } /** * Set the StartTime value. * * @param stime - * the StartTime value. */ public void setStartTime(long stime) { setProperty(new LongProperty(START_TIME, stime)); }
void setPerThread(boolean perThread) { setProperty(new BooleanProperty(PERTHREAD, perThread)); } public boolean isPerThread() { return getPropertyAsBoolean(PERTHREAD); } public void setMaxThroughput(int maxThroughput) { setProperty(new IntegerProperty(MAXTHROUGHPUT, maxThroughput)); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/threads/ThreadGroup.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/ThroughputController.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setScheduler(boolean Scheduler) {
1
void setPerThread(boolean perThread) {
2
		setProperty(new BooleanProperty(SCHEDULER, Scheduler));
2
		setProperty(new BooleanProperty(
3
	}
4
	/**
5
	 * Get the Scheduler value.
6
	 * 
7
	 * @return the Scheduler value.
8
	 */
3
PERTHREAD, perThread));
4
	}
9
	public boolean getScheduler() {
5
	public boolean isPerThread() {
10
		return getPropertyAsBoolean(SCHEDULER);
6
		return getPropertyAsBoolean(PERTHREAD);
11
	}
7
	}
12
	/**
8
	
13
	 * Set the StartTime value.
14
	 * 
15
	 * @param stime -
16
	 *            the StartTime value.
17
	 */
18
	public void setStartTime(long stime) {
9
public void setMaxThroughput(int maxThroughput) {
19
		setProperty(new LongProperty(START_TIME, stime));
10
		setProperty(new IntegerProperty(MAXTHROUGHPUT, maxThroughput));
20
	}
11
	}
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0