View Javadoc
1   package net.sf.mbus4j.master;
2   
3   /*
4    * #%L
5    * mbus4j-master
6    * %%
7    * Copyright (C) 2009 - 2014 MBus4J
8    * %%
9    * mbus4j - Drivers for the M-Bus protocol - http://mbus4j.sourceforge.net/
10   * Copyright (C) 2009-2014, mbus4j.sf.net, and individual contributors as indicated
11   * by the @authors tag. See the copyright.txt in the distribution for a
12   * full listing of individual contributors.
13   * 
14   * This is free software; you can redistribute it and/or modify it
15   * under the terms of the GNU General Public License as
16   * published by the Free Software Foundation; either version 3 of
17   * the License, or (at your option) any later version.
18   * 
19   * This software is distributed in the hope that it will be useful,
20   * but WITHOUT ANY WARRANTY; without even the implied warranty of
21   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22   * Lesser General Public License for more details.
23   * 
24   * You should have received a copy of the GNU Lesser General Public
25   * License along with this software; if not, write to the Free
26   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
27   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
28   * #L%
29   */
30  
31  import net.sf.mbus4j.MBusAddressing;
32  import net.sf.mbus4j.dataframes.MBusMedium;
33  import net.sf.mbus4j.dataframes.UserDataResponse;
34  import net.sf.mbus4j.dataframes.datablocks.DataBlock;
35  import net.sf.mbus4j.dataframes.datablocks.dif.DataFieldCode;
36  import net.sf.mbus4j.dataframes.datablocks.dif.FunctionField;
37  import net.sf.mbus4j.dataframes.datablocks.vif.Vif;
38  import net.sf.mbus4j.dataframes.datablocks.vif.Vife;
39  
40  /**
41   *
42   * @author aploese
43   */
44  public class ValueRequestPointLocator<T> {
45  
46      private MBusAddressing addressing;
47      private byte address;
48      private String manufacturer;
49      private int identnumber;
50      private MBusMedium medium;
51      private byte version;
52      private String responseFrameName;
53      private DataFieldCode difCode;
54      private FunctionField functionField;
55      private int deviceUnit;
56      private int tariff;
57      private long storageNumber;
58      private Vif vif;
59      private Vife[] vifes = DataBlock.EMPTY_VIFE;
60      private DataBlock db;
61      private DataBlock timestampDb;
62      private UserDataResponse fullResponse;
63      private T reference;
64  
65      /**
66       * @return the addressing
67       */
68      public MBusAddressing getAddressing() {
69          return addressing;
70      }
71  
72      /**
73       * @param addressing the addressing to set
74       */
75      public void setAddressing(MBusAddressing addressing) {
76          this.addressing = addressing;
77      }
78  
79      /**
80       * @return the address
81       */
82      public byte getAddress() {
83          return address;
84      }
85  
86      /**
87       * @param address the address to set
88       */
89      public void setAddress(byte address) {
90          this.address = address;
91      }
92  
93      /**
94       * @return the manufacturer
95       */
96      public String getManufacturer() {
97          return manufacturer;
98      }
99  
100     /**
101      * @param manufacturer the manufacturer to set
102      */
103     public void setManufacturer(String manufacturer) {
104         this.manufacturer = manufacturer;
105     }
106 
107     /**
108      * @return the identnumber
109      */
110     public int getIdentnumber() {
111         return identnumber;
112     }
113 
114     /**
115      * @param identnumber the identnumber to set
116      */
117     public void setIdentnumber(int identnumber) {
118         this.identnumber = identnumber;
119     }
120 
121     /**
122      * @return the medium
123      */
124     public MBusMedium getMedium() {
125         return medium;
126     }
127 
128     /**
129      * @param medium the medium to set
130      */
131     public void setMedium(MBusMedium medium) {
132         this.medium = medium;
133     }
134 
135     /**
136      * @return the version
137      */
138     public byte getVersion() {
139         return version;
140     }
141 
142     /**
143      * @param version the version to set
144      */
145     public void setVersion(byte version) {
146         this.version = version;
147     }
148 
149     /**
150      * @return the responseFrameName
151      */
152     public String getResponseFrameName() {
153         return responseFrameName;
154     }
155 
156     /**
157      * @param responseFrameName the responseFrameName to set
158      */
159     public void setResponseFrameName(String responseFrameName) {
160         this.responseFrameName = responseFrameName;
161     }
162 
163     /**
164      * @return the difCode
165      */
166     public DataFieldCode getDifCode() {
167         return difCode;
168     }
169 
170     /**
171      * @param difCode the difCode to set
172      */
173     public void setDifCode(DataFieldCode difCode) {
174         this.difCode = difCode;
175     }
176 
177     /**
178      * @return the functionField
179      */
180     public FunctionField getFunctionField() {
181         return functionField;
182     }
183 
184     /**
185      * @param functionField the functionField to set
186      */
187     public void setFunctionField(FunctionField functionField) {
188         this.functionField = functionField;
189     }
190 
191     /**
192      * @return the deviceUnit
193      */
194     public int getDeviceUnit() {
195         return deviceUnit;
196     }
197 
198     /**
199      * @param deviceUnit the deviceUnit to set
200      */
201     public void setDeviceUnit(int deviceUnit) {
202         this.deviceUnit = deviceUnit;
203     }
204 
205     /**
206      * @return the tariff
207      */
208     public int getTariff() {
209         return tariff;
210     }
211 
212     /**
213      * @param tariff the tariff to set
214      */
215     public void setTariff(int tariff) {
216         this.tariff = tariff;
217     }
218 
219     /**
220      * @return the storageNumber
221      */
222     public long getStorageNumber() {
223         return storageNumber;
224     }
225 
226     /**
227      * @param storageNumber the storageNumber to set
228      */
229     public void setStorageNumber(long storageNumber) {
230         this.storageNumber = storageNumber;
231     }
232 
233     /**
234      * @return the vif
235      */
236     public Vif getVif() {
237         return vif;
238     }
239 
240     /**
241      * @param vif the vif to set
242      */
243     public void setVif(Vif vif) {
244         this.vif = vif;
245     }
246 
247     /**
248      * @return the vifes
249      */
250     public Vife[] getVifes() {
251         return vifes;
252     }
253 
254     /**
255      * @param vifes the vifes to set
256      */
257     public void setVifes(Vife[] vifes) {
258         this.vifes = vifes;
259     }
260 
261     /**
262      * @return the db
263      */
264     public DataBlock getDb() {
265         return db;
266     }
267 
268     /**
269      * @param db the db to set
270      */
271     public void setDb(DataBlock db) {
272         this.db = db;
273     }
274 
275     /**
276      * @return the timestampDb
277      */
278     public DataBlock getTimestampDb() {
279         return timestampDb;
280     }
281 
282     /**
283      * @param timestampDb the timestampDb to set
284      */
285     public void setTimestampDb(DataBlock timestampDb) {
286         this.timestampDb = timestampDb;
287     }
288 
289     /**
290      * @return the fullResponse
291      */
292     public UserDataResponse getFullResponse() {
293         return fullResponse;
294     }
295 
296     /**
297      * @param fullResponse the fullResponse to set
298      */
299     public void setFullResponse(UserDataResponse fullResponse) {
300         this.fullResponse = fullResponse;
301     }
302 
303     /**
304      * @return the reference
305      */
306     public T getReference() {
307         return reference;
308     }
309 
310     /**
311      * @param reference the reference to set
312      */
313     public void setReference(T reference) {
314         this.reference = reference;
315     }
316 }