Subversion Repositories ALCASAR

Rev

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

Rev 2788 Rev 3037
Line 26... Line 26...
26
class NetDevice
26
class NetDevice
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
     * transmitted bytes
36
     * transmitted bytes
37
     *
37
     *
38
     * @var Integer
38
     * @var int
39
     */
39
     */
40
    private $_txBytes = 0;
40
    private $_txBytes = 0;
41
 
41
 
42
    /**
42
    /**
43
     * received bytes
43
     * received bytes
44
     *
44
     *
45
     * @var Integer
45
     * @var int
46
     */
46
     */
47
    private $_rxBytes = 0;
47
    private $_rxBytes = 0;
48
 
48
 
49
    /**
49
    /**
50
     * counted error packages
50
     * counted error packages
51
     *
51
     *
52
     * @var Integer
52
     * @var int
53
     */
53
     */
54
    private $_errors = 0;
54
    private $_errors = 0;
55
 
55
 
56
    /**
56
    /**
57
     * counted droped packages
57
     * counted droped packages
58
     *
58
     *
59
     * @var Integer
59
     * @var int
60
     */
60
     */
61
    private $_drops = 0;
61
    private $_drops = 0;
62
 
62
 
63
    /**
63
    /**
64
     * string with info
64
     * string with info
65
     *
65
     *
66
     * @var String
66
     * @var string
67
     */
67
     */
68
    private $_info = null;
68
    private $_info = null;
69
 
69
 
70
    /**
70
    /**
71
     * Returns $_drops.
71
     * Returns $_drops.
72
     *
72
     *
73
     * @see NetDevice::$_drops
73
     * @see NetDevice::$_drops
74
     *
74
     *
75
     * @return Integer
75
     * @return int
76
     */
76
     */
77
    public function getDrops()
77
    public function getDrops()
78
    {
78
    {
79
        return $this->_drops;
79
        return $this->_drops;
80
    }
80
    }
81
 
81
 
82
    /**
82
    /**
83
     * Sets $_drops.
83
     * Sets $_drops.
84
     *
84
     *
85
     * @param Integer $drops dropped packages
85
     * @param int $drops dropped packages
86
     *
86
     *
87
     * @see NetDevice::$_drops
87
     * @see NetDevice::$_drops
88
     *
88
     *
89
     * @return Void
89
     * @return void
90
     */
90
     */
91
    public function setDrops($drops)
91
    public function setDrops($drops)
92
    {
92
    {
93
        $this->_drops = $drops;
93
        $this->_drops = $drops;
94
    }
94
    }
Line 96... Line 96...
96
    /**
96
    /**
97
     * Returns $_errors.
97
     * Returns $_errors.
98
     *
98
     *
99
     * @see NetDevice::$_errors
99
     * @see NetDevice::$_errors
100
     *
100
     *
101
     * @return Integer
101
     * @return int
102
     */
102
     */
103
    public function getErrors()
103
    public function getErrors()
104
    {
104
    {
105
        return $this->_errors;
105
        return $this->_errors;
106
    }
106
    }
107
 
107
 
108
    /**
108
    /**
109
     * Sets $_errors.
109
     * Sets $_errors.
110
     *
110
     *
111
     * @param Integer $errors error packages
111
     * @param int $errors error packages
112
     *
112
     *
113
     * @see NetDevice::$_errors
113
     * @see NetDevice::$_errors
114
     *
114
     *
115
     * @return Void
115
     * @return void
116
     */
116
     */
117
    public function setErrors($errors)
117
    public function setErrors($errors)
118
    {
118
    {
119
        $this->_errors = $errors;
119
        $this->_errors = $errors;
120
    }
120
    }
Line 136... Line 136...
136
     *
136
     *
137
     * @param String $name device name
137
     * @param String $name device name
138
     *
138
     *
139
     * @see NetDevice::$_name
139
     * @see NetDevice::$_name
140
     *
140
     *
141
     * @return Void
141
     * @return void
142
     */
142
     */
143
    public function setName($name)
143
    public function setName($name)
144
    {
144
    {
145
        $this->_name = $name;
145
        $this->_name = $name;
146
    }
146
    }
Line 148... Line 148...
148
    /**
148
    /**
149
     * Returns $_rxBytes.
149
     * Returns $_rxBytes.
150
     *
150
     *
151
     * @see NetDevice::$_rxBytes
151
     * @see NetDevice::$_rxBytes
152
     *
152
     *
153
     * @return Integer
153
     * @return int
154
     */
154
     */
155
    public function getRxBytes()
155
    public function getRxBytes()
156
    {
156
    {
157
        return $this->_rxBytes;
157
        return $this->_rxBytes;
158
    }
158
    }
159
 
159
 
160
    /**
160
    /**
161
     * Sets $_rxBytes.
161
     * Sets $_rxBytes.
162
     *
162
     *
163
     * @param Integer $rxBytes received bytes
163
     * @param int $rxBytes received bytes
164
     *
164
     *
165
     * @see NetDevice::$_rxBytes
165
     * @see NetDevice::$_rxBytes
166
     *
166
     *
167
     * @return Void
167
     * @return void
168
     */
168
     */
169
    public function setRxBytes($rxBytes)
169
    public function setRxBytes($rxBytes)
170
    {
170
    {
171
        $this->_rxBytes = $rxBytes;
171
        $this->_rxBytes = $rxBytes;
172
    }
172
    }
Line 174... Line 174...
174
    /**
174
    /**
175
     * Returns $_txBytes.
175
     * Returns $_txBytes.
176
     *
176
     *
177
     * @see NetDevice::$_txBytes
177
     * @see NetDevice::$_txBytes
178
     *
178
     *
179
     * @return Integer
179
     * @return int
180
     */
180
     */
181
    public function getTxBytes()
181
    public function getTxBytes()
182
    {
182
    {
183
        return $this->_txBytes;
183
        return $this->_txBytes;
184
    }
184
    }
185
 
185
 
186
    /**
186
    /**
187
     * Sets $_txBytes.
187
     * Sets $_txBytes.
188
     *
188
     *
189
     * @param Integer $txBytes transmitted bytes
189
     * @param int $txBytes transmitted bytes
190
     *
190
     *
191
     * @see NetDevice::$_txBytes
191
     * @see NetDevice::$_txBytes
192
     *
192
     *
193
     * @return Void
193
     * @return void
194
     */
194
     */
195
    public function setTxBytes($txBytes)
195
    public function setTxBytes($txBytes)
196
    {
196
    {
197
        $this->_txBytes = $txBytes;
197
        $this->_txBytes = $txBytes;
198
    }
198
    }
Line 214... Line 214...
214
     *
214
     *
215
     * @param String $info info string
215
     * @param String $info info string
216
     *
216
     *
217
     * @see NetDevice::$_info
217
     * @see NetDevice::$_info
218
     *
218
     *
219
     * @return Void
219
     * @return void
220
     */
220
     */
221
    public function setInfo($info)
221
    public function setInfo($info)
222
    {
222
    {
223
        $this->_info = $info;
223
        $this->_info = $info;
224
    }
224
    }