Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WaterlevelFacet.java @ 1136:8da5f5a9ed3c
Cosmetics, docs.
flys-artifacts/trunk@2657 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 07 Sep 2011 07:28:52 +0000 |
parents | ea80e652f033 |
children | eb35570df0e8 |
comparison
equal
deleted
inserted
replaced
1135:c8c753931514 | 1136:8da5f5a9ed3c |
---|---|
18 | 18 |
19 protected ComputeType type; | 19 protected ComputeType type; |
20 protected String stateID; | 20 protected String stateID; |
21 protected String hash; | 21 protected String hash; |
22 | 22 |
23 | |
23 public WaterlevelFacet(int index, String name, String description) { | 24 public WaterlevelFacet(int index, String name, String description) { |
24 this(index, name, description, ComputeType.ADVANCE, null, null); | 25 this(index, name, description, ComputeType.ADVANCE, null, null); |
25 } | 26 } |
26 | 27 |
28 | |
27 public WaterlevelFacet() { | 29 public WaterlevelFacet() { |
28 } | 30 } |
31 | |
29 | 32 |
30 public WaterlevelFacet( | 33 public WaterlevelFacet( |
31 int index, | 34 int index, |
32 String name, | 35 String name, |
33 String description, | 36 String description, |
40 this.type = type; | 43 this.type = type; |
41 this.stateID = stateID; | 44 this.stateID = stateID; |
42 this.hash = hash; | 45 this.hash = hash; |
43 } | 46 } |
44 | 47 |
48 | |
49 /** | |
50 * Get waterlevel data. | |
51 * @return a WQKms at given index. | |
52 */ | |
45 public Object getData(Artifact artifact, CallContext context) { | 53 public Object getData(Artifact artifact, CallContext context) { |
46 logger.debug("Get data for waterlevels at index: " + index); | 54 logger.debug("Get data for waterlevels at index: " + index); |
47 | 55 |
48 WINFOArtifact winfo = (WINFOArtifact)artifact; | 56 WINFOArtifact winfo = (WINFOArtifact)artifact; |
49 | 57 |
53 WQKms [] wqkms = (WQKms [])res.getData(); | 61 WQKms [] wqkms = (WQKms [])res.getData(); |
54 | 62 |
55 return wqkms[index]; | 63 return wqkms[index]; |
56 } | 64 } |
57 | 65 |
66 | |
67 /** Copy deeply. */ | |
68 @Override | |
58 public Facet deepCopy() { | 69 public Facet deepCopy() { |
59 WaterlevelFacet copy = new WaterlevelFacet(); | 70 WaterlevelFacet copy = new WaterlevelFacet(); |
60 copy.set(this); | 71 copy.set(this); |
61 copy.type = type; | 72 copy.type = type; |
62 copy.stateID = stateID; | 73 copy.stateID = stateID; |