// public TrapData(String enterprise, String agentAddress, int genericTrap, int specificTrap, long timestamp, List<VariableBinding> trapVariableBindings) {
this.enterprise=enterprise;
// this.enterprise = enterprise;
this.genericTrap=genericTrap;
// this.genericTrap = genericTrap;
this.specificTrap=specificTrap;
// this.specificTrap = specificTrap;
this.timestamp=timestamp;
// this.timestamp = timestamp;
this.agentAddress=agentAddress;
// this.agentAddress = agentAddress;
for(VariableBindingvb:trapVariableBindings){
// for (VariableBinding vb : trapVariableBindings) {
this.variableBindings.add(newVarBind(vb));
// this.variableBindings.add(new VarBind(vb));
}
// }
}
// }
publicTrapData(PDUv1pdu){
publicTrapData(PDUv1pdu){
this.enterprise=pdu.getEnterprise().toString();
this.enterprise=pdu.getEnterprise().toString();
...
@@ -50,56 +58,56 @@ public class TrapData {
...
@@ -50,56 +58,56 @@ public class TrapData {
}
}
}
}
publicTrapData(){
// public TrapData() {
}
// }
publicStringgetEnterprise(){
// public String getEnterprise() {
returnenterprise;
// return enterprise;
}
// }
//
publicvoidsetEnterprise(Stringenterprise){
// public void setEnterprise(String enterprise) {
this.enterprise=enterprise;
// this.enterprise = enterprise;
}
// }
//
publicintgetGenericTrap(){
// public int getGenericTrap() {
returngenericTrap;
// return genericTrap;
}
// }
//
publicvoidsetGenericTrap(intgenericTrap){
// public void setGenericTrap(int genericTrap) {
this.genericTrap=genericTrap;
// this.genericTrap = genericTrap;
}
// }
//
publicintgetSpecificTrap(){
// public int getSpecificTrap() {
returnspecificTrap;
// return specificTrap;
}
// }
//
publicvoidsetSpecificTrap(intspecificTrap){
// public void setSpecificTrap(int specificTrap) {
// public TrapData(String enterprise, String agentAddress, int genericTrap, int specificTrap, long timestamp, List<VariableBinding> trapVariableBindings) {
this.enterprise=enterprise;
// this.enterprise = enterprise;
this.genericTrap=genericTrap;
// this.genericTrap = genericTrap;
this.specificTrap=specificTrap;
// this.specificTrap = specificTrap;
this.timestamp=timestamp;
// this.timestamp = timestamp;
this.agentAddress=agentAddress;
// this.agentAddress = agentAddress;
for(VariableBindingvb:trapVariableBindings){
// for (VariableBinding vb : trapVariableBindings) {
this.variableBindings.add(newVarBind(vb));
// this.variableBindings.add(new VarBind(vb));
}
// }
}
// }
publicTrapData(PDUv1pdu){
publicTrapData(PDUv1pdu){
this.enterprise=pdu.getEnterprise().toString();
this.enterprise=pdu.getEnterprise().toString();
this.genericTrap=pdu.getGenericTrap();
this.genericTrap=pdu.getGenericTrap();
...
@@ -43,56 +51,56 @@ public class TrapData {
...
@@ -43,56 +51,56 @@ public class TrapData {
}
}
}
}
publicTrapData(){
// public TrapData() {
}
// }
publicStringgetEnterprise(){
// public String getEnterprise() {
returnenterprise;
// return enterprise;
}
// }
//
publicvoidsetEnterprise(Stringenterprise){
// public void setEnterprise(String enterprise) {
this.enterprise=enterprise;
// this.enterprise = enterprise;
}
// }
//
publicintgetGenericTrap(){
// public int getGenericTrap() {
returngenericTrap;
// return genericTrap;
}
// }
//
publicvoidsetGenericTrap(intgenericTrap){
// public void setGenericTrap(int genericTrap) {
this.genericTrap=genericTrap;
// this.genericTrap = genericTrap;
}
// }
//
publicintgetSpecificTrap(){
// public int getSpecificTrap() {
returnspecificTrap;
// return specificTrap;
}
// }
//
publicvoidsetSpecificTrap(intspecificTrap){
// public void setSpecificTrap(int specificTrap) {