2 * This Java file has been generated by smidump 0.4.5. Do not edit!
3 * It is intended to be used within a Java AgentX sub-agent environment.
5 * $Id: AlMatrixTopNControlEntry.java 4432 2006-05-29 16:21:11Z strauss $
9 This class represents a Java AgentX (JAX) implementation of
10 the table row alMatrixTopNControlEntry defined in RMON2-MIB.
14 @see AgentXTable, AgentXEntry
18 import jax.AgentXSetPhase;
19 import jax.AgentXResponsePDU;
20 import jax.AgentXEntry;
22 public class AlMatrixTopNControlEntry extends AgentXEntry
25 protected int alMatrixTopNControlIndex = 0;
26 protected int alMatrixTopNControlMatrixIndex = 0;
27 protected int undo_alMatrixTopNControlMatrixIndex = 0;
28 protected int alMatrixTopNControlRateBase = 0;
29 protected int undo_alMatrixTopNControlRateBase = 0;
30 protected int alMatrixTopNControlTimeRemaining = 0;
31 protected int undo_alMatrixTopNControlTimeRemaining = 0;
32 protected long alMatrixTopNControlGeneratedReports = 0;
33 protected int alMatrixTopNControlDuration = 0;
34 protected int alMatrixTopNControlRequestedSize = 0;
35 protected int undo_alMatrixTopNControlRequestedSize = 0;
36 protected int alMatrixTopNControlGrantedSize = 0;
37 protected long alMatrixTopNControlStartTime = 0;
38 protected byte[] alMatrixTopNControlOwner = new byte[0];
39 protected byte[] undo_alMatrixTopNControlOwner = new byte[0];
40 protected int alMatrixTopNControlStatus = 0;
41 protected int undo_alMatrixTopNControlStatus = 0;
43 public AlMatrixTopNControlEntry(int alMatrixTopNControlIndex)
45 this.alMatrixTopNControlIndex = alMatrixTopNControlIndex;
47 instance.append(alMatrixTopNControlIndex);
50 public int get_alMatrixTopNControlIndex()
52 return alMatrixTopNControlIndex;
55 public int get_alMatrixTopNControlMatrixIndex()
57 return alMatrixTopNControlMatrixIndex;
60 public int set_alMatrixTopNControlMatrixIndex(AgentXSetPhase phase, int value)
62 switch (phase.getPhase()) {
63 case AgentXSetPhase.TEST_SET:
65 case AgentXSetPhase.COMMIT:
66 undo_alMatrixTopNControlMatrixIndex = alMatrixTopNControlMatrixIndex;
67 alMatrixTopNControlMatrixIndex = value;
69 case AgentXSetPhase.UNDO:
70 alMatrixTopNControlMatrixIndex = undo_alMatrixTopNControlMatrixIndex;
72 case AgentXSetPhase.CLEANUP:
75 return AgentXResponsePDU.PROCESSING_ERROR;
77 return AgentXResponsePDU.NO_ERROR;
79 public int get_alMatrixTopNControlRateBase()
81 return alMatrixTopNControlRateBase;
84 public int set_alMatrixTopNControlRateBase(AgentXSetPhase phase, int value)
86 switch (phase.getPhase()) {
87 case AgentXSetPhase.TEST_SET:
89 case AgentXSetPhase.COMMIT:
90 undo_alMatrixTopNControlRateBase = alMatrixTopNControlRateBase;
91 alMatrixTopNControlRateBase = value;
93 case AgentXSetPhase.UNDO:
94 alMatrixTopNControlRateBase = undo_alMatrixTopNControlRateBase;
96 case AgentXSetPhase.CLEANUP:
99 return AgentXResponsePDU.PROCESSING_ERROR;
101 return AgentXResponsePDU.NO_ERROR;
103 public int get_alMatrixTopNControlTimeRemaining()
105 return alMatrixTopNControlTimeRemaining;
108 public int set_alMatrixTopNControlTimeRemaining(AgentXSetPhase phase, int value)
110 switch (phase.getPhase()) {
111 case AgentXSetPhase.TEST_SET:
113 case AgentXSetPhase.COMMIT:
114 undo_alMatrixTopNControlTimeRemaining = alMatrixTopNControlTimeRemaining;
115 alMatrixTopNControlTimeRemaining = value;
117 case AgentXSetPhase.UNDO:
118 alMatrixTopNControlTimeRemaining = undo_alMatrixTopNControlTimeRemaining;
120 case AgentXSetPhase.CLEANUP:
123 return AgentXResponsePDU.PROCESSING_ERROR;
125 return AgentXResponsePDU.NO_ERROR;
127 public long get_alMatrixTopNControlGeneratedReports()
129 return alMatrixTopNControlGeneratedReports;
132 public int get_alMatrixTopNControlDuration()
134 return alMatrixTopNControlDuration;
137 public int get_alMatrixTopNControlRequestedSize()
139 return alMatrixTopNControlRequestedSize;
142 public int set_alMatrixTopNControlRequestedSize(AgentXSetPhase phase, int value)
144 switch (phase.getPhase()) {
145 case AgentXSetPhase.TEST_SET:
147 case AgentXSetPhase.COMMIT:
148 undo_alMatrixTopNControlRequestedSize = alMatrixTopNControlRequestedSize;
149 alMatrixTopNControlRequestedSize = value;
151 case AgentXSetPhase.UNDO:
152 alMatrixTopNControlRequestedSize = undo_alMatrixTopNControlRequestedSize;
154 case AgentXSetPhase.CLEANUP:
157 return AgentXResponsePDU.PROCESSING_ERROR;
159 return AgentXResponsePDU.NO_ERROR;
161 public int get_alMatrixTopNControlGrantedSize()
163 return alMatrixTopNControlGrantedSize;
166 public long get_alMatrixTopNControlStartTime()
168 return alMatrixTopNControlStartTime;
171 public byte[] get_alMatrixTopNControlOwner()
173 return alMatrixTopNControlOwner;
176 public int set_alMatrixTopNControlOwner(AgentXSetPhase phase, byte[] value)
178 switch (phase.getPhase()) {
179 case AgentXSetPhase.TEST_SET:
181 case AgentXSetPhase.COMMIT:
182 undo_alMatrixTopNControlOwner = alMatrixTopNControlOwner;
183 alMatrixTopNControlOwner = new byte[value.length];
184 for(int i = 0; i < value.length; i++)
185 alMatrixTopNControlOwner[i] = value[i];
187 case AgentXSetPhase.UNDO:
188 alMatrixTopNControlOwner = undo_alMatrixTopNControlOwner;
190 case AgentXSetPhase.CLEANUP:
191 undo_alMatrixTopNControlOwner = null;
194 return AgentXResponsePDU.PROCESSING_ERROR;
196 return AgentXResponsePDU.NO_ERROR;
198 public int get_alMatrixTopNControlStatus()
200 return alMatrixTopNControlStatus;
203 public int set_alMatrixTopNControlStatus(AgentXSetPhase phase, int value)
205 switch (phase.getPhase()) {
206 case AgentXSetPhase.TEST_SET:
208 case AgentXSetPhase.COMMIT:
209 undo_alMatrixTopNControlStatus = alMatrixTopNControlStatus;
210 alMatrixTopNControlStatus = value;
212 case AgentXSetPhase.UNDO:
213 alMatrixTopNControlStatus = undo_alMatrixTopNControlStatus;
215 case AgentXSetPhase.CLEANUP:
218 return AgentXResponsePDU.PROCESSING_ERROR;
220 return AgentXResponsePDU.NO_ERROR;