public class TruthValueTC extends Object implements TextualConvention<org.snmp4j.smi.Integer32>
| Constructor and Description |
|---|
TruthValueTC() |
| Modifier and Type | Method and Description |
|---|---|
MOColumn<org.snmp4j.smi.Integer32> |
createColumn(int columnID,
int syntax,
MOAccess access,
org.snmp4j.smi.Integer32 defaultValue,
boolean mutableInService)
Creates a MOColumn instance of this TC specified by the column ID,
access, default value, and mutable flag.
|
org.snmp4j.smi.Integer32 |
createInitialValue()
Creates an initial value for an object instance of this textual convention.
|
MOScalar<org.snmp4j.smi.Integer32> |
createScalar(org.snmp4j.smi.OID oid,
MOAccess access,
org.snmp4j.smi.Integer32 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.
|
String |
getModuleName()
Returns the MIB module name that defined this textual convention.
|
String |
getName()
Returns the name of the textual convention as defined in the MIB module.
|
static org.snmp4j.smi.Integer32 |
getValue(boolean b) |
public static final int TRUE
public static final int FALSE
public MOColumn<org.snmp4j.smi.Integer32> createColumn(int columnID, int syntax, MOAccess access, org.snmp4j.smi.Integer32 defaultValue, boolean mutableInService)
TextualConventioncreateColumn in interface TextualConvention<org.snmp4j.smi.Integer32>columnID - the column id as defined in the MIB module (typically starting at one).syntax - the SMI syntax supported by the column.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<org.snmp4j.smi.Integer32> createScalar(org.snmp4j.smi.OID oid, MOAccess access, org.snmp4j.smi.Integer32 value)
TextualConventioncreateScalar in interface TextualConvention<org.snmp4j.smi.Integer32>oid - 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 String getModuleName()
TextualConventiongetModuleName in interface TextualConvention<org.snmp4j.smi.Integer32>public String getName()
TextualConventiongetName in interface TextualConvention<org.snmp4j.smi.Integer32>public static org.snmp4j.smi.Integer32 getValue(boolean b)
public org.snmp4j.smi.Integer32 createInitialValue()
TextualConventioncreateInitialValue in interface TextualConvention<org.snmp4j.smi.Integer32>public static boolean getBooleanValue(org.snmp4j.smi.Integer32 truthValue)
truthValue - a TruthValue.true if truthValue equals
TRUE.Copyright © 2020 SNMP4J.org. All rights reserved.