1 package ist.coach.coachEmsMibComponents.IpToMACAddressProviderComposition; 2 3 import org.omg.CosNaming.NameComponent ; 4 import intt.itu.itut_x780.SourceIndicatorType; 5 6 public class IpToMACAddressDataStructure { 7 8 private int ipNetToMediaIfIndex; 9 private byte[] ipNetToMediaNetAddress; 10 11 private NameComponent [] name; 12 public String objectclass; 13 private String [] packages; 14 public SourceIndicatorType sourceIndicator; 15 public short deletePolicy; 16 18 private int notificationIdentifier; 19 private String mgmtIpAddress; 20 private int snmpPort; 21 private int supportedSnmpVersions; 22 23 24 public IpToMACAddressDataStructure() {} 25 26 public IpToMACAddressDataStructure( 27 int ipNetToMediaIfIndex, 28 byte[] ipNetToMediaNetAddress, 29 NameComponent [] name, 30 String objectclass, 31 String [] packages, 32 SourceIndicatorType sourceIndicator, 33 short deletePolicy, 34 String mgmtIpAddress, 36 int snmpPort, 37 int supportedSnmpVersions) { 38 39 this.ipNetToMediaIfIndex = ipNetToMediaIfIndex; 40 this.ipNetToMediaNetAddress = ipNetToMediaNetAddress; 41 this.name = name; 42 this.objectclass = objectclass; 43 this.packages = packages; 44 this.sourceIndicator = sourceIndicator; 45 this.deletePolicy = deletePolicy; 46 this.notificationIdentifier = 0; 48 this.mgmtIpAddress = mgmtIpAddress; 49 this.snmpPort = snmpPort; 50 this.supportedSnmpVersions = supportedSnmpVersions; 51 52 } 53 54 public int getUniqueNotificationIdentifier() { 55 56 notificationIdentifier++; 57 58 return (notificationIdentifier); 59 } 60 61 public String getObjectClass() { 62 return objectclass; 63 } 64 65 public NameComponent [] getName() { 66 return name; 67 } 68 69 public String [] getPackages() { 70 return packages; 71 } 72 73 public SourceIndicatorType getSourceIndicator() { 74 return sourceIndicator; 75 } 76 77 public short getDeletePolicy() { 78 return deletePolicy; 79 } 80 81 public String getMgmtIpAddress() { 82 return mgmtIpAddress; 83 } 84 85 public int getSnmpPort() { 86 return snmpPort; 87 } 88 89 public int getSupportedSnmpVersions() { 90 return supportedSnmpVersions; 91 } 92 93 public byte[] getipNetToMediaNetAddress() { 94 95 if (ipNetToMediaNetAddress.length > 0) 96 return ipNetToMediaNetAddress; 97 return new byte[0]; 98 } 99 100 public int getipNetToMediaIfIndex() { 101 102 return ipNetToMediaIfIndex; 103 } 104 } 105 | Popular Tags |