Subversion Repositories ALCASAR

Rev

Rev 2788 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2788 Rev 2976
Line 54... Line 54...
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 Integer
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
-
 
65
     *
-
 
66
     * @var Float
-
 
67
     */
-
 
68
    private $_speed = null;
-
 
69
 
-
 
70
    /**
-
 
71
     * voltage of the device, if not available it will be null
-
 
72
     *
-
 
73
     * @var Float
-
 
74
     */
-
 
75
    private $_voltage = null;
-
 
76
 
-
 
77
    /**
64
     * count of the device
78
     * count of the device
65
     *
79
     *
66
     * @var Integer
80
     * @var Integer
67
     */
81
     */
68
    private $_count = 1;
82
    private $_count = 1;
Line 78... Line 92...
78
    {
92
    {
79
        if ($dev->getName() === $this->_name
93
        if ($dev->getName() === $this->_name
80
           && $dev->getCapacity() === $this->_capacity
94
           && $dev->getCapacity() === $this->_capacity
81
           && $dev->getManufacturer() === $this->_manufacturer
95
           && $dev->getManufacturer() === $this->_manufacturer
82
           && $dev->getProduct() === $this->_product
96
           && $dev->getProduct() === $this->_product
83
           && $dev->getSerial() === $this->_serial) {
97
           && $dev->getSerial() === $this->_serial
-
 
98
           && $dev->getSpeed() === $this->_speed) {
84
            return true;
99
            return true;
85
        } else {
100
        } else {
86
            return false;
101
            return false;
87
        }
102
        }
88
    }
103
    }
Line 190... Line 205...
190
    {
205
    {
191
        $this->_serial = $serial;
206
        $this->_serial = $serial;
192
    }
207
    }
193
 
208
 
194
    /**
209
    /**
-
 
210
     * Returns $_speed.
-
 
211
     *
-
 
212
     * @see HWDevice::$_speed
-
 
213
     *
-
 
214
     * @return Float
-
 
215
     */
-
 
216
    public function getSpeed()
-
 
217
    {
-
 
218
        return $this->_speed;
-
 
219
    }
-
 
220
 
-
 
221
    /**
-
 
222
     * Sets $_speed.
-
 
223
     *
-
 
224
     * @param Float $speed speed
-
 
225
     *
-
 
226
     * @see HWDevice::$_speed
-
 
227
     *
-
 
228
     * @return Void
-
 
229
     */
-
 
230
    public function setSpeed($speed)
-
 
231
    {
-
 
232
        $this->_speed = $speed;
-
 
233
    }
-
 
234
 
-
 
235
    /**
-
 
236
     * Returns $_voltage.
-
 
237
     *
-
 
238
     * @see HWDevice::$_voltage
-
 
239
     *
-
 
240
     * @return Float
-
 
241
     */
-
 
242
    public function getVoltage()
-
 
243
    {
-
 
244
        return $this->_voltage;
-
 
245
    }
-
 
246
 
-
 
247
    /**
-
 
248
     * Sets $_voltage.
-
 
249
     *
-
 
250
     * @param Float $voltage voltage
-
 
251
     *
-
 
252
     * @see HWDevice::$_voltage
-
 
253
     *
-
 
254
     * @return Void
-
 
255
     */
-
 
256
    public function setVoltage($voltage)
-
 
257
    {
-
 
258
        $this->_voltage = $voltage;
-
 
259
    }
-
 
260
 
-
 
261
    /**
195
     * Returns $_capacity.
262
     * Returns $_capacity.
196
     *
263
     *
197
     * @see HWDevice::$_capacity
264
     * @see HWDevice::$_capacity
198
     *
265
     *
199
     * @return Integer
266
     * @return Integer