From e366350a507afed0ea392f81a2d4b3a6d3fd66d2 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Thu, 12 Jul 2012 10:04:00 +0200 Subject: [PATCH] started a FREG HTML importer for 505 worlds in La Rochelle --- .../.classpath | 8 ++ .../.project | 28 ++++++ .../.settings/org.eclipse.jdt.core.prefs | 7 ++ .../.settings/org.eclipse.pde.core.prefs | 3 + .../META-INF/MANIFEST.MF | 11 +++ .../bin/freg_html_export_sample.html | 23 +++++ .../build.properties | 6 ++ .../resources/freg_html_export_sample.html | 23 +++++ .../freg/resultimport/test/Activator.java | 30 ++++++ .../.classpath | 7 ++ .../.project | 28 ++++++ .../.settings/org.eclipse.jdt.core.prefs | 7 ++ .../.settings/org.eclipse.pde.core.prefs | 3 + .../META-INF/MANIFEST.MF | 12 +++ .../build.properties | 4 + .../sailing/freg/resultimport/Activator.java | 35 +++++++ .../impl/RegattaScoreCorrectionsImpl.java | 49 ++++++++++ ...coreCorrectionForCompetitorInRaceImpl.java | 76 +++++++++++++++ .../impl/ScoreCorrectionForRaceImpl.java | 46 +++++++++ .../impl/ScoreCorrectionProviderImpl.java | 96 +++++++++++++++++++ 20 files changed, 502 insertions(+) create mode 100755 java/com.sap.sailing.freg.resultimport.test/.classpath create mode 100755 java/com.sap.sailing.freg.resultimport.test/.project create mode 100755 java/com.sap.sailing.freg.resultimport.test/.settings/org.eclipse.jdt.core.prefs create mode 100755 java/com.sap.sailing.freg.resultimport.test/.settings/org.eclipse.pde.core.prefs create mode 100755 java/com.sap.sailing.freg.resultimport.test/META-INF/MANIFEST.MF create mode 100755 java/com.sap.sailing.freg.resultimport.test/bin/freg_html_export_sample.html create mode 100755 java/com.sap.sailing.freg.resultimport.test/build.properties create mode 100755 java/com.sap.sailing.freg.resultimport.test/resources/freg_html_export_sample.html create mode 100755 java/com.sap.sailing.freg.resultimport.test/src/com/sap/sailing/freg/resultimport/test/Activator.java create mode 100755 java/com.sap.sailing.freg.resultimport/.classpath create mode 100755 java/com.sap.sailing.freg.resultimport/.project create mode 100755 java/com.sap.sailing.freg.resultimport/.settings/org.eclipse.jdt.core.prefs create mode 100755 java/com.sap.sailing.freg.resultimport/.settings/org.eclipse.pde.core.prefs create mode 100755 java/com.sap.sailing.freg.resultimport/META-INF/MANIFEST.MF create mode 100755 java/com.sap.sailing.freg.resultimport/build.properties create mode 100755 java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/Activator.java create mode 100755 java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/impl/RegattaScoreCorrectionsImpl.java create mode 100755 java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/impl/ScoreCorrectionForCompetitorInRaceImpl.java create mode 100755 java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/impl/ScoreCorrectionForRaceImpl.java create mode 100755 java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/impl/ScoreCorrectionProviderImpl.java diff --git a/java/com.sap.sailing.freg.resultimport.test/.classpath b/java/com.sap.sailing.freg.resultimport.test/.classpath new file mode 100755 index 00000000000..1228533181d --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport.test/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/java/com.sap.sailing.freg.resultimport.test/.project b/java/com.sap.sailing.freg.resultimport.test/.project new file mode 100755 index 00000000000..9a5e17b087d --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport.test/.project @@ -0,0 +1,28 @@ + + + com.sap.sailing.freg.resultimport.test + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/java/com.sap.sailing.freg.resultimport.test/.settings/org.eclipse.jdt.core.prefs b/java/com.sap.sailing.freg.resultimport.test/.settings/org.eclipse.jdt.core.prefs new file mode 100755 index 00000000000..11f6e462df7 --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport.test/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/java/com.sap.sailing.freg.resultimport.test/.settings/org.eclipse.pde.core.prefs b/java/com.sap.sailing.freg.resultimport.test/.settings/org.eclipse.pde.core.prefs new file mode 100755 index 00000000000..b7e72d019c2 --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport.test/.settings/org.eclipse.pde.core.prefs @@ -0,0 +1,3 @@ +eclipse.preferences.version=1 +pluginProject.extensions=false +resolve.requirebundle=false diff --git a/java/com.sap.sailing.freg.resultimport.test/META-INF/MANIFEST.MF b/java/com.sap.sailing.freg.resultimport.test/META-INF/MANIFEST.MF new file mode 100755 index 00000000000..db589bdaeec --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport.test/META-INF/MANIFEST.MF @@ -0,0 +1,11 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Test +Bundle-SymbolicName: com.sap.sailing.freg.resultimport.test +Bundle-Version: 1.0.0.qualifier +Bundle-Activator: com.sap.sailing.freg.resultimport.test.Activator +Bundle-Vendor: SAP +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Import-Package: org.osgi.framework;version="1.3.0" +Bundle-ActivationPolicy: lazy +Require-Bundle: com.sap.sailing.freg.resultimport diff --git a/java/com.sap.sailing.freg.resultimport.test/bin/freg_html_export_sample.html b/java/com.sap.sailing.freg.resultimport.test/bin/freg_html_export_sample.html new file mode 100755 index 00000000000..fb2a907ad4e --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport.test/bin/freg_html_export_sample.html @@ -0,0 +1,23 @@ + + +Coupe Nationale 5O5 + + + + + + +

Coupe Nationale 5O5

Societe des Regates Rochelaises
08/07/2011 au 11/07/2011

Résultat du Lundi 11 Juillet 2011 à 13.30 h.

Groupe COUPE NATIONALE 5O5 après 8 courses (7 retenues) (75 inscrits) +
+ +
+
(Cliquez sur les noms soulignés pour accéder à la fiche du coureur)

RgsIdentConcurrentsP RetP totc.1c.2c.3c.4c.5c.6c.7c.8Club / Pays
1

GER 9070

BOGACKI Morten
 JESS Holger 

9.00 12.003
3.00
1
1.00
1
1.00
1
1.00
1
1.00
1
1.00
3
3.00
1
1.00

KYC/DYC

2

AUS 9036

QUIRK Michael
 REFFOLD Simon 

20.00 44.002
2.00
3
3.00
3
3.00
24
24.00
4
4.00
2
2.00
2
2.00
4
4.00

RPEYC

3

FRA 9067

LOYAL Bertrand
 NEVO Laurent 

27.00 41.004
4.00
2
2.00
14
14.00
2
2.00
5
5.00
4
4.00
7
7.00
3
3.00

C N MESCHERS
S R ROCHELAISES

4

GBR 9032

PINNELL Ian
 PUINELL Ian 

44.00 58.001
1.00
4
4.00
7
7.00
8
8.00
3
3.00
14
14.00
14
14.00
7
7.00

HISC

5

FRA 8902

BOITE Philippe
 THOMAS Benjamin 

52.00 67.0012
12.00
5
5.00
6
6.00
9
9.00
9
9.00
5
5.00
6
6.00
15
15.00

C V ST QUENTIN
S R HAVRE

6

SUI 8543

BART Cedric
 GROB Laurent 

55.00 74.0010
10.00
6
6.00
2
2.00
19
19.00
10
10.00
12
12.00
5
5.00
10
10.00

CNB

7

GBR 9012

SMITH Andy
 NEEDHAM Tim 

60.00 80.005
5.00
8
8.00
20
20.00
18
18.00
8
8.00
3
3.00
1
1.00
17
17.00

NOTTS COUNTY SC

8

GER 8975

HOLZAPFEL Alexander
 WORM Stefan 

60.00 74.0011
11.00
7
7.00
9
9.00
5
5.00
13
13.00
7
7.00
8
8.00
14
14.00

ALLEMAGNE

9

GBR 9057

LEWNS Chris
 PARSONS Oan 

64.00 140.009
9.00
9
9.00
10
10.00
4
4.00
14
14.00
9
9.00
9
9.00
DNF
76.00

WHITSTABLE

10

DEN 8958

HOFFMANNBUHL Nikolas
 BUHL Henrik 

72.00 102.007
7.00
DPI
30.00
5
5.00
13
13.00
7
7.00
8
8.00
24
24.00
8
8.00

STETTEN BACHKLUB

11

SUI 8569

DETSCHEN Rene
 HOLLINGER Lionel 

74.00 94.006
6.00
16
16.00
19
19.00
20
20.00
6
6.00
6
6.00
10
10.00
11
11.00

CNB

12

FRA 8900

GUBRI Serge
 DI PEDE Thibault 

96.00 125.0018
18.00
13
13.00
4
4.00
7
7.00
26
26.00
29
29.00
19
19.00
9
9.00

C V SEINE-PORT
C V SEINE-PORT

13

GBR 8935

RUS 
 LAFORTUNE Geraud 

97.00 116.0015
15.00
12
12.00
16
16.00
14
14.00
12
12.00
15
15.00
13
13.00
19
19.00

GRANDE-BRETAGNE
C V SEINE-PORT

14

FRA 8752

MARTIN Nicolas
 LAFORTUNE Julien 

98.00 132.0034
34.00
17
17.00
8
8.00
3
3.00
23
23.00
24
24.00
21
21.00
2
2.00

C V SEINE-PORT
C V SEINE-PORT

15

FRA 8515

CROCE Nicolas
 FAUCHEUX Florian 

98.00 124.0014
14.00
11
11.00
22
22.00
17
17.00
11
11.00
11
11.00
12
12.00
26
26.00

C N CANET PERPIGNAN
C N CANET PERPIGNAN

16

SUI 8954

STAUFFER Florian
 JACOT Philippe 

118.00 194.00DNF
76.00
DNF
76.00
11
11.00
10
10.00
2
2.00
10
10.00
4
4.00
5
5.00

CLUB DE VOILE DE NEUCHATEL

17

FRA 8948

GUILLOU Nicolas
 FEREC Alain 

144.00 220.008
8.00
14
14.00
32
32.00
40
40.00
21
21.00
18
18.00
11
11.00
DNC
76.00

S N P H
S N P H

18

FRA 8870

SILVESTRE Christian
 AUBERGER Nicolas 

144.00 193.0019
19.00
34
34.00
12
12.00
22
22.00
17
17.00
19
19.00
49
49.00
21
21.00

Y C ILE DE FRANCE
Y C Grenoble Chara

19

FRA 9044

DEVAUX Mathieu
 DUBUC Philippe 

146.00 180.0024
24.00
22
22.00
25
25.00
6
6.00
22
22.00
34
34.00
29
29.00
18
18.00

S R FECAMP
S R FECAMP

20

FRA 8869

BOYER Etienne
 BOYER Emmanuel 

147.00 182.0020
20.00
27
27.00
29
29.00
33
33.00
16
16.00
16
16.00
35
35.00
6
6.00

C V BORDEAUX
C V BORDEAUX

21

GBR 8881

DEANE Roger
 TURNER Dave 

147.00 188.0017
17.00
41
41.00
13
13.00
25
25.00
15
15.00
37
37.00
15
15.00
25
25.00

ROCK SC

22

FRA 8716

MARTIN Aline
 TOUPET Fabrice 

150.00 226.00DNF
76.00
10
10.00
15
15.00
11
11.00
19
19.00
28
28.00
51
51.00
16
16.00

C V SEINE-PORT
C V ST QUENTIN

23

GBR 8905

TURNBULL Stuart
 LUNN Jason 

151.00 196.0035
35.00
21
21.00
17
17.00
45
45.00
20
20.00
17
17.00
17
17.00
24
24.00

BURTON SAILING CLUB

24

FRA 8961

VIBERT Marc
 LAPEYRE Bertrand 

163.00 199.0021
21.00
19
19.00
28
28.00
15
15.00
36
36.00
30
30.00
20
20.00
30
30.00

C.V.M.L
S N P H

25

GER 9026

GUY Hubert
 DETAPPE Xavier 

165.00 241.0013
13.00
DPI
38.00
RDG
26.00
RDG
26.00
18
18.00
13
13.00
DNF
76.00
31
31.00

ABYC
A S CHEMINOTS ROCH

26

FRA 8909

DOERENBECHER Francis
 WOLFF Philippe 

170.00 207.0022
22.00
25
25.00
35
35.00
37
37.00
28
28.00
20
20.00
27
27.00
13
13.00

C N DE SCIEZ
AC ALSACE LORRAINE

27

SUI 9060

HOURIET Catherine
 DONZE Gil 

181.00 238.0032
32.00
35
35.00
23
23.00
12
12.00
35
35.00
57
57.00
32
32.00
12
12.00

YCG

28

FRA 8908

FOURCADET Amaury
 FERTIN Vincent 

182.00 215.0030
30.00
28
28.00
18
18.00
32
32.00
33
33.00
25
25.00
22
22.00
27
27.00

BLAYE NAUTIQUE
Y C C

29

FRA 9024

GACHET Claude
 VALERY Kleber 

185.00 221.0036
36.00
20
20.00
21
21.00
16
16.00
29
29.00
35
35.00
31
31.00
33
33.00

Y C Grenoble Chara
Y C Grenoble Chara

30

FRA 9010

LAFORTUNE Baptiste
 CARVALLO Gilles 

188.00 246.0028
28.00
18
18.00
31
31.00
58
58.00
24
24.00
26
26.00
26
26.00
35
35.00

C V SEINE-PORT
C N HAUTE SEINE

31

FRA 9068

DE LISLE Francois
 BRILLAUD Herve 

189.00 234.0045
45.00
26
26.00
44
44.00
29
29.00
27
27.00
22
22.00
18
18.00
23
23.00

C N FERRET
C N FERRET

32

BEL 9066

DE PAUW Geert
 JOURQUIN Koen 

195.00 246.0016
16.00
31
31.00
41
41.00
51
51.00
25
25.00
31
31.00
23
23.00
28
28.00

BELGIQUE

33

GBR 8925

WEDGE Martin
 ALLEN Scott 

209.00 285.0023
23.00
24
24.00
30
30.00
36
36.00
32
32.00
23
23.00
DNF
76.00
41
41.00

RTYC

34

GBR 8749

MILTON Alastair
 MILTON Laurence 

213.00 265.0031
31.00
42
42.00
39
39.00
21
21.00
43
43.00
21
21.00
16
16.00
52
52.00

HELENSBURGH SC

35

FRA 7941

BRENET Veronique
 PETER Jean-pierre 

217.00 293.0025
25.00
30
30.00
DSQ
76.00
23
23.00
37
37.00
40
40.00
42
42.00
20
20.00

AC ALSACE LORRAINE
AC ALSACE LORRAINE

36

FRA 8729

TOSELLO Alain
 NIDDAM Yves 

224.00 269.0029
29.00
29
29.00
38
38.00
41
41.00
30
30.00
45
45.00
28
28.00
29
29.00

LES VOILES D ANTIBES
Y C BEAULIEU

37

FRA 8885

DUPONT Jean baptiste
 ANCELOT Jean claude 

248.00 302.0039
39.00
39
39.00
26
26.00
31
31.00
41
41.00
54
54.00
33
33.00
39
39.00

C .V. de PARIS
S N O NANTES

38

SUI 8614

JACOT Valéry
 BATTAGLIA Corsin 

250.00 326.0050
50.00
DNS
76.00
24
24.00
35
35.00
31
31.00
32
32.00
56
56.00
22
22.00

CERCLE DE VOILE DE NEUCHATEL

39

FRA 8486

VIAUD Pascal
 MICHEL Nicolas 

252.00 308.0026
26.00
33
33.00
46
46.00
56
56.00
40
40.00
33
33.00
36
36.00
38
38.00

S R ROCHELAISES
C V A N NANTES

40

FRA 8427

MONNIER Frederic
 PLATHIER Yann 

255.00 298.0037
37.00
37
37.00
40
40.00
30
30.00
39
39.00
36
36.00
43
43.00
36
36.00

Y C Grenoble Chara
S A LYONNAIS

41

ITA 8671

PIACQUADIO Giacinto
 MESSINA Anrea 

280.00 339.0042
42.00
32
32.00
43
43.00
34
34.00
59
59.00
53
53.00
34
34.00
42
42.00

YACHTING CLUB CERN

42

BEL 9

VANDERSTEN Philippe
 GENNART Genevieve 

295.00 371.0040
40.00
47
47.00
36
36.00
39
39.00
44
44.00
48
48.00
41
41.00
DNC
76.00

SNEH

43

FRA 8567

COULMIN Pierre-jerome
 PETER Vincent 

298.00 374.0047
47.00
45
45.00
58
58.00
62
62.00
34
34.00
27
27.00
25
25.00
DNF
76.00

WIND 14
WIND 14

44

FRA 8565

DUMAS Bruno
 DAVID Michel 

301.00 377.0048
48.00
36
36.00
27
27.00
27
27.00
48
48.00
39
39.00
DNF
76.00
DNC
76.00

C V ARCACHON
C V ARCACHON

45

FRA 8800

LAFORTUNE Claude
 LAFORTUNE Adrien 

301.00 350.0049
49.00
46
46.00
33
33.00
43
43.00
47
47.00
49
49.00
39
39.00
44
44.00

C V SEINE-PORT
C V SEINE-PORT

46

FRA 8899

KARADJIAN Alain
 LAFORTUNE Jordane 

308.00 384.0041
41.00
38
38.00
45
45.00
38
38.00
64
64.00
50
50.00
DNF
76.00
32
32.00

C V ST QUENTIN
C V SEINE-PORT

47

FRA 8695

PUISSANT Jean-guy
 LE GUEN Bernard 

308.00 384.0061
61.00
44
44.00
34
34.00
42
42.00
42
42.00
47
47.00
38
38.00
DNC
76.00

CV LAC 3 PROVINCES
DAUPHINS WIND JOCON.

48

FRA 8

DAGUZAN Thierry
 POIRIER Arnaud 

317.00 382.0033
33.00
54
54.00
63
63.00
65
65.00
38
38.00
41
41.00
40
40.00
48
48.00

S R ROCHELAISES
EV ROCHELAISE

49

FRA 8699

DUCROS Jean philippe
 VICTOR Antoine 

333.00 394.0038
38.00
49
49.00
61
61.00
48
48.00
51
51.00
51
51.00
50
50.00
46
46.00

C.V.M.L
C.V.M.L

50

FRA 9050

VASSOR Eric
 CHENE Pierre yves 

342.00 418.0054
54.00
51
51.00
62
62.00
55
55.00
46
46.00
44
44.00
30
30.00
DNF
76.00

USAM VOILE
USAM VOILE

51

FRA 8711

MAUPAY Jerome
 CAMINADE Francois 

342.00 396.0046
46.00
43
43.00
52
52.00
50
50.00
52
52.00
52
52.00
54
54.00
47
47.00

Y C Grenoble Chara
Y C Grenoble Chara

52

FRA 8980

BOIRY Michel
 HUBERT Jean-baptiste 

347.00 409.0062
62.00
48
48.00
42
42.00
47
47.00
62
62.00
55
55.00
53
53.00
40
40.00

C .V. de PARIS
C V SEINE-PORT

53

FRA 8187

GRACIES Bruno
 THIBAUD Cyril 

352.00 428.00DNF
76.00
40
40.00
54
54.00
44
44.00
49
49.00
46
46.00
DNF
76.00
43
43.00

EV ROCHELAISE
G S LA ROCHELLE

54

FRA 8773

CONVERSY Gael
 FERROIS Melissa 

362.00 418.0055
55.00
55
55.00
48
48.00
54
54.00
55
55.00
56
56.00
46
46.00
49
49.00

Y C BEAULIEU
YC POINTE ROUGE

55

GBR 8907

BERRY Jim
 BARNES David 

375.00 451.0027
27.00
DNF
76.00
47
47.00
57
57.00
54
54.00
38
38.00
DNF
76.00
DNF
76.00

GRANDE-BRETAGNE

56

FRA 8949

JEAN Jeremy
 DUQUESNE Philippe 

380.00 456.00DNF
76.00
DNS
76.00
37
37.00
28
28.00
68
68.00
58
58.00
DNS
76.00
37
37.00

S N O NANTES
S N O NANTES

57

FRA 8704

NEIDHART Elisabeth
 GOUGEON Matthieu 

381.00 457.0044
44.00
DNF
76.00
49
49.00
26
26.00
DNF
76.00
DNS
76.00
DNF
76.00
34
34.00

C.V.M.L
C.V.M.L

58

FRA 8623

DAUGEY Gerard
 ROUANNE Dominique 

396.00 472.00DNF
76.00
DNS
76.00
56
56.00
52
52.00
DNF
76.00
43
43.00
48
48.00
45
45.00

C.V.M.L
Y C CAVALAIRE

59

FRA 8826

DEBRY Tristan
 DEBRY Alain 

407.00 483.0052
52.00
DNF
76.00
51
51.00
61
61.00
60
60.00
60
60.00
47
47.00
DNF
76.00

Y.C.DINARD
Y.C.DINARD

60

FRA 8431

DECHAUFFOUR Jacques
 DECHAUFFOUR Sabine 

417.00 493.0058
58.00
53
53.00
66
66.00
63
63.00
65
65.00
68
68.00
44
44.00
DNF
76.00

S N O NANTES
S N O NANTES

61

FRA 8366

PICOU Dominique
 BOUTON Fabrice 

421.00 497.00DNF
76.00
DNS
76.00
68
68.00
69
69.00
53
53.00
42
42.00
37
37.00
DNC
76.00

S R ROCHELAISES
S R ROCHELAISES

62

FRA 9033

HUE Patrice
 HUE Pierre francois 

426.00 502.0059
59.00
DNF
76.00
50
50.00
53
53.00
50
50.00
62
62.00
DNS
76.00
DNF
76.00

C V ANGERS
S N P H

63

FRA 8880

MOUCLIER Emmanuel
 THIBERGE Olivier 

428.00 504.0057
57.00
50
50.00
69
69.00
70
70.00
61
61.00
DNF
76.00
45
45.00
DNF
76.00

C.V.M.L
C .V. de PARIS

64

GER 8052

FEVERHAKE Jurgen
 NEHRENBERG Anne 

435.00 511.0056
56.00
52
52.00
55
55.00
66
66.00
66
66.00
64
64.00
DNF
76.00
DNF
76.00

YCSB

65

FRA 8748

CARVALLO Samuel
 RAULY Sebastien 

441.00 517.0051
51.00
DPI
71.00
70
70.00
73
73.00
58
58.00
66
66.00
52
52.00
DNF
76.00

C N HAUTE SEINE
C N HAUTE SEINE

66

FRA 8564

MENDES Jose
 LOZOUET Jean-paul 

453.00 529.00DNF
76.00
DNS
76.00
65
65.00
49
49.00
70
70.00
67
67.00
DNF
76.00
50
50.00

C.V.M.L
C .V. de PARIS

67

FRA 8362

MAGRET Olivier
 GLADE Mathieu 

460.00 536.0053
53.00
DNF
76.00
57
57.00
46
46.00
DNF
76.00
DNF
76.00
DNS
76.00
DNC
76.00

C N T LACYDON
S N DE SANARY

68

FRA 8705

VOCANSON Luc
 MUNIGLIA Thierry 

461.00 537.0043
43.00
DNF
76.00
53
53.00
68
68.00
69
69.00
DNF
76.00
DNS
76.00
DNF
76.00

C.V.M.L
C.V.M.L

69

FRA 9019

LEHMANN Robert
 EDEL Bernard 

469.00 545.00DNF
76.00
DNS
76.00
59
59.00
60
60.00
57
57.00
65
65.00
DNS
76.00
DNF
76.00

AC ALSACE LORRAINE
AC ALSACE LORRAINE

70

FRA 8676

DECHAUFFOUR Valentin
 GENDRY Pierre 

469.00 545.00DNC
76.00
DNF
76.00
60
60.00
59
59.00
63
63.00
59
59.00
DNF
76.00
DNF
76.00

S N O NANTES
S N O NANTES

71

FRA 898

NOURAUD Daniel
 FINOT Thibault 

475.00 551.0060
60.00
DNS
76.00
64
64.00
67
67.00
56
56.00
DNF
76.00
DNS
76.00
DNF
76.00

S R ROCHELAISES
S N O NANTES

72

FRA 8401

RENOUX Alain
 LAMARQUE Frederic 

479.00 555.00DNF
76.00
DNF
76.00
71
71.00
71
71.00
71
71.00
63
63.00
DNS
76.00
51
51.00

C V ANGOULEME
V LACANAU GUYENNE

73

FRA 8541

BARON Jean
 DUBERNET Louis 

492.00 568.00DNF
76.00
DNF
76.00
67
67.00
DPI
76.00
45
45.00
DNF
76.00
DNS
76.00
DNF
76.00

U N P CAP BRETON
U N P CAP BRETON

74

FRA 8717

PUGET Mathieu
 LACOTTE Nicolas 

500.00 576.00DNF
76.00
DNC
76.00
DNF
76.00
DNF
76.00
72
72.00
69
69.00
55
55.00
DNF
76.00

USAM VOILE
USAM VOILE

75

NED 8287

KALF Mark
 KALF Mak 

500.00 576.00DNF
76.00
DNS
76.00
72
72.00
72
72.00
67
67.00
61
61.00
DNF
76.00
DNC
76.00

HOLLANDE

Pénalités et réparations : 92 (9 DNC; 59 DNF; 17 DNS; 4 DPI; 1 DSQ; 2 RDG; )
[Retour début de page] +

LORBER Yves
Président du Comité de Course

DESFORGES Roland
Président du Jury


Produit le 11/07/2011 par DESFORGES Roland et logiciel FReg2011 (vers. 15/06/2011) FFVoile © 2001/2010
\ No newline at end of file diff --git a/java/com.sap.sailing.freg.resultimport.test/build.properties b/java/com.sap.sailing.freg.resultimport.test/build.properties new file mode 100755 index 00000000000..cdee7d622e8 --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport.test/build.properties @@ -0,0 +1,6 @@ +source.. = src/,\ + resources/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + resources/ diff --git a/java/com.sap.sailing.freg.resultimport.test/resources/freg_html_export_sample.html b/java/com.sap.sailing.freg.resultimport.test/resources/freg_html_export_sample.html new file mode 100755 index 00000000000..fb2a907ad4e --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport.test/resources/freg_html_export_sample.html @@ -0,0 +1,23 @@ + + +Coupe Nationale 5O5 + + + + + + +

Coupe Nationale 5O5

Societe des Regates Rochelaises
08/07/2011 au 11/07/2011

Résultat du Lundi 11 Juillet 2011 à 13.30 h.

Groupe COUPE NATIONALE 5O5 après 8 courses (7 retenues) (75 inscrits) +
+ +
+
(Cliquez sur les noms soulignés pour accéder à la fiche du coureur)

RgsIdentConcurrentsP RetP totc.1c.2c.3c.4c.5c.6c.7c.8Club / Pays
1

GER 9070

BOGACKI Morten
 JESS Holger 

9.00 12.003
3.00
1
1.00
1
1.00
1
1.00
1
1.00
1
1.00
3
3.00
1
1.00

KYC/DYC

2

AUS 9036

QUIRK Michael
 REFFOLD Simon 

20.00 44.002
2.00
3
3.00
3
3.00
24
24.00
4
4.00
2
2.00
2
2.00
4
4.00

RPEYC

3

FRA 9067

LOYAL Bertrand
 NEVO Laurent 

27.00 41.004
4.00
2
2.00
14
14.00
2
2.00
5
5.00
4
4.00
7
7.00
3
3.00

C N MESCHERS
S R ROCHELAISES

4

GBR 9032

PINNELL Ian
 PUINELL Ian 

44.00 58.001
1.00
4
4.00
7
7.00
8
8.00
3
3.00
14
14.00
14
14.00
7
7.00

HISC

5

FRA 8902

BOITE Philippe
 THOMAS Benjamin 

52.00 67.0012
12.00
5
5.00
6
6.00
9
9.00
9
9.00
5
5.00
6
6.00
15
15.00

C V ST QUENTIN
S R HAVRE

6

SUI 8543

BART Cedric
 GROB Laurent 

55.00 74.0010
10.00
6
6.00
2
2.00
19
19.00
10
10.00
12
12.00
5
5.00
10
10.00

CNB

7

GBR 9012

SMITH Andy
 NEEDHAM Tim 

60.00 80.005
5.00
8
8.00
20
20.00
18
18.00
8
8.00
3
3.00
1
1.00
17
17.00

NOTTS COUNTY SC

8

GER 8975

HOLZAPFEL Alexander
 WORM Stefan 

60.00 74.0011
11.00
7
7.00
9
9.00
5
5.00
13
13.00
7
7.00
8
8.00
14
14.00

ALLEMAGNE

9

GBR 9057

LEWNS Chris
 PARSONS Oan 

64.00 140.009
9.00
9
9.00
10
10.00
4
4.00
14
14.00
9
9.00
9
9.00
DNF
76.00

WHITSTABLE

10

DEN 8958

HOFFMANNBUHL Nikolas
 BUHL Henrik 

72.00 102.007
7.00
DPI
30.00
5
5.00
13
13.00
7
7.00
8
8.00
24
24.00
8
8.00

STETTEN BACHKLUB

11

SUI 8569

DETSCHEN Rene
 HOLLINGER Lionel 

74.00 94.006
6.00
16
16.00
19
19.00
20
20.00
6
6.00
6
6.00
10
10.00
11
11.00

CNB

12

FRA 8900

GUBRI Serge
 DI PEDE Thibault 

96.00 125.0018
18.00
13
13.00
4
4.00
7
7.00
26
26.00
29
29.00
19
19.00
9
9.00

C V SEINE-PORT
C V SEINE-PORT

13

GBR 8935

RUS 
 LAFORTUNE Geraud 

97.00 116.0015
15.00
12
12.00
16
16.00
14
14.00
12
12.00
15
15.00
13
13.00
19
19.00

GRANDE-BRETAGNE
C V SEINE-PORT

14

FRA 8752

MARTIN Nicolas
 LAFORTUNE Julien 

98.00 132.0034
34.00
17
17.00
8
8.00
3
3.00
23
23.00
24
24.00
21
21.00
2
2.00

C V SEINE-PORT
C V SEINE-PORT

15

FRA 8515

CROCE Nicolas
 FAUCHEUX Florian 

98.00 124.0014
14.00
11
11.00
22
22.00
17
17.00
11
11.00
11
11.00
12
12.00
26
26.00

C N CANET PERPIGNAN
C N CANET PERPIGNAN

16

SUI 8954

STAUFFER Florian
 JACOT Philippe 

118.00 194.00DNF
76.00
DNF
76.00
11
11.00
10
10.00
2
2.00
10
10.00
4
4.00
5
5.00

CLUB DE VOILE DE NEUCHATEL

17

FRA 8948

GUILLOU Nicolas
 FEREC Alain 

144.00 220.008
8.00
14
14.00
32
32.00
40
40.00
21
21.00
18
18.00
11
11.00
DNC
76.00

S N P H
S N P H

18

FRA 8870

SILVESTRE Christian
 AUBERGER Nicolas 

144.00 193.0019
19.00
34
34.00
12
12.00
22
22.00
17
17.00
19
19.00
49
49.00
21
21.00

Y C ILE DE FRANCE
Y C Grenoble Chara

19

FRA 9044

DEVAUX Mathieu
 DUBUC Philippe 

146.00 180.0024
24.00
22
22.00
25
25.00
6
6.00
22
22.00
34
34.00
29
29.00
18
18.00

S R FECAMP
S R FECAMP

20

FRA 8869

BOYER Etienne
 BOYER Emmanuel 

147.00 182.0020
20.00
27
27.00
29
29.00
33
33.00
16
16.00
16
16.00
35
35.00
6
6.00

C V BORDEAUX
C V BORDEAUX

21

GBR 8881

DEANE Roger
 TURNER Dave 

147.00 188.0017
17.00
41
41.00
13
13.00
25
25.00
15
15.00
37
37.00
15
15.00
25
25.00

ROCK SC

22

FRA 8716

MARTIN Aline
 TOUPET Fabrice 

150.00 226.00DNF
76.00
10
10.00
15
15.00
11
11.00
19
19.00
28
28.00
51
51.00
16
16.00

C V SEINE-PORT
C V ST QUENTIN

23

GBR 8905

TURNBULL Stuart
 LUNN Jason 

151.00 196.0035
35.00
21
21.00
17
17.00
45
45.00
20
20.00
17
17.00
17
17.00
24
24.00

BURTON SAILING CLUB

24

FRA 8961

VIBERT Marc
 LAPEYRE Bertrand 

163.00 199.0021
21.00
19
19.00
28
28.00
15
15.00
36
36.00
30
30.00
20
20.00
30
30.00

C.V.M.L
S N P H

25

GER 9026

GUY Hubert
 DETAPPE Xavier 

165.00 241.0013
13.00
DPI
38.00
RDG
26.00
RDG
26.00
18
18.00
13
13.00
DNF
76.00
31
31.00

ABYC
A S CHEMINOTS ROCH

26

FRA 8909

DOERENBECHER Francis
 WOLFF Philippe 

170.00 207.0022
22.00
25
25.00
35
35.00
37
37.00
28
28.00
20
20.00
27
27.00
13
13.00

C N DE SCIEZ
AC ALSACE LORRAINE

27

SUI 9060

HOURIET Catherine
 DONZE Gil 

181.00 238.0032
32.00
35
35.00
23
23.00
12
12.00
35
35.00
57
57.00
32
32.00
12
12.00

YCG

28

FRA 8908

FOURCADET Amaury
 FERTIN Vincent 

182.00 215.0030
30.00
28
28.00
18
18.00
32
32.00
33
33.00
25
25.00
22
22.00
27
27.00

BLAYE NAUTIQUE
Y C C

29

FRA 9024

GACHET Claude
 VALERY Kleber 

185.00 221.0036
36.00
20
20.00
21
21.00
16
16.00
29
29.00
35
35.00
31
31.00
33
33.00

Y C Grenoble Chara
Y C Grenoble Chara

30

FRA 9010

LAFORTUNE Baptiste
 CARVALLO Gilles 

188.00 246.0028
28.00
18
18.00
31
31.00
58
58.00
24
24.00
26
26.00
26
26.00
35
35.00

C V SEINE-PORT
C N HAUTE SEINE

31

FRA 9068

DE LISLE Francois
 BRILLAUD Herve 

189.00 234.0045
45.00
26
26.00
44
44.00
29
29.00
27
27.00
22
22.00
18
18.00
23
23.00

C N FERRET
C N FERRET

32

BEL 9066

DE PAUW Geert
 JOURQUIN Koen 

195.00 246.0016
16.00
31
31.00
41
41.00
51
51.00
25
25.00
31
31.00
23
23.00
28
28.00

BELGIQUE

33

GBR 8925

WEDGE Martin
 ALLEN Scott 

209.00 285.0023
23.00
24
24.00
30
30.00
36
36.00
32
32.00
23
23.00
DNF
76.00
41
41.00

RTYC

34

GBR 8749

MILTON Alastair
 MILTON Laurence 

213.00 265.0031
31.00
42
42.00
39
39.00
21
21.00
43
43.00
21
21.00
16
16.00
52
52.00

HELENSBURGH SC

35

FRA 7941

BRENET Veronique
 PETER Jean-pierre 

217.00 293.0025
25.00
30
30.00
DSQ
76.00
23
23.00
37
37.00
40
40.00
42
42.00
20
20.00

AC ALSACE LORRAINE
AC ALSACE LORRAINE

36

FRA 8729

TOSELLO Alain
 NIDDAM Yves 

224.00 269.0029
29.00
29
29.00
38
38.00
41
41.00
30
30.00
45
45.00
28
28.00
29
29.00

LES VOILES D ANTIBES
Y C BEAULIEU

37

FRA 8885

DUPONT Jean baptiste
 ANCELOT Jean claude 

248.00 302.0039
39.00
39
39.00
26
26.00
31
31.00
41
41.00
54
54.00
33
33.00
39
39.00

C .V. de PARIS
S N O NANTES

38

SUI 8614

JACOT Valéry
 BATTAGLIA Corsin 

250.00 326.0050
50.00
DNS
76.00
24
24.00
35
35.00
31
31.00
32
32.00
56
56.00
22
22.00

CERCLE DE VOILE DE NEUCHATEL

39

FRA 8486

VIAUD Pascal
 MICHEL Nicolas 

252.00 308.0026
26.00
33
33.00
46
46.00
56
56.00
40
40.00
33
33.00
36
36.00
38
38.00

S R ROCHELAISES
C V A N NANTES

40

FRA 8427

MONNIER Frederic
 PLATHIER Yann 

255.00 298.0037
37.00
37
37.00
40
40.00
30
30.00
39
39.00
36
36.00
43
43.00
36
36.00

Y C Grenoble Chara
S A LYONNAIS

41

ITA 8671

PIACQUADIO Giacinto
 MESSINA Anrea 

280.00 339.0042
42.00
32
32.00
43
43.00
34
34.00
59
59.00
53
53.00
34
34.00
42
42.00

YACHTING CLUB CERN

42

BEL 9

VANDERSTEN Philippe
 GENNART Genevieve 

295.00 371.0040
40.00
47
47.00
36
36.00
39
39.00
44
44.00
48
48.00
41
41.00
DNC
76.00

SNEH

43

FRA 8567

COULMIN Pierre-jerome
 PETER Vincent 

298.00 374.0047
47.00
45
45.00
58
58.00
62
62.00
34
34.00
27
27.00
25
25.00
DNF
76.00

WIND 14
WIND 14

44

FRA 8565

DUMAS Bruno
 DAVID Michel 

301.00 377.0048
48.00
36
36.00
27
27.00
27
27.00
48
48.00
39
39.00
DNF
76.00
DNC
76.00

C V ARCACHON
C V ARCACHON

45

FRA 8800

LAFORTUNE Claude
 LAFORTUNE Adrien 

301.00 350.0049
49.00
46
46.00
33
33.00
43
43.00
47
47.00
49
49.00
39
39.00
44
44.00

C V SEINE-PORT
C V SEINE-PORT

46

FRA 8899

KARADJIAN Alain
 LAFORTUNE Jordane 

308.00 384.0041
41.00
38
38.00
45
45.00
38
38.00
64
64.00
50
50.00
DNF
76.00
32
32.00

C V ST QUENTIN
C V SEINE-PORT

47

FRA 8695

PUISSANT Jean-guy
 LE GUEN Bernard 

308.00 384.0061
61.00
44
44.00
34
34.00
42
42.00
42
42.00
47
47.00
38
38.00
DNC
76.00

CV LAC 3 PROVINCES
DAUPHINS WIND JOCON.

48

FRA 8

DAGUZAN Thierry
 POIRIER Arnaud 

317.00 382.0033
33.00
54
54.00
63
63.00
65
65.00
38
38.00
41
41.00
40
40.00
48
48.00

S R ROCHELAISES
EV ROCHELAISE

49

FRA 8699

DUCROS Jean philippe
 VICTOR Antoine 

333.00 394.0038
38.00
49
49.00
61
61.00
48
48.00
51
51.00
51
51.00
50
50.00
46
46.00

C.V.M.L
C.V.M.L

50

FRA 9050

VASSOR Eric
 CHENE Pierre yves 

342.00 418.0054
54.00
51
51.00
62
62.00
55
55.00
46
46.00
44
44.00
30
30.00
DNF
76.00

USAM VOILE
USAM VOILE

51

FRA 8711

MAUPAY Jerome
 CAMINADE Francois 

342.00 396.0046
46.00
43
43.00
52
52.00
50
50.00
52
52.00
52
52.00
54
54.00
47
47.00

Y C Grenoble Chara
Y C Grenoble Chara

52

FRA 8980

BOIRY Michel
 HUBERT Jean-baptiste 

347.00 409.0062
62.00
48
48.00
42
42.00
47
47.00
62
62.00
55
55.00
53
53.00
40
40.00

C .V. de PARIS
C V SEINE-PORT

53

FRA 8187

GRACIES Bruno
 THIBAUD Cyril 

352.00 428.00DNF
76.00
40
40.00
54
54.00
44
44.00
49
49.00
46
46.00
DNF
76.00
43
43.00

EV ROCHELAISE
G S LA ROCHELLE

54

FRA 8773

CONVERSY Gael
 FERROIS Melissa 

362.00 418.0055
55.00
55
55.00
48
48.00
54
54.00
55
55.00
56
56.00
46
46.00
49
49.00

Y C BEAULIEU
YC POINTE ROUGE

55

GBR 8907

BERRY Jim
 BARNES David 

375.00 451.0027
27.00
DNF
76.00
47
47.00
57
57.00
54
54.00
38
38.00
DNF
76.00
DNF
76.00

GRANDE-BRETAGNE

56

FRA 8949

JEAN Jeremy
 DUQUESNE Philippe 

380.00 456.00DNF
76.00
DNS
76.00
37
37.00
28
28.00
68
68.00
58
58.00
DNS
76.00
37
37.00

S N O NANTES
S N O NANTES

57

FRA 8704

NEIDHART Elisabeth
 GOUGEON Matthieu 

381.00 457.0044
44.00
DNF
76.00
49
49.00
26
26.00
DNF
76.00
DNS
76.00
DNF
76.00
34
34.00

C.V.M.L
C.V.M.L

58

FRA 8623

DAUGEY Gerard
 ROUANNE Dominique 

396.00 472.00DNF
76.00
DNS
76.00
56
56.00
52
52.00
DNF
76.00
43
43.00
48
48.00
45
45.00

C.V.M.L
Y C CAVALAIRE

59

FRA 8826

DEBRY Tristan
 DEBRY Alain 

407.00 483.0052
52.00
DNF
76.00
51
51.00
61
61.00
60
60.00
60
60.00
47
47.00
DNF
76.00

Y.C.DINARD
Y.C.DINARD

60

FRA 8431

DECHAUFFOUR Jacques
 DECHAUFFOUR Sabine 

417.00 493.0058
58.00
53
53.00
66
66.00
63
63.00
65
65.00
68
68.00
44
44.00
DNF
76.00

S N O NANTES
S N O NANTES

61

FRA 8366

PICOU Dominique
 BOUTON Fabrice 

421.00 497.00DNF
76.00
DNS
76.00
68
68.00
69
69.00
53
53.00
42
42.00
37
37.00
DNC
76.00

S R ROCHELAISES
S R ROCHELAISES

62

FRA 9033

HUE Patrice
 HUE Pierre francois 

426.00 502.0059
59.00
DNF
76.00
50
50.00
53
53.00
50
50.00
62
62.00
DNS
76.00
DNF
76.00

C V ANGERS
S N P H

63

FRA 8880

MOUCLIER Emmanuel
 THIBERGE Olivier 

428.00 504.0057
57.00
50
50.00
69
69.00
70
70.00
61
61.00
DNF
76.00
45
45.00
DNF
76.00

C.V.M.L
C .V. de PARIS

64

GER 8052

FEVERHAKE Jurgen
 NEHRENBERG Anne 

435.00 511.0056
56.00
52
52.00
55
55.00
66
66.00
66
66.00
64
64.00
DNF
76.00
DNF
76.00

YCSB

65

FRA 8748

CARVALLO Samuel
 RAULY Sebastien 

441.00 517.0051
51.00
DPI
71.00
70
70.00
73
73.00
58
58.00
66
66.00
52
52.00
DNF
76.00

C N HAUTE SEINE
C N HAUTE SEINE

66

FRA 8564

MENDES Jose
 LOZOUET Jean-paul 

453.00 529.00DNF
76.00
DNS
76.00
65
65.00
49
49.00
70
70.00
67
67.00
DNF
76.00
50
50.00

C.V.M.L
C .V. de PARIS

67

FRA 8362

MAGRET Olivier
 GLADE Mathieu 

460.00 536.0053
53.00
DNF
76.00
57
57.00
46
46.00
DNF
76.00
DNF
76.00
DNS
76.00
DNC
76.00

C N T LACYDON
S N DE SANARY

68

FRA 8705

VOCANSON Luc
 MUNIGLIA Thierry 

461.00 537.0043
43.00
DNF
76.00
53
53.00
68
68.00
69
69.00
DNF
76.00
DNS
76.00
DNF
76.00

C.V.M.L
C.V.M.L

69

FRA 9019

LEHMANN Robert
 EDEL Bernard 

469.00 545.00DNF
76.00
DNS
76.00
59
59.00
60
60.00
57
57.00
65
65.00
DNS
76.00
DNF
76.00

AC ALSACE LORRAINE
AC ALSACE LORRAINE

70

FRA 8676

DECHAUFFOUR Valentin
 GENDRY Pierre 

469.00 545.00DNC
76.00
DNF
76.00
60
60.00
59
59.00
63
63.00
59
59.00
DNF
76.00
DNF
76.00

S N O NANTES
S N O NANTES

71

FRA 898

NOURAUD Daniel
 FINOT Thibault 

475.00 551.0060
60.00
DNS
76.00
64
64.00
67
67.00
56
56.00
DNF
76.00
DNS
76.00
DNF
76.00

S R ROCHELAISES
S N O NANTES

72

FRA 8401

RENOUX Alain
 LAMARQUE Frederic 

479.00 555.00DNF
76.00
DNF
76.00
71
71.00
71
71.00
71
71.00
63
63.00
DNS
76.00
51
51.00

C V ANGOULEME
V LACANAU GUYENNE

73

FRA 8541

BARON Jean
 DUBERNET Louis 

492.00 568.00DNF
76.00
DNF
76.00
67
67.00
DPI
76.00
45
45.00
DNF
76.00
DNS
76.00
DNF
76.00

U N P CAP BRETON
U N P CAP BRETON

74

FRA 8717

PUGET Mathieu
 LACOTTE Nicolas 

500.00 576.00DNF
76.00
DNC
76.00
DNF
76.00
DNF
76.00
72
72.00
69
69.00
55
55.00
DNF
76.00

USAM VOILE
USAM VOILE

75

NED 8287

KALF Mark
 KALF Mak 

500.00 576.00DNF
76.00
DNS
76.00
72
72.00
72
72.00
67
67.00
61
61.00
DNF
76.00
DNC
76.00

HOLLANDE

Pénalités et réparations : 92 (9 DNC; 59 DNF; 17 DNS; 4 DPI; 1 DSQ; 2 RDG; )
[Retour début de page] +

LORBER Yves
Président du Comité de Course

DESFORGES Roland
Président du Jury


Produit le 11/07/2011 par DESFORGES Roland et logiciel FReg2011 (vers. 15/06/2011) FFVoile © 2001/2010
\ No newline at end of file diff --git a/java/com.sap.sailing.freg.resultimport.test/src/com/sap/sailing/freg/resultimport/test/Activator.java b/java/com.sap.sailing.freg.resultimport.test/src/com/sap/sailing/freg/resultimport/test/Activator.java new file mode 100755 index 00000000000..db6e90cfd39 --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport.test/src/com/sap/sailing/freg/resultimport/test/Activator.java @@ -0,0 +1,30 @@ +package com.sap.sailing.freg.resultimport.test; + +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; + +public class Activator implements BundleActivator { + + private static BundleContext context; + + static BundleContext getContext() { + return context; + } + + /* + * (non-Javadoc) + * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) + */ + public void start(BundleContext bundleContext) throws Exception { + Activator.context = bundleContext; + } + + /* + * (non-Javadoc) + * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext) + */ + public void stop(BundleContext bundleContext) throws Exception { + Activator.context = null; + } + +} diff --git a/java/com.sap.sailing.freg.resultimport/.classpath b/java/com.sap.sailing.freg.resultimport/.classpath new file mode 100755 index 00000000000..b1dabee3829 --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/java/com.sap.sailing.freg.resultimport/.project b/java/com.sap.sailing.freg.resultimport/.project new file mode 100755 index 00000000000..1a9ced0ffd7 --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport/.project @@ -0,0 +1,28 @@ + + + com.sap.sailing.freg.resultimport + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/java/com.sap.sailing.freg.resultimport/.settings/org.eclipse.jdt.core.prefs b/java/com.sap.sailing.freg.resultimport/.settings/org.eclipse.jdt.core.prefs new file mode 100755 index 00000000000..11f6e462df7 --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/java/com.sap.sailing.freg.resultimport/.settings/org.eclipse.pde.core.prefs b/java/com.sap.sailing.freg.resultimport/.settings/org.eclipse.pde.core.prefs new file mode 100755 index 00000000000..b7e72d019c2 --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport/.settings/org.eclipse.pde.core.prefs @@ -0,0 +1,3 @@ +eclipse.preferences.version=1 +pluginProject.extensions=false +resolve.requirebundle=false diff --git a/java/com.sap.sailing.freg.resultimport/META-INF/MANIFEST.MF b/java/com.sap.sailing.freg.resultimport/META-INF/MANIFEST.MF new file mode 100755 index 00000000000..5500a29b9d9 --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport/META-INF/MANIFEST.MF @@ -0,0 +1,12 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Resultimport +Bundle-SymbolicName: com.sap.sailing.freg.resultimport +Bundle-Version: 1.0.0.qualifier +Bundle-Activator: com.sap.sailing.freg.resultimport.Activator +Bundle-Vendor: SAP +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Import-Package: org.osgi.framework;version="1.3.0" +Bundle-ActivationPolicy: lazy +Require-Bundle: com.sap.sailing.domain.common, + com.sap.sailing.domain diff --git a/java/com.sap.sailing.freg.resultimport/build.properties b/java/com.sap.sailing.freg.resultimport/build.properties new file mode 100755 index 00000000000..41eb6ade2b4 --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport/build.properties @@ -0,0 +1,4 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + . diff --git a/java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/Activator.java b/java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/Activator.java new file mode 100755 index 00000000000..ec88dcd065c --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/Activator.java @@ -0,0 +1,35 @@ +package com.sap.sailing.freg.resultimport; + +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; + +import com.sap.sailing.domain.common.ScoreCorrectionProvider; +import com.sap.sailing.freg.resultimport.impl.ScoreCorrectionProviderImpl; + +public class Activator implements BundleActivator { + + private static BundleContext context; + + static BundleContext getContext() { + return context; + } + + /* + * (non-Javadoc) + * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) + */ + public void start(BundleContext bundleContext) throws Exception { + Activator.context = bundleContext; + final ScoreCorrectionProviderImpl service = new ScoreCorrectionProviderImpl(); + context.registerService(ScoreCorrectionProvider.class, service, /* properties */null); + } + + /* + * (non-Javadoc) + * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext) + */ + public void stop(BundleContext bundleContext) throws Exception { + Activator.context = null; + } + +} diff --git a/java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/impl/RegattaScoreCorrectionsImpl.java b/java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/impl/RegattaScoreCorrectionsImpl.java new file mode 100755 index 00000000000..048829b42da --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/impl/RegattaScoreCorrectionsImpl.java @@ -0,0 +1,49 @@ +package com.sap.sailing.freg.resultimport.impl; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import com.sap.sailing.domain.common.RegattaScoreCorrections; +import com.sap.sailing.domain.common.ScoreCorrectionProvider; +import com.sap.sailing.domain.common.impl.Util.Pair; + +public class RegattaScoreCorrectionsImpl implements RegattaScoreCorrections { + private final ScoreCorrectionProviderImpl provider; + private final Iterable scoreCorrectionsForRaces; + + public RegattaScoreCorrectionsImpl(ScoreCorrectionProviderImpl scoreCorrectionProviderImpl, + Map>> actResults) { + this.provider = scoreCorrectionProviderImpl; + List scfr = new ArrayList(); + int maxSize = getMaxListSize(actResults); + for (int i=0; i>> actResults) { + int result = 0; + for (Map.Entry>> e : actResults.entrySet()) { + result = Math.max(result, e.getValue().size()); + } + return result; + } + + @Override + public ScoreCorrectionProvider getProvider() { + return provider; + } + + @Override + public String getRegattaName() { + return "Extreme Sailing Series"; + } + + @Override + public Iterable getScoreCorrectionsForRaces() { + return scoreCorrectionsForRaces; + } + +} diff --git a/java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/impl/ScoreCorrectionForCompetitorInRaceImpl.java b/java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/impl/ScoreCorrectionForCompetitorInRaceImpl.java new file mode 100755 index 00000000000..37aa169c96a --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/impl/ScoreCorrectionForCompetitorInRaceImpl.java @@ -0,0 +1,76 @@ +package com.sap.sailing.freg.resultimport.impl; + +import java.util.logging.Logger; + +import com.sap.sailing.domain.common.MaxPointsReason; +import com.sap.sailing.domain.common.RegattaScoreCorrections.ScoreCorrectionForCompetitorInRace; +import com.sap.sailing.domain.common.impl.Util.Pair; + +public class ScoreCorrectionForCompetitorInRaceImpl implements ScoreCorrectionForCompetitorInRace { + private static final Logger logger = Logger.getLogger(ScoreCorrectionForCompetitorInRaceImpl.class.getName()); + + private final String teamName; + private final int points; + private final MaxPointsReason maxPointsReason; + + public ScoreCorrectionForCompetitorInRaceImpl(String teamName, int points, MaxPointsReason maxPointsReason) { + super(); + this.teamName = teamName; + this.points = points; + this.maxPointsReason = maxPointsReason; + } + + public ScoreCorrectionForCompetitorInRaceImpl(String teamName, Pair rankAndPoints) { + this.teamName = teamName; + if (rankAndPoints == null) { + points = 0; + maxPointsReason = null; + } else { + MaxPointsReason mpe; + try { + Integer.valueOf(rankAndPoints.getA().trim()); + mpe = null; + } catch (NumberFormatException nfe) { + // no int; try parsing a MaxPointsReason + try { + mpe = MaxPointsReason.valueOf(rankAndPoints.getA().trim()); + } catch (IllegalArgumentException iae) { + logger.info("Don't understand rank "+rankAndPoints.getA()); + mpe = null; + } + } + maxPointsReason = mpe; + points = rankAndPoints.getB(); + } + } + + @Override + public String getSailID() { + return teamName; + } + + @Override + public String getCompetitorName() { + // TODO map team name to skipper name + return teamName; + } + + @Override + public Double getPoints() { + return (double) points; + } + + @Override + public MaxPointsReason getMaxPointsReason() { + return maxPointsReason; + } + + /** + * @return false because ESS doesn't have discards + */ + @Override + public Boolean isDiscarded() { + return false; + } + +} diff --git a/java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/impl/ScoreCorrectionForRaceImpl.java b/java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/impl/ScoreCorrectionForRaceImpl.java new file mode 100755 index 00000000000..e7c0fbbe3a4 --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/impl/ScoreCorrectionForRaceImpl.java @@ -0,0 +1,46 @@ +package com.sap.sailing.freg.resultimport.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.sap.sailing.domain.common.RegattaScoreCorrections.ScoreCorrectionForCompetitorInRace; +import com.sap.sailing.domain.common.RegattaScoreCorrections.ScoreCorrectionsForRace; +import com.sap.sailing.domain.common.impl.Util.Pair; + +public class ScoreCorrectionForRaceImpl implements ScoreCorrectionsForRace { + private final int raceNumberStartingWithOne; + private final Map scoreCorrectionsByTeamName; + + public ScoreCorrectionForRaceImpl(Map>> actResults, int raceNumberStartingWithZero) { + this.raceNumberStartingWithOne = raceNumberStartingWithZero+1; + this.scoreCorrectionsByTeamName = new HashMap(); + for (Map.Entry>> e : actResults.entrySet()) { + String teamName = e.getKey(); + Pair rankAndPoints; + if (raceNumberStartingWithZero < e.getValue().size()) { + rankAndPoints = e.getValue().get(raceNumberStartingWithZero); + } else { + rankAndPoints = null; + } + scoreCorrectionsByTeamName.put(teamName, new ScoreCorrectionForCompetitorInRaceImpl(teamName, rankAndPoints)); + } + } + + @Override + public String getRaceNameOrNumber() { + return ""+raceNumberStartingWithOne; + } + + @Override + public Set getSailIDs() { + return scoreCorrectionsByTeamName.keySet(); + } + + @Override + public ScoreCorrectionForCompetitorInRace getScoreCorrectionForCompetitor(String sailID) { + return scoreCorrectionsByTeamName.get(sailID); + } + +} diff --git a/java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/impl/ScoreCorrectionProviderImpl.java b/java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/impl/ScoreCorrectionProviderImpl.java new file mode 100755 index 00000000000..a87c662b855 --- /dev/null +++ b/java/com.sap.sailing.freg.resultimport/src/com/sap/sailing/freg/resultimport/impl/ScoreCorrectionProviderImpl.java @@ -0,0 +1,96 @@ +package com.sap.sailing.freg.resultimport.impl; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.net.HttpURLConnection; +import java.net.MalformedURLException; +import java.net.URL; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.sap.sailing.domain.base.impl.MillisecondsTimePoint; +import com.sap.sailing.domain.common.RegattaScoreCorrections; +import com.sap.sailing.domain.common.ScoreCorrectionProvider; +import com.sap.sailing.domain.common.TimePoint; +import com.sap.sailing.domain.common.impl.Util.Pair; + +public class ScoreCorrectionProviderImpl implements ScoreCorrectionProvider { + private static final long serialVersionUID = -4870646572106575667L; + + private static final String[] ACT_NAMES = { "muscat", "qingdao", "istanbul", "porto" /*, "cardiff" */}; + + private static final String EXTREME_40_CLASS_NAME = "extreme 40"; + + @Override + public String getName() { + return "Extreme Sailing Series 40 Scores from SailRacer.org"; + } + + private List getCsvUrls(String... actNames) throws MalformedURLException { + List result = new ArrayList(); + for (String actName : actNames) { + result.add(new URL("http://www.extremesailingseries.com/app/results/csv_uploads/"+actName+".csv")); + } + return result; + } + + /** + * @return A pair whose first component is the time point of the last modification to the act results, the second + * element is a map whose keys are the sail IDs (in the Extreme Sailing Series we'll use the team names as + * the sail IDs, such as "SAP Extreme Sailing Team" or just "SAP" for short); values with be a list + * representing the act's races, from first to last, where each {@link Pair} holds in its first component a + * string describing the rank, which could be an integer number formatted as a string, or a three-letter + * disqualification reason such as "DNC", "DNF" or "DNS"; the second component is the points the competitor + * scored in that race. Usually, if the first component is a number, the score can be expected to be + * #competitors+1 - rank. A disqualification gets 0 points. + */ + private Pair>>> getActResults(URL actUrl) throws IOException { + Map>> result = new HashMap>>(); + HttpURLConnection conn = (HttpURLConnection) actUrl.openConnection(); + TimePoint lastModified = new MillisecondsTimePoint(conn.getLastModified()); + BufferedReader br = new BufferedReader(new InputStreamReader((InputStream) conn.getContent())); + String line = br.readLine(); + while (line != null) { + String[] split = line.split(","); + String sailID = split[0].trim(); + if (sailID.startsWith("\"") && sailID.endsWith("\"")) { + sailID = sailID.substring(1, sailID.length()-1); + } + List> competitorEntry = new ArrayList>(); + result.put(sailID, competitorEntry); + for (int i=1; i(rankOrMaxPointsReason, points)); + } + line = br.readLine(); + } + return new Pair>>>(lastModified, result); + } + + @Override + public Map>> getHasResultsForBoatClassFromDateByEventName() throws Exception { + Map>> result = new HashMap>>(); + for (String actName : ACT_NAMES) { + URL actUrl = getCsvUrls(actName).iterator().next(); + Pair>>> actResults = getActResults(actUrl); + result.put(actName, Collections.singleton(new Pair(EXTREME_40_CLASS_NAME, actResults.getA()))); + } + return result; + } + + @Override + public RegattaScoreCorrections getScoreCorrections(String actName, String boatClassName, + TimePoint millisecondsTimePoint) throws Exception { + URL actUrl = getCsvUrls(actName).iterator().next(); + Pair>>> actResults = getActResults(actUrl); + return new RegattaScoreCorrectionsImpl(this, actResults.getB()); + } + +}