annotate flys-backend/src/main/java/de/intevation/flys/importer/parsers/CrossSectionParser.java @ 4768:99f9e371371b

Move distance calculation to Coordinate class. Use inheritance instead of composition in Anchor class. Made Anchor class static. Use epsilon equal comparision when checking for same station: Boy, do you ever learn that sharp equal comparison of doubles is not a clever idea!?
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 04 Jan 2013 15:35:51 +0100
parents e2e615109a2e
children
rev   line source
4714
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
1 package de.intevation.flys.importer.parsers;
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
2
4733
e2e615109a2e Removed superfluous imports.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4714
diff changeset
3 import de.intevation.flys.importer.XY;
e2e615109a2e Removed superfluous imports.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4714
diff changeset
4
4714
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
5 import java.io.File;
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
6 import java.util.List;
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
7 import java.util.Map;
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
8
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
9 public interface CrossSectionParser {
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
10
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
11 public String getDescription();
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
12
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
13 public Integer getYear();
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
14
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
15 public Map<Double,List<XY>> getData();
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
16
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
17 public interface Callback {
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
18 boolean accept(File file);
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
19 void parsed(CrossSectionParser parser);
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
20 }
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
21 }
47c1d656a152 New CrossSectionParser interface.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
22 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org