2 * This Java file has been generated by smidump 0.4.5. It
3 * is intended to be edited by the application programmer and
4 * to be used within a Java AgentX sub-agent environment.
6 * $Id: NlMatrixTopNControlEntryImpl.java 4432 2006-05-29 16:21:11Z strauss $
10 This class extends the Java AgentX (JAX) implementation of
11 the table row nlMatrixTopNControlEntry defined in RMON2-MIB.
15 import jax.AgentXSetPhase;
16 import jax.AgentXResponsePDU;
17 import jax.AgentXEntry;
19 public class NlMatrixTopNControlEntryImpl extends NlMatrixTopNControlEntry
23 public NlMatrixTopNControlEntryImpl(int nlMatrixTopNControlIndex)
25 super(nlMatrixTopNControlIndex);
28 public int get_nlMatrixTopNControlMatrixIndex()
30 return nlMatrixTopNControlMatrixIndex;
33 public int set_nlMatrixTopNControlMatrixIndex(AgentXSetPhase phase, int value)
35 switch (phase.getPhase()) {
36 case AgentXSetPhase.TEST_SET:
38 case AgentXSetPhase.COMMIT:
39 undo_nlMatrixTopNControlMatrixIndex = nlMatrixTopNControlMatrixIndex;
40 nlMatrixTopNControlMatrixIndex = value;
42 case AgentXSetPhase.UNDO:
43 nlMatrixTopNControlMatrixIndex = undo_nlMatrixTopNControlMatrixIndex;
45 case AgentXSetPhase.CLEANUP:
48 return AgentXResponsePDU.PROCESSING_ERROR;
50 return AgentXResponsePDU.NO_ERROR;
52 public int get_nlMatrixTopNControlRateBase()
54 return nlMatrixTopNControlRateBase;
57 public int set_nlMatrixTopNControlRateBase(AgentXSetPhase phase, int value)
59 switch (phase.getPhase()) {
60 case AgentXSetPhase.TEST_SET:
62 case AgentXSetPhase.COMMIT:
63 undo_nlMatrixTopNControlRateBase = nlMatrixTopNControlRateBase;
64 nlMatrixTopNControlRateBase = value;
66 case AgentXSetPhase.UNDO:
67 nlMatrixTopNControlRateBase = undo_nlMatrixTopNControlRateBase;
69 case AgentXSetPhase.CLEANUP:
72 return AgentXResponsePDU.PROCESSING_ERROR;
74 return AgentXResponsePDU.NO_ERROR;
76 public int get_nlMatrixTopNControlTimeRemaining()
78 return nlMatrixTopNControlTimeRemaining;
81 public int set_nlMatrixTopNControlTimeRemaining(AgentXSetPhase phase, int value)
83 switch (phase.getPhase()) {
84 case AgentXSetPhase.TEST_SET:
86 case AgentXSetPhase.COMMIT:
87 undo_nlMatrixTopNControlTimeRemaining = nlMatrixTopNControlTimeRemaining;
88 nlMatrixTopNControlTimeRemaining = value;
90 case AgentXSetPhase.UNDO:
91 nlMatrixTopNControlTimeRemaining = undo_nlMatrixTopNControlTimeRemaining;
93 case AgentXSetPhase.CLEANUP:
96 return AgentXResponsePDU.PROCESSING_ERROR;
98 return AgentXResponsePDU.NO_ERROR;
100 public long get_nlMatrixTopNControlGeneratedReports()
102 return nlMatrixTopNControlGeneratedReports;
105 public int get_nlMatrixTopNControlDuration()
107 return nlMatrixTopNControlDuration;
110 public int get_nlMatrixTopNControlRequestedSize()
112 return nlMatrixTopNControlRequestedSize;
115 public int set_nlMatrixTopNControlRequestedSize(AgentXSetPhase phase, int value)
117 switch (phase.getPhase()) {
118 case AgentXSetPhase.TEST_SET:
120 case AgentXSetPhase.COMMIT:
121 undo_nlMatrixTopNControlRequestedSize = nlMatrixTopNControlRequestedSize;
122 nlMatrixTopNControlRequestedSize = value;
124 case AgentXSetPhase.UNDO:
125 nlMatrixTopNControlRequestedSize = undo_nlMatrixTopNControlRequestedSize;
127 case AgentXSetPhase.CLEANUP:
130 return AgentXResponsePDU.PROCESSING_ERROR;
132 return AgentXResponsePDU.NO_ERROR;
134 public int get_nlMatrixTopNControlGrantedSize()
136 return nlMatrixTopNControlGrantedSize;
139 public long get_nlMatrixTopNControlStartTime()
141 return nlMatrixTopNControlStartTime;
144 public byte[] get_nlMatrixTopNControlOwner()
146 return nlMatrixTopNControlOwner;
149 public int set_nlMatrixTopNControlOwner(AgentXSetPhase phase, byte[] value)
151 switch (phase.getPhase()) {
152 case AgentXSetPhase.TEST_SET:
154 case AgentXSetPhase.COMMIT:
155 undo_nlMatrixTopNControlOwner = nlMatrixTopNControlOwner;
156 nlMatrixTopNControlOwner = new byte[value.length];
157 for(int i = 0; i < value.length; i++)
158 nlMatrixTopNControlOwner[i] = value[i];
160 case AgentXSetPhase.UNDO:
161 nlMatrixTopNControlOwner = undo_nlMatrixTopNControlOwner;
163 case AgentXSetPhase.CLEANUP:
164 undo_nlMatrixTopNControlOwner = null;
167 return AgentXResponsePDU.PROCESSING_ERROR;
169 return AgentXResponsePDU.NO_ERROR;
171 public int get_nlMatrixTopNControlStatus()
173 return nlMatrixTopNControlStatus;
176 public int set_nlMatrixTopNControlStatus(AgentXSetPhase phase, int value)
178 switch (phase.getPhase()) {
179 case AgentXSetPhase.TEST_SET:
181 case AgentXSetPhase.COMMIT:
182 undo_nlMatrixTopNControlStatus = nlMatrixTopNControlStatus;
183 nlMatrixTopNControlStatus = value;
185 case AgentXSetPhase.UNDO:
186 nlMatrixTopNControlStatus = undo_nlMatrixTopNControlStatus;
188 case AgentXSetPhase.CLEANUP:
191 return AgentXResponsePDU.PROCESSING_ERROR;
193 return AgentXResponsePDU.NO_ERROR;