Imported Upstream version 0.4.8
[platform/upstream/libsmi.git] / test / dumps / jax / NlMatrixTopNControlEntryImpl.java
1 /*
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.
5  *
6  * $Id: NlMatrixTopNControlEntryImpl.java 4432 2006-05-29 16:21:11Z strauss $
7  */
8
9 /**
10     This class extends the Java AgentX (JAX) implementation of
11     the table row nlMatrixTopNControlEntry defined in RMON2-MIB.
12  */
13
14 import jax.AgentXOID;
15 import jax.AgentXSetPhase;
16 import jax.AgentXResponsePDU;
17 import jax.AgentXEntry;
18
19 public class NlMatrixTopNControlEntryImpl extends NlMatrixTopNControlEntry
20 {
21
22     // constructor
23     public NlMatrixTopNControlEntryImpl(int nlMatrixTopNControlIndex)
24     {
25         super(nlMatrixTopNControlIndex);
26     }
27
28     public int get_nlMatrixTopNControlMatrixIndex()
29     {
30         return nlMatrixTopNControlMatrixIndex;
31     }
32
33     public int set_nlMatrixTopNControlMatrixIndex(AgentXSetPhase phase, int value)
34     {
35         switch (phase.getPhase()) {
36         case AgentXSetPhase.TEST_SET:
37             break;
38         case AgentXSetPhase.COMMIT:
39             undo_nlMatrixTopNControlMatrixIndex = nlMatrixTopNControlMatrixIndex;
40             nlMatrixTopNControlMatrixIndex = value;
41             break;
42         case AgentXSetPhase.UNDO:
43             nlMatrixTopNControlMatrixIndex = undo_nlMatrixTopNControlMatrixIndex;
44             break;
45         case AgentXSetPhase.CLEANUP:
46             break;
47         default:
48             return AgentXResponsePDU.PROCESSING_ERROR;
49         }
50         return AgentXResponsePDU.NO_ERROR;
51     }
52     public int get_nlMatrixTopNControlRateBase()
53     {
54         return nlMatrixTopNControlRateBase;
55     }
56
57     public int set_nlMatrixTopNControlRateBase(AgentXSetPhase phase, int value)
58     {
59         switch (phase.getPhase()) {
60         case AgentXSetPhase.TEST_SET:
61             break;
62         case AgentXSetPhase.COMMIT:
63             undo_nlMatrixTopNControlRateBase = nlMatrixTopNControlRateBase;
64             nlMatrixTopNControlRateBase = value;
65             break;
66         case AgentXSetPhase.UNDO:
67             nlMatrixTopNControlRateBase = undo_nlMatrixTopNControlRateBase;
68             break;
69         case AgentXSetPhase.CLEANUP:
70             break;
71         default:
72             return AgentXResponsePDU.PROCESSING_ERROR;
73         }
74         return AgentXResponsePDU.NO_ERROR;
75     }
76     public int get_nlMatrixTopNControlTimeRemaining()
77     {
78         return nlMatrixTopNControlTimeRemaining;
79     }
80
81     public int set_nlMatrixTopNControlTimeRemaining(AgentXSetPhase phase, int value)
82     {
83         switch (phase.getPhase()) {
84         case AgentXSetPhase.TEST_SET:
85             break;
86         case AgentXSetPhase.COMMIT:
87             undo_nlMatrixTopNControlTimeRemaining = nlMatrixTopNControlTimeRemaining;
88             nlMatrixTopNControlTimeRemaining = value;
89             break;
90         case AgentXSetPhase.UNDO:
91             nlMatrixTopNControlTimeRemaining = undo_nlMatrixTopNControlTimeRemaining;
92             break;
93         case AgentXSetPhase.CLEANUP:
94             break;
95         default:
96             return AgentXResponsePDU.PROCESSING_ERROR;
97         }
98         return AgentXResponsePDU.NO_ERROR;
99     }
100     public long get_nlMatrixTopNControlGeneratedReports()
101     {
102         return nlMatrixTopNControlGeneratedReports;
103     }
104
105     public int get_nlMatrixTopNControlDuration()
106     {
107         return nlMatrixTopNControlDuration;
108     }
109
110     public int get_nlMatrixTopNControlRequestedSize()
111     {
112         return nlMatrixTopNControlRequestedSize;
113     }
114
115     public int set_nlMatrixTopNControlRequestedSize(AgentXSetPhase phase, int value)
116     {
117         switch (phase.getPhase()) {
118         case AgentXSetPhase.TEST_SET:
119             break;
120         case AgentXSetPhase.COMMIT:
121             undo_nlMatrixTopNControlRequestedSize = nlMatrixTopNControlRequestedSize;
122             nlMatrixTopNControlRequestedSize = value;
123             break;
124         case AgentXSetPhase.UNDO:
125             nlMatrixTopNControlRequestedSize = undo_nlMatrixTopNControlRequestedSize;
126             break;
127         case AgentXSetPhase.CLEANUP:
128             break;
129         default:
130             return AgentXResponsePDU.PROCESSING_ERROR;
131         }
132         return AgentXResponsePDU.NO_ERROR;
133     }
134     public int get_nlMatrixTopNControlGrantedSize()
135     {
136         return nlMatrixTopNControlGrantedSize;
137     }
138
139     public long get_nlMatrixTopNControlStartTime()
140     {
141         return nlMatrixTopNControlStartTime;
142     }
143
144     public byte[] get_nlMatrixTopNControlOwner()
145     {
146         return nlMatrixTopNControlOwner;
147     }
148
149     public int set_nlMatrixTopNControlOwner(AgentXSetPhase phase, byte[] value)
150     {
151         switch (phase.getPhase()) {
152         case AgentXSetPhase.TEST_SET:
153             break;
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];
159             break;
160         case AgentXSetPhase.UNDO:
161             nlMatrixTopNControlOwner = undo_nlMatrixTopNControlOwner;
162             break;
163         case AgentXSetPhase.CLEANUP:
164             undo_nlMatrixTopNControlOwner = null;
165             break;
166         default:
167             return AgentXResponsePDU.PROCESSING_ERROR;
168         }
169         return AgentXResponsePDU.NO_ERROR;
170     }
171     public int get_nlMatrixTopNControlStatus()
172     {
173         return nlMatrixTopNControlStatus;
174     }
175
176     public int set_nlMatrixTopNControlStatus(AgentXSetPhase phase, int value)
177     {
178         switch (phase.getPhase()) {
179         case AgentXSetPhase.TEST_SET:
180             break;
181         case AgentXSetPhase.COMMIT:
182             undo_nlMatrixTopNControlStatus = nlMatrixTopNControlStatus;
183             nlMatrixTopNControlStatus = value;
184             break;
185         case AgentXSetPhase.UNDO:
186             nlMatrixTopNControlStatus = undo_nlMatrixTopNControlStatus;
187             break;
188         case AgentXSetPhase.CLEANUP:
189             break;
190         default:
191             return AgentXResponsePDU.PROCESSING_ERROR;
192         }
193         return AgentXResponsePDU.NO_ERROR;
194     }
195 }
196