Subversion Repositories ALCASAR

Rev

Rev 2976 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2976 Rev 3037
Line 26... Line 26...
26
class HWDevice
26
class HWDevice
27
{
27
{
28
    /**
28
    /**
29
     * name of the device
29
     * name of the device
30
     *
30
     *
31
     * @var String
31
     * @var string
32
     */
32
     */
33
    private $_name = "";
33
    private $_name = "";
34
 
34
 
35
    /**
35
    /**
36
     * capacity of the device, if not available it will be null
36
     * capacity of the device, if not available it will be null
37
     *
37
     *
38
     * @var Integer
38
     * @var int
39
     */
39
     */
40
    private $_capacity = null;
40
    private $_capacity = null;
41
 
41
 
42
    /**
42
    /**
43
     * manufacturer of the device, if not available it will be null
43
     * manufacturer of the device, if not available it will be null
44
     *
44
     *
45
     * @var Integer
45
     * @var int
46
     */
46
     */
47
    private $_manufacturer = null;
47
    private $_manufacturer = null;
48
 
48
 
49
    /**
49
    /**
50
     * product of the device, if not available it will be null
50
     * product of the device, if not available it will be null
51
     *
51
     *
52
     * @var Integer
52
     * @var int
53
     */
53
     */
54
    private $_product = null;
54
    private $_product = null;
55
 
55
 
56
    /**
56
    /**
57
     * serial number of the device, if not available it will be null
57
     * serial number of the device, if not available it will be null
58
     *
58
     *
59
     * @var String
59
     * @var string
60
     */
60
     */
61
    private $_serial = null;
61
    private $_serial = null;
62
 
62
 
63
    /**
63
    /**
64
     * speed of the device, if not available it will be null
64
     * speed of the device, if not available it will be null
Line 75... Line 75...
75
    private $_voltage = null;
75
    private $_voltage = null;
76
 
76
 
77
    /**
77
    /**
78
     * count of the device
78
     * count of the device
79
     *
79
     *
80
     * @var Integer
80
     * @var int
81
     */
81
     */
82
    private $_count = 1;
82
    private $_count = 1;
83
 
83
 
84
    /**
84
    /**
85
     * compare a given device with the internal one
85
     * compare a given device with the internal one
Line 119... Line 119...
119
     *
119
     *
120
     * @param String $name device name
120
     * @param String $name device name
121
     *
121
     *
122
     * @see HWDevice::$_name
122
     * @see HWDevice::$_name
123
     *
123
     *
124
     * @return Void
124
     * @return void
125
     */
125
     */
126
    public function setName($name)
126
    public function setName($name)
127
    {
127
    {
128
        $this->_name = $name;
128
        $this->_name = $name;
129
    }
129
    }
Line 145... Line 145...
145
     *
145
     *
146
     * @param String $manufacturer manufacturer name
146
     * @param String $manufacturer manufacturer name
147
     *
147
     *
148
     * @see HWDevice::$_manufacturer
148
     * @see HWDevice::$_manufacturer
149
     *
149
     *
150
     * @return Void
150
     * @return void
151
     */
151
     */
152
    public function setManufacturer($manufacturer)
152
    public function setManufacturer($manufacturer)
153
    {
153
    {
154
        $this->_manufacturer = $manufacturer;
154
        $this->_manufacturer = $manufacturer;
155
    }
155
    }
Line 171... Line 171...
171
     *
171
     *
172
     * @param String $product product name
172
     * @param String $product product name
173
     *
173
     *
174
     * @see HWDevice::$_product
174
     * @see HWDevice::$_product
175
     *
175
     *
176
     * @return Void
176
     * @return void
177
     */
177
     */
178
    public function setProduct($product)
178
    public function setProduct($product)
179
    {
179
    {
180
        $this->_product = $product;
180
        $this->_product = $product;
181
    }
181
    }
Line 197... Line 197...
197
     *
197
     *
198
     * @param String $serial serial number
198
     * @param String $serial serial number
199
     *
199
     *
200
     * @see HWDevice::$_serial
200
     * @see HWDevice::$_serial
201
     *
201
     *
202
     * @return Void
202
     * @return void
203
     */
203
     */
204
    public function setSerial($serial)
204
    public function setSerial($serial)
205
    {
205
    {
206
        $this->_serial = $serial;
206
        $this->_serial = $serial;
207
    }
207
    }
Line 223... Line 223...
223
     *
223
     *
224
     * @param Float $speed speed
224
     * @param Float $speed speed
225
     *
225
     *
226
     * @see HWDevice::$_speed
226
     * @see HWDevice::$_speed
227
     *
227
     *
228
     * @return Void
228
     * @return void
229
     */
229
     */
230
    public function setSpeed($speed)
230
    public function setSpeed($speed)
231
    {
231
    {
232
        $this->_speed = $speed;
232
        $this->_speed = $speed;
233
    }
233
    }
Line 249... Line 249...
249
     *
249
     *
250
     * @param Float $voltage voltage
250
     * @param Float $voltage voltage
251
     *
251
     *
252
     * @see HWDevice::$_voltage
252
     * @see HWDevice::$_voltage
253
     *
253
     *
254
     * @return Void
254
     * @return void
255
     */
255
     */
256
    public function setVoltage($voltage)
256
    public function setVoltage($voltage)
257
    {
257
    {
258
        $this->_voltage = $voltage;
258
        $this->_voltage = $voltage;
259
    }
259
    }
Line 261... Line 261...
261
    /**
261
    /**
262
     * Returns $_capacity.
262
     * Returns $_capacity.
263
     *
263
     *
264
     * @see HWDevice::$_capacity
264
     * @see HWDevice::$_capacity
265
     *
265
     *
266
     * @return Integer
266
     * @return int
267
     */
267
     */
268
    public function getCapacity()
268
    public function getCapacity()
269
    {
269
    {
270
        return $this->_capacity;
270
        return $this->_capacity;
271
    }
271
    }
272
 
272
 
273
    /**
273
    /**
274
     * Sets $_capacity.
274
     * Sets $_capacity.
275
     *
275
     *
276
     * @param Integer $capacity device capacity
276
     * @param int $capacity device capacity
277
     *
277
     *
278
     * @see HWDevice::$_capacity
278
     * @see HWDevice::$_capacity
279
     *
279
     *
280
     * @return Void
280
     * @return void
281
     */
281
     */
282
    public function setCapacity($capacity)
282
    public function setCapacity($capacity)
283
    {
283
    {
284
        $this->_capacity = $capacity;
284
        $this->_capacity = $capacity;
285
    }
285
    }
Line 287... Line 287...
287
    /**
287
    /**
288
     * Returns $_count.
288
     * Returns $_count.
289
     *
289
     *
290
     * @see HWDevice::$_count
290
     * @see HWDevice::$_count
291
     *
291
     *
292
     * @return Integer
292
     * @return int
293
     */
293
     */
294
    public function getCount()
294
    public function getCount()
295
    {
295
    {
296
        return $this->_count;
296
        return $this->_count;
297
    }
297
    }
298
 
298
 
299
    /**
299
    /**
300
     * Sets $_count.
300
     * Sets $_count.
301
     *
301
     *
302
     * @param Integer $count device count
302
     * @param int $count device count
303
     *
303
     *
304
     * @see HWDevice::$_count
304
     * @see HWDevice::$_count
305
     *
305
     *
306
     * @return Void
306
     * @return void
307
     */
307
     */
308
    public function setCount($count)
308
    public function setCount($count)
309
    {
309
    {
310
        $this->_count = $count;
310
        $this->_count = $count;
311
    }
311
    }