Revision 317:c8cfdb17cd2f

View differences:

misc/eclipse/GenerateRTInstance.launch
8 8
</listAttribute>
9 9
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.m2e.launchconfig.classpathProvider"/>
10 10
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="tt.jointeuclid2ni.probleminstance.generator.GenerateRTInstance"/>
11
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-env map/d-environments/ubremen-r27-docks.xml -nagents 2 -ngoals 2 -radius 25 -seed 1 -showvis -verbose -outfile map/temp/temp.xml"/>
11
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-env map/d-environments/ubremen-r27-docks.xml -nagents 20 -ngoals 5 -radius 25 -seed 1 -maxspeed 0.05 -showvis -verbose -outfile map/temp/temp.xml"/>
12 12
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="deconflictiontools"/>
13 13
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.m2e.launchconfig.sourcepathProvider"/>
14 14
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:deconflictiontools}"/>
src/main/java/tt/jointeuclid2ni/probleminstance/generator/GenerateRTInstance.java
29 29

  
30 30
public class GenerateRTInstance {
31 31

  
32
	private static final int MAXTIME = 2000;
33
	private static final int FIRSTTASK = 1000;
32
	private static final int FIRSTTASK = 5000;
34 33

  
35 34
	public static TrajectoryCoordinationProblem generateInstance(
36 35
			String environmentFile, int nAgents, int radius, float maxSpeed, int nEndpoints, int seed) throws ProblemNotCreatedException {
......
61 60
		}
62 61
		
63 62
		// the final checkpoints are the same as the starting checkpoints
64
		checkpoints[nEndpoints-1] = checkpoints[0];
65
		
63
		for (int i = 0; i < checkpoints[0].length; i++) {
64
			checkpoints[nEndpoints-1][i] = new tt.euclidtime3i.Point(checkpoints[0][i].getPosition(), FIRSTTASK);
65
		}
66 66
		
67 67
		int[] bodyRadiuses = new int[nAgents];
68 68
		Arrays.fill(bodyRadiuses, radius);

Also available in: Unified diff