package avnmp.java.tutorial.SnmpInstr;

import java.lang.reflect.Field;
import java.io.*;
import java.util.*;
import magician.Node.*;

// In order to instrument this application with SNMP as implemented in Magician, we need to import the classes for an
// SNMP agent which also requires importing the snmp classes. The SnmpInterface class is an interface which holds
// the SNMPObject Identifiers.

import snmp.*;
import snmp.agent.*;
import avnmp.java.lp.SnmpInterface;

public class LoadSnmpBase extends KU_SmartPacket_V2 implements java.io.Serializable {

    transient private snmp.agent.AgentTableInterface __ati;
    transient private snmp.agent.InvalidIdException __iie;
    transient private snmp.agent.AppCommunicator __apcomm;
    transient private snmp.agent.CommInterface __commInt;
    transient private snmp.agent.DuplicateEntryException __de;
    transient private avnmp.java.lp.SnmpInterface __sti;
    transient private avnmp.java.load.LoadPacket __lp;

    public LoadBase() {
    }

    private void writeObject(ObjectOutputStream out) throws IOException {
         try {
              Field[] comps = Class.forName("avnmp.java.load.LoadBase").getDeclaredFields();
              describeComponents(comps, out);
         } catch(ClassNotFoundException e) {
              e.printStackTrace();
         }
         out.defaultWriteObject();
    }
}