1 /*
2 Copyright (C) 2007 Dirk Huenniger
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19 package org.indi.objects;
20
21 /**
22 * A indiobjects.Vector of indiobjects.Blob objects
23 *
24 * @author Dirk Hünniger
25 *
26 */
27 public class BlobVector extends Vector<Blob> {
28 /**
29 *
30 */
31 private static final long serialVersionUID = 1L;
32
33 /**
34 * class constructor
35 *
36 * @param device
37 * the name of the device this BlobVector is associated with
38 * @param name
39 * the name of this BlobVector
40 * @param timestamp
41 * the timestamp to be transferred along with this
42 * BlobVector.
43 */
44 public BlobVector(String device, String name, String timestamp) {
45 super(device, name, timestamp);
46 }
47
48 /**
49 * class constructor
50 *
51 * @param device
52 * the name of the device this BlobVector is associated with
53 * @param name
54 * the name of this BlobVector
55 * @param label
56 * the label to be used for this BlobVector by a GUI
57 * @param group
58 * the group this vector belongs to
59 * @param state
60 * the State this vector is in
61 * @param permission
62 * the permissions the user has to change the properties of
63 * this vector
64 * @param timeout
65 * the worst case time it takes for a property of this vector
66 * to change
67 * @param timestamp
68 * the timestamp to be sent along with this vector
69 * @param message
70 */
71 public BlobVector(String device, String name, String label, String group,
72 State state, Permission permission, double timeout,
73 String timestamp, String message) {
74 super(device, name, label, group, state, permission, timeout,
75 timestamp, message);
76 }
77
78 /**
79 * class constructor
80 *
81 * @param device
82 * the name of the device this BlobVector is associated with
83 * @param name
84 * the name of this BlobVector
85 * @param label
86 * the label to be used for this BlobVector by a GUI
87 * @param group
88 * the group this vector belongs to
89 * @param state
90 * the State this vector is in
91 * @param permission
92 * the permissions the user has to change the properties of
93 * this vector
94 * @param timeout
95 * the worst case time it takes for a property of this vector
96 * to change
97 *
98 */
99 public BlobVector(String device, String name, String label, String group,
100 State state, Permission permission, double timeout) {
101 super(device, name, label, group, state, permission, timeout, null,
102 null);
103 }
104
105 /**
106 * class constructor
107 *
108 * @param device
109 * the name of the device this BlobVector is associated with
110 * @param name
111 * the name of this BlobVector
112 * @param state
113 * the State this vector is in
114 * @param timeout
115 * the worst case time it takes for a property of this vector
116 * to change
117 * @param timestamp
118 * the timestamp to be sent along with this vector
119 * @param message
120 *
121 */
122 public BlobVector(String device, String name, State state, double timeout,
123 String timestamp, String message) {
124 super(device, name, state, timeout, timestamp, message);
125 }
126
127 @Override
128 /**
129 * @return the type of this indiobjects.Object
130 */
131 protected String getType() {
132 // TODO Auto-generated method stub
133 return "BLOBVector";
134 }
135 }