View Javadoc

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 vector hosting indi Text objects
23   * 
24   * @author Dirk Hünniger
25   * 
26   */
27  public class TextVector extends Vector<Text> {
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 TextVector is associated with
38       * @param name
39       *                the name of this TextVector
40       * @param timestamp
41       *                the timestamp to be sent along with this vector
42       */
43      public TextVector(String device, String name, String timestamp) {
44  	super(device, name, timestamp);
45      }
46  
47      /**
48       * class constructor
49       * 
50       * @param device
51       *                the name of the device this TextVector is associated with
52       * @param name
53       *                the name of this TextVector
54       * @param label
55       *                the label to be used for this TextVector by a GUI
56       * @param group
57       *                the group this vector belongs to
58       * @param state
59       *                the State this vector is in
60       * @param permission
61       *                the permissions the user has to change the properties of
62       *                this vector
63       * @param timeout
64       *                the worst case time it takes for a property of this vector
65       *                to change
66       * @param timestamp
67       *                the timestamp to be sent along with this vector
68       * @param message
69       *                a message to be sent along with this vector
70       */
71      public TextVector(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      @Override
79      protected String getType() {
80  	// TODO Auto-generated method stub
81  	return "TextVector";
82      }
83  
84      /**
85       * class constructor
86       * 
87       * @param device
88       *                the name of the device this TextVector is associated with
89       * @param name
90       *                the name of this TextVector
91       * @param state
92       *                the State this vector is in
93       * @param timeout
94       *                the worst case time it takes for a property of this vector
95       *                to change
96       * @param timestamp
97       *                the timestamp to be sent along with this vector
98       * @param message
99       *                a message to be sent along with this vector
100      */
101     public TextVector(String device, String name, State state, double timeout,
102 	    String timestamp, String message) {
103 	super(device, name, state, timeout, timestamp, message);
104     }
105 }