Imported Upstream version 0.4.8
[platform/upstream/libsmi.git] / test / dumps / jax / AlMatrixTopNControlEntry.java
1 /*
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.
4  *
5  * $Id: AlMatrixTopNControlEntry.java 4432 2006-05-29 16:21:11Z strauss $
6  */
7
8 /**
9     This class represents a Java AgentX (JAX) implementation of
10     the table row alMatrixTopNControlEntry defined in RMON2-MIB.
11
12     @version 1
13     @author  smidump 0.4.5
14     @see     AgentXTable, AgentXEntry
15  */
16
17 import jax.AgentXOID;
18 import jax.AgentXSetPhase;
19 import jax.AgentXResponsePDU;
20 import jax.AgentXEntry;
21
22 public class AlMatrixTopNControlEntry extends AgentXEntry
23 {
24
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;
42
43     public AlMatrixTopNControlEntry(int alMatrixTopNControlIndex)
44     {
45         this.alMatrixTopNControlIndex = alMatrixTopNControlIndex;
46
47         instance.append(alMatrixTopNControlIndex);
48     }
49
50     public int get_alMatrixTopNControlIndex()
51     {
52         return alMatrixTopNControlIndex;
53     }
54
55     public int get_alMatrixTopNControlMatrixIndex()
56     {
57         return alMatrixTopNControlMatrixIndex;
58     }
59
60     public int set_alMatrixTopNControlMatrixIndex(AgentXSetPhase phase, int value)
61     {
62         switch (phase.getPhase()) {
63         case AgentXSetPhase.TEST_SET:
64             break;
65         case AgentXSetPhase.COMMIT:
66             undo_alMatrixTopNControlMatrixIndex = alMatrixTopNControlMatrixIndex;
67             alMatrixTopNControlMatrixIndex = value;
68             break;
69         case AgentXSetPhase.UNDO:
70             alMatrixTopNControlMatrixIndex = undo_alMatrixTopNControlMatrixIndex;
71             break;
72         case AgentXSetPhase.CLEANUP:
73             break;
74         default:
75             return AgentXResponsePDU.PROCESSING_ERROR;
76         }
77         return AgentXResponsePDU.NO_ERROR;
78     }
79     public int get_alMatrixTopNControlRateBase()
80     {
81         return alMatrixTopNControlRateBase;
82     }
83
84     public int set_alMatrixTopNControlRateBase(AgentXSetPhase phase, int value)
85     {
86         switch (phase.getPhase()) {
87         case AgentXSetPhase.TEST_SET:
88             break;
89         case AgentXSetPhase.COMMIT:
90             undo_alMatrixTopNControlRateBase = alMatrixTopNControlRateBase;
91             alMatrixTopNControlRateBase = value;
92             break;
93         case AgentXSetPhase.UNDO:
94             alMatrixTopNControlRateBase = undo_alMatrixTopNControlRateBase;
95             break;
96         case AgentXSetPhase.CLEANUP:
97             break;
98         default:
99             return AgentXResponsePDU.PROCESSING_ERROR;
100         }
101         return AgentXResponsePDU.NO_ERROR;
102     }
103     public int get_alMatrixTopNControlTimeRemaining()
104     {
105         return alMatrixTopNControlTimeRemaining;
106     }
107
108     public int set_alMatrixTopNControlTimeRemaining(AgentXSetPhase phase, int value)
109     {
110         switch (phase.getPhase()) {
111         case AgentXSetPhase.TEST_SET:
112             break;
113         case AgentXSetPhase.COMMIT:
114             undo_alMatrixTopNControlTimeRemaining = alMatrixTopNControlTimeRemaining;
115             alMatrixTopNControlTimeRemaining = value;
116             break;
117         case AgentXSetPhase.UNDO:
118             alMatrixTopNControlTimeRemaining = undo_alMatrixTopNControlTimeRemaining;
119             break;
120         case AgentXSetPhase.CLEANUP:
121             break;
122         default:
123             return AgentXResponsePDU.PROCESSING_ERROR;
124         }
125         return AgentXResponsePDU.NO_ERROR;
126     }
127     public long get_alMatrixTopNControlGeneratedReports()
128     {
129         return alMatrixTopNControlGeneratedReports;
130     }
131
132     public int get_alMatrixTopNControlDuration()
133     {
134         return alMatrixTopNControlDuration;
135     }
136
137     public int get_alMatrixTopNControlRequestedSize()
138     {
139         return alMatrixTopNControlRequestedSize;
140     }
141
142     public int set_alMatrixTopNControlRequestedSize(AgentXSetPhase phase, int value)
143     {
144         switch (phase.getPhase()) {
145         case AgentXSetPhase.TEST_SET:
146             break;
147         case AgentXSetPhase.COMMIT:
148             undo_alMatrixTopNControlRequestedSize = alMatrixTopNControlRequestedSize;
149             alMatrixTopNControlRequestedSize = value;
150             break;
151         case AgentXSetPhase.UNDO:
152             alMatrixTopNControlRequestedSize = undo_alMatrixTopNControlRequestedSize;
153             break;
154         case AgentXSetPhase.CLEANUP:
155             break;
156         default:
157             return AgentXResponsePDU.PROCESSING_ERROR;
158         }
159         return AgentXResponsePDU.NO_ERROR;
160     }
161     public int get_alMatrixTopNControlGrantedSize()
162     {
163         return alMatrixTopNControlGrantedSize;
164     }
165
166     public long get_alMatrixTopNControlStartTime()
167     {
168         return alMatrixTopNControlStartTime;
169     }
170
171     public byte[] get_alMatrixTopNControlOwner()
172     {
173         return alMatrixTopNControlOwner;
174     }
175
176     public int set_alMatrixTopNControlOwner(AgentXSetPhase phase, byte[] value)
177     {
178         switch (phase.getPhase()) {
179         case AgentXSetPhase.TEST_SET:
180             break;
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];
186             break;
187         case AgentXSetPhase.UNDO:
188             alMatrixTopNControlOwner = undo_alMatrixTopNControlOwner;
189             break;
190         case AgentXSetPhase.CLEANUP:
191             undo_alMatrixTopNControlOwner = null;
192             break;
193         default:
194             return AgentXResponsePDU.PROCESSING_ERROR;
195         }
196         return AgentXResponsePDU.NO_ERROR;
197     }
198     public int get_alMatrixTopNControlStatus()
199     {
200         return alMatrixTopNControlStatus;
201     }
202
203     public int set_alMatrixTopNControlStatus(AgentXSetPhase phase, int value)
204     {
205         switch (phase.getPhase()) {
206         case AgentXSetPhase.TEST_SET:
207             break;
208         case AgentXSetPhase.COMMIT:
209             undo_alMatrixTopNControlStatus = alMatrixTopNControlStatus;
210             alMatrixTopNControlStatus = value;
211             break;
212         case AgentXSetPhase.UNDO:
213             alMatrixTopNControlStatus = undo_alMatrixTopNControlStatus;
214             break;
215         case AgentXSetPhase.CLEANUP:
216             break;
217         default:
218             return AgentXResponsePDU.PROCESSING_ERROR;
219         }
220         return AgentXResponsePDU.NO_ERROR;
221     }
222 }
223