KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ist > coach > coachEmsMibComponents > LogicalInterfaceProviderComposition > LogicalInterfaceDataStructure


1 package ist.coach.coachEmsMibComponents.LogicalInterfaceProviderComposition;
2
3 import org.omg.CosNaming.NameComponent JavaDoc;
4 import intt.itu.itut_x780.SourceIndicatorType;
5
6 public class LogicalInterfaceDataStructure {
7
8         public int ifIndex;
9         public NameComponent JavaDoc [] name;
10         public String JavaDoc objectclass;
11         public String JavaDoc [] packages;
12         public SourceIndicatorType sourceIndicator;
13         public short deletePolicy;
14         //public NameComponent [] supportedByObjectList;
15

16         private int notificationIdentifier;
17         private String JavaDoc mgmtIpAddress;
18         private int snmpPort;
19         private int supportedSnmpVersions;
20         private String JavaDoc ifDescr;
21
22         public LogicalInterfaceDataStructure() {}
23
24         public LogicalInterfaceDataStructure(
25             int ifIndex,
26             NameComponent JavaDoc [] name,
27             String JavaDoc objectclass,
28             String JavaDoc [] packages,
29             SourceIndicatorType sourceIndicator,
30             short deletePolicy,
31             //NameComponent [] supportedByObjectList,
32
String JavaDoc mgmtIpAddress,
33             int snmpPort,
34             int supportedSnmpVersions,
35             String JavaDoc ifDescr) {
36
37             this.ifIndex = ifIndex;
38             this.name = name;
39             this.objectclass = objectclass;
40             this.packages = packages;
41             this.sourceIndicator = sourceIndicator;
42             this.deletePolicy = deletePolicy;
43 // this.supportedByObjectList = supportedByObjectList;
44
this.notificationIdentifier = 0;
45             this.mgmtIpAddress = mgmtIpAddress;
46             this.snmpPort = snmpPort;
47             this.supportedSnmpVersions = supportedSnmpVersions;
48             this.ifDescr = ifDescr;
49         }
50
51         public int getUniqueNotificationIdentifier() {
52
53             notificationIdentifier++;
54
55             return (notificationIdentifier);
56         }
57
58         public int getifIndex() {
59             return ifIndex;
60         }
61
62         public String JavaDoc getObjectClass() {
63             return objectclass;
64         }
65
66         public NameComponent JavaDoc [] getName() {
67             return name;
68         }
69
70         public String JavaDoc[] getPackages() {
71             return packages;
72         }
73
74         public SourceIndicatorType getSourceIndicator() {
75             return sourceIndicator;
76         }
77
78         public short getDeletePolicy() {
79             return deletePolicy;
80         }
81
82         public String JavaDoc getMgmtIpAddress() {
83             return mgmtIpAddress;
84         }
85
86         public int getSnmpPort() {
87             return snmpPort;
88         }
89
90         public int getSupportedSnmpVersions() {
91             return supportedSnmpVersions;
92         }
93
94         public String JavaDoc getIfDescr() {
95             return ifDescr;
96         }
97     }
98
Popular Tags