File: Args.java

package info (click to toggle)
mkgmap-splitter 0.0.0%2Bsvn592-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,276 kB
  • sloc: java: 13,186; xml: 1,674; sh: 35; makefile: 17
file content (78 lines) | stat: -rw-r--r-- 2,452 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
 * Copyright (C) 2017
 * 
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License version 2 as
 *  published by the Free Software Foundation.
 * 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 * 
 * Author: Gerd Petermann
 * Create date: 2017-01-10
 */
package func.lib;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Useful constants that are used for arguments etc. in the functional
 * tests.
 *
 * @author Gerd Petermann
 */
public interface Args {
	public static final String TEST_RESOURCE_OSM = "test/resources/in/osm/";

	public static final String DEF_TEMPLATE = "template.args";
	public static final String DEF_DENSITIES = "densities-out.txt";
	public static final String DEF_AREAS_KML = "areas.kml";
	public static final String DEF_AREAS_LIST = "areas.list";
	public static final String DEF_AREAS_POLY = "areas.poly";
	public static final String DEF_PROBLEM_LIST = "problem.list";
	
	public static final String[] MAIN_ARGS = { "--status-freq=0", 
			"--write-kml=" + DEF_AREAS_KML,
			"--problem-report=" + DEF_PROBLEM_LIST,
			"--max-nodes=500000", 
			};
	
	public static final String ALASKA = TEST_RESOURCE_OSM + "alaska-2016-12-27.osm.pbf";
	public static final String HAMBURG = TEST_RESOURCE_OSM + "hamburg-2016-12-26.osm.pbf";

	/** expected summed line sizes for ALASKA file */
	public static final Map<String, Integer> expectedAlaska = new LinkedHashMap<String, Integer>() {
		{
			put(DEF_AREAS_KML, 5158);
			put(DEF_AREAS_LIST, 1076);
			put(DEF_AREAS_POLY, 371);
			put(DEF_DENSITIES, 769055);
			put(DEF_PROBLEM_LIST, 12157);
			put(DEF_TEMPLATE, 930);
		}
	};

	/** expected summed line sizes for ALASKA file */
	public static final Map<String, Integer> expectedAlaskaOverlap = new LinkedHashMap<String, Integer>() {
		{
			putAll(expectedAlaska);
			remove(DEF_PROBLEM_LIST);
		}
	};

	/** expected summed line sizes for HAMBURG file */
	public static final Map<String, Integer> expectedHamburg = new LinkedHashMap<String, Integer>() {
		{
			put(DEF_AREAS_KML, 3143);
			put(DEF_AREAS_LIST, 616);
			put(DEF_AREAS_POLY, 204);
			put(DEF_DENSITIES, 2157);
			put(DEF_PROBLEM_LIST, 51017);
			put(DEF_TEMPLATE, 662);
		}
	};
}