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: IfStackEntry.java 4432 2006-05-29 16:21:11Z strauss $
9 This class represents a Java AgentX (JAX) implementation of
10 the table row ifStackEntry defined in IF-MIB.
14 @see AgentXTable, AgentXEntry
18 import jax.AgentXSetPhase;
19 import jax.AgentXResponsePDU;
20 import jax.AgentXEntry;
22 public class IfStackEntry extends AgentXEntry
25 protected int ifStackHigherLayer = 0;
26 protected int ifStackLowerLayer = 0;
27 protected int ifStackStatus = 0;
28 protected int undo_ifStackStatus = 0;
30 public IfStackEntry(int ifStackHigherLayer,
31 int ifStackLowerLayer)
33 this.ifStackHigherLayer = ifStackHigherLayer;
34 this.ifStackLowerLayer = ifStackLowerLayer;
36 instance.append(ifStackHigherLayer);
37 instance.append(ifStackLowerLayer);
40 public int get_ifStackHigherLayer()
42 return ifStackHigherLayer;
45 public int get_ifStackLowerLayer()
47 return ifStackLowerLayer;
50 public int get_ifStackStatus()
55 public int set_ifStackStatus(AgentXSetPhase phase, int value)
57 switch (phase.getPhase()) {
58 case AgentXSetPhase.TEST_SET:
60 case AgentXSetPhase.COMMIT:
61 undo_ifStackStatus = ifStackStatus;
62 ifStackStatus = value;
64 case AgentXSetPhase.UNDO:
65 ifStackStatus = undo_ifStackStatus;
67 case AgentXSetPhase.CLEANUP:
70 return AgentXResponsePDU.PROCESSING_ERROR;
72 return AgentXResponsePDU.NO_ERROR;