comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/CrossSectionFacet.java @ 1803:51e59f221333

Minor preparations for WINFO/CrossSection to handle multiple cross-sections. flys-artifacts/trunk@3128 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 01 Nov 2011 12:23:59 +0000
parents d90f5bfa3ddf
children 27bb2e24f7f8
comparison
equal deleted inserted replaced
1802:26d7077e42d2 1803:51e59f221333
23 private static Logger logger = Logger.getLogger(CrossSectionFacet.class); 23 private static Logger logger = Logger.getLogger(CrossSectionFacet.class);
24 24
25 protected ComputeType type; 25 protected ComputeType type;
26 26
27 /** Trivial constructor, set (maybe localized) description. */ 27 /** Trivial constructor, set (maybe localized) description. */
28 public CrossSectionFacet(String description) { 28 public CrossSectionFacet(int idx, String description) {
29 super(0, CROSS_SECTION, description); 29 super(idx, CROSS_SECTION, description);
30 type = ComputeType.ADVANCE; 30 type = ComputeType.ADVANCE;
31 } 31 }
32 32
33 33
34 /** 34 /**
44 44
45 45
46 /** Do a deep copy. */ 46 /** Do a deep copy. */
47 @Override 47 @Override
48 public Facet deepCopy() { 48 public Facet deepCopy() {
49 CrossSectionFacet copy = new CrossSectionFacet(this.description); 49 CrossSectionFacet copy = new CrossSectionFacet(this.index, this.description);
50 copy.set(this); 50 copy.set(this);
51 return copy; 51 return copy;
52 } 52 }
53 } 53 }
54 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 54 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org