Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/access/FixAccess.java @ 5838:5aa05a7a34b7
Rename modules to more fitting names.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 15:23:37 +0200 |
parents | flys-artifacts/src/main/java/org/dive4elements/river/artifacts/access/FixAccess.java@bd047b71ab37 |
children | 4897a58c8746 |
comparison
equal
deleted
inserted
replaced
5837:d9901a08d0a6 | 5838:5aa05a7a34b7 |
---|---|
1 package org.dive4elements.river.artifacts.access; | |
2 | |
3 import org.dive4elements.artifacts.CallContext; | |
4 import org.dive4elements.river.artifacts.FLYSArtifact; | |
5 | |
6 import java.util.Arrays; | |
7 | |
8 import org.apache.log4j.Logger; | |
9 | |
10 /** Access for Fixation related data. */ | |
11 public class FixAccess | |
12 extends RangeAccess | |
13 { | |
14 private static Logger log = Logger.getLogger(FixAccess.class); | |
15 | |
16 protected Long start; | |
17 protected Long end; | |
18 | |
19 protected Integer qSectorStart; | |
20 protected Integer qSectorEnd; | |
21 | |
22 protected int [] events; | |
23 | |
24 protected Boolean preprocessing; | |
25 | |
26 protected String function; | |
27 | |
28 public FixAccess(FLYSArtifact artifact, CallContext context) { | |
29 super(artifact, context); | |
30 } | |
31 | |
32 public Long getStart() { | |
33 | |
34 if (start == null) { | |
35 start = getLong("start"); | |
36 } | |
37 | |
38 if (log.isDebugEnabled()) { | |
39 log.debug("start: '" + start + "'"); | |
40 } | |
41 | |
42 return start; | |
43 } | |
44 | |
45 public Long getEnd() { | |
46 | |
47 if (end == null) { | |
48 end = getLong("end"); | |
49 } | |
50 | |
51 if (log.isDebugEnabled()) { | |
52 log.debug("end: '" + end + "'"); | |
53 } | |
54 | |
55 return end; | |
56 } | |
57 | |
58 public Integer getQSectorStart() { | |
59 | |
60 if (qSectorStart == null) { | |
61 qSectorStart = getInteger("q1"); | |
62 } | |
63 | |
64 if (log.isDebugEnabled()) { | |
65 log.debug("q1: '" + qSectorStart + "'"); | |
66 } | |
67 | |
68 return qSectorStart; | |
69 } | |
70 | |
71 public Integer getQSectorEnd() { | |
72 | |
73 if (qSectorEnd == null) { | |
74 qSectorEnd = getInteger("q2"); | |
75 } | |
76 | |
77 if (log.isDebugEnabled()) { | |
78 log.debug("q2: '" + qSectorEnd + "'"); | |
79 } | |
80 | |
81 return qSectorEnd; | |
82 } | |
83 | |
84 public int [] getEvents() { | |
85 if (events == null) { | |
86 events = getIntArray("events"); | |
87 } | |
88 if (log.isDebugEnabled() && events != null) { | |
89 log.debug("events: " + Arrays.toString(events)); | |
90 } | |
91 return events; | |
92 } | |
93 | |
94 public Boolean getPreprocessing() { | |
95 if (preprocessing == null) { | |
96 preprocessing = getBoolean("preprocessing"); | |
97 } | |
98 if (log.isDebugEnabled()) { | |
99 log.debug("preprocessing: " + preprocessing); | |
100 } | |
101 return preprocessing; | |
102 } | |
103 | |
104 public String getFunction() { | |
105 if (function == null) { | |
106 function = getString("function"); | |
107 } | |
108 if (log.isDebugEnabled()) { | |
109 log.debug("function: " + function); | |
110 } | |
111 return function; | |
112 } | |
113 } | |
114 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |