|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.agent.mo.snmp.tc.TruthValueTC
public class TruthValueTC
| Field Summary | |
|---|---|
static int |
FALSE
|
static int |
TRUE
|
| Constructor Summary | |
|---|---|
TruthValueTC()
|
|
| Method Summary | |
|---|---|
MOColumn |
createColumn(int columnID,
int syntax,
MOAccess access,
org.snmp4j.smi.Variable defaultValue,
boolean mutableInService)
Creates a MOColumn instance of this TC specified by the column ID, access, default value, and mutable flag. |
org.snmp4j.smi.Variable |
createInitialValue()
Creates an initial value for an object instance of this textual convention. |
MOScalar |
createScalar(org.snmp4j.smi.OID oid,
MOAccess access,
org.snmp4j.smi.Variable value)
Creates a MOScalar instance of this TC specified by OID, access, and optional value. |
static boolean |
getBooleanValue(org.snmp4j.smi.Integer32 truthValue)
Gets the boolean value of a TruthValue variable. |
java.lang.String |
getModuleName()
Returns the MIB module name that defined this textual convention. |
java.lang.String |
getName()
Returns the name of the textual convention as defined in the MIB module. |
static org.snmp4j.smi.Integer32 |
getValue(boolean b)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TRUE
public static final int FALSE
| Constructor Detail |
|---|
public TruthValueTC()
| Method Detail |
|---|
public MOColumn createColumn(int columnID,
int syntax,
MOAccess access,
org.snmp4j.smi.Variable defaultValue,
boolean mutableInService)
TextualConvention
createColumn in interface TextualConventioncolumnID - the column id as defined in the MIB module (typically starting at one).access - the access definition.defaultValue - the default value or null if there is no DEFVAL clause for
this column.mutableInService - true if this column may be modified while row is in
service.
public MOScalar createScalar(org.snmp4j.smi.OID oid,
MOAccess access,
org.snmp4j.smi.Variable value)
TextualConvention
createScalar in interface TextualConventionoid - the OID of the scalar isntance.access - the access definition.value - the Variable instance containing the value of the
scalar. If value is null, the TC should create
an initial value with TextualConvention.createInitialValue().
public java.lang.String getModuleName()
TextualConvention
getModuleName in interface TextualConventionpublic java.lang.String getName()
TextualConvention
getName in interface TextualConventionpublic static org.snmp4j.smi.Integer32 getValue(boolean b)
public org.snmp4j.smi.Variable createInitialValue()
TextualConvention
createInitialValue in interface TextualConventionpublic static boolean getBooleanValue(org.snmp4j.smi.Integer32 truthValue)
truthValue - a TruthValue.
true if truthValue equals
TRUE.
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||