com.adventnet.snmp.snmp2.agent
Class Simulation

java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.agent.Simulation

Deprecated. The API no longer uses this class.

public class Simulation
extends java.lang.Object
implements java.io.Serializable

This class stores configuration details of MibNodes like the simulation type,value,oid,access,type etc.

Since:
AdventNet Agent Toolkit (Java Edition) 4.2 release.
See Also:
Serialized Form

Field Summary
(package private)  int simType
          Deprecated.  
(package private)  SnmpVar snmpVar
          Deprecated.  
(package private)  java.lang.Byte type
          Deprecated.  
 
Constructor Summary
Simulation(SnmpVar var, java.lang.String oid)
          Deprecated. constructor
 
Method Summary
 int getAccess()
          Deprecated. Getter for the access of the node
 double getExpValue()
          Deprecated. Getter for the exp value
 boolean getIsRecorded()
          Deprecated. getter for flag which indicates if value of node has been recorded
 boolean getIsSimulated()
          Deprecated. getter for flag which indicates if value of node has been simulated
 java.lang.String getObjectID()
          Deprecated. getter for the OID of the node
 java.lang.String getRandomValues()
          Deprecated. Getter for the random value
 int getSimType()
          Deprecated. Getter for the Simulation type
 SnmpVar getsnmpVar()
          Deprecated. Getter for the value of the node
 java.lang.Byte getType()
          Deprecated. Getter for the type of the node
 void setAccess(int acc)
          Deprecated. Sets the access of the node whether Read-only or Read-Write etc.
 void setExpValue(double val)
          Deprecated. Setter for the exp value
 void setIsRecorded(boolean state)
          Deprecated. Sets whether the value of the node has been recorded from a real agent
 void setIsSimulated(boolean state)
          Deprecated. Sets whether the value of the node has been simulated
 void setObjectID(java.lang.String oid)
          Deprecated. Setter for OID of a node
 void setRandomValues(java.lang.String s)
          Deprecated. Setter for the random value
 void setSimType(int type)
          Deprecated. Setter for the Simulation Type of the node
 void setSnmpVar(SnmpVar var)
          Deprecated. Setter for the value of the node
 void setType(java.lang.Byte type)
          Deprecated. Sets the type of the Node
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

snmpVar

SnmpVar snmpVar
Deprecated. 

simType

int simType
Deprecated. 

type

java.lang.Byte type
Deprecated. 
Constructor Detail

Simulation

public Simulation(SnmpVar var,
                  java.lang.String oid)
Deprecated. 
constructor
Parameters:
var - - SnmpVar , stores type & value
oid - - String , OID of node (including instance)
Method Detail

getObjectID

public java.lang.String getObjectID()
Deprecated. 
getter for the OID of the node
Returns:
String - returns OID of the node as a String

setObjectID

public void setObjectID(java.lang.String oid)
Deprecated. 
Setter for OID of a node
Parameters:
oid - - String , oid of the node including instance

setIsSimulated

public void setIsSimulated(boolean state)
Deprecated. 
Sets whether the value of the node has been simulated
Parameters:
state - - true if simulated else false

getIsSimulated

public boolean getIsSimulated()
Deprecated. 
getter for flag which indicates if value of node has been simulated
Returns:
boolean - returns true if value of node is simulated else returns false

setIsRecorded

public void setIsRecorded(boolean state)
Deprecated. 
Sets whether the value of the node has been recorded from a real agent

getIsRecorded

public boolean getIsRecorded()
Deprecated. 
getter for flag which indicates if value of node has been recorded
Returns:
boolean - returns true if value of node is recorded from a real agent else returns false

getsnmpVar

public SnmpVar getsnmpVar()
Deprecated. 
Getter for the value of the node
Returns:
SnmpVar - returns the SnmpVar

setSnmpVar

public void setSnmpVar(SnmpVar var)
Deprecated. 
Setter for the value of the node
Parameters:
var - - SnmpVar which contains the type & value

setSimType

public void setSimType(int type)
Deprecated. 
Setter for the Simulation Type of the node
Parameters:
type - - integer value from 0 to 5

getSimType

public int getSimType()
Deprecated. 
Getter for the Simulation type
Returns:
int - the Simulation type

setAccess

public void setAccess(int acc)
Deprecated. 
Sets the access of the node whether Read-only or Read-Write etc.
Parameters:
acc - - integer value

getAccess

public int getAccess()
Deprecated. 
Getter for the access of the node
Returns:
int - returns the access of the node

setType

public void setType(java.lang.Byte type)
Deprecated. 
Sets the type of the Node
Parameters:
type - - Byte value

getType

public java.lang.Byte getType()
Deprecated. 
Getter for the type of the node
Returns:
Byte - the type of the node

setExpValue

public void setExpValue(double val)
Deprecated. 
Setter for the exp value

getExpValue

public double getExpValue()
Deprecated. 
Getter for the exp value

setRandomValues

public void setRandomValues(java.lang.String s)
Deprecated. 
Setter for the random value
Parameters:
- - s - the random value

getRandomValues

public java.lang.String getRandomValues()
Deprecated. 
Getter for the random value
Returns:
- String - the random value