content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
---|---|
# @license Apache-2.0
#
# Copyright (c) 2018 The Stdlib Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# A `.gyp` file for building a Node.js native add-on.
#
# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md
# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md
{
# List of files to include in this file:
'includes': [
'./include.gypi',
],
# Define variables to be used throughout the configuration for all targets:
'variables': {
# Target name should match the add-on export name:
'addon_target_name%': 'addon',
# Fortran compiler (to override -Dfortran_compiler=<compiler>):
'fortran_compiler%': 'gfortran',
# Fortran compiler flags:
'fflags': [
# Specify the Fortran standard to which a program is expected to conform:
'-std=f95',
# Indicate that the layout is free-form source code:
'-ffree-form',
# Aggressive optimization:
'-O3',
# Enable commonly used warning options:
'-Wall',
# Warn if source code contains problematic language features:
'-Wextra',
# Warn if a procedure is called without an explicit interface:
'-Wimplicit-interface',
# Do not transform names of entities specified in Fortran source files by appending underscores (i.e., don't mangle names, thus allowing easier usage in C wrappers):
'-fno-underscoring',
# Warn if source code contains Fortran 95 extensions and C-language constructs:
'-pedantic',
# Compile but do not link (output is an object file):
'-c',
],
# Set variables based on the host OS:
'conditions': [
[
'OS=="win"',
{
# Define the object file suffix:
'obj': 'obj',
},
{
# Define the object file suffix:
'obj': 'o',
}
], # end condition (OS=="win")
], # end conditions
}, # end variables
# Define compile targets:
'targets': [
# Target to generate an add-on:
{
# The target name should match the add-on export name:
'target_name': '<(addon_target_name)',
# Define dependencies:
'dependencies': [],
# Define directories which contain relevant include headers:
'include_dirs': [
# Local include directory:
'<@(include_dirs)',
],
# List of source files:
'sources': [
'<@(src_files)',
],
# Settings which should be applied when a target's object files are used as linker input:
'link_settings': {
# Define libraries:
'libraries': [
'<@(libraries)',
],
# Define library directories:
'library_dirs': [
'<@(library_dirs)',
],
},
# C/C++ compiler flags:
'cflags': [
# Enable commonly used warning options:
'-Wall',
# Aggressive optimization:
'-O3',
],
# C specific compiler flags:
'cflags_c': [
# Specify the C standard to which a program is expected to conform:
'-std=c99',
],
# C++ specific compiler flags:
'cflags_cpp': [
# Specify the C++ standard to which a program is expected to conform:
'-std=c++11',
],
# Linker flags:
'ldflags': [],
# Apply conditions based on the host OS:
'conditions': [
[
'OS=="mac"',
{
# Linker flags:
'ldflags': [
'-undefined dynamic_lookup',
'-Wl,-no-pie',
'-Wl,-search_paths_first',
],
},
], # end condition (OS=="mac")
[
'OS!="win"',
{
# C/C++ flags:
'cflags': [
# Generate platform-independent code:
'-fPIC',
],
},
], # end condition (OS!="win")
], # end conditions
# Define custom build actions for particular inputs:
'rules': [
{
# Define a rule for processing Fortran files:
'extension': 'f',
# Define the pathnames to be used as inputs when performing processing:
'inputs': [
# Full path of the current input:
'<(RULE_INPUT_PATH)'
],
# Define the outputs produced during processing:
'outputs': [
# Store an output object file in a directory for placing intermediate results (only accessible within a single target):
'<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).<(obj)'
],
# Define the rule for compiling Fortran based on the host OS:
'conditions': [
[
'OS=="win"',
# Rule to compile Fortran on Windows:
{
'rule_name': 'compile_fortran_windows',
'message': 'Compiling Fortran file <(RULE_INPUT_PATH) on Windows...',
'process_outputs_as_sources': 0,
# Define the command-line invocation:
'action': [
'<(fortran_compiler)',
'<@(fflags)',
'<@(_inputs)',
'-o',
'<@(_outputs)',
],
},
# Rule to compile Fortran on non-Windows:
{
'rule_name': 'compile_fortran_linux',
'message': 'Compiling Fortran file <(RULE_INPUT_PATH) on Linux...',
'process_outputs_as_sources': 1,
# Define the command-line invocation:
'action': [
'<(fortran_compiler)',
'<@(fflags)',
'-fPIC', # generate platform-independent code
'<@(_inputs)',
'-o',
'<@(_outputs)',
],
}
], # end condition (OS=="win")
], # end conditions
}, # end rule (extension=="f")
], # end rules
}, # end target <(addon_target_name)
# Target to copy a generated add-on to a standard location:
{
'target_name': 'copy_addon',
# Declare that the output of this target is not linked:
'type': 'none',
# Define dependencies:
'dependencies': [
# Require that the add-on be generated before building this target:
'<(addon_target_name)',
],
# Define a list of actions:
'actions': [
{
'action_name': 'copy_addon',
'message': 'Copying addon...',
# Explicitly list the inputs in the command-line invocation below:
'inputs': [],
# Declare the expected outputs:
'outputs': [
'<(addon_output_dir)/<(addon_target_name).node',
],
# Define the command-line invocation:
'action': [
'cp',
'<(PRODUCT_DIR)/<(addon_target_name).node',
'<(addon_output_dir)/<(addon_target_name).node',
],
},
], # end actions
}, # end target copy_addon
], # end targets
}
|
{'includes': ['./include.gypi'], 'variables': {'addon_target_name%': 'addon', 'fortran_compiler%': 'gfortran', 'fflags': ['-std=f95', '-ffree-form', '-O3', '-Wall', '-Wextra', '-Wimplicit-interface', '-fno-underscoring', '-pedantic', '-c'], 'conditions': [['OS=="win"', {'obj': 'obj'}, {'obj': 'o'}]]}, 'targets': [{'target_name': '<(addon_target_name)', 'dependencies': [], 'include_dirs': ['<@(include_dirs)'], 'sources': ['<@(src_files)'], 'link_settings': {'libraries': ['<@(libraries)'], 'library_dirs': ['<@(library_dirs)']}, 'cflags': ['-Wall', '-O3'], 'cflags_c': ['-std=c99'], 'cflags_cpp': ['-std=c++11'], 'ldflags': [], 'conditions': [['OS=="mac"', {'ldflags': ['-undefined dynamic_lookup', '-Wl,-no-pie', '-Wl,-search_paths_first']}], ['OS!="win"', {'cflags': ['-fPIC']}]], 'rules': [{'extension': 'f', 'inputs': ['<(RULE_INPUT_PATH)'], 'outputs': ['<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).<(obj)'], 'conditions': [['OS=="win"', {'rule_name': 'compile_fortran_windows', 'message': 'Compiling Fortran file <(RULE_INPUT_PATH) on Windows...', 'process_outputs_as_sources': 0, 'action': ['<(fortran_compiler)', '<@(fflags)', '<@(_inputs)', '-o', '<@(_outputs)']}, {'rule_name': 'compile_fortran_linux', 'message': 'Compiling Fortran file <(RULE_INPUT_PATH) on Linux...', 'process_outputs_as_sources': 1, 'action': ['<(fortran_compiler)', '<@(fflags)', '-fPIC', '<@(_inputs)', '-o', '<@(_outputs)']}]]}]}, {'target_name': 'copy_addon', 'type': 'none', 'dependencies': ['<(addon_target_name)'], 'actions': [{'action_name': 'copy_addon', 'message': 'Copying addon...', 'inputs': [], 'outputs': ['<(addon_output_dir)/<(addon_target_name).node'], 'action': ['cp', '<(PRODUCT_DIR)/<(addon_target_name).node', '<(addon_output_dir)/<(addon_target_name).node']}]}]}
|
'''
In this module, we implement selection sort
Time complexity: O(n ^ 2)
'''
def selection_sort(arr):
'''
Sort array using selection sort
'''
for index_x in range(len(arr)):
min_index = index_x
for index_y in range(index_x + 1, len(arr)):
if arr[index_y] < arr[min_index]:
min_index = index_y
arr[min_index], arr[index_x] = arr[index_x], arr[min_index]
|
"""
In this module, we implement selection sort
Time complexity: O(n ^ 2)
"""
def selection_sort(arr):
"""
Sort array using selection sort
"""
for index_x in range(len(arr)):
min_index = index_x
for index_y in range(index_x + 1, len(arr)):
if arr[index_y] < arr[min_index]:
min_index = index_y
(arr[min_index], arr[index_x]) = (arr[index_x], arr[min_index])
|
#
# PySNMP MIB module A3COM-HUAWEI-LPBKDT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-HUAWEI-LPBKDT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 16:50:56 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
h3cCommon, = mibBuilder.importSymbols("A3COM-HUAWEI-OID-MIB", "h3cCommon")
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint")
ifIndex, ifDescr = mibBuilder.importSymbols("IF-MIB", "ifIndex", "ifDescr")
VlanId, = mibBuilder.importSymbols("Q-BRIDGE-MIB", "VlanId")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Bits, ObjectIdentity, NotificationType, iso, ModuleIdentity, Integer32, Counter32, Counter64, TimeTicks, Unsigned32, IpAddress, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "ObjectIdentity", "NotificationType", "iso", "ModuleIdentity", "Integer32", "Counter32", "Counter64", "TimeTicks", "Unsigned32", "IpAddress", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
h3cLpbkdt = ModuleIdentity((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95))
h3cLpbkdt.setRevisions(('2009-03-30 17:41', '2008-09-27 15:04',))
if mibBuilder.loadTexts: h3cLpbkdt.setLastUpdated('200903301741Z')
if mibBuilder.loadTexts: h3cLpbkdt.setOrganization('H3C Technologies Co., Ltd.')
h3cLpbkdtNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95, 1))
h3cLpbkdtObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95, 2))
h3cLpbkdtTrapPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95, 1, 0))
h3cLpbkdtTrapLoopbacked = NotificationType((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95, 1, 0, 1)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"))
if mibBuilder.loadTexts: h3cLpbkdtTrapLoopbacked.setStatus('current')
h3cLpbkdtTrapRecovered = NotificationType((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95, 1, 0, 2)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"))
if mibBuilder.loadTexts: h3cLpbkdtTrapRecovered.setStatus('current')
h3cLpbkdtTrapPerVlanLoopbacked = NotificationType((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95, 1, 0, 3)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("A3COM-HUAWEI-LPBKDT-MIB", "h3cLpbkdtVlanID"))
if mibBuilder.loadTexts: h3cLpbkdtTrapPerVlanLoopbacked.setStatus('current')
h3cLpbkdtTrapPerVlanRecovered = NotificationType((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95, 1, 0, 4)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("A3COM-HUAWEI-LPBKDT-MIB", "h3cLpbkdtVlanID"))
if mibBuilder.loadTexts: h3cLpbkdtTrapPerVlanRecovered.setStatus('current')
h3cLpbkdtVlanID = MibScalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95, 2, 1), VlanId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: h3cLpbkdtVlanID.setStatus('current')
mibBuilder.exportSymbols("A3COM-HUAWEI-LPBKDT-MIB", PYSNMP_MODULE_ID=h3cLpbkdt, h3cLpbkdtTrapRecovered=h3cLpbkdtTrapRecovered, h3cLpbkdtTrapPerVlanLoopbacked=h3cLpbkdtTrapPerVlanLoopbacked, h3cLpbkdt=h3cLpbkdt, h3cLpbkdtNotifications=h3cLpbkdtNotifications, h3cLpbkdtTrapPrefix=h3cLpbkdtTrapPrefix, h3cLpbkdtTrapPerVlanRecovered=h3cLpbkdtTrapPerVlanRecovered, h3cLpbkdtObjects=h3cLpbkdtObjects, h3cLpbkdtTrapLoopbacked=h3cLpbkdtTrapLoopbacked, h3cLpbkdtVlanID=h3cLpbkdtVlanID)
|
(h3c_common,) = mibBuilder.importSymbols('A3COM-HUAWEI-OID-MIB', 'h3cCommon')
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, value_size_constraint, constraints_union, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'SingleValueConstraint')
(if_index, if_descr) = mibBuilder.importSymbols('IF-MIB', 'ifIndex', 'ifDescr')
(vlan_id,) = mibBuilder.importSymbols('Q-BRIDGE-MIB', 'VlanId')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(bits, object_identity, notification_type, iso, module_identity, integer32, counter32, counter64, time_ticks, unsigned32, ip_address, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'ObjectIdentity', 'NotificationType', 'iso', 'ModuleIdentity', 'Integer32', 'Counter32', 'Counter64', 'TimeTicks', 'Unsigned32', 'IpAddress', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
h3c_lpbkdt = module_identity((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95))
h3cLpbkdt.setRevisions(('2009-03-30 17:41', '2008-09-27 15:04'))
if mibBuilder.loadTexts:
h3cLpbkdt.setLastUpdated('200903301741Z')
if mibBuilder.loadTexts:
h3cLpbkdt.setOrganization('H3C Technologies Co., Ltd.')
h3c_lpbkdt_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95, 1))
h3c_lpbkdt_objects = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95, 2))
h3c_lpbkdt_trap_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95, 1, 0))
h3c_lpbkdt_trap_loopbacked = notification_type((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95, 1, 0, 1)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'))
if mibBuilder.loadTexts:
h3cLpbkdtTrapLoopbacked.setStatus('current')
h3c_lpbkdt_trap_recovered = notification_type((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95, 1, 0, 2)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'))
if mibBuilder.loadTexts:
h3cLpbkdtTrapRecovered.setStatus('current')
h3c_lpbkdt_trap_per_vlan_loopbacked = notification_type((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95, 1, 0, 3)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('A3COM-HUAWEI-LPBKDT-MIB', 'h3cLpbkdtVlanID'))
if mibBuilder.loadTexts:
h3cLpbkdtTrapPerVlanLoopbacked.setStatus('current')
h3c_lpbkdt_trap_per_vlan_recovered = notification_type((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95, 1, 0, 4)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('A3COM-HUAWEI-LPBKDT-MIB', 'h3cLpbkdtVlanID'))
if mibBuilder.loadTexts:
h3cLpbkdtTrapPerVlanRecovered.setStatus('current')
h3c_lpbkdt_vlan_id = mib_scalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 95, 2, 1), vlan_id()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
h3cLpbkdtVlanID.setStatus('current')
mibBuilder.exportSymbols('A3COM-HUAWEI-LPBKDT-MIB', PYSNMP_MODULE_ID=h3cLpbkdt, h3cLpbkdtTrapRecovered=h3cLpbkdtTrapRecovered, h3cLpbkdtTrapPerVlanLoopbacked=h3cLpbkdtTrapPerVlanLoopbacked, h3cLpbkdt=h3cLpbkdt, h3cLpbkdtNotifications=h3cLpbkdtNotifications, h3cLpbkdtTrapPrefix=h3cLpbkdtTrapPrefix, h3cLpbkdtTrapPerVlanRecovered=h3cLpbkdtTrapPerVlanRecovered, h3cLpbkdtObjects=h3cLpbkdtObjects, h3cLpbkdtTrapLoopbacked=h3cLpbkdtTrapLoopbacked, h3cLpbkdtVlanID=h3cLpbkdtVlanID)
|
__title__ = 'https'
__author__ = 'Gloryness'
__license__ = 'MIT License'
|
__title__ = 'https'
__author__ = 'Gloryness'
__license__ = 'MIT License'
|
class BoundedQueue:
# Constructor, which creates a new empty queue:
def __init__(self, capacity):
assert isinstance(capacity, int), ('Error: Type error: %s' % (type(capacity)))
assert capacity >= 0, ('Error: Illegal capacity: %d' % (capacity))
self.__items = []
self.__capacity = capacity
# Adds a new item to the back of the queue, and returns nothing:
def enqueue(self, item):
if len(self.__items) >= self.__capacity:
raise Exception('Error: Queue is full')
self.__items.append(item)
# Removes and returns the front-most item in the queue.
# Returns nothing if the queue is empty.
def dequeue(self):
if len(self.__items) <= 0:
raise Exception('Error: Queue is empty')
return self.__items.pop(0)
# Returns the front-most item in the queue, and DOES NOT change the queue.
def peek(self):
if len(self.__items) <= 0:
raise Exception('Error: Queue is empty')
return self.__items[0]
# Returns True if the queue is empty, and False otherwise:
def isEmpty(self):
return len(self.__items) == 0
# Returns True if the queue is full, and False otherwise:
def isFull(self):
return len(self.__items) == self.__capacity
# Returns the number of items in the queue:
def size(self):
return len(self.__items)
# Returns the capacity of the queue:
def capacity(self):
return self.__capacity
# Removes all items from the queue, and sets the size to 0
# clear() should not change the capacity
def clear(self):
self.__items = []
# Returns a string representation of the queue:
def __str__(self):
str_exp = ""
for item in self.__items:
str_exp += (str(item) + " ")
return str_exp
# Returns a string representation of the object
# bounded queue:
def __repr__(self):
return str(self) + " Max=" + str(self.__capacity)
def show(self):
return self._items
|
class Boundedqueue:
def __init__(self, capacity):
assert isinstance(capacity, int), 'Error: Type error: %s' % type(capacity)
assert capacity >= 0, 'Error: Illegal capacity: %d' % capacity
self.__items = []
self.__capacity = capacity
def enqueue(self, item):
if len(self.__items) >= self.__capacity:
raise exception('Error: Queue is full')
self.__items.append(item)
def dequeue(self):
if len(self.__items) <= 0:
raise exception('Error: Queue is empty')
return self.__items.pop(0)
def peek(self):
if len(self.__items) <= 0:
raise exception('Error: Queue is empty')
return self.__items[0]
def is_empty(self):
return len(self.__items) == 0
def is_full(self):
return len(self.__items) == self.__capacity
def size(self):
return len(self.__items)
def capacity(self):
return self.__capacity
def clear(self):
self.__items = []
def __str__(self):
str_exp = ''
for item in self.__items:
str_exp += str(item) + ' '
return str_exp
def __repr__(self):
return str(self) + ' Max=' + str(self.__capacity)
def show(self):
return self._items
|
def answer(question):
words = question \
.rstrip("?") \
.replace("plus", "+") \
.replace("minus", "-") \
.replace("multiplied by", '*') \
.replace("divided by", "/") \
.replace("raised to the", "^") \
.split()
for i in range(len(words) - 2):
if words[i] == "^" and words[i + 2] == "power":
words[i + 2] = ""
if (words[i + 1][:1].isdigit()
and (words[i + 1].endswith("1st")
or words[i + 1].endswith("2nd")
or words[i + 1].endswith("th"))):
words[i + 1] = words[i + 1][:-2]
result = None
operator = None
for word in words[2:]:
if word == "":
continue
elif result is None and operator is None and isinteger(word):
result = int(word)
elif result is not None and operator is not None and isinteger(word):
if operator == "+":
result += int(word)
elif operator == "-":
result -= int(word)
elif operator == "*":
result *= int(word)
elif operator == "/":
result //= int(word)
elif operator == "^":
result **= int(word)
operator = None
elif result is not None and operator is None and word in list("+-*/^"):
operator = word
else:
raise ValueError(r".+")
if words[:2] != ["What", "is"] or result is None or operator is not None:
raise ValueError(r".+")
return result
def isinteger(number):
return number.isdigit() or (number[1:].isdigit() and number[0] == "-")
|
def answer(question):
words = question.rstrip('?').replace('plus', '+').replace('minus', '-').replace('multiplied by', '*').replace('divided by', '/').replace('raised to the', '^').split()
for i in range(len(words) - 2):
if words[i] == '^' and words[i + 2] == 'power':
words[i + 2] = ''
if words[i + 1][:1].isdigit() and (words[i + 1].endswith('1st') or words[i + 1].endswith('2nd') or words[i + 1].endswith('th')):
words[i + 1] = words[i + 1][:-2]
result = None
operator = None
for word in words[2:]:
if word == '':
continue
elif result is None and operator is None and isinteger(word):
result = int(word)
elif result is not None and operator is not None and isinteger(word):
if operator == '+':
result += int(word)
elif operator == '-':
result -= int(word)
elif operator == '*':
result *= int(word)
elif operator == '/':
result //= int(word)
elif operator == '^':
result **= int(word)
operator = None
elif result is not None and operator is None and (word in list('+-*/^')):
operator = word
else:
raise value_error('.+')
if words[:2] != ['What', 'is'] or result is None or operator is not None:
raise value_error('.+')
return result
def isinteger(number):
return number.isdigit() or (number[1:].isdigit() and number[0] == '-')
|
def sorted_nosize_search(listy, num):
# Adapted to work with a Python sorted
# array and handle the index error exception
exp_backoff = index = 0
limit = False
while not limit:
try:
temp = listy[index]
if temp > num:
limit = True
else:
index = 2 ** exp_backoff
exp_backoff += 1
except IndexError:
limit = True
return bi_search(listy, num, index // 2, index)
def bi_search(listy, num, low, high):
while low <= high:
middle = (high + low) // 2
try:
value_at = listy[middle]
except IndexError:
value_at = -1
if num < value_at or value_at == -1:
high = middle - 1
elif num > value_at:
low = middle + 1
else:
return middle
return -1
test_cases = [
(([1, 2, 3, 4, 5, 6, 7, 8, 9], 0), -1),
(([1, 2, 3, 4, 5, 6, 7, 8, 9], 1), 0),
(([1, 2, 3, 4, 5, 6, 7, 8, 9], 2), 1),
(([1, 2, 3, 4, 5, 6, 7, 8, 9], 3), 2),
(([1, 2, 3, 4, 5, 6, 7, 8, 9], 4), 3),
(([1, 2, 3, 4, 5, 6, 7, 8, 9], 5), 4),
(([1, 2, 3, 4, 5, 6, 7, 8, 9], 6), 5),
(([1, 2, 3, 4, 5, 6, 7, 8, 9], 7), 6),
(([1, 2, 3, 4, 5, 6, 7, 8, 9], 8), 7),
(([1, 2, 3, 4, 5, 6, 7, 8, 9], 9), 8),
(([1, 2, 3, 4, 5, 6, 7, 8, 9], 10), -1),
]
testable_functions = [sorted_nosize_search]
def run_tests():
for function in testable_functions:
for (n, m), expected in test_cases:
calculated = function(n, m)
error_msg = f"{function.__name__}: {calculated} != {expected}"
assert function(n, m) == expected, error_msg
if __name__ == "__main__":
run_tests()
|
def sorted_nosize_search(listy, num):
exp_backoff = index = 0
limit = False
while not limit:
try:
temp = listy[index]
if temp > num:
limit = True
else:
index = 2 ** exp_backoff
exp_backoff += 1
except IndexError:
limit = True
return bi_search(listy, num, index // 2, index)
def bi_search(listy, num, low, high):
while low <= high:
middle = (high + low) // 2
try:
value_at = listy[middle]
except IndexError:
value_at = -1
if num < value_at or value_at == -1:
high = middle - 1
elif num > value_at:
low = middle + 1
else:
return middle
return -1
test_cases = [(([1, 2, 3, 4, 5, 6, 7, 8, 9], 0), -1), (([1, 2, 3, 4, 5, 6, 7, 8, 9], 1), 0), (([1, 2, 3, 4, 5, 6, 7, 8, 9], 2), 1), (([1, 2, 3, 4, 5, 6, 7, 8, 9], 3), 2), (([1, 2, 3, 4, 5, 6, 7, 8, 9], 4), 3), (([1, 2, 3, 4, 5, 6, 7, 8, 9], 5), 4), (([1, 2, 3, 4, 5, 6, 7, 8, 9], 6), 5), (([1, 2, 3, 4, 5, 6, 7, 8, 9], 7), 6), (([1, 2, 3, 4, 5, 6, 7, 8, 9], 8), 7), (([1, 2, 3, 4, 5, 6, 7, 8, 9], 9), 8), (([1, 2, 3, 4, 5, 6, 7, 8, 9], 10), -1)]
testable_functions = [sorted_nosize_search]
def run_tests():
for function in testable_functions:
for ((n, m), expected) in test_cases:
calculated = function(n, m)
error_msg = f'{function.__name__}: {calculated} != {expected}'
assert function(n, m) == expected, error_msg
if __name__ == '__main__':
run_tests()
|
class Solution:
def singleNumber(self, nums: List[int]) -> int:
counts = {}
for num in nums:
if num in counts:
counts[num] += 1
else:
counts[num] = 1
if counts[num] == 3:
counts.pop(num)
return list(counts.keys())[0]
|
class Solution:
def single_number(self, nums: List[int]) -> int:
counts = {}
for num in nums:
if num in counts:
counts[num] += 1
else:
counts[num] = 1
if counts[num] == 3:
counts.pop(num)
return list(counts.keys())[0]
|
#
# PySNMP MIB module CXIoHardware-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CXIoHardware-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:17:22 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion")
cxIoHardware, Alias = mibBuilder.importSymbols("CXProduct-SMI", "cxIoHardware", "Alias")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
NotificationType, Gauge32, MibIdentifier, ObjectIdentity, Unsigned32, Bits, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, iso, Counter64, NotificationType, Integer32, Counter32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "Gauge32", "MibIdentifier", "ObjectIdentity", "Unsigned32", "Bits", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "iso", "Counter64", "NotificationType", "Integer32", "Counter32", "IpAddress")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
cxIoCardAdmTable = MibTable((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 1), )
if mibBuilder.loadTexts: cxIoCardAdmTable.setStatus('mandatory')
cxIoCardAdmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 1, 1), ).setIndexNames((0, "CXIoHardware-MIB", "cxIoCardAdmIndex"))
if mibBuilder.loadTexts: cxIoCardAdmEntry.setStatus('mandatory')
cxIoCardAdmIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cxIoCardAdmIndex.setStatus('mandatory')
cxIoCardAdmRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("invalid", 1), ("valid", 2), ("disabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cxIoCardAdmRowStatus.setStatus('mandatory')
cxIoCardAdmAlias = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 1, 1, 3), Alias()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cxIoCardAdmAlias.setStatus('mandatory')
cxIoCardAdmPhysSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 1, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cxIoCardAdmPhysSlot.setStatus('mandatory')
cxIoCardAdmType = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("iuscFourPortCard", 1), ("lanCard", 2), ("vceCmpCard", 3), ("tokenRingCard", 4), ("ethernetCard", 5), ("isdnCard", 6), ("digitalVceCmpCard", 7), ("highSpeedFr4LIDCard", 8), ("octalV34ModemCard", 9)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cxIoCardAdmType.setStatus('mandatory')
cxIoCardAdmState = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("invalid", 1), ("valid", 2))).clone('valid')).setMaxAccess("readonly")
if mibBuilder.loadTexts: cxIoCardAdmState.setStatus('mandatory')
cxIoPortAdmTable = MibTable((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 2), )
if mibBuilder.loadTexts: cxIoPortAdmTable.setStatus('mandatory')
cxIoPortAdmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 2, 1), ).setIndexNames((0, "CXIoHardware-MIB", "cxIoPortAdmIndex"))
if mibBuilder.loadTexts: cxIoPortAdmEntry.setStatus('mandatory')
cxIoPortAdmIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cxIoPortAdmIndex.setStatus('mandatory')
cxIoPortAdmRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("invalid", 1), ("valid", 2), ("disabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cxIoPortAdmRowStatus.setStatus('mandatory')
cxIoPortAdmAlias = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 2, 1, 3), Alias()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cxIoPortAdmAlias.setStatus('mandatory')
cxIoPortAdmCardAlias = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 2, 1, 4), Alias()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cxIoPortAdmCardAlias.setStatus('mandatory')
cxIoPortAdmCardLocalIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 2, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cxIoPortAdmCardLocalIndex.setStatus('mandatory')
cxIoCardOperTable = MibTable((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 3), )
if mibBuilder.loadTexts: cxIoCardOperTable.setStatus('mandatory')
cxIoCardOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 3, 1), ).setIndexNames((0, "CXIoHardware-MIB", "cxIoCardOperPhysSlot"))
if mibBuilder.loadTexts: cxIoCardOperEntry.setStatus('mandatory')
cxIoCardOperPhysSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cxIoCardOperPhysSlot.setStatus('mandatory')
cxIoCardOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("invalid", 1), ("valid", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cxIoCardOperState.setStatus('mandatory')
cxIoCardOperType = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 255))).clone(namedValues=NamedValues(("iuscFourPortCard", 1), ("lanCard", 2), ("vceCmpCard", 3), ("tokenRingCard", 4), ("ethernetCard", 5), ("isdnCard", 6), ("digitalVceCmpCard", 7), ("highSpeedFr4LIDCard", 8), ("octalV34ModemCard", 9), ("other", 255)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cxIoCardOperType.setStatus('mandatory')
cxIoCardOperRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 3, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cxIoCardOperRevision.setStatus('mandatory')
cxIoCardOperAssemblyAndEco = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 3, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cxIoCardOperAssemblyAndEco.setStatus('mandatory')
cxIoCardOperSpecialEco = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 3, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cxIoCardOperSpecialEco.setStatus('mandatory')
cxIoHwCardTypeTrapReport = MibScalar((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cxIoHwCardTypeTrapReport.setStatus('mandatory')
cxIHMibLevel = MibScalar((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cxIHMibLevel.setStatus('mandatory')
cxIoHwCardTypeTrap = NotificationType((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2) + (0,1)).setObjects(("CXIoHardware-MIB", "cxIoCardOperPhysSlot"), ("CXIoHardware-MIB", "cxIoCardOperState"), ("CXIoHardware-MIB", "cxIoCardOperType"))
mibBuilder.exportSymbols("CXIoHardware-MIB", cxIoCardOperPhysSlot=cxIoCardOperPhysSlot, cxIoHwCardTypeTrapReport=cxIoHwCardTypeTrapReport, cxIoPortAdmAlias=cxIoPortAdmAlias, cxIoCardAdmPhysSlot=cxIoCardAdmPhysSlot, cxIoCardAdmEntry=cxIoCardAdmEntry, cxIoPortAdmTable=cxIoPortAdmTable, cxIoPortAdmCardAlias=cxIoPortAdmCardAlias, cxIoCardOperAssemblyAndEco=cxIoCardOperAssemblyAndEco, cxIoCardAdmAlias=cxIoCardAdmAlias, cxIoCardOperSpecialEco=cxIoCardOperSpecialEco, cxIHMibLevel=cxIHMibLevel, cxIoCardOperEntry=cxIoCardOperEntry, cxIoPortAdmIndex=cxIoPortAdmIndex, cxIoCardAdmIndex=cxIoCardAdmIndex, cxIoCardOperType=cxIoCardOperType, cxIoCardAdmType=cxIoCardAdmType, cxIoCardAdmState=cxIoCardAdmState, cxIoCardOperState=cxIoCardOperState, cxIoCardOperRevision=cxIoCardOperRevision, cxIoCardAdmTable=cxIoCardAdmTable, cxIoPortAdmEntry=cxIoPortAdmEntry, cxIoHwCardTypeTrap=cxIoHwCardTypeTrap, cxIoCardOperTable=cxIoCardOperTable, cxIoCardAdmRowStatus=cxIoCardAdmRowStatus, cxIoPortAdmRowStatus=cxIoPortAdmRowStatus, cxIoPortAdmCardLocalIndex=cxIoPortAdmCardLocalIndex)
|
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, single_value_constraint, value_range_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion')
(cx_io_hardware, alias) = mibBuilder.importSymbols('CXProduct-SMI', 'cxIoHardware', 'Alias')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(notification_type, gauge32, mib_identifier, object_identity, unsigned32, bits, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, iso, counter64, notification_type, integer32, counter32, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'NotificationType', 'Gauge32', 'MibIdentifier', 'ObjectIdentity', 'Unsigned32', 'Bits', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'iso', 'Counter64', 'NotificationType', 'Integer32', 'Counter32', 'IpAddress')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
cx_io_card_adm_table = mib_table((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 1))
if mibBuilder.loadTexts:
cxIoCardAdmTable.setStatus('mandatory')
cx_io_card_adm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 1, 1)).setIndexNames((0, 'CXIoHardware-MIB', 'cxIoCardAdmIndex'))
if mibBuilder.loadTexts:
cxIoCardAdmEntry.setStatus('mandatory')
cx_io_card_adm_index = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cxIoCardAdmIndex.setStatus('mandatory')
cx_io_card_adm_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('invalid', 1), ('valid', 2), ('disabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cxIoCardAdmRowStatus.setStatus('mandatory')
cx_io_card_adm_alias = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 1, 1, 3), alias()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cxIoCardAdmAlias.setStatus('mandatory')
cx_io_card_adm_phys_slot = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 1, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cxIoCardAdmPhysSlot.setStatus('mandatory')
cx_io_card_adm_type = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('iuscFourPortCard', 1), ('lanCard', 2), ('vceCmpCard', 3), ('tokenRingCard', 4), ('ethernetCard', 5), ('isdnCard', 6), ('digitalVceCmpCard', 7), ('highSpeedFr4LIDCard', 8), ('octalV34ModemCard', 9)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cxIoCardAdmType.setStatus('mandatory')
cx_io_card_adm_state = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('invalid', 1), ('valid', 2))).clone('valid')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cxIoCardAdmState.setStatus('mandatory')
cx_io_port_adm_table = mib_table((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 2))
if mibBuilder.loadTexts:
cxIoPortAdmTable.setStatus('mandatory')
cx_io_port_adm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 2, 1)).setIndexNames((0, 'CXIoHardware-MIB', 'cxIoPortAdmIndex'))
if mibBuilder.loadTexts:
cxIoPortAdmEntry.setStatus('mandatory')
cx_io_port_adm_index = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cxIoPortAdmIndex.setStatus('mandatory')
cx_io_port_adm_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('invalid', 1), ('valid', 2), ('disabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cxIoPortAdmRowStatus.setStatus('mandatory')
cx_io_port_adm_alias = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 2, 1, 3), alias()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cxIoPortAdmAlias.setStatus('mandatory')
cx_io_port_adm_card_alias = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 2, 1, 4), alias()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cxIoPortAdmCardAlias.setStatus('mandatory')
cx_io_port_adm_card_local_index = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 2, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cxIoPortAdmCardLocalIndex.setStatus('mandatory')
cx_io_card_oper_table = mib_table((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 3))
if mibBuilder.loadTexts:
cxIoCardOperTable.setStatus('mandatory')
cx_io_card_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 3, 1)).setIndexNames((0, 'CXIoHardware-MIB', 'cxIoCardOperPhysSlot'))
if mibBuilder.loadTexts:
cxIoCardOperEntry.setStatus('mandatory')
cx_io_card_oper_phys_slot = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 3, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cxIoCardOperPhysSlot.setStatus('mandatory')
cx_io_card_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('invalid', 1), ('valid', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cxIoCardOperState.setStatus('mandatory')
cx_io_card_oper_type = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 255))).clone(namedValues=named_values(('iuscFourPortCard', 1), ('lanCard', 2), ('vceCmpCard', 3), ('tokenRingCard', 4), ('ethernetCard', 5), ('isdnCard', 6), ('digitalVceCmpCard', 7), ('highSpeedFr4LIDCard', 8), ('octalV34ModemCard', 9), ('other', 255)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cxIoCardOperType.setStatus('mandatory')
cx_io_card_oper_revision = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 3, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cxIoCardOperRevision.setStatus('mandatory')
cx_io_card_oper_assembly_and_eco = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 3, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cxIoCardOperAssemblyAndEco.setStatus('mandatory')
cx_io_card_oper_special_eco = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 3, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cxIoCardOperSpecialEco.setStatus('mandatory')
cx_io_hw_card_type_trap_report = mib_scalar((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cxIoHwCardTypeTrapReport.setStatus('mandatory')
cx_ih_mib_level = mib_scalar((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cxIHMibLevel.setStatus('mandatory')
cx_io_hw_card_type_trap = notification_type((1, 3, 6, 1, 4, 1, 495, 2, 1, 5, 2) + (0, 1)).setObjects(('CXIoHardware-MIB', 'cxIoCardOperPhysSlot'), ('CXIoHardware-MIB', 'cxIoCardOperState'), ('CXIoHardware-MIB', 'cxIoCardOperType'))
mibBuilder.exportSymbols('CXIoHardware-MIB', cxIoCardOperPhysSlot=cxIoCardOperPhysSlot, cxIoHwCardTypeTrapReport=cxIoHwCardTypeTrapReport, cxIoPortAdmAlias=cxIoPortAdmAlias, cxIoCardAdmPhysSlot=cxIoCardAdmPhysSlot, cxIoCardAdmEntry=cxIoCardAdmEntry, cxIoPortAdmTable=cxIoPortAdmTable, cxIoPortAdmCardAlias=cxIoPortAdmCardAlias, cxIoCardOperAssemblyAndEco=cxIoCardOperAssemblyAndEco, cxIoCardAdmAlias=cxIoCardAdmAlias, cxIoCardOperSpecialEco=cxIoCardOperSpecialEco, cxIHMibLevel=cxIHMibLevel, cxIoCardOperEntry=cxIoCardOperEntry, cxIoPortAdmIndex=cxIoPortAdmIndex, cxIoCardAdmIndex=cxIoCardAdmIndex, cxIoCardOperType=cxIoCardOperType, cxIoCardAdmType=cxIoCardAdmType, cxIoCardAdmState=cxIoCardAdmState, cxIoCardOperState=cxIoCardOperState, cxIoCardOperRevision=cxIoCardOperRevision, cxIoCardAdmTable=cxIoCardAdmTable, cxIoPortAdmEntry=cxIoPortAdmEntry, cxIoHwCardTypeTrap=cxIoHwCardTypeTrap, cxIoCardOperTable=cxIoCardOperTable, cxIoCardAdmRowStatus=cxIoCardAdmRowStatus, cxIoPortAdmRowStatus=cxIoPortAdmRowStatus, cxIoPortAdmCardLocalIndex=cxIoPortAdmCardLocalIndex)
|
# -*- coding: utf-8 -*-
# ISO 693-1 language codes from pycountry
Iso2Language = {
u'aa': u'Afar',
u'ab': u'Abkhazian',
u'af': u'Afrikaans',
u'ak': u'Akan',
u'sq': u'Albanian',
u'am': u'Amharic',
u'ar': u'Arabic',
u'an': u'Aragonese',
u'hy': u'Armenian',
u'as': u'Assamese',
u'av': u'Avaric',
u'ae': u'Avestan',
u'ay': u'Aymara',
u'az': u'Azerbaijani',
u'ba': u'Bashkir',
u'bm': u'Bambara',
u'eu': u'Basque',
u'be': u'Belarusian',
u'bn': u'Bengali',
u'bh': u'Bihari languages',
u'bi': u'Bislama',
u'bs': u'Bosnian',
u'br': u'Breton',
u'bg': u'Bulgarian',
u'my': u'Burmese',
u'ca': u'Catalan; Valencian',
u'ch': u'Chamorro',
u'ce': u'Chechen',
u'zh': u'Chinese',
u'cu': u'Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic',
u'cv': u'Chuvash',
u'kw': u'Cornish',
u'co': u'Corsican',
u'cr': u'Cree',
u'cs': u'Czech',
u'da': u'Danish',
u'dv': u'Divehi; Dhivehi; Maldivian',
u'nl': u'Dutch; Flemish',
u'dz': u'Dzongkha',
u'en': u'English',
u'eo': u'Esperanto',
u'et': u'Estonian',
u'ee': u'Ewe',
u'fo': u'Faroese',
u'fj': u'Fijian',
u'fi': u'Finnish',
u'fr': u'French',
u'fy': u'Western Frisian',
u'ff': u'Fulah',
u'ka': u'Georgian',
u'de': u'German',
u'gd': u'Gaelic; Scottish Gaelic',
u'ga': u'Irish',
u'gl': u'Galician',
u'gv': u'Manx',
u'el': u'Greek, Modern (1453-)',
u'gn': u'Guarani',
u'gu': u'Gujarati',
u'ht': u'Haitian; Haitian Creole',
u'ha': u'Hausa',
u'he': u'Hebrew',
u'hz': u'Herero',
u'hi': u'Hindi',
u'ho': u'Hiri Motu',
u'hr': u'Croatian',
u'hu': u'Hungarian',
u'ig': u'Igbo',
u'is': u'Icelandic',
u'io': u'Ido',
u'ii': u'Sichuan Yi; Nuosu',
u'iu': u'Inuktitut',
u'ie': u'Interlingue; Occidental',
u'ia': u'Interlingua (International Auxiliary Language Association)',
u'id': u'Indonesian',
u'ik': u'Inupiaq',
u'it': u'Italian',
u'jv': u'Javanese',
u'ja': u'Japanese',
u'kl': u'Kalaallisut; Greenlandic',
u'kn': u'Kannada',
u'ks': u'Kashmiri',
u'kr': u'Kanuri',
u'kk': u'Kazakh',
u'km': u'Central Khmer',
u'ki': u'Kikuyu; Gikuyu',
u'rw': u'Kinyarwanda',
u'ky': u'Kirghiz; Kyrgyz',
u'kv': u'Komi',
u'kg': u'Kongo',
u'ko': u'Korean',
u'kj': u'Kuanyama; Kwanyama',
u'ku': u'Kurdish',
u'lo': u'Lao',
u'la': u'Latin',
u'lv': u'Latvian',
u'li': u'Limburgan; Limburger; Limburgish',
u'ln': u'Lingala',
u'lt': u'Lithuanian',
u'lb': u'Luxembourgish; Letzeburgesch',
u'lu': u'Luba-Katanga',
u'lg': u'Ganda',
u'mk': u'Macedonian',
u'mh': u'Marshallese',
u'ml': u'Malayalam',
u'mi': u'Maori',
u'mr': u'Marathi',
u'ms': u'Malay',
u'mg': u'Malagasy',
u'mt': u'Maltese',
u'mo': u'Moldavian; Moldovan',
u'mn': u'Mongolian',
u'na': u'Nauru',
u'nv': u'Navajo; Navaho',
u'nr': u'Ndebele, South; South Ndebele',
u'nd': u'Ndebele, North; North Ndebele',
u'ng': u'Ndonga',
u'ne': u'Nepali',
u'nn': u'Norwegian Nynorsk; Nynorsk, Norwegian',
u'nb': u'Bokm\xe5l, Norwegian; Norwegian Bokm\xe5l',
u'no': u'Norwegian',
u'ny': u'Chichewa; Chewa; Nyanja',
u'oc': u'Occitan (post 1500)',
u'oj': u'Ojibwa',
u'or': u'Oriya',
u'om': u'Oromo',
u'os': u'Ossetian; Ossetic',
u'pa': u'Panjabi; Punjabi',
u'fa': u'Persian',
u'pi': u'Pali',
u'pl': u'Polish',
u'pt': u'Portuguese',
u'ps': u'Pushto; Pashto',
u'qu': u'Quechua',
u'rm': u'Romansh',
u'ro': u'Romanian',
u'rn': u'Rundi',
u'ru': u'Russian',
u'sg': u'Sango',
u'sa': u'Sanskrit',
u'si': u'Sinhala; Sinhalese',
u'sk': u'Slovak',
u'sl': u'Slovenian',
u'se': u'Northern Sami',
u'sm': u'Samoan',
u'sn': u'Shona',
u'sd': u'Sindhi',
u'so': u'Somali',
u'st': u'Sotho, Southern',
u'es': u'Spanish; Castilian',
u'sc': u'Sardinian',
u'sr': u'Serbian',
u'ss': u'Swati',
u'su': u'Sundanese',
u'sw': u'Swahili',
u'sv': u'Swedish',
u'ty': u'Tahitian',
u'ta': u'Tamil',
u'tt': u'Tatar',
u'te': u'Telugu',
u'tg': u'Tajik',
u'tl': u'Tagalog',
u'th': u'Thai',
u'bo': u'Tibetan',
u'ti': u'Tigrinya',
u'to': u'Tonga (Tonga Islands)',
u'tn': u'Tswana',
u'ts': u'Tsonga',
u'tk': u'Turkmen',
u'tr': u'Turkish',
u'tw': u'Twi',
u'ug': u'Uighur; Uyghur',
u'uk': u'Ukrainian',
u'ur': u'Urdu',
u'uz': u'Uzbek',
u've': u'Venda',
u'vi': u'Vietnamese',
u'vo': u'Volap\xfck',
u'cy': u'Welsh',
u'wa': u'Walloon',
u'wo': u'Wolof',
u'xh': u'Xhosa',
u'yi': u'Yiddish',
u'yo': u'Yoruba',
u'za': u'Zhuang; Chuang',
u'zu': u'Zulu',
}
|
iso2_language = {u'aa': u'Afar', u'ab': u'Abkhazian', u'af': u'Afrikaans', u'ak': u'Akan', u'sq': u'Albanian', u'am': u'Amharic', u'ar': u'Arabic', u'an': u'Aragonese', u'hy': u'Armenian', u'as': u'Assamese', u'av': u'Avaric', u'ae': u'Avestan', u'ay': u'Aymara', u'az': u'Azerbaijani', u'ba': u'Bashkir', u'bm': u'Bambara', u'eu': u'Basque', u'be': u'Belarusian', u'bn': u'Bengali', u'bh': u'Bihari languages', u'bi': u'Bislama', u'bs': u'Bosnian', u'br': u'Breton', u'bg': u'Bulgarian', u'my': u'Burmese', u'ca': u'Catalan; Valencian', u'ch': u'Chamorro', u'ce': u'Chechen', u'zh': u'Chinese', u'cu': u'Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic', u'cv': u'Chuvash', u'kw': u'Cornish', u'co': u'Corsican', u'cr': u'Cree', u'cs': u'Czech', u'da': u'Danish', u'dv': u'Divehi; Dhivehi; Maldivian', u'nl': u'Dutch; Flemish', u'dz': u'Dzongkha', u'en': u'English', u'eo': u'Esperanto', u'et': u'Estonian', u'ee': u'Ewe', u'fo': u'Faroese', u'fj': u'Fijian', u'fi': u'Finnish', u'fr': u'French', u'fy': u'Western Frisian', u'ff': u'Fulah', u'ka': u'Georgian', u'de': u'German', u'gd': u'Gaelic; Scottish Gaelic', u'ga': u'Irish', u'gl': u'Galician', u'gv': u'Manx', u'el': u'Greek, Modern (1453-)', u'gn': u'Guarani', u'gu': u'Gujarati', u'ht': u'Haitian; Haitian Creole', u'ha': u'Hausa', u'he': u'Hebrew', u'hz': u'Herero', u'hi': u'Hindi', u'ho': u'Hiri Motu', u'hr': u'Croatian', u'hu': u'Hungarian', u'ig': u'Igbo', u'is': u'Icelandic', u'io': u'Ido', u'ii': u'Sichuan Yi; Nuosu', u'iu': u'Inuktitut', u'ie': u'Interlingue; Occidental', u'ia': u'Interlingua (International Auxiliary Language Association)', u'id': u'Indonesian', u'ik': u'Inupiaq', u'it': u'Italian', u'jv': u'Javanese', u'ja': u'Japanese', u'kl': u'Kalaallisut; Greenlandic', u'kn': u'Kannada', u'ks': u'Kashmiri', u'kr': u'Kanuri', u'kk': u'Kazakh', u'km': u'Central Khmer', u'ki': u'Kikuyu; Gikuyu', u'rw': u'Kinyarwanda', u'ky': u'Kirghiz; Kyrgyz', u'kv': u'Komi', u'kg': u'Kongo', u'ko': u'Korean', u'kj': u'Kuanyama; Kwanyama', u'ku': u'Kurdish', u'lo': u'Lao', u'la': u'Latin', u'lv': u'Latvian', u'li': u'Limburgan; Limburger; Limburgish', u'ln': u'Lingala', u'lt': u'Lithuanian', u'lb': u'Luxembourgish; Letzeburgesch', u'lu': u'Luba-Katanga', u'lg': u'Ganda', u'mk': u'Macedonian', u'mh': u'Marshallese', u'ml': u'Malayalam', u'mi': u'Maori', u'mr': u'Marathi', u'ms': u'Malay', u'mg': u'Malagasy', u'mt': u'Maltese', u'mo': u'Moldavian; Moldovan', u'mn': u'Mongolian', u'na': u'Nauru', u'nv': u'Navajo; Navaho', u'nr': u'Ndebele, South; South Ndebele', u'nd': u'Ndebele, North; North Ndebele', u'ng': u'Ndonga', u'ne': u'Nepali', u'nn': u'Norwegian Nynorsk; Nynorsk, Norwegian', u'nb': u'Bokmål, Norwegian; Norwegian Bokmål', u'no': u'Norwegian', u'ny': u'Chichewa; Chewa; Nyanja', u'oc': u'Occitan (post 1500)', u'oj': u'Ojibwa', u'or': u'Oriya', u'om': u'Oromo', u'os': u'Ossetian; Ossetic', u'pa': u'Panjabi; Punjabi', u'fa': u'Persian', u'pi': u'Pali', u'pl': u'Polish', u'pt': u'Portuguese', u'ps': u'Pushto; Pashto', u'qu': u'Quechua', u'rm': u'Romansh', u'ro': u'Romanian', u'rn': u'Rundi', u'ru': u'Russian', u'sg': u'Sango', u'sa': u'Sanskrit', u'si': u'Sinhala; Sinhalese', u'sk': u'Slovak', u'sl': u'Slovenian', u'se': u'Northern Sami', u'sm': u'Samoan', u'sn': u'Shona', u'sd': u'Sindhi', u'so': u'Somali', u'st': u'Sotho, Southern', u'es': u'Spanish; Castilian', u'sc': u'Sardinian', u'sr': u'Serbian', u'ss': u'Swati', u'su': u'Sundanese', u'sw': u'Swahili', u'sv': u'Swedish', u'ty': u'Tahitian', u'ta': u'Tamil', u'tt': u'Tatar', u'te': u'Telugu', u'tg': u'Tajik', u'tl': u'Tagalog', u'th': u'Thai', u'bo': u'Tibetan', u'ti': u'Tigrinya', u'to': u'Tonga (Tonga Islands)', u'tn': u'Tswana', u'ts': u'Tsonga', u'tk': u'Turkmen', u'tr': u'Turkish', u'tw': u'Twi', u'ug': u'Uighur; Uyghur', u'uk': u'Ukrainian', u'ur': u'Urdu', u'uz': u'Uzbek', u've': u'Venda', u'vi': u'Vietnamese', u'vo': u'Volapük', u'cy': u'Welsh', u'wa': u'Walloon', u'wo': u'Wolof', u'xh': u'Xhosa', u'yi': u'Yiddish', u'yo': u'Yoruba', u'za': u'Zhuang; Chuang', u'zu': u'Zulu'}
|
#
# PySNMP MIB module PPPOE-MGMT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/PPPOE-MGMT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:41:53 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint")
dlink_common_mgmt, = mibBuilder.importSymbols("DLINK-ID-REC-MIB", "dlink-common-mgmt")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Integer32, ModuleIdentity, Counter32, Unsigned32, MibIdentifier, Counter64, IpAddress, Bits, TimeTicks, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, ObjectIdentity, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "ModuleIdentity", "Counter32", "Unsigned32", "MibIdentifier", "Counter64", "IpAddress", "Bits", "TimeTicks", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "ObjectIdentity", "NotificationType")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
swPPPoEMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 171, 12, 79))
if mibBuilder.loadTexts: swPPPoEMIB.setLastUpdated('0904020000Z')
if mibBuilder.loadTexts: swPPPoEMIB.setOrganization('D-Link Corp')
if mibBuilder.loadTexts: swPPPoEMIB.setContactInfo('http://support.dlink.com')
if mibBuilder.loadTexts: swPPPoEMIB.setDescription('The structure of PPPoE management for the proprietary enterprise.')
swPPPoEMgmtCtrl = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 12, 79, 1))
swPPPoECirIDInsertState = MibScalar((1, 3, 6, 1, 4, 1, 171, 12, 79, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swPPPoECirIDInsertState.setStatus('current')
if mibBuilder.loadTexts: swPPPoECirIDInsertState.setDescription('This object indicates the status of the PPPoE circuit ID insertion state of the switch.')
swPPPoECirIDInsertPortMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 12, 79, 1, 2))
swPPPoECirIDInsertPortTable = MibTable((1, 3, 6, 1, 4, 1, 171, 12, 79, 1, 2, 1), )
if mibBuilder.loadTexts: swPPPoECirIDInsertPortTable.setStatus('current')
if mibBuilder.loadTexts: swPPPoECirIDInsertPortTable.setDescription('The table specifies the PPPoE circuit ID insertion function specified by the port.')
swPPPoECirIDInsertPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 12, 79, 1, 2, 1, 1), ).setIndexNames((0, "PPPOE-MGMT-MIB", "swPPPoECirIDInsertPortIndex"))
if mibBuilder.loadTexts: swPPPoECirIDInsertPortEntry.setStatus('current')
if mibBuilder.loadTexts: swPPPoECirIDInsertPortEntry.setDescription('A list of information contained in swPPPoECirIDInsertPortTable.')
swPPPoECirIDInsertPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 12, 79, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: swPPPoECirIDInsertPortIndex.setStatus('current')
if mibBuilder.loadTexts: swPPPoECirIDInsertPortIndex.setDescription("This object indicates the module's port number. The range is from 1 to the maximum port number specified in the module")
swPPPoECirIDInsertPortState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 12, 79, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swPPPoECirIDInsertPortState.setStatus('current')
if mibBuilder.loadTexts: swPPPoECirIDInsertPortState.setDescription('This object indicates the PPPoE circuit ID insertion function state on the port.')
swPPPoECirIDInsertPortCirID = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 12, 79, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("switch-ip", 1), ("switch-mac", 2), ("udf-string", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swPPPoECirIDInsertPortCirID.setStatus('current')
if mibBuilder.loadTexts: swPPPoECirIDInsertPortCirID.setDescription('This object indicates the port circuit ID.')
swPPPoECirIDInsertPortUDFString = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 12, 79, 1, 2, 1, 1, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swPPPoECirIDInsertPortUDFString.setStatus('current')
if mibBuilder.loadTexts: swPPPoECirIDInsertPortUDFString.setDescription('This object indicates the user define string when the circuit ID is UDF string.')
mibBuilder.exportSymbols("PPPOE-MGMT-MIB", swPPPoECirIDInsertPortIndex=swPPPoECirIDInsertPortIndex, swPPPoECirIDInsertPortMgmt=swPPPoECirIDInsertPortMgmt, swPPPoECirIDInsertPortCirID=swPPPoECirIDInsertPortCirID, PYSNMP_MODULE_ID=swPPPoEMIB, swPPPoECirIDInsertPortEntry=swPPPoECirIDInsertPortEntry, swPPPoEMgmtCtrl=swPPPoEMgmtCtrl, swPPPoECirIDInsertPortUDFString=swPPPoECirIDInsertPortUDFString, swPPPoECirIDInsertState=swPPPoECirIDInsertState, swPPPoECirIDInsertPortState=swPPPoECirIDInsertPortState, swPPPoEMIB=swPPPoEMIB, swPPPoECirIDInsertPortTable=swPPPoECirIDInsertPortTable)
|
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, value_range_constraint, single_value_constraint, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint')
(dlink_common_mgmt,) = mibBuilder.importSymbols('DLINK-ID-REC-MIB', 'dlink-common-mgmt')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(integer32, module_identity, counter32, unsigned32, mib_identifier, counter64, ip_address, bits, time_ticks, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, object_identity, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'ModuleIdentity', 'Counter32', 'Unsigned32', 'MibIdentifier', 'Counter64', 'IpAddress', 'Bits', 'TimeTicks', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'ObjectIdentity', 'NotificationType')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
sw_pp_po_emib = module_identity((1, 3, 6, 1, 4, 1, 171, 12, 79))
if mibBuilder.loadTexts:
swPPPoEMIB.setLastUpdated('0904020000Z')
if mibBuilder.loadTexts:
swPPPoEMIB.setOrganization('D-Link Corp')
if mibBuilder.loadTexts:
swPPPoEMIB.setContactInfo('http://support.dlink.com')
if mibBuilder.loadTexts:
swPPPoEMIB.setDescription('The structure of PPPoE management for the proprietary enterprise.')
sw_pp_po_e_mgmt_ctrl = mib_identifier((1, 3, 6, 1, 4, 1, 171, 12, 79, 1))
sw_pp_po_e_cir_id_insert_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 12, 79, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swPPPoECirIDInsertState.setStatus('current')
if mibBuilder.loadTexts:
swPPPoECirIDInsertState.setDescription('This object indicates the status of the PPPoE circuit ID insertion state of the switch.')
sw_pp_po_e_cir_id_insert_port_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 12, 79, 1, 2))
sw_pp_po_e_cir_id_insert_port_table = mib_table((1, 3, 6, 1, 4, 1, 171, 12, 79, 1, 2, 1))
if mibBuilder.loadTexts:
swPPPoECirIDInsertPortTable.setStatus('current')
if mibBuilder.loadTexts:
swPPPoECirIDInsertPortTable.setDescription('The table specifies the PPPoE circuit ID insertion function specified by the port.')
sw_pp_po_e_cir_id_insert_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 12, 79, 1, 2, 1, 1)).setIndexNames((0, 'PPPOE-MGMT-MIB', 'swPPPoECirIDInsertPortIndex'))
if mibBuilder.loadTexts:
swPPPoECirIDInsertPortEntry.setStatus('current')
if mibBuilder.loadTexts:
swPPPoECirIDInsertPortEntry.setDescription('A list of information contained in swPPPoECirIDInsertPortTable.')
sw_pp_po_e_cir_id_insert_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 12, 79, 1, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
swPPPoECirIDInsertPortIndex.setStatus('current')
if mibBuilder.loadTexts:
swPPPoECirIDInsertPortIndex.setDescription("This object indicates the module's port number. The range is from 1 to the maximum port number specified in the module")
sw_pp_po_e_cir_id_insert_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 12, 79, 1, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swPPPoECirIDInsertPortState.setStatus('current')
if mibBuilder.loadTexts:
swPPPoECirIDInsertPortState.setDescription('This object indicates the PPPoE circuit ID insertion function state on the port.')
sw_pp_po_e_cir_id_insert_port_cir_id = mib_table_column((1, 3, 6, 1, 4, 1, 171, 12, 79, 1, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('switch-ip', 1), ('switch-mac', 2), ('udf-string', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swPPPoECirIDInsertPortCirID.setStatus('current')
if mibBuilder.loadTexts:
swPPPoECirIDInsertPortCirID.setDescription('This object indicates the port circuit ID.')
sw_pp_po_e_cir_id_insert_port_udf_string = mib_table_column((1, 3, 6, 1, 4, 1, 171, 12, 79, 1, 2, 1, 1, 4), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swPPPoECirIDInsertPortUDFString.setStatus('current')
if mibBuilder.loadTexts:
swPPPoECirIDInsertPortUDFString.setDescription('This object indicates the user define string when the circuit ID is UDF string.')
mibBuilder.exportSymbols('PPPOE-MGMT-MIB', swPPPoECirIDInsertPortIndex=swPPPoECirIDInsertPortIndex, swPPPoECirIDInsertPortMgmt=swPPPoECirIDInsertPortMgmt, swPPPoECirIDInsertPortCirID=swPPPoECirIDInsertPortCirID, PYSNMP_MODULE_ID=swPPPoEMIB, swPPPoECirIDInsertPortEntry=swPPPoECirIDInsertPortEntry, swPPPoEMgmtCtrl=swPPPoEMgmtCtrl, swPPPoECirIDInsertPortUDFString=swPPPoECirIDInsertPortUDFString, swPPPoECirIDInsertState=swPPPoECirIDInsertState, swPPPoECirIDInsertPortState=swPPPoECirIDInsertPortState, swPPPoEMIB=swPPPoEMIB, swPPPoECirIDInsertPortTable=swPPPoECirIDInsertPortTable)
|
'''
digital media index:
0 - digital media id
1 - owner_id
2 - name
3 - description
4 - file_path
5 - thumbnail_path
6 - category_id
7 - media_type_id
8 - price
9 - approved
'''
##############################################
# Search logic #
##############################################
def search(conn, params):
q = Q_Container(conn, params)
if q.term != '':
results = term_search(q)
else:
results = no_term_search(q)
results = final_check(q, results)
return results
def term_search(q):
results = term_query(q)
results = filter_by_category(q, results)
results = filter_by_type(q, results)
results = filter_by_license(q, results)
results = filter_by_approved(results)
return results
def no_term_search(q):
if q.category == 'all':
results = get_all_table(q)
else:
results = get_all_category(q)
results = filter_by_type(q, results)
results = filter_by_license(q, results)
results = filter_by_approved(results)
return results
def filter_by_category(q, results):
if q.category == 'all':
return results
for result in results[:]:
if result[6] != q.category:
results.remove(result)
return results
def filter_by_type(q, results):
if len(q.media_types) == 0:
return results
for result in results[:]:
if result[7] not in q.media_types:
results.remove(result)
return results
def filter_by_approved(results):
for result in results[:]:
if result[9] == 0:
results.remove(result)
return results
def filter_by_license(q, results):
if q.license == 'free':
for result in results[:]:
if result[8] > 0:
results.remove(result)
elif q.license == 'paid':
for result in results[:]:
if result[8] == 0:
results.remove(result)
else:
return results
return results
def final_check(q, results):
if len(results) > 0:
return results
else:
if q.term == '' and q.category == 'all' and len(q.media_types) == 0:
results = get_all_table(q)
elif q.term != '':
results = term_query(q)
elif q.category != 'all':
results = get_all_category(q)
results = filter_by_category(q, results)
elif len(q.media_types) > 0:
results = get_all_table(q)
results = filter_by_type(q, results)
if len(results) == 0:
return get_all_table(q)
return results
##############################################
# functions that access the db #
##############################################
def term_query(q):
q.conn.query("SELECT * FROM digital_media WHERE `name` LIKE %s OR `description` LIKE %s", ("%" + q.term + "%","%" + q.term + "%"))
data = q.conn.fetchall()
q.conn.commit()
return data
def get_all_category(q):
q.conn.query("SELECT * FROM `digital_media` WHERE `category` = %s", (q.category,))
data = q.conn.fetchall()
q.conn.commit()
return data
def get_all_table(q):
q.conn.query("SELECT * FROM digital_media")
data = q.conn.fetchall()
q.conn.commit()
return data
#################################################
# Query parameter container object #
#################################################
class Q_Container(object):
def __init__(self, conn, params):
self.conn = conn
self.term = params['term']
self.category = params['category']
self.license = params['license']
self.media_types = []
if 'image_check' in params:
self.media_types.append('image')
if 'video_check' in params:
self.media_types.append('video')
if 'audio_check' in params:
self.media_types.append('audio')
if 'document_check' in params:
self.media_types.append('document')
|
"""
digital media index:
0 - digital media id
1 - owner_id
2 - name
3 - description
4 - file_path
5 - thumbnail_path
6 - category_id
7 - media_type_id
8 - price
9 - approved
"""
def search(conn, params):
q = q__container(conn, params)
if q.term != '':
results = term_search(q)
else:
results = no_term_search(q)
results = final_check(q, results)
return results
def term_search(q):
results = term_query(q)
results = filter_by_category(q, results)
results = filter_by_type(q, results)
results = filter_by_license(q, results)
results = filter_by_approved(results)
return results
def no_term_search(q):
if q.category == 'all':
results = get_all_table(q)
else:
results = get_all_category(q)
results = filter_by_type(q, results)
results = filter_by_license(q, results)
results = filter_by_approved(results)
return results
def filter_by_category(q, results):
if q.category == 'all':
return results
for result in results[:]:
if result[6] != q.category:
results.remove(result)
return results
def filter_by_type(q, results):
if len(q.media_types) == 0:
return results
for result in results[:]:
if result[7] not in q.media_types:
results.remove(result)
return results
def filter_by_approved(results):
for result in results[:]:
if result[9] == 0:
results.remove(result)
return results
def filter_by_license(q, results):
if q.license == 'free':
for result in results[:]:
if result[8] > 0:
results.remove(result)
elif q.license == 'paid':
for result in results[:]:
if result[8] == 0:
results.remove(result)
else:
return results
return results
def final_check(q, results):
if len(results) > 0:
return results
else:
if q.term == '' and q.category == 'all' and (len(q.media_types) == 0):
results = get_all_table(q)
elif q.term != '':
results = term_query(q)
elif q.category != 'all':
results = get_all_category(q)
results = filter_by_category(q, results)
elif len(q.media_types) > 0:
results = get_all_table(q)
results = filter_by_type(q, results)
if len(results) == 0:
return get_all_table(q)
return results
def term_query(q):
q.conn.query('SELECT * FROM digital_media WHERE `name` LIKE %s OR `description` LIKE %s', ('%' + q.term + '%', '%' + q.term + '%'))
data = q.conn.fetchall()
q.conn.commit()
return data
def get_all_category(q):
q.conn.query('SELECT * FROM `digital_media` WHERE `category` = %s', (q.category,))
data = q.conn.fetchall()
q.conn.commit()
return data
def get_all_table(q):
q.conn.query('SELECT * FROM digital_media')
data = q.conn.fetchall()
q.conn.commit()
return data
class Q_Container(object):
def __init__(self, conn, params):
self.conn = conn
self.term = params['term']
self.category = params['category']
self.license = params['license']
self.media_types = []
if 'image_check' in params:
self.media_types.append('image')
if 'video_check' in params:
self.media_types.append('video')
if 'audio_check' in params:
self.media_types.append('audio')
if 'document_check' in params:
self.media_types.append('document')
|
def solve(*args):
min_number = min(args[0])
max_number = max(args[0])
summary = sum(args[0])
print(f'The minimum number is {min_number}')
print(f'The maximum number is {max_number}')
print(f'The sum number is: {summary}')
solve(list(map(int, input().split())))
|
def solve(*args):
min_number = min(args[0])
max_number = max(args[0])
summary = sum(args[0])
print(f'The minimum number is {min_number}')
print(f'The maximum number is {max_number}')
print(f'The sum number is: {summary}')
solve(list(map(int, input().split())))
|
w, h = 4, 100
list_of_gedung = [[0 for x in range(w)] for y in range(h)]
def createVertex(upperbackleft_x, upperbackleft_y, upperbackleft_z, upperbackright_x, upperbackright_y, upperbackright_z, upperfrontleft_x, upperfrontleft_y, upperfrontleft_z, upperfrontright_x, upperfrontright_y, upperfrontright_z, underbackleft_x, underbackleft_y, underbackleft_z, underbackright_x, underbackright_y, underbackright_z, underfrontleft_x, underfrontleft_y, underfrontleft_z, underfrontright_x, underfrontright_y, underfrontright_z):
vertex = []
#TR1 (left side)
vertex.append(underbackleft_x)
vertex.append(underbackleft_y)
vertex.append(underbackleft_z)
vertex.append(underfrontleft_x)
vertex.append(underfrontleft_y)
vertex.append(underfrontleft_z)
vertex.append(upperfrontleft_x)
vertex.append(upperfrontleft_y)
vertex.append(upperfrontleft_z)
#TR2 (Backside)
vertex.append(upperbackright_x)
vertex.append(upperbackright_y)
vertex.append(upperbackright_z)
vertex.append(underbackleft_x)
vertex.append(underbackleft_y)
vertex.append(underbackleft_z)
vertex.append(upperbackleft_x)
vertex.append(upperbackleft_y)
vertex.append(upperbackleft_z)
#TR3 (under side)
vertex.append(underfrontright_x)
vertex.append(underfrontright_y)
vertex.append(underfrontright_z)
vertex.append(underbackleft_x)
vertex.append(underbackleft_y)
vertex.append(underbackleft_z)
vertex.append(underbackright_x)
vertex.append(underbackright_y)
vertex.append(underbackright_z)
#TR4 (back side)
vertex.append(upperbackright_x)
vertex.append(upperbackright_y)
vertex.append(upperbackright_z)
vertex.append(underbackright_x)
vertex.append(underbackright_y)
vertex.append(underbackright_z)
vertex.append(underbackleft_x)
vertex.append(underbackleft_y)
vertex.append(underbackleft_z)
# TR5 (backside)
vertex.append(underbackleft_x)
vertex.append(underbackleft_y)
vertex.append(underbackleft_z)
vertex.append(upperfrontleft_x)
vertex.append(upperfrontleft_y)
vertex.append(upperfrontleft_z)
vertex.append(upperbackleft_x)
vertex.append(upperbackleft_y)
vertex.append(upperbackleft_z)
#TR6 (under side)
vertex.append(underbackleft_x)
vertex.append(underbackleft_y)
vertex.append(underbackleft_z)
vertex.append(underfrontright_x)
vertex.append(underfrontright_y)
vertex.append(underfrontright_z)
vertex.append(underfrontleft_x)
vertex.append(underfrontleft_y)
vertex.append(underfrontleft_z)
#TR7 (front side)
vertex.append(underfrontright_x)
vertex.append(underfrontright_y)
vertex.append(underfrontright_z)
vertex.append(upperfrontleft_x)
vertex.append(upperfrontleft_y)
vertex.append(upperfrontleft_z)
vertex.append(underfrontleft_x)
vertex.append(underfrontleft_y)
vertex.append(underfrontleft_z)
#TR8 (right side)
vertex.append(upperfrontright_x)
vertex.append(upperfrontright_y)
vertex.append(upperfrontright_z)
vertex.append(underbackright_x)
vertex.append(underbackright_y)
vertex.append(underbackright_z)
vertex.append(upperbackright_x)
vertex.append(upperbackright_y)
vertex.append(upperbackright_z)
#TR9 (right side)
vertex.append(underbackright_x)
vertex.append(underbackright_y)
vertex.append(underbackright_z)
vertex.append(upperfrontright_x)
vertex.append(upperfrontright_y)
vertex.append(upperfrontright_z)
vertex.append(underfrontright_x)
vertex.append(underfrontright_y)
vertex.append(underfrontright_z)
#TR10 (upper side)
vertex.append(upperfrontright_x)
vertex.append(upperfrontright_y)
vertex.append(upperfrontright_z)
vertex.append(upperbackright_x)
vertex.append(upperbackright_y)
vertex.append(upperbackright_z)
vertex.append(upperbackleft_x)
vertex.append(upperbackleft_y)
vertex.append(upperbackleft_z)
#TR11 (upper side)
vertex.append(upperfrontright_x)
vertex.append(upperfrontright_y)
vertex.append(upperfrontright_z)
vertex.append(upperbackleft_x)
vertex.append(upperbackleft_y)
vertex.append(upperbackleft_z)
vertex.append(upperfrontleft_x)
vertex.append(upperfrontleft_y)
vertex.append(upperfrontleft_z)
#TR12
vertex.append(upperfrontright_x)
vertex.append(upperfrontright_y)
vertex.append(upperfrontright_z)
vertex.append(upperfrontleft_x)
vertex.append(upperfrontleft_y)
vertex.append(upperfrontleft_z)
vertex.append(underfrontright_x)
vertex.append(underfrontright_y)
vertex.append(underfrontright_z)
return vertex
def createBuilding(underbackright_x, underbackright_y, underbackright_z, underbackleft_x, underbackleft_y, underbackleft_z, underfrontleft_x, underfrontleft_y, underfrontleft_z, underfrontright_x, underfrontright_y, underfrontright_z, tinggi):
# tinggi = 0.5
upperbackleft_x = underbackleft_x
upperbackleft_y = underbackleft_y
upperbackleft_z = underbackleft_z + tinggi
upperbackright_x = underbackright_x
upperbackright_y = underbackright_y
upperbackright_z = underbackright_z + tinggi
upperfrontright_x = underfrontright_x
upperfrontright_y = underfrontright_y
upperfrontright_z = underfrontright_z + tinggi
upperfrontleft_x = underfrontleft_x
upperfrontleft_y = underfrontleft_y
upperfrontleft_z = underfrontleft_z + tinggi
return createVertex(upperbackleft_x, upperbackleft_y, upperbackleft_z, upperbackright_x, upperbackright_y, upperbackright_z, upperfrontleft_x, upperfrontleft_y, upperfrontleft_z, upperfrontright_x, upperfrontright_y, upperfrontright_z, underbackleft_x, underbackleft_y, underbackleft_z, underbackright_x, underbackright_y, underbackright_z, underfrontleft_x, underfrontleft_y, underfrontleft_z, underfrontright_x, underfrontright_y, underfrontright_z)
def createAllBuilding():
vertex_data = []
i = 0
# albar
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
# altim
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
# cbar
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.35)
i += 1
# ctim
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.35)
i += 1
# l5
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.4)
i += 1
# l6
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.4)
i += 1
# l7
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.4)
i += 1
# l8
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.4)
i += 1
# pau
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.7)
i += 1
# perpus
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.5)
i += 1
# mektan
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.4)
i += 1
# comlabs
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.45)
i += 1
# pln
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.45)
i += 1
# tvst
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.5)
i += 1
# oktagon
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.5)
i += 1
# labir utara
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.65)
i += 1
# labir selatan
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.65)
i += 1
# labir tengah
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.6)
i += 1
# belakang perpus
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.7)
i += 1
# belakang pau
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.7)
i += 1
# jalanan
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += createBuilding(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2],
list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2],
list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2],
list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
return vertex_data
|
(w, h) = (4, 100)
list_of_gedung = [[0 for x in range(w)] for y in range(h)]
def create_vertex(upperbackleft_x, upperbackleft_y, upperbackleft_z, upperbackright_x, upperbackright_y, upperbackright_z, upperfrontleft_x, upperfrontleft_y, upperfrontleft_z, upperfrontright_x, upperfrontright_y, upperfrontright_z, underbackleft_x, underbackleft_y, underbackleft_z, underbackright_x, underbackright_y, underbackright_z, underfrontleft_x, underfrontleft_y, underfrontleft_z, underfrontright_x, underfrontright_y, underfrontright_z):
vertex = []
vertex.append(underbackleft_x)
vertex.append(underbackleft_y)
vertex.append(underbackleft_z)
vertex.append(underfrontleft_x)
vertex.append(underfrontleft_y)
vertex.append(underfrontleft_z)
vertex.append(upperfrontleft_x)
vertex.append(upperfrontleft_y)
vertex.append(upperfrontleft_z)
vertex.append(upperbackright_x)
vertex.append(upperbackright_y)
vertex.append(upperbackright_z)
vertex.append(underbackleft_x)
vertex.append(underbackleft_y)
vertex.append(underbackleft_z)
vertex.append(upperbackleft_x)
vertex.append(upperbackleft_y)
vertex.append(upperbackleft_z)
vertex.append(underfrontright_x)
vertex.append(underfrontright_y)
vertex.append(underfrontright_z)
vertex.append(underbackleft_x)
vertex.append(underbackleft_y)
vertex.append(underbackleft_z)
vertex.append(underbackright_x)
vertex.append(underbackright_y)
vertex.append(underbackright_z)
vertex.append(upperbackright_x)
vertex.append(upperbackright_y)
vertex.append(upperbackright_z)
vertex.append(underbackright_x)
vertex.append(underbackright_y)
vertex.append(underbackright_z)
vertex.append(underbackleft_x)
vertex.append(underbackleft_y)
vertex.append(underbackleft_z)
vertex.append(underbackleft_x)
vertex.append(underbackleft_y)
vertex.append(underbackleft_z)
vertex.append(upperfrontleft_x)
vertex.append(upperfrontleft_y)
vertex.append(upperfrontleft_z)
vertex.append(upperbackleft_x)
vertex.append(upperbackleft_y)
vertex.append(upperbackleft_z)
vertex.append(underbackleft_x)
vertex.append(underbackleft_y)
vertex.append(underbackleft_z)
vertex.append(underfrontright_x)
vertex.append(underfrontright_y)
vertex.append(underfrontright_z)
vertex.append(underfrontleft_x)
vertex.append(underfrontleft_y)
vertex.append(underfrontleft_z)
vertex.append(underfrontright_x)
vertex.append(underfrontright_y)
vertex.append(underfrontright_z)
vertex.append(upperfrontleft_x)
vertex.append(upperfrontleft_y)
vertex.append(upperfrontleft_z)
vertex.append(underfrontleft_x)
vertex.append(underfrontleft_y)
vertex.append(underfrontleft_z)
vertex.append(upperfrontright_x)
vertex.append(upperfrontright_y)
vertex.append(upperfrontright_z)
vertex.append(underbackright_x)
vertex.append(underbackright_y)
vertex.append(underbackright_z)
vertex.append(upperbackright_x)
vertex.append(upperbackright_y)
vertex.append(upperbackright_z)
vertex.append(underbackright_x)
vertex.append(underbackright_y)
vertex.append(underbackright_z)
vertex.append(upperfrontright_x)
vertex.append(upperfrontright_y)
vertex.append(upperfrontright_z)
vertex.append(underfrontright_x)
vertex.append(underfrontright_y)
vertex.append(underfrontright_z)
vertex.append(upperfrontright_x)
vertex.append(upperfrontright_y)
vertex.append(upperfrontright_z)
vertex.append(upperbackright_x)
vertex.append(upperbackright_y)
vertex.append(upperbackright_z)
vertex.append(upperbackleft_x)
vertex.append(upperbackleft_y)
vertex.append(upperbackleft_z)
vertex.append(upperfrontright_x)
vertex.append(upperfrontright_y)
vertex.append(upperfrontright_z)
vertex.append(upperbackleft_x)
vertex.append(upperbackleft_y)
vertex.append(upperbackleft_z)
vertex.append(upperfrontleft_x)
vertex.append(upperfrontleft_y)
vertex.append(upperfrontleft_z)
vertex.append(upperfrontright_x)
vertex.append(upperfrontright_y)
vertex.append(upperfrontright_z)
vertex.append(upperfrontleft_x)
vertex.append(upperfrontleft_y)
vertex.append(upperfrontleft_z)
vertex.append(underfrontright_x)
vertex.append(underfrontright_y)
vertex.append(underfrontright_z)
return vertex
def create_building(underbackright_x, underbackright_y, underbackright_z, underbackleft_x, underbackleft_y, underbackleft_z, underfrontleft_x, underfrontleft_y, underfrontleft_z, underfrontright_x, underfrontright_y, underfrontright_z, tinggi):
upperbackleft_x = underbackleft_x
upperbackleft_y = underbackleft_y
upperbackleft_z = underbackleft_z + tinggi
upperbackright_x = underbackright_x
upperbackright_y = underbackright_y
upperbackright_z = underbackright_z + tinggi
upperfrontright_x = underfrontright_x
upperfrontright_y = underfrontright_y
upperfrontright_z = underfrontright_z + tinggi
upperfrontleft_x = underfrontleft_x
upperfrontleft_y = underfrontleft_y
upperfrontleft_z = underfrontleft_z + tinggi
return create_vertex(upperbackleft_x, upperbackleft_y, upperbackleft_z, upperbackright_x, upperbackright_y, upperbackright_z, upperfrontleft_x, upperfrontleft_y, upperfrontleft_z, upperfrontright_x, upperfrontright_y, upperfrontright_z, underbackleft_x, underbackleft_y, underbackleft_z, underbackright_x, underbackright_y, underbackright_z, underfrontleft_x, underfrontleft_y, underfrontleft_z, underfrontright_x, underfrontright_y, underfrontright_z)
def create_all_building():
vertex_data = []
i = 0
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.35)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.35)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.4)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.4)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.4)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.4)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.7)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.5)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.4)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.45)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.45)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.5)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.5)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.65)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.65)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.6)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.7)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.7)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
i += 1
vertex_data += create_building(list_of_gedung[i][0][0], list_of_gedung[i][0][1], list_of_gedung[i][0][2], list_of_gedung[i][1][0], list_of_gedung[i][1][1], list_of_gedung[i][1][2], list_of_gedung[i][2][0], list_of_gedung[i][2][1], list_of_gedung[i][2][2], list_of_gedung[i][3][0], list_of_gedung[i][3][1], list_of_gedung[i][3][2], 0.2)
return vertex_data
|
## @file
# Module to gather dependency information for ASKAP packages
#
# @copyright (c) 2006 CSIRO
# Australia Telescope National Facility (ATNF)
# Commonwealth Scientific and Industrial Research Organisation (CSIRO)
# PO Box 76, Epping NSW 1710, Australia
# [email protected]
#
# This file is part of the ASKAP software distribution.
#
# The ASKAP software distribution is free software: you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the License
# or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
#
# @author Malte Marquarding <[email protected]>
#
## This is an ordered dict, i.e. the keys are in the order in
# which they have been added. It has the same interface as dict
# but only the functions which are in use have been implemented
class OrderedDict:
## Create an empty container
# @param self the object reference
def __init__(self):
self._list = []
## Return the length of the container (the number of keys)
# @return an integer value
def __len__(self):
return len(self._list)
## Insert an item into the container
# @param self the object reference
# @param key the key of the item
# @param value the value of the item
def __setitem__(self, key, value):
self._list.append([key, value])
## Retrieve an item from the container using its key
# @param self the object reference
# @param i the key of the item to retrieve
# @return the value of the item
def __getitem__(self, i):
found = False
for key, value in self.iteritems():
if key == i:
return value
if not found:
raise KeyError(str(i))
## Get the keys of the container
# @param self the object reference
# @return a list of keys
def keys(self):
return [i[0] for i in self._list]
## Determine if a key exists in the container
# @param self the object reference
# @param k the name of the key
# @return a boolean inidcatinf if the key exists
def has_key(self, k):
return (k in self.keys())
def __contains__(self, k):
return self.has_key(k)
## Get the values of the container
# @param self the object reference
# @return a list of values
def values(self):
return [i[1] for i in self._list]
## Return a generator for this container
# @param self the object reference
# @return a generator returning (key, value) tuples
def iteritems(self):
for i in self._list:
yield i[0], i[1]
## Move an existing item to the end of the container
# @param self the object reference
# @param key the key of the item
def toend(self, key):
value = self.__getitem__(key)
del self._list[self.keys().index(key)]
self._list.append([key, value])
|
class Ordereddict:
def __init__(self):
self._list = []
def __len__(self):
return len(self._list)
def __setitem__(self, key, value):
self._list.append([key, value])
def __getitem__(self, i):
found = False
for (key, value) in self.iteritems():
if key == i:
return value
if not found:
raise key_error(str(i))
def keys(self):
return [i[0] for i in self._list]
def has_key(self, k):
return k in self.keys()
def __contains__(self, k):
return self.has_key(k)
def values(self):
return [i[1] for i in self._list]
def iteritems(self):
for i in self._list:
yield (i[0], i[1])
def toend(self, key):
value = self.__getitem__(key)
del self._list[self.keys().index(key)]
self._list.append([key, value])
|
## Sum of odd numbers
## 7 kyu
## https://www.codewars.com/kata/55fd2d567d94ac3bc9000064
def row_sum_odd_numbers(n):
total = 0
row_sum= 0
for i in range(n-1,0, -1):
total += i
starting_odd = total * 2 + 1
for i in range(1,n+1):
row_sum += starting_odd
starting_odd += 2
return row_sum
|
def row_sum_odd_numbers(n):
total = 0
row_sum = 0
for i in range(n - 1, 0, -1):
total += i
starting_odd = total * 2 + 1
for i in range(1, n + 1):
row_sum += starting_odd
starting_odd += 2
return row_sum
|
#
# PySNMP MIB module RFC1253-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RFC1253-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:00:57 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Integer32, ModuleIdentity, Gauge32, Counter64, iso, Counter32, TimeTicks, NotificationType, ObjectIdentity, MibIdentifier, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, Unsigned32, mib_2 = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "ModuleIdentity", "Gauge32", "Counter64", "iso", "Counter32", "TimeTicks", "NotificationType", "ObjectIdentity", "MibIdentifier", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "Unsigned32", "mib-2")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
ospf = MibIdentifier((1, 3, 6, 1, 2, 1, 14))
class AreaID(IpAddress):
pass
class RouterID(IpAddress):
pass
class Metric(Integer32):
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 65535)
class BigMetric(Integer32):
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 16777215)
class TruthValue(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("true", 1), ("false", 2))
class Status(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("enabled", 1), ("disabled", 2))
class Validation(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("valid", 1), ("invalid", 2))
class PositiveInteger(Integer32):
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 4294967295)
class HelloRange(Integer32):
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 65535)
class UpToMaxAge(Integer32):
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 3600)
class InterfaceIndex(Integer32):
pass
class DesignatedRouterPriority(Integer32):
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 255)
class TOSType(Integer32):
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 31)
ospfGeneralGroup = MibIdentifier((1, 3, 6, 1, 2, 1, 14, 1))
ospfRouterId = MibScalar((1, 3, 6, 1, 2, 1, 14, 1, 1), RouterID()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfRouterId.setStatus('mandatory')
ospfAdminStat = MibScalar((1, 3, 6, 1, 2, 1, 14, 1, 2), Status()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfAdminStat.setStatus('mandatory')
ospfVersionNumber = MibScalar((1, 3, 6, 1, 2, 1, 14, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2))).clone(namedValues=NamedValues(("version2", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfVersionNumber.setStatus('mandatory')
ospfAreaBdrRtrStatus = MibScalar((1, 3, 6, 1, 2, 1, 14, 1, 4), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfAreaBdrRtrStatus.setStatus('mandatory')
ospfASBdrRtrStatus = MibScalar((1, 3, 6, 1, 2, 1, 14, 1, 5), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfASBdrRtrStatus.setStatus('mandatory')
ospfExternLSACount = MibScalar((1, 3, 6, 1, 2, 1, 14, 1, 6), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfExternLSACount.setStatus('mandatory')
ospfExternLSACksumSum = MibScalar((1, 3, 6, 1, 2, 1, 14, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfExternLSACksumSum.setStatus('mandatory')
ospfTOSSupport = MibScalar((1, 3, 6, 1, 2, 1, 14, 1, 8), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfTOSSupport.setStatus('mandatory')
ospfOriginateNewLSAs = MibScalar((1, 3, 6, 1, 2, 1, 14, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfOriginateNewLSAs.setStatus('mandatory')
ospfRxNewLSAs = MibScalar((1, 3, 6, 1, 2, 1, 14, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfRxNewLSAs.setStatus('mandatory')
ospfAreaTable = MibTable((1, 3, 6, 1, 2, 1, 14, 2), )
if mibBuilder.loadTexts: ospfAreaTable.setStatus('mandatory')
ospfAreaEntry = MibTableRow((1, 3, 6, 1, 2, 1, 14, 2, 1), ).setIndexNames((0, "RFC1253-MIB", "ospfAreaId"))
if mibBuilder.loadTexts: ospfAreaEntry.setStatus('mandatory')
ospfAreaId = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 2, 1, 1), AreaID()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfAreaId.setStatus('mandatory')
ospfAuthType = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 2, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfAuthType.setStatus('mandatory')
ospfImportASExtern = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 2, 1, 3), TruthValue().clone('true')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfImportASExtern.setStatus('mandatory')
ospfSpfRuns = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfSpfRuns.setStatus('mandatory')
ospfAreaBdrRtrCount = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 2, 1, 5), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfAreaBdrRtrCount.setStatus('mandatory')
ospfASBdrRtrCount = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 2, 1, 6), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfASBdrRtrCount.setStatus('mandatory')
ospfAreaLSACount = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 2, 1, 7), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfAreaLSACount.setStatus('mandatory')
ospfAreaLSACksumSum = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 2, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfAreaLSACksumSum.setStatus('mandatory')
ospfStubAreaTable = MibTable((1, 3, 6, 1, 2, 1, 14, 3), )
if mibBuilder.loadTexts: ospfStubAreaTable.setStatus('mandatory')
ospfStubAreaEntry = MibTableRow((1, 3, 6, 1, 2, 1, 14, 3, 1), ).setIndexNames((0, "RFC1253-MIB", "ospfStubAreaID"), (0, "RFC1253-MIB", "ospfStubTOS"))
if mibBuilder.loadTexts: ospfStubAreaEntry.setStatus('mandatory')
ospfStubAreaID = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 3, 1, 1), AreaID()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfStubAreaID.setStatus('mandatory')
ospfStubTOS = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 3, 1, 2), TOSType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfStubTOS.setStatus('mandatory')
ospfStubMetric = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 3, 1, 3), BigMetric()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfStubMetric.setStatus('mandatory')
ospfStubStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 3, 1, 4), Validation().clone('valid')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfStubStatus.setStatus('mandatory')
ospfLsdbTable = MibTable((1, 3, 6, 1, 2, 1, 14, 4), )
if mibBuilder.loadTexts: ospfLsdbTable.setStatus('mandatory')
ospfLsdbEntry = MibTableRow((1, 3, 6, 1, 2, 1, 14, 4, 1), ).setIndexNames((0, "RFC1253-MIB", "ospfLsdbAreaId"), (0, "RFC1253-MIB", "ospfLsdbType"), (0, "RFC1253-MIB", "ospfLsdbLSID"), (0, "RFC1253-MIB", "ospfLsdbRouterId"))
if mibBuilder.loadTexts: ospfLsdbEntry.setStatus('mandatory')
ospfLsdbAreaId = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 4, 1, 1), AreaID()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfLsdbAreaId.setStatus('mandatory')
ospfLsdbType = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("routerLink", 1), ("networkLink", 2), ("summaryLink", 3), ("asSummaryLink", 4), ("asExternalLink", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfLsdbType.setStatus('mandatory')
ospfLsdbLSID = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 4, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfLsdbLSID.setStatus('mandatory')
ospfLsdbRouterId = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 4, 1, 4), RouterID()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfLsdbRouterId.setStatus('mandatory')
ospfLsdbSequence = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 4, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfLsdbSequence.setStatus('mandatory')
ospfLsdbAge = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 4, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfLsdbAge.setStatus('mandatory')
ospfLsdbChecksum = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 4, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfLsdbChecksum.setStatus('mandatory')
ospfLsdbAdvertisement = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 4, 1, 8), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfLsdbAdvertisement.setStatus('mandatory')
ospfAreaRangeTable = MibTable((1, 3, 6, 1, 2, 1, 14, 5), )
if mibBuilder.loadTexts: ospfAreaRangeTable.setStatus('mandatory')
ospfAreaRangeEntry = MibTableRow((1, 3, 6, 1, 2, 1, 14, 5, 1), ).setIndexNames((0, "RFC1253-MIB", "ospfAreaRangeAreaID"), (0, "RFC1253-MIB", "ospfAreaRangeNet"))
if mibBuilder.loadTexts: ospfAreaRangeEntry.setStatus('mandatory')
ospfAreaRangeAreaID = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 5, 1, 1), AreaID()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfAreaRangeAreaID.setStatus('mandatory')
ospfAreaRangeNet = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 5, 1, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfAreaRangeNet.setStatus('mandatory')
ospfAreaRangeMask = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 5, 1, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfAreaRangeMask.setStatus('mandatory')
ospfAreaRangeStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 5, 1, 4), Validation().clone('valid')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfAreaRangeStatus.setStatus('mandatory')
ospfHostTable = MibTable((1, 3, 6, 1, 2, 1, 14, 6), )
if mibBuilder.loadTexts: ospfHostTable.setStatus('mandatory')
ospfHostEntry = MibTableRow((1, 3, 6, 1, 2, 1, 14, 6, 1), ).setIndexNames((0, "RFC1253-MIB", "ospfHostIpAddress"), (0, "RFC1253-MIB", "ospfHostTOS"))
if mibBuilder.loadTexts: ospfHostEntry.setStatus('mandatory')
ospfHostIpAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 6, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfHostIpAddress.setStatus('mandatory')
ospfHostTOS = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 6, 1, 2), TOSType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfHostTOS.setStatus('mandatory')
ospfHostMetric = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 6, 1, 3), Metric()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfHostMetric.setStatus('mandatory')
ospfHostStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 6, 1, 4), Validation().clone('valid')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfHostStatus.setStatus('mandatory')
ospfIfTable = MibTable((1, 3, 6, 1, 2, 1, 14, 7), )
if mibBuilder.loadTexts: ospfIfTable.setStatus('mandatory')
ospfIfEntry = MibTableRow((1, 3, 6, 1, 2, 1, 14, 7, 1), ).setIndexNames((0, "RFC1253-MIB", "ospfIfIpAddress"), (0, "RFC1253-MIB", "ospfAddressLessIf"))
if mibBuilder.loadTexts: ospfIfEntry.setStatus('mandatory')
ospfIfIpAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 7, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfIfIpAddress.setStatus('mandatory')
ospfAddressLessIf = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 7, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfAddressLessIf.setStatus('mandatory')
ospfIfAreaId = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 7, 1, 3), AreaID().clone(hexValue="00000000")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfIfAreaId.setStatus('mandatory')
ospfIfType = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 7, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("broadcast", 1), ("nbma", 2), ("pointToPoint", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfIfType.setStatus('mandatory')
ospfIfAdminStat = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 7, 1, 5), Status().clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfIfAdminStat.setStatus('mandatory')
ospfIfRtrPriority = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 7, 1, 6), DesignatedRouterPriority().clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfIfRtrPriority.setStatus('mandatory')
ospfIfTransitDelay = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 7, 1, 7), UpToMaxAge().clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfIfTransitDelay.setStatus('mandatory')
ospfIfRetransInterval = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 7, 1, 8), UpToMaxAge().clone(5)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfIfRetransInterval.setStatus('mandatory')
ospfIfHelloInterval = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 7, 1, 9), HelloRange().clone(10)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfIfHelloInterval.setStatus('mandatory')
ospfIfRtrDeadInterval = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 7, 1, 10), PositiveInteger().clone(40)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfIfRtrDeadInterval.setStatus('mandatory')
ospfIfPollInterval = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 7, 1, 11), PositiveInteger().clone(120)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfIfPollInterval.setStatus('mandatory')
ospfIfState = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 7, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("down", 1), ("loopback", 2), ("waiting", 3), ("pointToPoint", 4), ("designatedRouter", 5), ("backupDesignatedRouter", 6), ("otherDesignatedRouter", 7))).clone('down')).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfIfState.setStatus('mandatory')
ospfIfDesignatedRouter = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 7, 1, 13), IpAddress().clone(hexValue="00000000")).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfIfDesignatedRouter.setStatus('mandatory')
ospfIfBackupDesignatedRouter = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 7, 1, 14), IpAddress().clone(hexValue="00000000")).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfIfBackupDesignatedRouter.setStatus('mandatory')
ospfIfEvents = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 7, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfIfEvents.setStatus('mandatory')
ospfIfAuthKey = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 7, 1, 16), OctetString().clone(hexValue="0000000000000000")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfIfAuthKey.setStatus('mandatory')
ospfIfMetricTable = MibTable((1, 3, 6, 1, 2, 1, 14, 8), )
if mibBuilder.loadTexts: ospfIfMetricTable.setStatus('mandatory')
ospfIfMetricEntry = MibTableRow((1, 3, 6, 1, 2, 1, 14, 8, 1), ).setIndexNames((0, "RFC1253-MIB", "ospfIfMetricIpAddress"), (0, "RFC1253-MIB", "ospfIfMetricAddressLessIf"), (0, "RFC1253-MIB", "ospfIfMetricTOS"))
if mibBuilder.loadTexts: ospfIfMetricEntry.setStatus('mandatory')
ospfIfMetricIpAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 8, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfIfMetricIpAddress.setStatus('mandatory')
ospfIfMetricAddressLessIf = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 8, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfIfMetricAddressLessIf.setStatus('mandatory')
ospfIfMetricTOS = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 8, 1, 3), TOSType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfIfMetricTOS.setStatus('mandatory')
ospfIfMetricMetric = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 8, 1, 4), Metric()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfIfMetricMetric.setStatus('mandatory')
ospfIfMetricStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 8, 1, 5), Validation().clone('valid')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfIfMetricStatus.setStatus('mandatory')
ospfVirtIfTable = MibTable((1, 3, 6, 1, 2, 1, 14, 9), )
if mibBuilder.loadTexts: ospfVirtIfTable.setStatus('mandatory')
ospfVirtIfEntry = MibTableRow((1, 3, 6, 1, 2, 1, 14, 9, 1), ).setIndexNames((0, "RFC1253-MIB", "ospfVirtIfAreaID"), (0, "RFC1253-MIB", "ospfVirtIfNeighbor"))
if mibBuilder.loadTexts: ospfVirtIfEntry.setStatus('mandatory')
ospfVirtIfAreaID = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 9, 1, 1), AreaID()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfVirtIfAreaID.setStatus('mandatory')
ospfVirtIfNeighbor = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 9, 1, 2), RouterID()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfVirtIfNeighbor.setStatus('mandatory')
ospfVirtIfTransitDelay = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 9, 1, 3), UpToMaxAge().clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfVirtIfTransitDelay.setStatus('mandatory')
ospfVirtIfRetransInterval = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 9, 1, 4), UpToMaxAge().clone(5)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfVirtIfRetransInterval.setStatus('mandatory')
ospfVirtIfHelloInterval = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 9, 1, 5), HelloRange().clone(10)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfVirtIfHelloInterval.setStatus('mandatory')
ospfVirtIfRtrDeadInterval = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 9, 1, 6), PositiveInteger().clone(60)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfVirtIfRtrDeadInterval.setStatus('mandatory')
ospfVirtIfState = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 9, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 4))).clone(namedValues=NamedValues(("down", 1), ("pointToPoint", 4))).clone('down')).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfVirtIfState.setStatus('mandatory')
ospfVirtIfEvents = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 9, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfVirtIfEvents.setStatus('mandatory')
ospfVirtIfAuthKey = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 9, 1, 9), OctetString().clone(hexValue="0000000000000000")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfVirtIfAuthKey.setStatus('mandatory')
ospfVirtIfStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 9, 1, 10), Validation().clone('valid')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfVirtIfStatus.setStatus('mandatory')
ospfNbrTable = MibTable((1, 3, 6, 1, 2, 1, 14, 10), )
if mibBuilder.loadTexts: ospfNbrTable.setStatus('mandatory')
ospfNbrEntry = MibTableRow((1, 3, 6, 1, 2, 1, 14, 10, 1), ).setIndexNames((0, "RFC1253-MIB", "ospfNbrIpAddr"), (0, "RFC1253-MIB", "ospfNbrAddressLessIndex"))
if mibBuilder.loadTexts: ospfNbrEntry.setStatus('mandatory')
ospfNbrIpAddr = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 10, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfNbrIpAddr.setStatus('mandatory')
ospfNbrAddressLessIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 10, 1, 2), InterfaceIndex()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfNbrAddressLessIndex.setStatus('mandatory')
ospfNbrRtrId = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 10, 1, 3), RouterID().clone(hexValue="00000000")).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfNbrRtrId.setStatus('mandatory')
ospfNbrOptions = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 10, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfNbrOptions.setStatus('mandatory')
ospfNbrPriority = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 10, 1, 5), DesignatedRouterPriority().clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfNbrPriority.setStatus('mandatory')
ospfNbrState = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 10, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("down", 1), ("attempt", 2), ("init", 3), ("twoWay", 4), ("exchangeStart", 5), ("exchange", 6), ("loading", 7), ("full", 8))).clone('down')).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfNbrState.setStatus('mandatory')
ospfNbrEvents = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 10, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfNbrEvents.setStatus('mandatory')
ospfNbrLSRetransQLen = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 10, 1, 8), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfNbrLSRetransQLen.setStatus('mandatory')
ospfNBMANbrStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 10, 1, 9), Validation().clone('valid')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ospfNBMANbrStatus.setStatus('mandatory')
ospfVirtNbrTable = MibTable((1, 3, 6, 1, 2, 1, 14, 11), )
if mibBuilder.loadTexts: ospfVirtNbrTable.setStatus('mandatory')
ospfVirtNbrEntry = MibTableRow((1, 3, 6, 1, 2, 1, 14, 11, 1), ).setIndexNames((0, "RFC1253-MIB", "ospfVirtNbrArea"), (0, "RFC1253-MIB", "ospfVirtNbrRtrId"))
if mibBuilder.loadTexts: ospfVirtNbrEntry.setStatus('mandatory')
ospfVirtNbrArea = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 11, 1, 1), AreaID()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfVirtNbrArea.setStatus('mandatory')
ospfVirtNbrRtrId = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 11, 1, 2), RouterID()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfVirtNbrRtrId.setStatus('mandatory')
ospfVirtNbrIpAddr = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 11, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfVirtNbrIpAddr.setStatus('mandatory')
ospfVirtNbrOptions = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 11, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfVirtNbrOptions.setStatus('mandatory')
ospfVirtNbrState = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 11, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("down", 1), ("attempt", 2), ("init", 3), ("twoWay", 4), ("exchangeStart", 5), ("exchange", 6), ("loading", 7), ("full", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfVirtNbrState.setStatus('mandatory')
ospfVirtNbrEvents = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 11, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfVirtNbrEvents.setStatus('mandatory')
ospfVirtNbrLSRetransQLen = MibTableColumn((1, 3, 6, 1, 2, 1, 14, 11, 1, 7), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ospfVirtNbrLSRetransQLen.setStatus('mandatory')
mibBuilder.exportSymbols("RFC1253-MIB", DesignatedRouterPriority=DesignatedRouterPriority, ospfLsdbTable=ospfLsdbTable, ospfSpfRuns=ospfSpfRuns, ospfIfMetricIpAddress=ospfIfMetricIpAddress, ospfIfTransitDelay=ospfIfTransitDelay, ospfAdminStat=ospfAdminStat, ospfVirtIfRtrDeadInterval=ospfVirtIfRtrDeadInterval, ospfStubAreaTable=ospfStubAreaTable, ospfAuthType=ospfAuthType, ospfIfEvents=ospfIfEvents, PositiveInteger=PositiveInteger, ospfVirtNbrState=ospfVirtNbrState, ospfHostTOS=ospfHostTOS, ospfAreaRangeMask=ospfAreaRangeMask, ospfIfIpAddress=ospfIfIpAddress, ospfIfState=ospfIfState, TruthValue=TruthValue, ospfNbrEntry=ospfNbrEntry, ospfNbrTable=ospfNbrTable, ospfIfMetricEntry=ospfIfMetricEntry, ospfRouterId=ospfRouterId, ospfIfMetricMetric=ospfIfMetricMetric, ospfVirtIfNeighbor=ospfVirtIfNeighbor, ospfIfHelloInterval=ospfIfHelloInterval, ospfVirtNbrEntry=ospfVirtNbrEntry, Status=Status, ospfStubMetric=ospfStubMetric, ospfOriginateNewLSAs=ospfOriginateNewLSAs, ospfAreaRangeEntry=ospfAreaRangeEntry, ospfVirtIfRetransInterval=ospfVirtIfRetransInterval, ospfNBMANbrStatus=ospfNBMANbrStatus, AreaID=AreaID, InterfaceIndex=InterfaceIndex, ospfIfRetransInterval=ospfIfRetransInterval, ospfASBdrRtrStatus=ospfASBdrRtrStatus, ospfNbrIpAddr=ospfNbrIpAddr, ospfNbrOptions=ospfNbrOptions, ospfIfMetricTOS=ospfIfMetricTOS, ospfIfRtrPriority=ospfIfRtrPriority, ospfStubStatus=ospfStubStatus, ospfVirtNbrEvents=ospfVirtNbrEvents, Metric=Metric, ospfAreaId=ospfAreaId, ospfExternLSACksumSum=ospfExternLSACksumSum, ospfIfType=ospfIfType, ospfIfDesignatedRouter=ospfIfDesignatedRouter, ospfIfMetricStatus=ospfIfMetricStatus, ospfNbrEvents=ospfNbrEvents, ospfIfMetricAddressLessIf=ospfIfMetricAddressLessIf, ospfVirtIfHelloInterval=ospfVirtIfHelloInterval, ospfAreaTable=ospfAreaTable, ospfHostTable=ospfHostTable, ospfIfTable=ospfIfTable, ospfVirtIfTransitDelay=ospfVirtIfTransitDelay, ospfLsdbAdvertisement=ospfLsdbAdvertisement, ospfVirtNbrArea=ospfVirtNbrArea, ospfAreaLSACount=ospfAreaLSACount, ospfHostIpAddress=ospfHostIpAddress, ospfIfMetricTable=ospfIfMetricTable, ospfVirtIfTable=ospfVirtIfTable, ospfNbrAddressLessIndex=ospfNbrAddressLessIndex, ospfLsdbAreaId=ospfLsdbAreaId, ospfLsdbLSID=ospfLsdbLSID, ospfAreaLSACksumSum=ospfAreaLSACksumSum, ospfAreaEntry=ospfAreaEntry, ospfVirtIfState=ospfVirtIfState, ospfTOSSupport=ospfTOSSupport, ospfGeneralGroup=ospfGeneralGroup, HelloRange=HelloRange, ospfStubAreaEntry=ospfStubAreaEntry, ospfHostMetric=ospfHostMetric, ospfNbrLSRetransQLen=ospfNbrLSRetransQLen, RouterID=RouterID, ospfNbrRtrId=ospfNbrRtrId, ospf=ospf, ospfAreaBdrRtrCount=ospfAreaBdrRtrCount, ospfAreaBdrRtrStatus=ospfAreaBdrRtrStatus, ospfVirtIfEvents=ospfVirtIfEvents, ospfHostStatus=ospfHostStatus, ospfVirtNbrRtrId=ospfVirtNbrRtrId, ospfVirtNbrOptions=ospfVirtNbrOptions, ospfLsdbSequence=ospfLsdbSequence, BigMetric=BigMetric, ospfAreaRangeStatus=ospfAreaRangeStatus, ospfAreaRangeNet=ospfAreaRangeNet, ospfVirtNbrLSRetransQLen=ospfVirtNbrLSRetransQLen, ospfVirtNbrIpAddr=ospfVirtNbrIpAddr, ospfIfAuthKey=ospfIfAuthKey, ospfRxNewLSAs=ospfRxNewLSAs, ospfIfAdminStat=ospfIfAdminStat, ospfLsdbType=ospfLsdbType, ospfExternLSACount=ospfExternLSACount, ospfAreaRangeTable=ospfAreaRangeTable, ospfIfAreaId=ospfIfAreaId, UpToMaxAge=UpToMaxAge, ospfHostEntry=ospfHostEntry, ospfASBdrRtrCount=ospfASBdrRtrCount, ospfVersionNumber=ospfVersionNumber, ospfStubAreaID=ospfStubAreaID, ospfLsdbChecksum=ospfLsdbChecksum, ospfVirtIfEntry=ospfVirtIfEntry, ospfAddressLessIf=ospfAddressLessIf, ospfAreaRangeAreaID=ospfAreaRangeAreaID, ospfIfBackupDesignatedRouter=ospfIfBackupDesignatedRouter, ospfLsdbAge=ospfLsdbAge, ospfLsdbEntry=ospfLsdbEntry, ospfIfPollInterval=ospfIfPollInterval, ospfVirtIfAreaID=ospfVirtIfAreaID, ospfVirtNbrTable=ospfVirtNbrTable, ospfNbrState=ospfNbrState, ospfIfEntry=ospfIfEntry, TOSType=TOSType, ospfImportASExtern=ospfImportASExtern, ospfVirtIfAuthKey=ospfVirtIfAuthKey, ospfVirtIfStatus=ospfVirtIfStatus, ospfLsdbRouterId=ospfLsdbRouterId, Validation=Validation, ospfIfRtrDeadInterval=ospfIfRtrDeadInterval, ospfNbrPriority=ospfNbrPriority, ospfStubTOS=ospfStubTOS)
|
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_intersection, constraints_union, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint', 'ValueSizeConstraint')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(integer32, module_identity, gauge32, counter64, iso, counter32, time_ticks, notification_type, object_identity, mib_identifier, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, unsigned32, mib_2) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'ModuleIdentity', 'Gauge32', 'Counter64', 'iso', 'Counter32', 'TimeTicks', 'NotificationType', 'ObjectIdentity', 'MibIdentifier', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'Unsigned32', 'mib-2')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
ospf = mib_identifier((1, 3, 6, 1, 2, 1, 14))
class Areaid(IpAddress):
pass
class Routerid(IpAddress):
pass
class Metric(Integer32):
subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 65535)
class Bigmetric(Integer32):
subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 16777215)
class Truthvalue(Integer32):
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2))
named_values = named_values(('true', 1), ('false', 2))
class Status(Integer32):
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2))
named_values = named_values(('enabled', 1), ('disabled', 2))
class Validation(Integer32):
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2))
named_values = named_values(('valid', 1), ('invalid', 2))
class Positiveinteger(Integer32):
subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 4294967295)
class Hellorange(Integer32):
subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 65535)
class Uptomaxage(Integer32):
subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 3600)
class Interfaceindex(Integer32):
pass
class Designatedrouterpriority(Integer32):
subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 255)
class Tostype(Integer32):
subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 31)
ospf_general_group = mib_identifier((1, 3, 6, 1, 2, 1, 14, 1))
ospf_router_id = mib_scalar((1, 3, 6, 1, 2, 1, 14, 1, 1), router_id()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfRouterId.setStatus('mandatory')
ospf_admin_stat = mib_scalar((1, 3, 6, 1, 2, 1, 14, 1, 2), status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfAdminStat.setStatus('mandatory')
ospf_version_number = mib_scalar((1, 3, 6, 1, 2, 1, 14, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2))).clone(namedValues=named_values(('version2', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfVersionNumber.setStatus('mandatory')
ospf_area_bdr_rtr_status = mib_scalar((1, 3, 6, 1, 2, 1, 14, 1, 4), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfAreaBdrRtrStatus.setStatus('mandatory')
ospf_as_bdr_rtr_status = mib_scalar((1, 3, 6, 1, 2, 1, 14, 1, 5), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfASBdrRtrStatus.setStatus('mandatory')
ospf_extern_lsa_count = mib_scalar((1, 3, 6, 1, 2, 1, 14, 1, 6), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfExternLSACount.setStatus('mandatory')
ospf_extern_lsa_cksum_sum = mib_scalar((1, 3, 6, 1, 2, 1, 14, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfExternLSACksumSum.setStatus('mandatory')
ospf_tos_support = mib_scalar((1, 3, 6, 1, 2, 1, 14, 1, 8), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfTOSSupport.setStatus('mandatory')
ospf_originate_new_ls_as = mib_scalar((1, 3, 6, 1, 2, 1, 14, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfOriginateNewLSAs.setStatus('mandatory')
ospf_rx_new_ls_as = mib_scalar((1, 3, 6, 1, 2, 1, 14, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfRxNewLSAs.setStatus('mandatory')
ospf_area_table = mib_table((1, 3, 6, 1, 2, 1, 14, 2))
if mibBuilder.loadTexts:
ospfAreaTable.setStatus('mandatory')
ospf_area_entry = mib_table_row((1, 3, 6, 1, 2, 1, 14, 2, 1)).setIndexNames((0, 'RFC1253-MIB', 'ospfAreaId'))
if mibBuilder.loadTexts:
ospfAreaEntry.setStatus('mandatory')
ospf_area_id = mib_table_column((1, 3, 6, 1, 2, 1, 14, 2, 1, 1), area_id()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfAreaId.setStatus('mandatory')
ospf_auth_type = mib_table_column((1, 3, 6, 1, 2, 1, 14, 2, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfAuthType.setStatus('mandatory')
ospf_import_as_extern = mib_table_column((1, 3, 6, 1, 2, 1, 14, 2, 1, 3), truth_value().clone('true')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfImportASExtern.setStatus('mandatory')
ospf_spf_runs = mib_table_column((1, 3, 6, 1, 2, 1, 14, 2, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfSpfRuns.setStatus('mandatory')
ospf_area_bdr_rtr_count = mib_table_column((1, 3, 6, 1, 2, 1, 14, 2, 1, 5), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfAreaBdrRtrCount.setStatus('mandatory')
ospf_as_bdr_rtr_count = mib_table_column((1, 3, 6, 1, 2, 1, 14, 2, 1, 6), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfASBdrRtrCount.setStatus('mandatory')
ospf_area_lsa_count = mib_table_column((1, 3, 6, 1, 2, 1, 14, 2, 1, 7), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfAreaLSACount.setStatus('mandatory')
ospf_area_lsa_cksum_sum = mib_table_column((1, 3, 6, 1, 2, 1, 14, 2, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfAreaLSACksumSum.setStatus('mandatory')
ospf_stub_area_table = mib_table((1, 3, 6, 1, 2, 1, 14, 3))
if mibBuilder.loadTexts:
ospfStubAreaTable.setStatus('mandatory')
ospf_stub_area_entry = mib_table_row((1, 3, 6, 1, 2, 1, 14, 3, 1)).setIndexNames((0, 'RFC1253-MIB', 'ospfStubAreaID'), (0, 'RFC1253-MIB', 'ospfStubTOS'))
if mibBuilder.loadTexts:
ospfStubAreaEntry.setStatus('mandatory')
ospf_stub_area_id = mib_table_column((1, 3, 6, 1, 2, 1, 14, 3, 1, 1), area_id()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfStubAreaID.setStatus('mandatory')
ospf_stub_tos = mib_table_column((1, 3, 6, 1, 2, 1, 14, 3, 1, 2), tos_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfStubTOS.setStatus('mandatory')
ospf_stub_metric = mib_table_column((1, 3, 6, 1, 2, 1, 14, 3, 1, 3), big_metric()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfStubMetric.setStatus('mandatory')
ospf_stub_status = mib_table_column((1, 3, 6, 1, 2, 1, 14, 3, 1, 4), validation().clone('valid')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfStubStatus.setStatus('mandatory')
ospf_lsdb_table = mib_table((1, 3, 6, 1, 2, 1, 14, 4))
if mibBuilder.loadTexts:
ospfLsdbTable.setStatus('mandatory')
ospf_lsdb_entry = mib_table_row((1, 3, 6, 1, 2, 1, 14, 4, 1)).setIndexNames((0, 'RFC1253-MIB', 'ospfLsdbAreaId'), (0, 'RFC1253-MIB', 'ospfLsdbType'), (0, 'RFC1253-MIB', 'ospfLsdbLSID'), (0, 'RFC1253-MIB', 'ospfLsdbRouterId'))
if mibBuilder.loadTexts:
ospfLsdbEntry.setStatus('mandatory')
ospf_lsdb_area_id = mib_table_column((1, 3, 6, 1, 2, 1, 14, 4, 1, 1), area_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfLsdbAreaId.setStatus('mandatory')
ospf_lsdb_type = mib_table_column((1, 3, 6, 1, 2, 1, 14, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('routerLink', 1), ('networkLink', 2), ('summaryLink', 3), ('asSummaryLink', 4), ('asExternalLink', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfLsdbType.setStatus('mandatory')
ospf_lsdb_lsid = mib_table_column((1, 3, 6, 1, 2, 1, 14, 4, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfLsdbLSID.setStatus('mandatory')
ospf_lsdb_router_id = mib_table_column((1, 3, 6, 1, 2, 1, 14, 4, 1, 4), router_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfLsdbRouterId.setStatus('mandatory')
ospf_lsdb_sequence = mib_table_column((1, 3, 6, 1, 2, 1, 14, 4, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfLsdbSequence.setStatus('mandatory')
ospf_lsdb_age = mib_table_column((1, 3, 6, 1, 2, 1, 14, 4, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfLsdbAge.setStatus('mandatory')
ospf_lsdb_checksum = mib_table_column((1, 3, 6, 1, 2, 1, 14, 4, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfLsdbChecksum.setStatus('mandatory')
ospf_lsdb_advertisement = mib_table_column((1, 3, 6, 1, 2, 1, 14, 4, 1, 8), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfLsdbAdvertisement.setStatus('mandatory')
ospf_area_range_table = mib_table((1, 3, 6, 1, 2, 1, 14, 5))
if mibBuilder.loadTexts:
ospfAreaRangeTable.setStatus('mandatory')
ospf_area_range_entry = mib_table_row((1, 3, 6, 1, 2, 1, 14, 5, 1)).setIndexNames((0, 'RFC1253-MIB', 'ospfAreaRangeAreaID'), (0, 'RFC1253-MIB', 'ospfAreaRangeNet'))
if mibBuilder.loadTexts:
ospfAreaRangeEntry.setStatus('mandatory')
ospf_area_range_area_id = mib_table_column((1, 3, 6, 1, 2, 1, 14, 5, 1, 1), area_id()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfAreaRangeAreaID.setStatus('mandatory')
ospf_area_range_net = mib_table_column((1, 3, 6, 1, 2, 1, 14, 5, 1, 2), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfAreaRangeNet.setStatus('mandatory')
ospf_area_range_mask = mib_table_column((1, 3, 6, 1, 2, 1, 14, 5, 1, 3), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfAreaRangeMask.setStatus('mandatory')
ospf_area_range_status = mib_table_column((1, 3, 6, 1, 2, 1, 14, 5, 1, 4), validation().clone('valid')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfAreaRangeStatus.setStatus('mandatory')
ospf_host_table = mib_table((1, 3, 6, 1, 2, 1, 14, 6))
if mibBuilder.loadTexts:
ospfHostTable.setStatus('mandatory')
ospf_host_entry = mib_table_row((1, 3, 6, 1, 2, 1, 14, 6, 1)).setIndexNames((0, 'RFC1253-MIB', 'ospfHostIpAddress'), (0, 'RFC1253-MIB', 'ospfHostTOS'))
if mibBuilder.loadTexts:
ospfHostEntry.setStatus('mandatory')
ospf_host_ip_address = mib_table_column((1, 3, 6, 1, 2, 1, 14, 6, 1, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfHostIpAddress.setStatus('mandatory')
ospf_host_tos = mib_table_column((1, 3, 6, 1, 2, 1, 14, 6, 1, 2), tos_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfHostTOS.setStatus('mandatory')
ospf_host_metric = mib_table_column((1, 3, 6, 1, 2, 1, 14, 6, 1, 3), metric()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfHostMetric.setStatus('mandatory')
ospf_host_status = mib_table_column((1, 3, 6, 1, 2, 1, 14, 6, 1, 4), validation().clone('valid')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfHostStatus.setStatus('mandatory')
ospf_if_table = mib_table((1, 3, 6, 1, 2, 1, 14, 7))
if mibBuilder.loadTexts:
ospfIfTable.setStatus('mandatory')
ospf_if_entry = mib_table_row((1, 3, 6, 1, 2, 1, 14, 7, 1)).setIndexNames((0, 'RFC1253-MIB', 'ospfIfIpAddress'), (0, 'RFC1253-MIB', 'ospfAddressLessIf'))
if mibBuilder.loadTexts:
ospfIfEntry.setStatus('mandatory')
ospf_if_ip_address = mib_table_column((1, 3, 6, 1, 2, 1, 14, 7, 1, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfIfIpAddress.setStatus('mandatory')
ospf_address_less_if = mib_table_column((1, 3, 6, 1, 2, 1, 14, 7, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfAddressLessIf.setStatus('mandatory')
ospf_if_area_id = mib_table_column((1, 3, 6, 1, 2, 1, 14, 7, 1, 3), area_id().clone(hexValue='00000000')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfIfAreaId.setStatus('mandatory')
ospf_if_type = mib_table_column((1, 3, 6, 1, 2, 1, 14, 7, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('broadcast', 1), ('nbma', 2), ('pointToPoint', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfIfType.setStatus('mandatory')
ospf_if_admin_stat = mib_table_column((1, 3, 6, 1, 2, 1, 14, 7, 1, 5), status().clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfIfAdminStat.setStatus('mandatory')
ospf_if_rtr_priority = mib_table_column((1, 3, 6, 1, 2, 1, 14, 7, 1, 6), designated_router_priority().clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfIfRtrPriority.setStatus('mandatory')
ospf_if_transit_delay = mib_table_column((1, 3, 6, 1, 2, 1, 14, 7, 1, 7), up_to_max_age().clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfIfTransitDelay.setStatus('mandatory')
ospf_if_retrans_interval = mib_table_column((1, 3, 6, 1, 2, 1, 14, 7, 1, 8), up_to_max_age().clone(5)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfIfRetransInterval.setStatus('mandatory')
ospf_if_hello_interval = mib_table_column((1, 3, 6, 1, 2, 1, 14, 7, 1, 9), hello_range().clone(10)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfIfHelloInterval.setStatus('mandatory')
ospf_if_rtr_dead_interval = mib_table_column((1, 3, 6, 1, 2, 1, 14, 7, 1, 10), positive_integer().clone(40)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfIfRtrDeadInterval.setStatus('mandatory')
ospf_if_poll_interval = mib_table_column((1, 3, 6, 1, 2, 1, 14, 7, 1, 11), positive_integer().clone(120)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfIfPollInterval.setStatus('mandatory')
ospf_if_state = mib_table_column((1, 3, 6, 1, 2, 1, 14, 7, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('down', 1), ('loopback', 2), ('waiting', 3), ('pointToPoint', 4), ('designatedRouter', 5), ('backupDesignatedRouter', 6), ('otherDesignatedRouter', 7))).clone('down')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfIfState.setStatus('mandatory')
ospf_if_designated_router = mib_table_column((1, 3, 6, 1, 2, 1, 14, 7, 1, 13), ip_address().clone(hexValue='00000000')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfIfDesignatedRouter.setStatus('mandatory')
ospf_if_backup_designated_router = mib_table_column((1, 3, 6, 1, 2, 1, 14, 7, 1, 14), ip_address().clone(hexValue='00000000')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfIfBackupDesignatedRouter.setStatus('mandatory')
ospf_if_events = mib_table_column((1, 3, 6, 1, 2, 1, 14, 7, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfIfEvents.setStatus('mandatory')
ospf_if_auth_key = mib_table_column((1, 3, 6, 1, 2, 1, 14, 7, 1, 16), octet_string().clone(hexValue='0000000000000000')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfIfAuthKey.setStatus('mandatory')
ospf_if_metric_table = mib_table((1, 3, 6, 1, 2, 1, 14, 8))
if mibBuilder.loadTexts:
ospfIfMetricTable.setStatus('mandatory')
ospf_if_metric_entry = mib_table_row((1, 3, 6, 1, 2, 1, 14, 8, 1)).setIndexNames((0, 'RFC1253-MIB', 'ospfIfMetricIpAddress'), (0, 'RFC1253-MIB', 'ospfIfMetricAddressLessIf'), (0, 'RFC1253-MIB', 'ospfIfMetricTOS'))
if mibBuilder.loadTexts:
ospfIfMetricEntry.setStatus('mandatory')
ospf_if_metric_ip_address = mib_table_column((1, 3, 6, 1, 2, 1, 14, 8, 1, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfIfMetricIpAddress.setStatus('mandatory')
ospf_if_metric_address_less_if = mib_table_column((1, 3, 6, 1, 2, 1, 14, 8, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfIfMetricAddressLessIf.setStatus('mandatory')
ospf_if_metric_tos = mib_table_column((1, 3, 6, 1, 2, 1, 14, 8, 1, 3), tos_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfIfMetricTOS.setStatus('mandatory')
ospf_if_metric_metric = mib_table_column((1, 3, 6, 1, 2, 1, 14, 8, 1, 4), metric()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfIfMetricMetric.setStatus('mandatory')
ospf_if_metric_status = mib_table_column((1, 3, 6, 1, 2, 1, 14, 8, 1, 5), validation().clone('valid')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfIfMetricStatus.setStatus('mandatory')
ospf_virt_if_table = mib_table((1, 3, 6, 1, 2, 1, 14, 9))
if mibBuilder.loadTexts:
ospfVirtIfTable.setStatus('mandatory')
ospf_virt_if_entry = mib_table_row((1, 3, 6, 1, 2, 1, 14, 9, 1)).setIndexNames((0, 'RFC1253-MIB', 'ospfVirtIfAreaID'), (0, 'RFC1253-MIB', 'ospfVirtIfNeighbor'))
if mibBuilder.loadTexts:
ospfVirtIfEntry.setStatus('mandatory')
ospf_virt_if_area_id = mib_table_column((1, 3, 6, 1, 2, 1, 14, 9, 1, 1), area_id()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfVirtIfAreaID.setStatus('mandatory')
ospf_virt_if_neighbor = mib_table_column((1, 3, 6, 1, 2, 1, 14, 9, 1, 2), router_id()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfVirtIfNeighbor.setStatus('mandatory')
ospf_virt_if_transit_delay = mib_table_column((1, 3, 6, 1, 2, 1, 14, 9, 1, 3), up_to_max_age().clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfVirtIfTransitDelay.setStatus('mandatory')
ospf_virt_if_retrans_interval = mib_table_column((1, 3, 6, 1, 2, 1, 14, 9, 1, 4), up_to_max_age().clone(5)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfVirtIfRetransInterval.setStatus('mandatory')
ospf_virt_if_hello_interval = mib_table_column((1, 3, 6, 1, 2, 1, 14, 9, 1, 5), hello_range().clone(10)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfVirtIfHelloInterval.setStatus('mandatory')
ospf_virt_if_rtr_dead_interval = mib_table_column((1, 3, 6, 1, 2, 1, 14, 9, 1, 6), positive_integer().clone(60)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfVirtIfRtrDeadInterval.setStatus('mandatory')
ospf_virt_if_state = mib_table_column((1, 3, 6, 1, 2, 1, 14, 9, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 4))).clone(namedValues=named_values(('down', 1), ('pointToPoint', 4))).clone('down')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfVirtIfState.setStatus('mandatory')
ospf_virt_if_events = mib_table_column((1, 3, 6, 1, 2, 1, 14, 9, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfVirtIfEvents.setStatus('mandatory')
ospf_virt_if_auth_key = mib_table_column((1, 3, 6, 1, 2, 1, 14, 9, 1, 9), octet_string().clone(hexValue='0000000000000000')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfVirtIfAuthKey.setStatus('mandatory')
ospf_virt_if_status = mib_table_column((1, 3, 6, 1, 2, 1, 14, 9, 1, 10), validation().clone('valid')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfVirtIfStatus.setStatus('mandatory')
ospf_nbr_table = mib_table((1, 3, 6, 1, 2, 1, 14, 10))
if mibBuilder.loadTexts:
ospfNbrTable.setStatus('mandatory')
ospf_nbr_entry = mib_table_row((1, 3, 6, 1, 2, 1, 14, 10, 1)).setIndexNames((0, 'RFC1253-MIB', 'ospfNbrIpAddr'), (0, 'RFC1253-MIB', 'ospfNbrAddressLessIndex'))
if mibBuilder.loadTexts:
ospfNbrEntry.setStatus('mandatory')
ospf_nbr_ip_addr = mib_table_column((1, 3, 6, 1, 2, 1, 14, 10, 1, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfNbrIpAddr.setStatus('mandatory')
ospf_nbr_address_less_index = mib_table_column((1, 3, 6, 1, 2, 1, 14, 10, 1, 2), interface_index()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfNbrAddressLessIndex.setStatus('mandatory')
ospf_nbr_rtr_id = mib_table_column((1, 3, 6, 1, 2, 1, 14, 10, 1, 3), router_id().clone(hexValue='00000000')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfNbrRtrId.setStatus('mandatory')
ospf_nbr_options = mib_table_column((1, 3, 6, 1, 2, 1, 14, 10, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfNbrOptions.setStatus('mandatory')
ospf_nbr_priority = mib_table_column((1, 3, 6, 1, 2, 1, 14, 10, 1, 5), designated_router_priority().clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfNbrPriority.setStatus('mandatory')
ospf_nbr_state = mib_table_column((1, 3, 6, 1, 2, 1, 14, 10, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('down', 1), ('attempt', 2), ('init', 3), ('twoWay', 4), ('exchangeStart', 5), ('exchange', 6), ('loading', 7), ('full', 8))).clone('down')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfNbrState.setStatus('mandatory')
ospf_nbr_events = mib_table_column((1, 3, 6, 1, 2, 1, 14, 10, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfNbrEvents.setStatus('mandatory')
ospf_nbr_ls_retrans_q_len = mib_table_column((1, 3, 6, 1, 2, 1, 14, 10, 1, 8), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfNbrLSRetransQLen.setStatus('mandatory')
ospf_nbma_nbr_status = mib_table_column((1, 3, 6, 1, 2, 1, 14, 10, 1, 9), validation().clone('valid')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ospfNBMANbrStatus.setStatus('mandatory')
ospf_virt_nbr_table = mib_table((1, 3, 6, 1, 2, 1, 14, 11))
if mibBuilder.loadTexts:
ospfVirtNbrTable.setStatus('mandatory')
ospf_virt_nbr_entry = mib_table_row((1, 3, 6, 1, 2, 1, 14, 11, 1)).setIndexNames((0, 'RFC1253-MIB', 'ospfVirtNbrArea'), (0, 'RFC1253-MIB', 'ospfVirtNbrRtrId'))
if mibBuilder.loadTexts:
ospfVirtNbrEntry.setStatus('mandatory')
ospf_virt_nbr_area = mib_table_column((1, 3, 6, 1, 2, 1, 14, 11, 1, 1), area_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfVirtNbrArea.setStatus('mandatory')
ospf_virt_nbr_rtr_id = mib_table_column((1, 3, 6, 1, 2, 1, 14, 11, 1, 2), router_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfVirtNbrRtrId.setStatus('mandatory')
ospf_virt_nbr_ip_addr = mib_table_column((1, 3, 6, 1, 2, 1, 14, 11, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfVirtNbrIpAddr.setStatus('mandatory')
ospf_virt_nbr_options = mib_table_column((1, 3, 6, 1, 2, 1, 14, 11, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfVirtNbrOptions.setStatus('mandatory')
ospf_virt_nbr_state = mib_table_column((1, 3, 6, 1, 2, 1, 14, 11, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('down', 1), ('attempt', 2), ('init', 3), ('twoWay', 4), ('exchangeStart', 5), ('exchange', 6), ('loading', 7), ('full', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfVirtNbrState.setStatus('mandatory')
ospf_virt_nbr_events = mib_table_column((1, 3, 6, 1, 2, 1, 14, 11, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfVirtNbrEvents.setStatus('mandatory')
ospf_virt_nbr_ls_retrans_q_len = mib_table_column((1, 3, 6, 1, 2, 1, 14, 11, 1, 7), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ospfVirtNbrLSRetransQLen.setStatus('mandatory')
mibBuilder.exportSymbols('RFC1253-MIB', DesignatedRouterPriority=DesignatedRouterPriority, ospfLsdbTable=ospfLsdbTable, ospfSpfRuns=ospfSpfRuns, ospfIfMetricIpAddress=ospfIfMetricIpAddress, ospfIfTransitDelay=ospfIfTransitDelay, ospfAdminStat=ospfAdminStat, ospfVirtIfRtrDeadInterval=ospfVirtIfRtrDeadInterval, ospfStubAreaTable=ospfStubAreaTable, ospfAuthType=ospfAuthType, ospfIfEvents=ospfIfEvents, PositiveInteger=PositiveInteger, ospfVirtNbrState=ospfVirtNbrState, ospfHostTOS=ospfHostTOS, ospfAreaRangeMask=ospfAreaRangeMask, ospfIfIpAddress=ospfIfIpAddress, ospfIfState=ospfIfState, TruthValue=TruthValue, ospfNbrEntry=ospfNbrEntry, ospfNbrTable=ospfNbrTable, ospfIfMetricEntry=ospfIfMetricEntry, ospfRouterId=ospfRouterId, ospfIfMetricMetric=ospfIfMetricMetric, ospfVirtIfNeighbor=ospfVirtIfNeighbor, ospfIfHelloInterval=ospfIfHelloInterval, ospfVirtNbrEntry=ospfVirtNbrEntry, Status=Status, ospfStubMetric=ospfStubMetric, ospfOriginateNewLSAs=ospfOriginateNewLSAs, ospfAreaRangeEntry=ospfAreaRangeEntry, ospfVirtIfRetransInterval=ospfVirtIfRetransInterval, ospfNBMANbrStatus=ospfNBMANbrStatus, AreaID=AreaID, InterfaceIndex=InterfaceIndex, ospfIfRetransInterval=ospfIfRetransInterval, ospfASBdrRtrStatus=ospfASBdrRtrStatus, ospfNbrIpAddr=ospfNbrIpAddr, ospfNbrOptions=ospfNbrOptions, ospfIfMetricTOS=ospfIfMetricTOS, ospfIfRtrPriority=ospfIfRtrPriority, ospfStubStatus=ospfStubStatus, ospfVirtNbrEvents=ospfVirtNbrEvents, Metric=Metric, ospfAreaId=ospfAreaId, ospfExternLSACksumSum=ospfExternLSACksumSum, ospfIfType=ospfIfType, ospfIfDesignatedRouter=ospfIfDesignatedRouter, ospfIfMetricStatus=ospfIfMetricStatus, ospfNbrEvents=ospfNbrEvents, ospfIfMetricAddressLessIf=ospfIfMetricAddressLessIf, ospfVirtIfHelloInterval=ospfVirtIfHelloInterval, ospfAreaTable=ospfAreaTable, ospfHostTable=ospfHostTable, ospfIfTable=ospfIfTable, ospfVirtIfTransitDelay=ospfVirtIfTransitDelay, ospfLsdbAdvertisement=ospfLsdbAdvertisement, ospfVirtNbrArea=ospfVirtNbrArea, ospfAreaLSACount=ospfAreaLSACount, ospfHostIpAddress=ospfHostIpAddress, ospfIfMetricTable=ospfIfMetricTable, ospfVirtIfTable=ospfVirtIfTable, ospfNbrAddressLessIndex=ospfNbrAddressLessIndex, ospfLsdbAreaId=ospfLsdbAreaId, ospfLsdbLSID=ospfLsdbLSID, ospfAreaLSACksumSum=ospfAreaLSACksumSum, ospfAreaEntry=ospfAreaEntry, ospfVirtIfState=ospfVirtIfState, ospfTOSSupport=ospfTOSSupport, ospfGeneralGroup=ospfGeneralGroup, HelloRange=HelloRange, ospfStubAreaEntry=ospfStubAreaEntry, ospfHostMetric=ospfHostMetric, ospfNbrLSRetransQLen=ospfNbrLSRetransQLen, RouterID=RouterID, ospfNbrRtrId=ospfNbrRtrId, ospf=ospf, ospfAreaBdrRtrCount=ospfAreaBdrRtrCount, ospfAreaBdrRtrStatus=ospfAreaBdrRtrStatus, ospfVirtIfEvents=ospfVirtIfEvents, ospfHostStatus=ospfHostStatus, ospfVirtNbrRtrId=ospfVirtNbrRtrId, ospfVirtNbrOptions=ospfVirtNbrOptions, ospfLsdbSequence=ospfLsdbSequence, BigMetric=BigMetric, ospfAreaRangeStatus=ospfAreaRangeStatus, ospfAreaRangeNet=ospfAreaRangeNet, ospfVirtNbrLSRetransQLen=ospfVirtNbrLSRetransQLen, ospfVirtNbrIpAddr=ospfVirtNbrIpAddr, ospfIfAuthKey=ospfIfAuthKey, ospfRxNewLSAs=ospfRxNewLSAs, ospfIfAdminStat=ospfIfAdminStat, ospfLsdbType=ospfLsdbType, ospfExternLSACount=ospfExternLSACount, ospfAreaRangeTable=ospfAreaRangeTable, ospfIfAreaId=ospfIfAreaId, UpToMaxAge=UpToMaxAge, ospfHostEntry=ospfHostEntry, ospfASBdrRtrCount=ospfASBdrRtrCount, ospfVersionNumber=ospfVersionNumber, ospfStubAreaID=ospfStubAreaID, ospfLsdbChecksum=ospfLsdbChecksum, ospfVirtIfEntry=ospfVirtIfEntry, ospfAddressLessIf=ospfAddressLessIf, ospfAreaRangeAreaID=ospfAreaRangeAreaID, ospfIfBackupDesignatedRouter=ospfIfBackupDesignatedRouter, ospfLsdbAge=ospfLsdbAge, ospfLsdbEntry=ospfLsdbEntry, ospfIfPollInterval=ospfIfPollInterval, ospfVirtIfAreaID=ospfVirtIfAreaID, ospfVirtNbrTable=ospfVirtNbrTable, ospfNbrState=ospfNbrState, ospfIfEntry=ospfIfEntry, TOSType=TOSType, ospfImportASExtern=ospfImportASExtern, ospfVirtIfAuthKey=ospfVirtIfAuthKey, ospfVirtIfStatus=ospfVirtIfStatus, ospfLsdbRouterId=ospfLsdbRouterId, Validation=Validation, ospfIfRtrDeadInterval=ospfIfRtrDeadInterval, ospfNbrPriority=ospfNbrPriority, ospfStubTOS=ospfStubTOS)
|
# -*- coding: utf-8 -*-
#+---------------------------------------------------------------------------+
#| This file is subject to the terms and conditions defined in file |
#| 'LICENSE.txt', which is part of this source code package. |
#| |
#|---------------------------------------------------------------------------|
#| Copyright (c) 2017 Liang ZOU and contributors |
#| See the full list at https://github.com/liangdzou/pycall/contributors |
#| |
#|---------------------------------------------------------------------------|
#| test.py -- a test program that uses pycall |
#| |
#| Author: Liang, ZOU |
#| |
#| Purpose: Show how to use pycall |
#| |
#+---------------------------------------------------------------------------+
def testFunc(message):
print("Python: python function testFunc is executed!")
print("Python: The message is \"", message, "\"")
result = 2017
print("Python: The result should be \"", result, "\"")
return result
|
def test_func(message):
print('Python: python function testFunc is executed!')
print('Python: The message is "', message, '"')
result = 2017
print('Python: The result should be "', result, '"')
return result
|
# MIT OC - CS600 - Introduction to Computer Science and Programming
# Problem Set 1: 3 Simple Problems - Problem 1 Min Payment
# Name: Luke Young
# Collaborators: None
# Time Spent: 01:00 (hr:min)
# 2018 04 21 00:20
# Program: Finding remaining balance after minimum payment
#
# Write a program that does the following:
# Use raw_input() to ask for the following three floating point numbers:
# 1. the outstanding balance on the credit card
# 2. annual interest rate
# 3. minimum monthly payment rate
#
# For each month, print the minimum monthly payment, remaining balance,
# principle paid in the format shown in the test cases below.
# All numbers should be rounded to the nearest penny. Finally, print the result,
# which should include the total amount paid that year and the remaining balance.
balance = 0.0
apr = 0.0
minRate = 0.0
balance = float(raw_input("What is your current Balance? "))
apr = float(raw_input("What is the annual interest rate as a decimal? "))
minRate = float(raw_input("What is the minimum payment rate as a decimal? "))
minPay = 0.0
principle = 0.0
payTotal = 0.0
# main algorithm
for month in range(1, 13): #runs 12 times
print("Month: " + str(month))
minPay = round((balance * minRate), 2)
principle = round((minPay - (apr / 12 * balance)), 2)
balance = round((balance - principle), 2)
payTotal += round(minPay, 2)
print("Minimum monthly payment: " + str(minPay))
print("Principle paid: " + str(principle))
print("Remaining balance: " + str(balance))
# end for loop
# print results
print("RESULT")
print("Total amount paid: " + str(payTotal))
print("Remaining balance: " + str(balance))
|
balance = 0.0
apr = 0.0
min_rate = 0.0
balance = float(raw_input('What is your current Balance? '))
apr = float(raw_input('What is the annual interest rate as a decimal? '))
min_rate = float(raw_input('What is the minimum payment rate as a decimal? '))
min_pay = 0.0
principle = 0.0
pay_total = 0.0
for month in range(1, 13):
print('Month: ' + str(month))
min_pay = round(balance * minRate, 2)
principle = round(minPay - apr / 12 * balance, 2)
balance = round(balance - principle, 2)
pay_total += round(minPay, 2)
print('Minimum monthly payment: ' + str(minPay))
print('Principle paid: ' + str(principle))
print('Remaining balance: ' + str(balance))
print('RESULT')
print('Total amount paid: ' + str(payTotal))
print('Remaining balance: ' + str(balance))
|
getInvoiceTopLevelItems = [
{
'categoryCode': 'sov_sec_ip_addresses_priv',
'createDate': '2018-04-04T23:15:20-06:00',
'description': '64 Portable Private IP Addresses',
'id': 724951323,
'oneTimeAfterTaxAmount': '0',
'recurringAfterTaxAmount': '0',
'hostName': 'bleg',
'domainName': 'beh.com',
'category': {'name': 'Private (only) Secondary VLAN IP Addresses'},
'children': [
{
'id': 12345,
'category': {'name': 'Fake Child Category'},
'description': 'Blah',
'oneTimeAfterTaxAmount': 55.50,
'recurringAfterTaxAmount': 0.10
}
],
'location': {'name': 'fra02'}
}
]
|
get_invoice_top_level_items = [{'categoryCode': 'sov_sec_ip_addresses_priv', 'createDate': '2018-04-04T23:15:20-06:00', 'description': '64 Portable Private IP Addresses', 'id': 724951323, 'oneTimeAfterTaxAmount': '0', 'recurringAfterTaxAmount': '0', 'hostName': 'bleg', 'domainName': 'beh.com', 'category': {'name': 'Private (only) Secondary VLAN IP Addresses'}, 'children': [{'id': 12345, 'category': {'name': 'Fake Child Category'}, 'description': 'Blah', 'oneTimeAfterTaxAmount': 55.5, 'recurringAfterTaxAmount': 0.1}], 'location': {'name': 'fra02'}}]
|
#!/usr/bin/env python3
#this program will write out my full name and preferred pronouns
print("Fabian Arias, he/him/his") #print out Fabian Arias, he/him/his
|
print('Fabian Arias, he/him/his')
|
class Serial:
def __init__(self, port=None, baudrate=None, timeout=None):
pass
def reset_output_buffer(self):
pass
def reset_input_buffer(self):
pass
def writable(self):
return True
def write(self, bytes):
pass
def flush(self):
pass
def readline(self):
return b"DONE\r\n"
|
class Serial:
def __init__(self, port=None, baudrate=None, timeout=None):
pass
def reset_output_buffer(self):
pass
def reset_input_buffer(self):
pass
def writable(self):
return True
def write(self, bytes):
pass
def flush(self):
pass
def readline(self):
return b'DONE\r\n'
|
def is_even(x):
if (x % 2 == 0):
return True
return False
print([x for x in range(100) if is_even(x)])
|
def is_even(x):
if x % 2 == 0:
return True
return False
print([x for x in range(100) if is_even(x)])
|
# terrascript/data/AdrienneCohea/nomadutility.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:22:45 UTC)
__all__ = []
|
__all__ = []
|
# Este es el ejercicio del grupo tercero c
# del dia 13 de septiembre de 2021
# esta linea coloca un mensaje en la consola
print("Este programa hace operaciones basicas")
num1 = 130
numero_2 = 345
suma = num1 + numero_2 # la resta se hace con el simbolo '-'
multip = num1 * numero_2 # la dicision se hace con una '/'
print("la suma es: ")
print(suma)
print("La multiplicacion da como resultado: ", multip)
|
print('Este programa hace operaciones basicas')
num1 = 130
numero_2 = 345
suma = num1 + numero_2
multip = num1 * numero_2
print('la suma es: ')
print(suma)
print('La multiplicacion da como resultado: ', multip)
|
score = input('Please enter your score.')
score_float = float(score)
if (score_float >= 0.9 and score_float < 1.0) :
grade = 'A'
elif (score_float >= 0.8 and score_float < 1.0) :
grade = 'B'
elif (score_float >= 0.7 and score_float < 1.0) :
grade = 'C'
elif (score_float >= 0.6 and score_float < 1.0) :
grade = 'D'
elif (score_float < 0.6 and score_float > 0.0) :
grade = 'F'
else:
grade = 'Error'
print(grade)
|
score = input('Please enter your score.')
score_float = float(score)
if score_float >= 0.9 and score_float < 1.0:
grade = 'A'
elif score_float >= 0.8 and score_float < 1.0:
grade = 'B'
elif score_float >= 0.7 and score_float < 1.0:
grade = 'C'
elif score_float >= 0.6 and score_float < 1.0:
grade = 'D'
elif score_float < 0.6 and score_float > 0.0:
grade = 'F'
else:
grade = 'Error'
print(grade)
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
assert any(list(map(lambda x: x > 4, range(8))))
assert any(map(lambda x: x > 4, range(8)))
assert not any(list(map(lambda x: x < 0, range(8))))
assert not any((map(lambda x: x < 0, range(8))))
|
assert any(list(map(lambda x: x > 4, range(8))))
assert any(map(lambda x: x > 4, range(8)))
assert not any(list(map(lambda x: x < 0, range(8))))
assert not any(map(lambda x: x < 0, range(8)))
|
class User:
'''
This class generates new user instances
'''
def __init__(self, fullname, email, username, password):
self.fullname = fullname
self.email = email
self.username = username
self.password = password
user_list = []
def save_user(self):
'''
This method saves new created user objects into user list
'''
User.user_list.append(self)
@classmethod
def user_exists(cls, username):
'''
Checks if the user exists in the user list.
Args:
username:username to search if the user already exists and returns a boolean, True or False.
'''
for user in cls.user_list:
if user.username == username:
return True
else:
return False
@classmethod
def find_by_username(cls, username):
'''
Finds a user depending on if the user already exists
'''
for user in cls.user_list:
if user.username == username:
return user
else:
return 0
|
class User:
"""
This class generates new user instances
"""
def __init__(self, fullname, email, username, password):
self.fullname = fullname
self.email = email
self.username = username
self.password = password
user_list = []
def save_user(self):
"""
This method saves new created user objects into user list
"""
User.user_list.append(self)
@classmethod
def user_exists(cls, username):
"""
Checks if the user exists in the user list.
Args:
username:username to search if the user already exists and returns a boolean, True or False.
"""
for user in cls.user_list:
if user.username == username:
return True
else:
return False
@classmethod
def find_by_username(cls, username):
"""
Finds a user depending on if the user already exists
"""
for user in cls.user_list:
if user.username == username:
return user
else:
return 0
|
class VehicleDevice:
def __init__(self, data, controller):
self._id = data['id']
self._vehicle_id = data['vehicle_id']
self._vin = data['vin']
self._state = data['state']
self._controller = controller
self.should_poll = True
def _name(self):
return 'Tesla Model {} {}'.format(
str(self._vin[3]).upper(), self.type)
def _uniq_name(self):
return 'Tesla Model {} {} {}'.format(
str(self._vin[3]).upper(), self._vin, self.type)
def id(self):
return self._id
@staticmethod
def is_armable():
return False
@staticmethod
def is_armed():
return False
|
class Vehicledevice:
def __init__(self, data, controller):
self._id = data['id']
self._vehicle_id = data['vehicle_id']
self._vin = data['vin']
self._state = data['state']
self._controller = controller
self.should_poll = True
def _name(self):
return 'Tesla Model {} {}'.format(str(self._vin[3]).upper(), self.type)
def _uniq_name(self):
return 'Tesla Model {} {} {}'.format(str(self._vin[3]).upper(), self._vin, self.type)
def id(self):
return self._id
@staticmethod
def is_armable():
return False
@staticmethod
def is_armed():
return False
|
#=======================================================================================
# Open a domain template.
#=======================================================================================
selectCustomTemplate("wls/wlserver/common/templates/wls/wls.jar")
loadTemplates()
setOption('NodeManagerType','ManualNodeManagerSetup')
setOption('ServerStartMode','prod')
setOption('OverwriteDomain','true')
domain=cd('/')
domain.setName('demo-wls')
#=======================================================================================
# Configure the Administration Server and SSL port.
#
# To enable access by both local and remote processes, you should not set the
# listen address for the server instance (that is, it should be left blank or not set).
# In this case, the server instance will determine the address of the machine and
# listen on it.
#=======================================================================================
cd('/Servers/AdminServer')
cmo.setName('admin_server')
cmo.setListenAddress('')
cmo.setListenPort(7001)
create('AdminServer','SSL')
cd('SSL/AdminServer')
cmo.setName('admin_server')
cmo.setListenPort(8001)
cmo.setEnabled(True)
cd('/Security/demo-wls/User/weblogic')
cmo.setPassword('admin123')
domain.setProductionModeEnabled(True)
writeDomain('domains/demo-wls')
closeTemplate()
# enable boot without password
os.makedirs('domains/demo-wls/servers/admin_server/security')
bootprops=open('domains/demo-wls/servers/admin_server/security/boot.properties','w')
bootprops.write('username=%s\npassword=%s\n' % ('weblogic','admin123'))
bootprops.close()
exit()
|
select_custom_template('wls/wlserver/common/templates/wls/wls.jar')
load_templates()
set_option('NodeManagerType', 'ManualNodeManagerSetup')
set_option('ServerStartMode', 'prod')
set_option('OverwriteDomain', 'true')
domain = cd('/')
domain.setName('demo-wls')
cd('/Servers/AdminServer')
cmo.setName('admin_server')
cmo.setListenAddress('')
cmo.setListenPort(7001)
create('AdminServer', 'SSL')
cd('SSL/AdminServer')
cmo.setName('admin_server')
cmo.setListenPort(8001)
cmo.setEnabled(True)
cd('/Security/demo-wls/User/weblogic')
cmo.setPassword('admin123')
domain.setProductionModeEnabled(True)
write_domain('domains/demo-wls')
close_template()
os.makedirs('domains/demo-wls/servers/admin_server/security')
bootprops = open('domains/demo-wls/servers/admin_server/security/boot.properties', 'w')
bootprops.write('username=%s\npassword=%s\n' % ('weblogic', 'admin123'))
bootprops.close()
exit()
|
def create_matrix(rows, columns):
result = []
for r in range(rows):
row = ["" for c in range(columns)]
result.append(row)
return result
def print_result(matrix):
for el in matrix:
print("".join(el))
rows, columns = map(int, input().split())
snake = input()
matrix = create_matrix(rows, columns)
snake_index = 0
for r in range(rows):
if r % 2 == 0:
for c in range(columns):
if snake_index == len(snake):
snake_index = 0
matrix[r][c] = snake[snake_index]
snake_index += 1
else:
for c in range(columns - 1, -1, -1):
if snake_index == len(snake):
snake_index = 0
matrix[r][c] = snake[snake_index]
snake_index += 1
print_result(matrix)
|
def create_matrix(rows, columns):
result = []
for r in range(rows):
row = ['' for c in range(columns)]
result.append(row)
return result
def print_result(matrix):
for el in matrix:
print(''.join(el))
(rows, columns) = map(int, input().split())
snake = input()
matrix = create_matrix(rows, columns)
snake_index = 0
for r in range(rows):
if r % 2 == 0:
for c in range(columns):
if snake_index == len(snake):
snake_index = 0
matrix[r][c] = snake[snake_index]
snake_index += 1
else:
for c in range(columns - 1, -1, -1):
if snake_index == len(snake):
snake_index = 0
matrix[r][c] = snake[snake_index]
snake_index += 1
print_result(matrix)
|
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
CONST_OUTBOUND_TYPE_LOAD_BALANCER = "loadBalancer"
CONST_OUTBOUND_TYPE_USER_DEFINED_ROUTING = "userDefinedRouting"
CONST_SCALE_SET_PRIORITY_REGULAR = "Regular"
CONST_SCALE_SET_PRIORITY_SPOT = "Spot"
CONST_SPOT_EVICTION_POLICY_DELETE = "Delete"
CONST_SPOT_EVICTION_POLICY_DEALLOCATE = "Deallocate"
CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME = "httpApplicationRouting"
CONST_MONITORING_ADDON_NAME = "omsagent"
CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID = "logAnalyticsWorkspaceResourceID"
CONST_VIRTUAL_NODE_ADDON_NAME = "aciConnector"
CONST_VIRTUAL_NODE_SUBNET_NAME = "SubnetName"
CONST_AZURE_POLICY_ADDON_NAME = "azurepolicy"
CONST_KUBE_DASHBOARD_ADDON_NAME = "kubeDashboard"
CONST_OS_DISK_TYPE_MANAGED = "Managed"
CONST_OS_DISK_TYPE_EPHEMERAL = "Ephemeral"
# IngressApplicaitonGateway configuration keys
CONST_INGRESS_APPGW_ADDON_NAME = "IngressApplicationGateway"
CONST_INGRESS_APPGW_APPLICATION_GATEWAY_NAME = "applicationGatewayName"
CONST_INGRESS_APPGW_APPLICATION_GATEWAY_ID = "applicationGatewayId"
CONST_INGRESS_APPGW_SUBNET_ID = "subnetId"
CONST_INGRESS_APPGW_SUBNET_PREFIX = "subnetPrefix"
CONST_INGRESS_APPGW_WATCH_NAMESPACE = "watchNamespace"
# Open Service Mesh configuration keys
CONST_OPEN_SERVICE_MESH_ADDON_NAME = "openServiceMesh"
CONST_NODEPOOL_MODE_SYSTEM = "System"
CONST_NODEPOOL_MODE_USER = "User"
# refer https://docs.microsoft.com/en-us/rest/api/storageservices/
# naming-and-referencing-containers--blobs--and-metadata#container-names
CONST_CONTAINER_NAME_MAX_LENGTH = 63
# confcom addon keys
CONST_CONFCOM_ADDON_NAME = "ACCSGXDevicePlugin"
CONST_ACC_SGX_QUOTE_HELPER_ENABLED = "ACCSGXQuoteHelperEnabled"
# private dns zone mode
CONST_PRIVATE_DNS_ZONE_SYSTEM = "system"
CONST_PRIVATE_DNS_ZONE_NONE = "none"
ADDONS = {
'http_application_routing': CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME,
'monitoring': CONST_MONITORING_ADDON_NAME,
'virtual-node': CONST_VIRTUAL_NODE_ADDON_NAME,
'azure-policy': CONST_AZURE_POLICY_ADDON_NAME,
'kube-dashboard': CONST_KUBE_DASHBOARD_ADDON_NAME,
'ingress-appgw': CONST_INGRESS_APPGW_ADDON_NAME,
'open-service-mesh': CONST_OPEN_SERVICE_MESH_ADDON_NAME,
"confcom": CONST_CONFCOM_ADDON_NAME,
'gitops': 'gitops'
}
|
const_outbound_type_load_balancer = 'loadBalancer'
const_outbound_type_user_defined_routing = 'userDefinedRouting'
const_scale_set_priority_regular = 'Regular'
const_scale_set_priority_spot = 'Spot'
const_spot_eviction_policy_delete = 'Delete'
const_spot_eviction_policy_deallocate = 'Deallocate'
const_http_application_routing_addon_name = 'httpApplicationRouting'
const_monitoring_addon_name = 'omsagent'
const_monitoring_log_analytics_workspace_resource_id = 'logAnalyticsWorkspaceResourceID'
const_virtual_node_addon_name = 'aciConnector'
const_virtual_node_subnet_name = 'SubnetName'
const_azure_policy_addon_name = 'azurepolicy'
const_kube_dashboard_addon_name = 'kubeDashboard'
const_os_disk_type_managed = 'Managed'
const_os_disk_type_ephemeral = 'Ephemeral'
const_ingress_appgw_addon_name = 'IngressApplicationGateway'
const_ingress_appgw_application_gateway_name = 'applicationGatewayName'
const_ingress_appgw_application_gateway_id = 'applicationGatewayId'
const_ingress_appgw_subnet_id = 'subnetId'
const_ingress_appgw_subnet_prefix = 'subnetPrefix'
const_ingress_appgw_watch_namespace = 'watchNamespace'
const_open_service_mesh_addon_name = 'openServiceMesh'
const_nodepool_mode_system = 'System'
const_nodepool_mode_user = 'User'
const_container_name_max_length = 63
const_confcom_addon_name = 'ACCSGXDevicePlugin'
const_acc_sgx_quote_helper_enabled = 'ACCSGXQuoteHelperEnabled'
const_private_dns_zone_system = 'system'
const_private_dns_zone_none = 'none'
addons = {'http_application_routing': CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME, 'monitoring': CONST_MONITORING_ADDON_NAME, 'virtual-node': CONST_VIRTUAL_NODE_ADDON_NAME, 'azure-policy': CONST_AZURE_POLICY_ADDON_NAME, 'kube-dashboard': CONST_KUBE_DASHBOARD_ADDON_NAME, 'ingress-appgw': CONST_INGRESS_APPGW_ADDON_NAME, 'open-service-mesh': CONST_OPEN_SERVICE_MESH_ADDON_NAME, 'confcom': CONST_CONFCOM_ADDON_NAME, 'gitops': 'gitops'}
|
cars = 100.00 #number of cars available for the day
space_in_a_car = 4.00 #amount of space in a cars
drivers = 30.00 #number of available drivers
passengers = 90.00 #number of available passengers
cars_not_driven = cars - drivers #calculation for cars that are not used
cars_driven = drivers #calculation for cars that are used
carpool_capacity = cars_driven * space_in_a_car #calculation for carpool_capacity
average_passengers_per_car = passengers / cars_driven #calculation for average
print("There are", cars, "cars available")
print("There are only", drivers, "drivers available")
print("There will be", cars_not_driven, "empty cars today")
print("We can transport", carpool_capacity, "people today.")
print("We have", passengers, "to carpool today.")
print("We need to put about", average_passengers_per_car, "in each car.")
|
cars = 100.0
space_in_a_car = 4.0
drivers = 30.0
passengers = 90.0
cars_not_driven = cars - drivers
cars_driven = drivers
carpool_capacity = cars_driven * space_in_a_car
average_passengers_per_car = passengers / cars_driven
print('There are', cars, 'cars available')
print('There are only', drivers, 'drivers available')
print('There will be', cars_not_driven, 'empty cars today')
print('We can transport', carpool_capacity, 'people today.')
print('We have', passengers, 'to carpool today.')
print('We need to put about', average_passengers_per_car, 'in each car.')
|
class Solution:
def findMaximumXOR(self, nums: List[int]) -> int:
ans = mask = 0
for x in range(32)[::-1]:
mask += 1 << x
prefixSet = set([n & mask for n in nums])
temp = ans | 1 << x
for prefix in prefixSet:
if temp ^ prefix in prefixSet:
ans = temp
break
return ans
|
class Solution:
def find_maximum_xor(self, nums: List[int]) -> int:
ans = mask = 0
for x in range(32)[::-1]:
mask += 1 << x
prefix_set = set([n & mask for n in nums])
temp = ans | 1 << x
for prefix in prefixSet:
if temp ^ prefix in prefixSet:
ans = temp
break
return ans
|
#
# PySNMP MIB module OMNI-gx2CM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/OMNI-gx2CM-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:23:48 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ConstraintsIntersection")
gx2Cm, = mibBuilder.importSymbols("GX2HFC-MIB", "gx2Cm")
gi, motproxies = mibBuilder.importSymbols("NLS-BBNIDENT-MIB", "gi", "motproxies")
trapNETrapLastTrapTimeStamp, trapNetworkElemModelNumber, trapNetworkElemAvailStatus, trapChangedValueDisplayString, trapChangedValueInteger, trapNetworkElemSerialNum, trapNetworkElemOperState, trapNetworkElemAdminState, trapChangedObjectId, trapText, trapIdentifier, trapNetworkElemAlarmStatus, trapPerceivedSeverity = mibBuilder.importSymbols("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp", "trapNetworkElemModelNumber", "trapNetworkElemAvailStatus", "trapChangedValueDisplayString", "trapChangedValueInteger", "trapNetworkElemSerialNum", "trapNetworkElemOperState", "trapNetworkElemAdminState", "trapChangedObjectId", "trapText", "trapIdentifier", "trapNetworkElemAlarmStatus", "trapPerceivedSeverity")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
sysUpTime, = mibBuilder.importSymbols("SNMPv2-MIB", "sysUpTime")
iso, IpAddress, Unsigned32, MibIdentifier, Counter64, Integer32, Counter32, NotificationType, TimeTicks, Bits, ModuleIdentity, NotificationType, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "IpAddress", "Unsigned32", "MibIdentifier", "Counter64", "Integer32", "Counter32", "NotificationType", "TimeTicks", "Bits", "ModuleIdentity", "NotificationType", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
class Float(Counter32):
pass
gx2cmDescriptor = MibIdentifier((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 1))
gx2cmFactoryTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2), )
if mibBuilder.loadTexts: gx2cmFactoryTable.setStatus('mandatory')
gx2cmFactoryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1), ).setIndexNames((0, "OMNI-gx2CM-MIB", "gx2cmFactoryTableIndex"))
if mibBuilder.loadTexts: gx2cmFactoryEntry.setStatus('mandatory')
gx2cmNetworkTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3), )
if mibBuilder.loadTexts: gx2cmNetworkTable.setStatus('mandatory')
gx2cmNetworkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2), ).setIndexNames((0, "OMNI-gx2CM-MIB", "gx2cmNetworkTableIndex"))
if mibBuilder.loadTexts: gx2cmNetworkEntry.setStatus('mandatory')
gx2cmAnalogTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4), )
if mibBuilder.loadTexts: gx2cmAnalogTable.setStatus('mandatory')
gx2cmAnalogEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3), ).setIndexNames((0, "OMNI-gx2CM-MIB", "gx2cmTableIndex"))
if mibBuilder.loadTexts: gx2cmAnalogEntry.setStatus('mandatory')
gx2cmDigitalTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5), )
if mibBuilder.loadTexts: gx2cmDigitalTable.setStatus('mandatory')
gx2cmDigitalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4), ).setIndexNames((0, "OMNI-gx2CM-MIB", "gx2cmDigitalTableIndex"))
if mibBuilder.loadTexts: gx2cmDigitalEntry.setStatus('mandatory')
gx2cmStatusTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6), )
if mibBuilder.loadTexts: gx2cmStatusTable.setStatus('mandatory')
gx2cmStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5), ).setIndexNames((0, "OMNI-gx2CM-MIB", "gx2cmStatusTableIndex"))
if mibBuilder.loadTexts: gx2cmStatusEntry.setStatus('mandatory')
gx2cmAMCTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7), )
if mibBuilder.loadTexts: gx2cmAMCTable.setStatus('mandatory')
gx2cmAMCEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6), ).setIndexNames((0, "OMNI-gx2CM-MIB", "gx2cmAMCTableIndex"))
if mibBuilder.loadTexts: gx2cmAMCEntry.setStatus('mandatory')
gx2cmSecurityTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8), )
if mibBuilder.loadTexts: gx2cmSecurityTable.setStatus('mandatory')
gx2cmSecurityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7), ).setIndexNames((0, "OMNI-gx2CM-MIB", "gx2cmSecurityTableIndex"))
if mibBuilder.loadTexts: gx2cmSecurityEntry.setStatus('mandatory')
gx2cmDiagnosticTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9), )
if mibBuilder.loadTexts: gx2cmDiagnosticTable.setStatus('mandatory')
gx2cmDiagnosticEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8), ).setIndexNames((0, "OMNI-gx2CM-MIB", "gx2cmDiagnosticTableIndex"))
if mibBuilder.loadTexts: gx2cmDiagnosticEntry.setStatus('mandatory')
gx2cmDownloadTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 10), )
if mibBuilder.loadTexts: gx2cmDownloadTable.setStatus('mandatory')
gx2cmDownloadEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 10, 9), ).setIndexNames((0, "OMNI-gx2CM-MIB", "gx2cmDownloadTableIndex"))
if mibBuilder.loadTexts: gx2cmDownloadEntry.setStatus('mandatory')
cmTrapHistoryTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11), )
if mibBuilder.loadTexts: cmTrapHistoryTable.setStatus('mandatory')
cmTrapHistoryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10), ).setIndexNames((0, "OMNI-gx2CM-MIB", "cmTrapHistoryTableIndex"))
if mibBuilder.loadTexts: cmTrapHistoryEntry.setStatus('mandatory')
gx2cmTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: gx2cmTableIndex.setStatus('mandatory')
labelModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelModTemp.setStatus('optional')
uomModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: uomModTemp.setStatus('optional')
majorHighModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 4), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: majorHighModTemp.setStatus('mandatory')
majorLowModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 5), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: majorLowModTemp.setStatus('mandatory')
minorHighModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 6), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: minorHighModTemp.setStatus('mandatory')
minorLowModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 7), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: minorLowModTemp.setStatus('mandatory')
currentValueModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 8), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: currentValueModTemp.setStatus('mandatory')
stateFlagModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stateFlagModTemp.setStatus('mandatory')
minValueModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 10), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: minValueModTemp.setStatus('optional')
maxValueModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 11), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: maxValueModTemp.setStatus('optional')
alarmStateModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alarmStateModTemp.setStatus('mandatory')
gx2cmDigitalTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: gx2cmDigitalTableIndex.setStatus('mandatory')
labelRemoteLocal = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelRemoteLocal.setStatus('obsolete')
enumRemoteLocal = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: enumRemoteLocal.setStatus('obsolete')
valueRemoteLocal = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("local", 1), ("remote", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueRemoteLocal.setStatus('obsolete')
stateFlagRemoteLocal = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stateFlagRemoteLocal.setStatus('obsolete')
labelResetSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelResetSlot.setStatus('optional')
enumResetSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: enumResetSlot.setStatus('optional')
valueResetSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueResetSlot.setStatus('mandatory')
stateResetSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stateResetSlot.setStatus('mandatory')
labelIdShelf = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelIdShelf.setStatus('optional')
enumIdShelf = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: enumIdShelf.setStatus('optional')
valueIdShelf = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueIdShelf.setStatus('mandatory')
stateFlagIdShelf = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stateFlagIdShelf.setStatus('mandatory')
labelResetAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelResetAlarm.setStatus('optional')
enumResetAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 15), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: enumResetAlarm.setStatus('optional')
valueResetAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 16), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueResetAlarm.setStatus('mandatory')
stateFlagResetAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stateFlagResetAlarm.setStatus('mandatory')
gx2cmStatusTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: gx2cmStatusTableIndex.setStatus('mandatory')
labelShelfAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelShelfAlarm.setStatus('optional')
valueShelfAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: valueShelfAlarm.setStatus('mandatory')
stateShelfAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stateShelfAlarm.setStatus('mandatory')
labelDataCrc = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelDataCrc.setStatus('optional')
valueDataCrc = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: valueDataCrc.setStatus('mandatory')
stateDataCrc = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stateDataCrc.setStatus('mandatory')
labelFlashStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelFlashStatus.setStatus('optional')
valueFlashStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: valueFlashStatus.setStatus('mandatory')
stateFlashStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stateFlashStatus.setStatus('mandatory')
labelBootStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelBootStatus.setStatus('optional')
valueBootStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: valueBootStatus.setStatus('mandatory')
stateBootStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stateBootStatus.setStatus('mandatory')
labelAlmLimCrc = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelAlmLimCrc.setStatus('optional')
valueAlmLimCrc = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: valueAlmLimCrc.setStatus('mandatory')
stateAlmLimCrc = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stateAlmLimCrc.setStatus('mandatory')
gx2cmFactoryTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: gx2cmFactoryTableIndex.setStatus('mandatory')
bootControlByte = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bootControlByte.setStatus('mandatory')
bootStatusByte = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bootStatusByte.setStatus('mandatory')
bank0CRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bank0CRC.setStatus('mandatory')
bank1CRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bank1CRC.setStatus('mandatory')
prgEEPROMByte = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: prgEEPROMByte.setStatus('mandatory')
factoryCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: factoryCRC.setStatus('mandatory')
calculateCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: calculateCRC.setStatus('mandatory')
hourMeter = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hourMeter.setStatus('mandatory')
flashPrgCnt0 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: flashPrgCnt0.setStatus('mandatory')
flashPrgCnt1 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: flashPrgCnt1.setStatus('mandatory')
flashBank0 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 12), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: flashBank0.setStatus('mandatory')
flashBank1 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: flashBank1.setStatus('mandatory')
localMacAdd = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: localMacAdd.setStatus('mandatory')
netWorkMacAdd = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 15), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netWorkMacAdd.setStatus('mandatory')
gx2cmNetworkTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: gx2cmNetworkTableIndex.setStatus('mandatory')
labelLocalEthIPAdd = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelLocalEthIPAdd.setStatus('optional')
valueLocalEthIPAdd = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueLocalEthIPAdd.setStatus('mandatory')
labelLocalEthMask = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelLocalEthMask.setStatus('optional')
valueLocalEthMask = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueLocalEthMask.setStatus('mandatory')
labelNetworkEthAdd = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelNetworkEthAdd.setStatus('optional')
valueNetworkEthAdd = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueNetworkEthAdd.setStatus('mandatory')
labelNetworkEthMask = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelNetworkEthMask.setStatus('optional')
valueNetworkEthMask = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueNetworkEthMask.setStatus('mandatory')
labelShelfSerialNum = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelShelfSerialNum.setStatus('optional')
valueShelfSerialNum = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: valueShelfSerialNum.setStatus('mandatory')
labelGateWayIPAdd = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 12), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelGateWayIPAdd.setStatus('optional')
valueGateWayIPAdd = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueGateWayIPAdd.setStatus('mandatory')
labelTrapDestination = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelTrapDestination.setStatus('optional')
valueTrapDestination = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 15), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueTrapDestination.setStatus('mandatory')
labelTFTPserver = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 16), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelTFTPserver.setStatus('optional')
valueTFTPserver = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 17), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueTFTPserver.setStatus('mandatory')
labelTrap2Destination = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 18), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelTrap2Destination.setStatus('optional')
valueTrap2Destination = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 19), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueTrap2Destination.setStatus('mandatory')
labelTrap3Destination = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelTrap3Destination.setStatus('optional')
valueTrap3Destination = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 21), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueTrap3Destination.setStatus('mandatory')
labelTrap4Destination = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 22), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelTrap4Destination.setStatus('optional')
valueTrap4Destination = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 23), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueTrap4Destination.setStatus('mandatory')
labelTrap5Destination = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 24), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelTrap5Destination.setStatus('optional')
valueTrap5Destination = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 25), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueTrap5Destination.setStatus('mandatory')
labelISDNMode = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 26), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelISDNMode.setStatus('optional')
valueISDNMode = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueISDNMode.setStatus('mandatory')
labelISDNModemIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 28), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelISDNModemIPAddress.setStatus('optional')
valueISDNModemIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 29), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueISDNModemIPAddress.setStatus('mandatory')
labelISDNTrapTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 30), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelISDNTrapTimeout.setStatus('optional')
valueISDNTrapTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 31), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3600))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueISDNTrapTimeout.setStatus('mandatory')
labelISDNPingTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 32), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelISDNPingTimeout.setStatus('optional')
valueISDNPingTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 33), Integer32().subtype(subtypeSpec=ValueRangeConstraint(100, 5000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueISDNPingTimeout.setStatus('mandatory')
labelISDNBackoffTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 34), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelISDNBackoffTimer.setStatus('optional')
valueISDNBackoffTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 35), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3600))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueISDNBackoffTimer.setStatus('mandatory')
gx2cmSecurityTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: gx2cmSecurityTableIndex.setStatus('mandatory')
labelSecurityMode = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelSecurityMode.setStatus('optional')
enumSecurityMode = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: enumSecurityMode.setStatus('optional')
valueSecurityMode = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("read-only", 1), ("operator-access", 2), ("factory-access", 3), ("remote-write-only", 4), ("local-write-only", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: valueSecurityMode.setStatus('mandatory')
stateSecurityMode = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stateSecurityMode.setStatus('mandatory')
labelPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelPassword.setStatus('optional')
valuePassword = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valuePassword.setStatus('mandatory')
statePassword = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: statePassword.setStatus('mandatory')
labelFactoryChgString = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelFactoryChgString.setStatus('optional')
valueFactoryChgString = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: valueFactoryChgString.setStatus('mandatory')
stateFactoryChgString = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stateFactoryChgString.setStatus('mandatory')
labelOperatorChgString = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 12), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelOperatorChgString.setStatus('optional')
valueOperatorChgString = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: valueOperatorChgString.setStatus('mandatory')
stateOperatorChgString = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stateOperatorChgString.setStatus('mandatory')
labelReadOnlyChgString = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 15), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelReadOnlyChgString.setStatus('optional')
valueReadOnlyChgString = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 16), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: valueReadOnlyChgString.setStatus('mandatory')
stateReadOnlyChgString = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stateReadOnlyChgString.setStatus('mandatory')
labelRemoteOnlyChgString = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 18), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelRemoteOnlyChgString.setStatus('optional')
valueRemoteOnlyChgString = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 19), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: valueRemoteOnlyChgString.setStatus('mandatory')
stateRemoteOnlyChgString = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stateRemoteOnlyChgString.setStatus('mandatory')
labelLocalOnlyChgString = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 21), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: labelLocalOnlyChgString.setStatus('optional')
valueLocalOnlyChgString = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 22), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: valueLocalOnlyChgString.setStatus('mandatory')
stateLocalOnlyChgString = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stateLocalOnlyChgString.setStatus('mandatory')
gx2cmAMCTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: gx2cmAMCTableIndex.setStatus('mandatory')
valueAMCslot1 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot1.setStatus('mandatory')
serialAMCslot1 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot1.setStatus('mandatory')
agentIDAMCslot1 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot1.setStatus('mandatory')
valueAMCslot2 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot2.setStatus('mandatory')
serialAMCslot2 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot2.setStatus('mandatory')
agentIDAMCslot2 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot2.setStatus('mandatory')
valueAMCslot3 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot3.setStatus('mandatory')
serialAMCslot3 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot3.setStatus('mandatory')
agentIDAMCslot3 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot3.setStatus('mandatory')
valueAMCslot4 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot4.setStatus('mandatory')
serialAMCslot4 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 12), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot4.setStatus('mandatory')
agentIDAMCslot4 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot4.setStatus('mandatory')
valueAMCslot5 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot5.setStatus('mandatory')
serialAMCslot5 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 15), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot5.setStatus('mandatory')
agentIDAMCslot5 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 16), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot5.setStatus('mandatory')
valueAMCslot6 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot6.setStatus('mandatory')
serialAMCslot6 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 18), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot6.setStatus('mandatory')
agentIDAMCslot6 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 19), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot6.setStatus('mandatory')
valueAMCslot7 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot7.setStatus('mandatory')
serialAMCslot7 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 21), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot7.setStatus('mandatory')
agentIDAMCslot7 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 22), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot7.setStatus('mandatory')
valueAMCslot8 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot8.setStatus('mandatory')
serialAMCslot8 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 24), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot8.setStatus('mandatory')
agentIDAMCslot8 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 25), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot8.setStatus('mandatory')
valueAMCslot9 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 26), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot9.setStatus('mandatory')
serialAMCslot9 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 27), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot9.setStatus('mandatory')
agentIDAMCslot9 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 28), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot9.setStatus('mandatory')
valueAMCslot10 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 29), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot10.setStatus('mandatory')
serialAMCslot10 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 30), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot10.setStatus('mandatory')
agentIDAMCslot10 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 31), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot10.setStatus('mandatory')
valueAMCslot11 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot11.setStatus('mandatory')
serialAMCslot11 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 33), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot11.setStatus('mandatory')
agentIDAMCslot11 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 34), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot11.setStatus('mandatory')
valueAMCslot12 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 35), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot12.setStatus('mandatory')
serialAMCslot12 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 36), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot12.setStatus('mandatory')
agentIDAMCslot12 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 37), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot12.setStatus('mandatory')
valueAMCslot13 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 38), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot13.setStatus('mandatory')
serialAMCslot13 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 39), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot13.setStatus('mandatory')
agentIDAMCslot13 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 40), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot13.setStatus('mandatory')
valueAMCslot14 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 41), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot14.setStatus('mandatory')
serialAMCslot14 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 42), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot14.setStatus('mandatory')
agentIDAMCslot14 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 43), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot14.setStatus('mandatory')
valueAMCslot15 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 44), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot15.setStatus('mandatory')
serialAMCslot15 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 45), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot15.setStatus('mandatory')
agentIDAMCslot15 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 46), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot15.setStatus('mandatory')
valueAMCslot16 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 47), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot16.setStatus('mandatory')
serialAMCslot16 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 48), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot16.setStatus('mandatory')
agentIDAMCslot16 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 49), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot16.setStatus('mandatory')
valueAMCslot17 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 50), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot17.setStatus('mandatory')
serialAMCslot17 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 51), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot17.setStatus('mandatory')
agentIDAMCslot17 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 52), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot17.setStatus('mandatory')
valueAMCslot18 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 53), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("force", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: valueAMCslot18.setStatus('mandatory')
serialAMCslot18 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 54), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: serialAMCslot18.setStatus('mandatory')
agentIDAMCslot18 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 55), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentIDAMCslot18.setStatus('mandatory')
autoQuickSwapCnt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 56), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("timeroff", 1), ("onehour", 2), ("oneday", 3), ("oneweek", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: autoQuickSwapCnt.setStatus('mandatory')
gx2cmDiagnosticTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: gx2cmDiagnosticTableIndex.setStatus('mandatory')
ledTestValue = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ledTestValue.setStatus('mandatory')
bpTestCnt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bpTestCnt.setStatus('mandatory')
successTransSlot1 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot1.setStatus('mandatory')
successTransSlot2 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot2.setStatus('mandatory')
successTransSlot3 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot3.setStatus('mandatory')
successTransSlot4 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 7), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot4.setStatus('mandatory')
successTransSlot5 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot5.setStatus('mandatory')
successTransSlot6 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot6.setStatus('mandatory')
successTransSlot7 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 10), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot7.setStatus('mandatory')
successTransSlot8 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 11), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot8.setStatus('mandatory')
successTransSlot9 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 12), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot9.setStatus('mandatory')
successTransSlot10 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 13), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot10.setStatus('mandatory')
successTransSlot11 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 14), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot11.setStatus('mandatory')
successTransSlot12 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 15), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot12.setStatus('mandatory')
successTransSlot13 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 16), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot13.setStatus('mandatory')
successTransSlot14 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 17), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot14.setStatus('mandatory')
successTransSlot15 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 18), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot15.setStatus('mandatory')
successTransSlot16 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 19), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot16.setStatus('mandatory')
successTransSlot17 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 20), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot17.setStatus('mandatory')
successTransSlot18 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 21), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: successTransSlot18.setStatus('mandatory')
failureTransSlot1 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 22), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot1.setStatus('mandatory')
failureTransSlot2 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 23), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot2.setStatus('mandatory')
failureTransSlot3 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 24), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot3.setStatus('mandatory')
failureTransSlot4 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 25), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot4.setStatus('mandatory')
failureTransSlot5 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 26), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot5.setStatus('mandatory')
failureTransSlot6 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 27), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot6.setStatus('mandatory')
failureTransSlot7 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 28), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot7.setStatus('mandatory')
failureTransSlot8 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 29), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot8.setStatus('mandatory')
failureTransSlot9 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 30), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot9.setStatus('mandatory')
failureTransSlot10 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 31), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot10.setStatus('mandatory')
failureTransSlot11 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 32), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot11.setStatus('mandatory')
failureTransSlot12 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 33), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot12.setStatus('mandatory')
failureTransSlot13 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 34), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot13.setStatus('mandatory')
failureTransSlot14 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 35), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot14.setStatus('mandatory')
failureTransSlot15 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 36), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot15.setStatus('mandatory')
failureTransSlot16 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 37), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot16.setStatus('mandatory')
failureTransSlot17 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 38), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot17.setStatus('mandatory')
failureTransSlot18 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 39), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: failureTransSlot18.setStatus('mandatory')
fanTestMode = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 40), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fanTestMode.setStatus('mandatory')
fanControl = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 41), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fanControl.setStatus('mandatory')
relayTestMode = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 42), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: relayTestMode.setStatus('mandatory')
relayControl = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 43), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("open", 1), ("closed", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: relayControl.setStatus('mandatory')
slotPollMode = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 44), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: slotPollMode.setStatus('mandatory')
bootCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 45), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bootCount.setStatus('mandatory')
objectTableData = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 46), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: objectTableData.setStatus('mandatory')
setSysTime = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 47), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: setSysTime.setStatus('mandatory')
gx2cmDownloadTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 10, 9, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: gx2cmDownloadTableIndex.setStatus('mandatory')
downloadValue = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 10, 9, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: downloadValue.setStatus('mandatory')
autoDownloadReset = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 10, 9, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("deactivate", 1), ("activate", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: autoDownloadReset.setStatus('mandatory')
downloadFilename = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 10, 9, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: downloadFilename.setStatus('mandatory')
downloadState = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 10, 9, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: downloadState.setStatus('mandatory')
switchFwBank = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 10, 9, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: switchFwBank.setStatus('mandatory')
cmTrapHistoryTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmTrapHistoryTableIndex.setStatus('mandatory')
netrapId = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapId.setStatus('mandatory')
netrapNetworkElemModelNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapNetworkElemModelNumber.setStatus('mandatory')
netrapNetworkElemSerialNum = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapNetworkElemSerialNum.setStatus('mandatory')
netrapPerceivedSeverity = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapPerceivedSeverity.setStatus('mandatory')
netrapNetworkElemOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapNetworkElemOperState.setStatus('mandatory')
netrapNetworkElemAlarmStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapNetworkElemAlarmStatus.setStatus('mandatory')
netrapNetworkElemAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapNetworkElemAdminState.setStatus('mandatory')
netrapNetworkElemAvailStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapNetworkElemAvailStatus.setStatus('mandatory')
netrapText = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapText.setStatus('mandatory')
netrapLastTrapTimeStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 11), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapLastTrapTimeStamp.setStatus('mandatory')
netrapChangedObjectId = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 12), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapChangedObjectId.setStatus('mandatory')
netrapAdditionalInfoInteger1 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapAdditionalInfoInteger1.setStatus('mandatory')
netrapAdditionalInfoInteger2 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapAdditionalInfoInteger2.setStatus('mandatory')
netrapAdditionalInfoInteger3 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapAdditionalInfoInteger3.setStatus('mandatory')
netrapChangedValueDisplayString = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 16), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapChangedValueDisplayString.setStatus('mandatory')
netrapChangedValueOID = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 17), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapChangedValueOID.setStatus('mandatory')
netrapChangedValueIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapChangedValueIpAddress.setStatus('mandatory')
netrapChangedValueInteger = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: netrapChangedValueInteger.setStatus('mandatory')
trapCMConfigChangeInteger = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3) + (0,1)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapCMConfigChangeDisplayString = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3) + (0,2)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueDisplayString"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapCMModuleTempAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3) + (0,3)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapCMEEPROMAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3) + (0,4)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapCMFlashAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3) + (0,5)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapCMHardwareAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3) + (0,6)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapCMInitEEPROMAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3) + (0,7)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapCMBootAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3) + (0,8)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
mibBuilder.exportSymbols("OMNI-gx2CM-MIB", successTransSlot18=successTransSlot18, valueISDNPingTimeout=valueISDNPingTimeout, valueAMCslot11=valueAMCslot11, failureTransSlot4=failureTransSlot4, gx2cmNetworkTableIndex=gx2cmNetworkTableIndex, successTransSlot13=successTransSlot13, failureTransSlot13=failureTransSlot13, failureTransSlot16=failureTransSlot16, trapCMFlashAlarm=trapCMFlashAlarm, successTransSlot8=successTransSlot8, netrapChangedValueDisplayString=netrapChangedValueDisplayString, labelTrap2Destination=labelTrap2Destination, gx2cmStatusTable=gx2cmStatusTable, alarmStateModTemp=alarmStateModTemp, relayControl=relayControl, successTransSlot15=successTransSlot15, netrapNetworkElemModelNumber=netrapNetworkElemModelNumber, enumRemoteLocal=enumRemoteLocal, gx2cmDescriptor=gx2cmDescriptor, agentIDAMCslot12=agentIDAMCslot12, valueLocalEthIPAdd=valueLocalEthIPAdd, valueNetworkEthAdd=valueNetworkEthAdd, netrapNetworkElemSerialNum=netrapNetworkElemSerialNum, valueIdShelf=valueIdShelf, gx2cmDigitalEntry=gx2cmDigitalEntry, netrapId=netrapId, gx2cmDigitalTableIndex=gx2cmDigitalTableIndex, serialAMCslot18=serialAMCslot18, bootCount=bootCount, factoryCRC=factoryCRC, stateFlagResetAlarm=stateFlagResetAlarm, labelTFTPserver=labelTFTPserver, trapCMConfigChangeInteger=trapCMConfigChangeInteger, agentIDAMCslot1=agentIDAMCslot1, enumIdShelf=enumIdShelf, minorHighModTemp=minorHighModTemp, successTransSlot2=successTransSlot2, flashPrgCnt0=flashPrgCnt0, autoDownloadReset=autoDownloadReset, trapCMInitEEPROMAlarm=trapCMInitEEPROMAlarm, labelTrap5Destination=labelTrap5Destination, majorLowModTemp=majorLowModTemp, gx2cmSecurityEntry=gx2cmSecurityEntry, gx2cmAMCTable=gx2cmAMCTable, currentValueModTemp=currentValueModTemp, successTransSlot1=successTransSlot1, serialAMCslot4=serialAMCslot4, serialAMCslot8=serialAMCslot8, valueResetSlot=valueResetSlot, enumSecurityMode=enumSecurityMode, successTransSlot10=successTransSlot10, switchFwBank=switchFwBank, stateOperatorChgString=stateOperatorChgString, agentIDAMCslot15=agentIDAMCslot15, hourMeter=hourMeter, stateBootStatus=stateBootStatus, valueTrap3Destination=valueTrap3Destination, valueISDNBackoffTimer=valueISDNBackoffTimer, stateFlagIdShelf=stateFlagIdShelf, labelReadOnlyChgString=labelReadOnlyChgString, netrapNetworkElemAvailStatus=netrapNetworkElemAvailStatus, gx2cmDiagnosticTableIndex=gx2cmDiagnosticTableIndex, failureTransSlot2=failureTransSlot2, labelTrap3Destination=labelTrap3Destination, gx2cmDownloadTableIndex=gx2cmDownloadTableIndex, autoQuickSwapCnt=autoQuickSwapCnt, netrapLastTrapTimeStamp=netrapLastTrapTimeStamp, labelLocalOnlyChgString=labelLocalOnlyChgString, valueAMCslot4=valueAMCslot4, labelRemoteLocal=labelRemoteLocal, serialAMCslot2=serialAMCslot2, agentIDAMCslot11=agentIDAMCslot11, labelISDNTrapTimeout=labelISDNTrapTimeout, valueISDNTrapTimeout=valueISDNTrapTimeout, valueAMCslot17=valueAMCslot17, valueAMCslot16=valueAMCslot16, failureTransSlot7=failureTransSlot7, trapCMConfigChangeDisplayString=trapCMConfigChangeDisplayString, valueTrap2Destination=valueTrap2Destination, gx2cmAMCEntry=gx2cmAMCEntry, valueAMCslot3=valueAMCslot3, valueResetAlarm=valueResetAlarm, labelModTemp=labelModTemp, valueReadOnlyChgString=valueReadOnlyChgString, valueAMCslot7=valueAMCslot7, valueAMCslot6=valueAMCslot6, labelResetAlarm=labelResetAlarm, calculateCRC=calculateCRC, Float=Float, stateShelfAlarm=stateShelfAlarm, stateFactoryChgString=stateFactoryChgString, serialAMCslot9=serialAMCslot9, agentIDAMCslot13=agentIDAMCslot13, successTransSlot3=successTransSlot3, failureTransSlot15=failureTransSlot15, downloadValue=downloadValue, netrapPerceivedSeverity=netrapPerceivedSeverity, serialAMCslot17=serialAMCslot17, stateLocalOnlyChgString=stateLocalOnlyChgString, labelFactoryChgString=labelFactoryChgString, agentIDAMCslot3=agentIDAMCslot3, netrapNetworkElemOperState=netrapNetworkElemOperState, gx2cmStatusEntry=gx2cmStatusEntry, gx2cmNetworkTable=gx2cmNetworkTable, netrapChangedValueInteger=netrapChangedValueInteger, valueAMCslot14=valueAMCslot14, valueLocalEthMask=valueLocalEthMask, minValueModTemp=minValueModTemp, gx2cmDiagnosticTable=gx2cmDiagnosticTable, labelISDNMode=labelISDNMode, labelOperatorChgString=labelOperatorChgString, valueAMCslot13=valueAMCslot13, stateFlagModTemp=stateFlagModTemp, stateFlagRemoteLocal=stateFlagRemoteLocal, stateRemoteOnlyChgString=stateRemoteOnlyChgString, valueNetworkEthMask=valueNetworkEthMask, valueTrapDestination=valueTrapDestination, valuePassword=valuePassword, gx2cmSecurityTable=gx2cmSecurityTable, serialAMCslot7=serialAMCslot7, setSysTime=setSysTime, netrapNetworkElemAlarmStatus=netrapNetworkElemAlarmStatus, gx2cmTableIndex=gx2cmTableIndex, labelFlashStatus=labelFlashStatus, enumResetAlarm=enumResetAlarm, agentIDAMCslot10=agentIDAMCslot10, agentIDAMCslot17=agentIDAMCslot17, stateSecurityMode=stateSecurityMode, cmTrapHistoryEntry=cmTrapHistoryEntry, agentIDAMCslot7=agentIDAMCslot7, labelDataCrc=labelDataCrc, labelAlmLimCrc=labelAlmLimCrc, valueISDNMode=valueISDNMode, netrapText=netrapText, valueAMCslot15=valueAMCslot15, labelBootStatus=labelBootStatus, stateReadOnlyChgString=stateReadOnlyChgString, failureTransSlot9=failureTransSlot9, valueAMCslot1=valueAMCslot1, gx2cmNetworkEntry=gx2cmNetworkEntry, valueAMCslot9=valueAMCslot9, trapCMEEPROMAlarm=trapCMEEPROMAlarm, valueTFTPserver=valueTFTPserver, valueAMCslot12=valueAMCslot12, failureTransSlot17=failureTransSlot17, serialAMCslot10=serialAMCslot10, labelPassword=labelPassword, serialAMCslot13=serialAMCslot13, labelIdShelf=labelIdShelf, valueBootStatus=valueBootStatus, gx2cmStatusTableIndex=gx2cmStatusTableIndex, bootStatusByte=bootStatusByte, valueAMCslot2=valueAMCslot2, gx2cmFactoryEntry=gx2cmFactoryEntry, maxValueModTemp=maxValueModTemp, labelRemoteOnlyChgString=labelRemoteOnlyChgString, agentIDAMCslot18=agentIDAMCslot18, valueLocalOnlyChgString=valueLocalOnlyChgString, flashBank0=flashBank0, failureTransSlot6=failureTransSlot6, valueSecurityMode=valueSecurityMode, valueGateWayIPAdd=valueGateWayIPAdd, bank0CRC=bank0CRC, valueFlashStatus=valueFlashStatus, valueAMCslot18=valueAMCslot18, gx2cmDigitalTable=gx2cmDigitalTable, valueTrap5Destination=valueTrap5Destination, serialAMCslot5=serialAMCslot5, stateDataCrc=stateDataCrc, labelTrap4Destination=labelTrap4Destination, gx2cmFactoryTableIndex=gx2cmFactoryTableIndex, serialAMCslot16=serialAMCslot16, ledTestValue=ledTestValue, failureTransSlot3=failureTransSlot3, valueAMCslot8=valueAMCslot8, failureTransSlot5=failureTransSlot5, failureTransSlot10=failureTransSlot10, localMacAdd=localMacAdd, valueRemoteOnlyChgString=valueRemoteOnlyChgString, bank1CRC=bank1CRC, prgEEPROMByte=prgEEPROMByte, gx2cmDownloadEntry=gx2cmDownloadEntry, labelNetworkEthAdd=labelNetworkEthAdd, failureTransSlot14=failureTransSlot14, successTransSlot14=successTransSlot14, valueRemoteLocal=valueRemoteLocal, majorHighModTemp=majorHighModTemp, valueAMCslot5=valueAMCslot5, netrapNetworkElemAdminState=netrapNetworkElemAdminState, agentIDAMCslot5=agentIDAMCslot5, serialAMCslot12=serialAMCslot12, netrapAdditionalInfoInteger1=netrapAdditionalInfoInteger1, agentIDAMCslot4=agentIDAMCslot4, labelTrapDestination=labelTrapDestination, labelResetSlot=labelResetSlot, labelShelfAlarm=labelShelfAlarm, cmTrapHistoryTable=cmTrapHistoryTable, downloadFilename=downloadFilename, labelLocalEthIPAdd=labelLocalEthIPAdd, failureTransSlot18=failureTransSlot18, successTransSlot7=successTransSlot7, valueTrap4Destination=valueTrap4Destination, stateFlashStatus=stateFlashStatus, labelNetworkEthMask=labelNetworkEthMask, serialAMCslot6=serialAMCslot6, successTransSlot11=successTransSlot11, stateResetSlot=stateResetSlot, labelShelfSerialNum=labelShelfSerialNum, successTransSlot6=successTransSlot6, enumResetSlot=enumResetSlot, agentIDAMCslot6=agentIDAMCslot6, valueDataCrc=valueDataCrc, labelSecurityMode=labelSecurityMode, agentIDAMCslot14=agentIDAMCslot14, failureTransSlot11=failureTransSlot11, uomModTemp=uomModTemp, relayTestMode=relayTestMode, agentIDAMCslot9=agentIDAMCslot9, cmTrapHistoryTableIndex=cmTrapHistoryTableIndex, flashPrgCnt1=flashPrgCnt1, labelLocalEthMask=labelLocalEthMask, successTransSlot9=successTransSlot9, netrapAdditionalInfoInteger2=netrapAdditionalInfoInteger2, gx2cmFactoryTable=gx2cmFactoryTable, valueShelfAlarm=valueShelfAlarm, statePassword=statePassword, serialAMCslot1=serialAMCslot1, objectTableData=objectTableData, bootControlByte=bootControlByte, gx2cmAnalogTable=gx2cmAnalogTable, gx2cmDownloadTable=gx2cmDownloadTable, stateAlmLimCrc=stateAlmLimCrc, valueISDNModemIPAddress=valueISDNModemIPAddress, successTransSlot12=successTransSlot12, failureTransSlot12=failureTransSlot12, labelISDNPingTimeout=labelISDNPingTimeout, downloadState=downloadState, netrapChangedValueOID=netrapChangedValueOID, agentIDAMCslot16=agentIDAMCslot16, netWorkMacAdd=netWorkMacAdd, valueAlmLimCrc=valueAlmLimCrc, labelISDNModemIPAddress=labelISDNModemIPAddress, successTransSlot17=successTransSlot17, serialAMCslot14=serialAMCslot14, netrapChangedObjectId=netrapChangedObjectId, netrapAdditionalInfoInteger3=netrapAdditionalInfoInteger3, flashBank1=flashBank1, trapCMHardwareAlarm=trapCMHardwareAlarm, bpTestCnt=bpTestCnt, gx2cmAMCTableIndex=gx2cmAMCTableIndex, successTransSlot16=successTransSlot16, trapCMModuleTempAlarm=trapCMModuleTempAlarm, valueFactoryChgString=valueFactoryChgString, fanTestMode=fanTestMode)
mibBuilder.exportSymbols("OMNI-gx2CM-MIB", gx2cmSecurityTableIndex=gx2cmSecurityTableIndex, minorLowModTemp=minorLowModTemp, serialAMCslot3=serialAMCslot3, valueOperatorChgString=valueOperatorChgString, netrapChangedValueIpAddress=netrapChangedValueIpAddress, agentIDAMCslot2=agentIDAMCslot2, labelGateWayIPAdd=labelGateWayIPAdd, trapCMBootAlarm=trapCMBootAlarm, agentIDAMCslot8=agentIDAMCslot8, slotPollMode=slotPollMode, successTransSlot4=successTransSlot4, gx2cmAnalogEntry=gx2cmAnalogEntry, gx2cmDiagnosticEntry=gx2cmDiagnosticEntry, valueShelfSerialNum=valueShelfSerialNum, labelISDNBackoffTimer=labelISDNBackoffTimer, valueAMCslot10=valueAMCslot10, serialAMCslot11=serialAMCslot11, serialAMCslot15=serialAMCslot15, successTransSlot5=successTransSlot5, fanControl=fanControl, failureTransSlot8=failureTransSlot8, failureTransSlot1=failureTransSlot1)
|
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, value_range_constraint, single_value_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ConstraintsIntersection')
(gx2_cm,) = mibBuilder.importSymbols('GX2HFC-MIB', 'gx2Cm')
(gi, motproxies) = mibBuilder.importSymbols('NLS-BBNIDENT-MIB', 'gi', 'motproxies')
(trap_ne_trap_last_trap_time_stamp, trap_network_elem_model_number, trap_network_elem_avail_status, trap_changed_value_display_string, trap_changed_value_integer, trap_network_elem_serial_num, trap_network_elem_oper_state, trap_network_elem_admin_state, trap_changed_object_id, trap_text, trap_identifier, trap_network_elem_alarm_status, trap_perceived_severity) = mibBuilder.importSymbols('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp', 'trapNetworkElemModelNumber', 'trapNetworkElemAvailStatus', 'trapChangedValueDisplayString', 'trapChangedValueInteger', 'trapNetworkElemSerialNum', 'trapNetworkElemOperState', 'trapNetworkElemAdminState', 'trapChangedObjectId', 'trapText', 'trapIdentifier', 'trapNetworkElemAlarmStatus', 'trapPerceivedSeverity')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(sys_up_time,) = mibBuilder.importSymbols('SNMPv2-MIB', 'sysUpTime')
(iso, ip_address, unsigned32, mib_identifier, counter64, integer32, counter32, notification_type, time_ticks, bits, module_identity, notification_type, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'IpAddress', 'Unsigned32', 'MibIdentifier', 'Counter64', 'Integer32', 'Counter32', 'NotificationType', 'TimeTicks', 'Bits', 'ModuleIdentity', 'NotificationType', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
class Float(Counter32):
pass
gx2cm_descriptor = mib_identifier((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 1))
gx2cm_factory_table = mib_table((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2))
if mibBuilder.loadTexts:
gx2cmFactoryTable.setStatus('mandatory')
gx2cm_factory_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1)).setIndexNames((0, 'OMNI-gx2CM-MIB', 'gx2cmFactoryTableIndex'))
if mibBuilder.loadTexts:
gx2cmFactoryEntry.setStatus('mandatory')
gx2cm_network_table = mib_table((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3))
if mibBuilder.loadTexts:
gx2cmNetworkTable.setStatus('mandatory')
gx2cm_network_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2)).setIndexNames((0, 'OMNI-gx2CM-MIB', 'gx2cmNetworkTableIndex'))
if mibBuilder.loadTexts:
gx2cmNetworkEntry.setStatus('mandatory')
gx2cm_analog_table = mib_table((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4))
if mibBuilder.loadTexts:
gx2cmAnalogTable.setStatus('mandatory')
gx2cm_analog_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3)).setIndexNames((0, 'OMNI-gx2CM-MIB', 'gx2cmTableIndex'))
if mibBuilder.loadTexts:
gx2cmAnalogEntry.setStatus('mandatory')
gx2cm_digital_table = mib_table((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5))
if mibBuilder.loadTexts:
gx2cmDigitalTable.setStatus('mandatory')
gx2cm_digital_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4)).setIndexNames((0, 'OMNI-gx2CM-MIB', 'gx2cmDigitalTableIndex'))
if mibBuilder.loadTexts:
gx2cmDigitalEntry.setStatus('mandatory')
gx2cm_status_table = mib_table((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6))
if mibBuilder.loadTexts:
gx2cmStatusTable.setStatus('mandatory')
gx2cm_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5)).setIndexNames((0, 'OMNI-gx2CM-MIB', 'gx2cmStatusTableIndex'))
if mibBuilder.loadTexts:
gx2cmStatusEntry.setStatus('mandatory')
gx2cm_amc_table = mib_table((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7))
if mibBuilder.loadTexts:
gx2cmAMCTable.setStatus('mandatory')
gx2cm_amc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6)).setIndexNames((0, 'OMNI-gx2CM-MIB', 'gx2cmAMCTableIndex'))
if mibBuilder.loadTexts:
gx2cmAMCEntry.setStatus('mandatory')
gx2cm_security_table = mib_table((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8))
if mibBuilder.loadTexts:
gx2cmSecurityTable.setStatus('mandatory')
gx2cm_security_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7)).setIndexNames((0, 'OMNI-gx2CM-MIB', 'gx2cmSecurityTableIndex'))
if mibBuilder.loadTexts:
gx2cmSecurityEntry.setStatus('mandatory')
gx2cm_diagnostic_table = mib_table((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9))
if mibBuilder.loadTexts:
gx2cmDiagnosticTable.setStatus('mandatory')
gx2cm_diagnostic_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8)).setIndexNames((0, 'OMNI-gx2CM-MIB', 'gx2cmDiagnosticTableIndex'))
if mibBuilder.loadTexts:
gx2cmDiagnosticEntry.setStatus('mandatory')
gx2cm_download_table = mib_table((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 10))
if mibBuilder.loadTexts:
gx2cmDownloadTable.setStatus('mandatory')
gx2cm_download_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 10, 9)).setIndexNames((0, 'OMNI-gx2CM-MIB', 'gx2cmDownloadTableIndex'))
if mibBuilder.loadTexts:
gx2cmDownloadEntry.setStatus('mandatory')
cm_trap_history_table = mib_table((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11))
if mibBuilder.loadTexts:
cmTrapHistoryTable.setStatus('mandatory')
cm_trap_history_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10)).setIndexNames((0, 'OMNI-gx2CM-MIB', 'cmTrapHistoryTableIndex'))
if mibBuilder.loadTexts:
cmTrapHistoryEntry.setStatus('mandatory')
gx2cm_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
gx2cmTableIndex.setStatus('mandatory')
label_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelModTemp.setStatus('optional')
uom_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
uomModTemp.setStatus('optional')
major_high_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 4), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
majorHighModTemp.setStatus('mandatory')
major_low_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 5), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
majorLowModTemp.setStatus('mandatory')
minor_high_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 6), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
minorHighModTemp.setStatus('mandatory')
minor_low_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 7), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
minorLowModTemp.setStatus('mandatory')
current_value_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 8), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
currentValueModTemp.setStatus('mandatory')
state_flag_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stateFlagModTemp.setStatus('mandatory')
min_value_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 10), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
minValueModTemp.setStatus('optional')
max_value_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 11), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
maxValueModTemp.setStatus('optional')
alarm_state_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 4, 3, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noAlarm', 1), ('majorLowAlarm', 2), ('minorLowAlarm', 3), ('minorHighAlarm', 4), ('majorHighAlarm', 5), ('informational', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alarmStateModTemp.setStatus('mandatory')
gx2cm_digital_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
gx2cmDigitalTableIndex.setStatus('mandatory')
label_remote_local = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelRemoteLocal.setStatus('obsolete')
enum_remote_local = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
enumRemoteLocal.setStatus('obsolete')
value_remote_local = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('local', 1), ('remote', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueRemoteLocal.setStatus('obsolete')
state_flag_remote_local = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stateFlagRemoteLocal.setStatus('obsolete')
label_reset_slot = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelResetSlot.setStatus('optional')
enum_reset_slot = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
enumResetSlot.setStatus('optional')
value_reset_slot = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 8), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueResetSlot.setStatus('mandatory')
state_reset_slot = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stateResetSlot.setStatus('mandatory')
label_id_shelf = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelIdShelf.setStatus('optional')
enum_id_shelf = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
enumIdShelf.setStatus('optional')
value_id_shelf = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueIdShelf.setStatus('mandatory')
state_flag_id_shelf = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stateFlagIdShelf.setStatus('mandatory')
label_reset_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 14), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelResetAlarm.setStatus('optional')
enum_reset_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 15), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
enumResetAlarm.setStatus('optional')
value_reset_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 16), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueResetAlarm.setStatus('mandatory')
state_flag_reset_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 5, 4, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stateFlagResetAlarm.setStatus('mandatory')
gx2cm_status_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
gx2cmStatusTableIndex.setStatus('mandatory')
label_shelf_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelShelfAlarm.setStatus('optional')
value_shelf_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
valueShelfAlarm.setStatus('mandatory')
state_shelf_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stateShelfAlarm.setStatus('mandatory')
label_data_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelDataCrc.setStatus('optional')
value_data_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
valueDataCrc.setStatus('mandatory')
state_data_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stateDataCrc.setStatus('mandatory')
label_flash_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelFlashStatus.setStatus('optional')
value_flash_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
valueFlashStatus.setStatus('mandatory')
state_flash_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stateFlashStatus.setStatus('mandatory')
label_boot_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelBootStatus.setStatus('optional')
value_boot_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
valueBootStatus.setStatus('mandatory')
state_boot_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stateBootStatus.setStatus('mandatory')
label_alm_lim_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 14), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelAlmLimCrc.setStatus('optional')
value_alm_lim_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
valueAlmLimCrc.setStatus('mandatory')
state_alm_lim_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 6, 5, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stateAlmLimCrc.setStatus('mandatory')
gx2cm_factory_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
gx2cmFactoryTableIndex.setStatus('mandatory')
boot_control_byte = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bootControlByte.setStatus('mandatory')
boot_status_byte = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bootStatusByte.setStatus('mandatory')
bank0_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bank0CRC.setStatus('mandatory')
bank1_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bank1CRC.setStatus('mandatory')
prg_eeprom_byte = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
prgEEPROMByte.setStatus('mandatory')
factory_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
factoryCRC.setStatus('mandatory')
calculate_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
calculateCRC.setStatus('mandatory')
hour_meter = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hourMeter.setStatus('mandatory')
flash_prg_cnt0 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
flashPrgCnt0.setStatus('mandatory')
flash_prg_cnt1 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
flashPrgCnt1.setStatus('mandatory')
flash_bank0 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 12), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
flashBank0.setStatus('mandatory')
flash_bank1 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 13), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
flashBank1.setStatus('mandatory')
local_mac_add = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 14), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
localMacAdd.setStatus('mandatory')
net_work_mac_add = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 2, 1, 15), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netWorkMacAdd.setStatus('mandatory')
gx2cm_network_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
gx2cmNetworkTableIndex.setStatus('mandatory')
label_local_eth_ip_add = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelLocalEthIPAdd.setStatus('optional')
value_local_eth_ip_add = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueLocalEthIPAdd.setStatus('mandatory')
label_local_eth_mask = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelLocalEthMask.setStatus('optional')
value_local_eth_mask = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueLocalEthMask.setStatus('mandatory')
label_network_eth_add = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelNetworkEthAdd.setStatus('optional')
value_network_eth_add = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueNetworkEthAdd.setStatus('mandatory')
label_network_eth_mask = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelNetworkEthMask.setStatus('optional')
value_network_eth_mask = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueNetworkEthMask.setStatus('mandatory')
label_shelf_serial_num = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelShelfSerialNum.setStatus('optional')
value_shelf_serial_num = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
valueShelfSerialNum.setStatus('mandatory')
label_gate_way_ip_add = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 12), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelGateWayIPAdd.setStatus('optional')
value_gate_way_ip_add = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 13), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueGateWayIPAdd.setStatus('mandatory')
label_trap_destination = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 14), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelTrapDestination.setStatus('optional')
value_trap_destination = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 15), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueTrapDestination.setStatus('mandatory')
label_tft_pserver = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 16), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelTFTPserver.setStatus('optional')
value_tft_pserver = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 17), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueTFTPserver.setStatus('mandatory')
label_trap2_destination = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 18), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelTrap2Destination.setStatus('optional')
value_trap2_destination = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 19), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueTrap2Destination.setStatus('mandatory')
label_trap3_destination = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 20), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelTrap3Destination.setStatus('optional')
value_trap3_destination = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 21), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueTrap3Destination.setStatus('mandatory')
label_trap4_destination = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 22), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelTrap4Destination.setStatus('optional')
value_trap4_destination = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 23), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueTrap4Destination.setStatus('mandatory')
label_trap5_destination = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 24), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelTrap5Destination.setStatus('optional')
value_trap5_destination = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 25), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueTrap5Destination.setStatus('mandatory')
label_isdn_mode = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 26), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelISDNMode.setStatus('optional')
value_isdn_mode = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueISDNMode.setStatus('mandatory')
label_isdn_modem_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 28), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelISDNModemIPAddress.setStatus('optional')
value_isdn_modem_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 29), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueISDNModemIPAddress.setStatus('mandatory')
label_isdn_trap_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 30), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelISDNTrapTimeout.setStatus('optional')
value_isdn_trap_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 31), integer32().subtype(subtypeSpec=value_range_constraint(0, 3600))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueISDNTrapTimeout.setStatus('mandatory')
label_isdn_ping_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 32), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelISDNPingTimeout.setStatus('optional')
value_isdn_ping_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 33), integer32().subtype(subtypeSpec=value_range_constraint(100, 5000))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueISDNPingTimeout.setStatus('mandatory')
label_isdn_backoff_timer = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 34), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelISDNBackoffTimer.setStatus('optional')
value_isdn_backoff_timer = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 3, 2, 35), integer32().subtype(subtypeSpec=value_range_constraint(0, 3600))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueISDNBackoffTimer.setStatus('mandatory')
gx2cm_security_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
gx2cmSecurityTableIndex.setStatus('mandatory')
label_security_mode = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelSecurityMode.setStatus('optional')
enum_security_mode = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
enumSecurityMode.setStatus('optional')
value_security_mode = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('read-only', 1), ('operator-access', 2), ('factory-access', 3), ('remote-write-only', 4), ('local-write-only', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
valueSecurityMode.setStatus('mandatory')
state_security_mode = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stateSecurityMode.setStatus('mandatory')
label_password = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelPassword.setStatus('optional')
value_password = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valuePassword.setStatus('mandatory')
state_password = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
statePassword.setStatus('mandatory')
label_factory_chg_string = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelFactoryChgString.setStatus('optional')
value_factory_chg_string = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
valueFactoryChgString.setStatus('mandatory')
state_factory_chg_string = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stateFactoryChgString.setStatus('mandatory')
label_operator_chg_string = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 12), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelOperatorChgString.setStatus('optional')
value_operator_chg_string = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 13), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
valueOperatorChgString.setStatus('mandatory')
state_operator_chg_string = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stateOperatorChgString.setStatus('mandatory')
label_read_only_chg_string = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 15), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelReadOnlyChgString.setStatus('optional')
value_read_only_chg_string = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 16), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
valueReadOnlyChgString.setStatus('mandatory')
state_read_only_chg_string = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stateReadOnlyChgString.setStatus('mandatory')
label_remote_only_chg_string = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 18), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelRemoteOnlyChgString.setStatus('optional')
value_remote_only_chg_string = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 19), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
valueRemoteOnlyChgString.setStatus('mandatory')
state_remote_only_chg_string = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stateRemoteOnlyChgString.setStatus('mandatory')
label_local_only_chg_string = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 21), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
labelLocalOnlyChgString.setStatus('optional')
value_local_only_chg_string = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 22), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
valueLocalOnlyChgString.setStatus('mandatory')
state_local_only_chg_string = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 8, 7, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stateLocalOnlyChgString.setStatus('mandatory')
gx2cm_amc_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
gx2cmAMCTableIndex.setStatus('mandatory')
value_am_cslot1 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot1.setStatus('mandatory')
serial_am_cslot1 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot1.setStatus('mandatory')
agent_idam_cslot1 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot1.setStatus('mandatory')
value_am_cslot2 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot2.setStatus('mandatory')
serial_am_cslot2 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot2.setStatus('mandatory')
agent_idam_cslot2 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot2.setStatus('mandatory')
value_am_cslot3 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot3.setStatus('mandatory')
serial_am_cslot3 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot3.setStatus('mandatory')
agent_idam_cslot3 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot3.setStatus('mandatory')
value_am_cslot4 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot4.setStatus('mandatory')
serial_am_cslot4 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 12), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot4.setStatus('mandatory')
agent_idam_cslot4 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 13), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot4.setStatus('mandatory')
value_am_cslot5 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot5.setStatus('mandatory')
serial_am_cslot5 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 15), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot5.setStatus('mandatory')
agent_idam_cslot5 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 16), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot5.setStatus('mandatory')
value_am_cslot6 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot6.setStatus('mandatory')
serial_am_cslot6 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 18), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot6.setStatus('mandatory')
agent_idam_cslot6 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 19), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot6.setStatus('mandatory')
value_am_cslot7 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot7.setStatus('mandatory')
serial_am_cslot7 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 21), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot7.setStatus('mandatory')
agent_idam_cslot7 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 22), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot7.setStatus('mandatory')
value_am_cslot8 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot8.setStatus('mandatory')
serial_am_cslot8 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 24), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot8.setStatus('mandatory')
agent_idam_cslot8 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 25), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot8.setStatus('mandatory')
value_am_cslot9 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 26), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot9.setStatus('mandatory')
serial_am_cslot9 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 27), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot9.setStatus('mandatory')
agent_idam_cslot9 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 28), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot9.setStatus('mandatory')
value_am_cslot10 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 29), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot10.setStatus('mandatory')
serial_am_cslot10 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 30), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot10.setStatus('mandatory')
agent_idam_cslot10 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 31), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot10.setStatus('mandatory')
value_am_cslot11 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot11.setStatus('mandatory')
serial_am_cslot11 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 33), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot11.setStatus('mandatory')
agent_idam_cslot11 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 34), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot11.setStatus('mandatory')
value_am_cslot12 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 35), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot12.setStatus('mandatory')
serial_am_cslot12 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 36), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot12.setStatus('mandatory')
agent_idam_cslot12 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 37), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot12.setStatus('mandatory')
value_am_cslot13 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 38), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot13.setStatus('mandatory')
serial_am_cslot13 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 39), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot13.setStatus('mandatory')
agent_idam_cslot13 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 40), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot13.setStatus('mandatory')
value_am_cslot14 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 41), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot14.setStatus('mandatory')
serial_am_cslot14 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 42), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot14.setStatus('mandatory')
agent_idam_cslot14 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 43), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot14.setStatus('mandatory')
value_am_cslot15 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 44), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot15.setStatus('mandatory')
serial_am_cslot15 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 45), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot15.setStatus('mandatory')
agent_idam_cslot15 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 46), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot15.setStatus('mandatory')
value_am_cslot16 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 47), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot16.setStatus('mandatory')
serial_am_cslot16 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 48), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot16.setStatus('mandatory')
agent_idam_cslot16 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 49), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot16.setStatus('mandatory')
value_am_cslot17 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 50), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot17.setStatus('mandatory')
serial_am_cslot17 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 51), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot17.setStatus('mandatory')
agent_idam_cslot17 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 52), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot17.setStatus('mandatory')
value_am_cslot18 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 53), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('force', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
valueAMCslot18.setStatus('mandatory')
serial_am_cslot18 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 54), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
serialAMCslot18.setStatus('mandatory')
agent_idam_cslot18 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 55), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
agentIDAMCslot18.setStatus('mandatory')
auto_quick_swap_cnt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 7, 6, 56), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('timeroff', 1), ('onehour', 2), ('oneday', 3), ('oneweek', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
autoQuickSwapCnt.setStatus('mandatory')
gx2cm_diagnostic_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
gx2cmDiagnosticTableIndex.setStatus('mandatory')
led_test_value = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ledTestValue.setStatus('mandatory')
bp_test_cnt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
bpTestCnt.setStatus('mandatory')
success_trans_slot1 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot1.setStatus('mandatory')
success_trans_slot2 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot2.setStatus('mandatory')
success_trans_slot3 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 6), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot3.setStatus('mandatory')
success_trans_slot4 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 7), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot4.setStatus('mandatory')
success_trans_slot5 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 8), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot5.setStatus('mandatory')
success_trans_slot6 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 9), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot6.setStatus('mandatory')
success_trans_slot7 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 10), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot7.setStatus('mandatory')
success_trans_slot8 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 11), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot8.setStatus('mandatory')
success_trans_slot9 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 12), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot9.setStatus('mandatory')
success_trans_slot10 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 13), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot10.setStatus('mandatory')
success_trans_slot11 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 14), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot11.setStatus('mandatory')
success_trans_slot12 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 15), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot12.setStatus('mandatory')
success_trans_slot13 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 16), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot13.setStatus('mandatory')
success_trans_slot14 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 17), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot14.setStatus('mandatory')
success_trans_slot15 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 18), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot15.setStatus('mandatory')
success_trans_slot16 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 19), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot16.setStatus('mandatory')
success_trans_slot17 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 20), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot17.setStatus('mandatory')
success_trans_slot18 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 21), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
successTransSlot18.setStatus('mandatory')
failure_trans_slot1 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 22), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot1.setStatus('mandatory')
failure_trans_slot2 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 23), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot2.setStatus('mandatory')
failure_trans_slot3 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 24), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot3.setStatus('mandatory')
failure_trans_slot4 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 25), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot4.setStatus('mandatory')
failure_trans_slot5 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 26), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot5.setStatus('mandatory')
failure_trans_slot6 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 27), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot6.setStatus('mandatory')
failure_trans_slot7 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 28), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot7.setStatus('mandatory')
failure_trans_slot8 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 29), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot8.setStatus('mandatory')
failure_trans_slot9 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 30), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot9.setStatus('mandatory')
failure_trans_slot10 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 31), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot10.setStatus('mandatory')
failure_trans_slot11 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 32), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot11.setStatus('mandatory')
failure_trans_slot12 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 33), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot12.setStatus('mandatory')
failure_trans_slot13 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 34), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot13.setStatus('mandatory')
failure_trans_slot14 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 35), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot14.setStatus('mandatory')
failure_trans_slot15 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 36), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot15.setStatus('mandatory')
failure_trans_slot16 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 37), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot16.setStatus('mandatory')
failure_trans_slot17 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 38), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot17.setStatus('mandatory')
failure_trans_slot18 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 39), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
failureTransSlot18.setStatus('mandatory')
fan_test_mode = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 40), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fanTestMode.setStatus('mandatory')
fan_control = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 41), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fanControl.setStatus('mandatory')
relay_test_mode = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 42), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
relayTestMode.setStatus('mandatory')
relay_control = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 43), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('open', 1), ('closed', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
relayControl.setStatus('mandatory')
slot_poll_mode = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 44), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
slotPollMode.setStatus('mandatory')
boot_count = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 45), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
bootCount.setStatus('mandatory')
object_table_data = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 46), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
objectTableData.setStatus('mandatory')
set_sys_time = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 9, 8, 47), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
setSysTime.setStatus('mandatory')
gx2cm_download_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 10, 9, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
gx2cmDownloadTableIndex.setStatus('mandatory')
download_value = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 10, 9, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
downloadValue.setStatus('mandatory')
auto_download_reset = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 10, 9, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('deactivate', 1), ('activate', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
autoDownloadReset.setStatus('mandatory')
download_filename = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 10, 9, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
downloadFilename.setStatus('mandatory')
download_state = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 10, 9, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
downloadState.setStatus('mandatory')
switch_fw_bank = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 10, 9, 6), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
switchFwBank.setStatus('mandatory')
cm_trap_history_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cmTrapHistoryTableIndex.setStatus('mandatory')
netrap_id = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapId.setStatus('mandatory')
netrap_network_elem_model_number = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapNetworkElemModelNumber.setStatus('mandatory')
netrap_network_elem_serial_num = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapNetworkElemSerialNum.setStatus('mandatory')
netrap_perceived_severity = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapPerceivedSeverity.setStatus('mandatory')
netrap_network_elem_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapNetworkElemOperState.setStatus('mandatory')
netrap_network_elem_alarm_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapNetworkElemAlarmStatus.setStatus('mandatory')
netrap_network_elem_admin_state = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapNetworkElemAdminState.setStatus('mandatory')
netrap_network_elem_avail_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapNetworkElemAvailStatus.setStatus('mandatory')
netrap_text = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapText.setStatus('mandatory')
netrap_last_trap_time_stamp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 11), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapLastTrapTimeStamp.setStatus('mandatory')
netrap_changed_object_id = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 12), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapChangedObjectId.setStatus('mandatory')
netrap_additional_info_integer1 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapAdditionalInfoInteger1.setStatus('mandatory')
netrap_additional_info_integer2 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapAdditionalInfoInteger2.setStatus('mandatory')
netrap_additional_info_integer3 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 15), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapAdditionalInfoInteger3.setStatus('mandatory')
netrap_changed_value_display_string = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 16), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapChangedValueDisplayString.setStatus('mandatory')
netrap_changed_value_oid = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 17), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapChangedValueOID.setStatus('mandatory')
netrap_changed_value_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 18), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapChangedValueIpAddress.setStatus('mandatory')
netrap_changed_value_integer = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3, 11, 10, 19), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
netrapChangedValueInteger.setStatus('mandatory')
trap_cm_config_change_integer = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3) + (0, 1)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_cm_config_change_display_string = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3) + (0, 2)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueDisplayString'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_cm_module_temp_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3) + (0, 3)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_cmeeprom_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3) + (0, 4)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_cm_flash_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3) + (0, 5)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_cm_hardware_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3) + (0, 6)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_cm_init_eeprom_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3) + (0, 7)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_cm_boot_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 3) + (0, 8)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
mibBuilder.exportSymbols('OMNI-gx2CM-MIB', successTransSlot18=successTransSlot18, valueISDNPingTimeout=valueISDNPingTimeout, valueAMCslot11=valueAMCslot11, failureTransSlot4=failureTransSlot4, gx2cmNetworkTableIndex=gx2cmNetworkTableIndex, successTransSlot13=successTransSlot13, failureTransSlot13=failureTransSlot13, failureTransSlot16=failureTransSlot16, trapCMFlashAlarm=trapCMFlashAlarm, successTransSlot8=successTransSlot8, netrapChangedValueDisplayString=netrapChangedValueDisplayString, labelTrap2Destination=labelTrap2Destination, gx2cmStatusTable=gx2cmStatusTable, alarmStateModTemp=alarmStateModTemp, relayControl=relayControl, successTransSlot15=successTransSlot15, netrapNetworkElemModelNumber=netrapNetworkElemModelNumber, enumRemoteLocal=enumRemoteLocal, gx2cmDescriptor=gx2cmDescriptor, agentIDAMCslot12=agentIDAMCslot12, valueLocalEthIPAdd=valueLocalEthIPAdd, valueNetworkEthAdd=valueNetworkEthAdd, netrapNetworkElemSerialNum=netrapNetworkElemSerialNum, valueIdShelf=valueIdShelf, gx2cmDigitalEntry=gx2cmDigitalEntry, netrapId=netrapId, gx2cmDigitalTableIndex=gx2cmDigitalTableIndex, serialAMCslot18=serialAMCslot18, bootCount=bootCount, factoryCRC=factoryCRC, stateFlagResetAlarm=stateFlagResetAlarm, labelTFTPserver=labelTFTPserver, trapCMConfigChangeInteger=trapCMConfigChangeInteger, agentIDAMCslot1=agentIDAMCslot1, enumIdShelf=enumIdShelf, minorHighModTemp=minorHighModTemp, successTransSlot2=successTransSlot2, flashPrgCnt0=flashPrgCnt0, autoDownloadReset=autoDownloadReset, trapCMInitEEPROMAlarm=trapCMInitEEPROMAlarm, labelTrap5Destination=labelTrap5Destination, majorLowModTemp=majorLowModTemp, gx2cmSecurityEntry=gx2cmSecurityEntry, gx2cmAMCTable=gx2cmAMCTable, currentValueModTemp=currentValueModTemp, successTransSlot1=successTransSlot1, serialAMCslot4=serialAMCslot4, serialAMCslot8=serialAMCslot8, valueResetSlot=valueResetSlot, enumSecurityMode=enumSecurityMode, successTransSlot10=successTransSlot10, switchFwBank=switchFwBank, stateOperatorChgString=stateOperatorChgString, agentIDAMCslot15=agentIDAMCslot15, hourMeter=hourMeter, stateBootStatus=stateBootStatus, valueTrap3Destination=valueTrap3Destination, valueISDNBackoffTimer=valueISDNBackoffTimer, stateFlagIdShelf=stateFlagIdShelf, labelReadOnlyChgString=labelReadOnlyChgString, netrapNetworkElemAvailStatus=netrapNetworkElemAvailStatus, gx2cmDiagnosticTableIndex=gx2cmDiagnosticTableIndex, failureTransSlot2=failureTransSlot2, labelTrap3Destination=labelTrap3Destination, gx2cmDownloadTableIndex=gx2cmDownloadTableIndex, autoQuickSwapCnt=autoQuickSwapCnt, netrapLastTrapTimeStamp=netrapLastTrapTimeStamp, labelLocalOnlyChgString=labelLocalOnlyChgString, valueAMCslot4=valueAMCslot4, labelRemoteLocal=labelRemoteLocal, serialAMCslot2=serialAMCslot2, agentIDAMCslot11=agentIDAMCslot11, labelISDNTrapTimeout=labelISDNTrapTimeout, valueISDNTrapTimeout=valueISDNTrapTimeout, valueAMCslot17=valueAMCslot17, valueAMCslot16=valueAMCslot16, failureTransSlot7=failureTransSlot7, trapCMConfigChangeDisplayString=trapCMConfigChangeDisplayString, valueTrap2Destination=valueTrap2Destination, gx2cmAMCEntry=gx2cmAMCEntry, valueAMCslot3=valueAMCslot3, valueResetAlarm=valueResetAlarm, labelModTemp=labelModTemp, valueReadOnlyChgString=valueReadOnlyChgString, valueAMCslot7=valueAMCslot7, valueAMCslot6=valueAMCslot6, labelResetAlarm=labelResetAlarm, calculateCRC=calculateCRC, Float=Float, stateShelfAlarm=stateShelfAlarm, stateFactoryChgString=stateFactoryChgString, serialAMCslot9=serialAMCslot9, agentIDAMCslot13=agentIDAMCslot13, successTransSlot3=successTransSlot3, failureTransSlot15=failureTransSlot15, downloadValue=downloadValue, netrapPerceivedSeverity=netrapPerceivedSeverity, serialAMCslot17=serialAMCslot17, stateLocalOnlyChgString=stateLocalOnlyChgString, labelFactoryChgString=labelFactoryChgString, agentIDAMCslot3=agentIDAMCslot3, netrapNetworkElemOperState=netrapNetworkElemOperState, gx2cmStatusEntry=gx2cmStatusEntry, gx2cmNetworkTable=gx2cmNetworkTable, netrapChangedValueInteger=netrapChangedValueInteger, valueAMCslot14=valueAMCslot14, valueLocalEthMask=valueLocalEthMask, minValueModTemp=minValueModTemp, gx2cmDiagnosticTable=gx2cmDiagnosticTable, labelISDNMode=labelISDNMode, labelOperatorChgString=labelOperatorChgString, valueAMCslot13=valueAMCslot13, stateFlagModTemp=stateFlagModTemp, stateFlagRemoteLocal=stateFlagRemoteLocal, stateRemoteOnlyChgString=stateRemoteOnlyChgString, valueNetworkEthMask=valueNetworkEthMask, valueTrapDestination=valueTrapDestination, valuePassword=valuePassword, gx2cmSecurityTable=gx2cmSecurityTable, serialAMCslot7=serialAMCslot7, setSysTime=setSysTime, netrapNetworkElemAlarmStatus=netrapNetworkElemAlarmStatus, gx2cmTableIndex=gx2cmTableIndex, labelFlashStatus=labelFlashStatus, enumResetAlarm=enumResetAlarm, agentIDAMCslot10=agentIDAMCslot10, agentIDAMCslot17=agentIDAMCslot17, stateSecurityMode=stateSecurityMode, cmTrapHistoryEntry=cmTrapHistoryEntry, agentIDAMCslot7=agentIDAMCslot7, labelDataCrc=labelDataCrc, labelAlmLimCrc=labelAlmLimCrc, valueISDNMode=valueISDNMode, netrapText=netrapText, valueAMCslot15=valueAMCslot15, labelBootStatus=labelBootStatus, stateReadOnlyChgString=stateReadOnlyChgString, failureTransSlot9=failureTransSlot9, valueAMCslot1=valueAMCslot1, gx2cmNetworkEntry=gx2cmNetworkEntry, valueAMCslot9=valueAMCslot9, trapCMEEPROMAlarm=trapCMEEPROMAlarm, valueTFTPserver=valueTFTPserver, valueAMCslot12=valueAMCslot12, failureTransSlot17=failureTransSlot17, serialAMCslot10=serialAMCslot10, labelPassword=labelPassword, serialAMCslot13=serialAMCslot13, labelIdShelf=labelIdShelf, valueBootStatus=valueBootStatus, gx2cmStatusTableIndex=gx2cmStatusTableIndex, bootStatusByte=bootStatusByte, valueAMCslot2=valueAMCslot2, gx2cmFactoryEntry=gx2cmFactoryEntry, maxValueModTemp=maxValueModTemp, labelRemoteOnlyChgString=labelRemoteOnlyChgString, agentIDAMCslot18=agentIDAMCslot18, valueLocalOnlyChgString=valueLocalOnlyChgString, flashBank0=flashBank0, failureTransSlot6=failureTransSlot6, valueSecurityMode=valueSecurityMode, valueGateWayIPAdd=valueGateWayIPAdd, bank0CRC=bank0CRC, valueFlashStatus=valueFlashStatus, valueAMCslot18=valueAMCslot18, gx2cmDigitalTable=gx2cmDigitalTable, valueTrap5Destination=valueTrap5Destination, serialAMCslot5=serialAMCslot5, stateDataCrc=stateDataCrc, labelTrap4Destination=labelTrap4Destination, gx2cmFactoryTableIndex=gx2cmFactoryTableIndex, serialAMCslot16=serialAMCslot16, ledTestValue=ledTestValue, failureTransSlot3=failureTransSlot3, valueAMCslot8=valueAMCslot8, failureTransSlot5=failureTransSlot5, failureTransSlot10=failureTransSlot10, localMacAdd=localMacAdd, valueRemoteOnlyChgString=valueRemoteOnlyChgString, bank1CRC=bank1CRC, prgEEPROMByte=prgEEPROMByte, gx2cmDownloadEntry=gx2cmDownloadEntry, labelNetworkEthAdd=labelNetworkEthAdd, failureTransSlot14=failureTransSlot14, successTransSlot14=successTransSlot14, valueRemoteLocal=valueRemoteLocal, majorHighModTemp=majorHighModTemp, valueAMCslot5=valueAMCslot5, netrapNetworkElemAdminState=netrapNetworkElemAdminState, agentIDAMCslot5=agentIDAMCslot5, serialAMCslot12=serialAMCslot12, netrapAdditionalInfoInteger1=netrapAdditionalInfoInteger1, agentIDAMCslot4=agentIDAMCslot4, labelTrapDestination=labelTrapDestination, labelResetSlot=labelResetSlot, labelShelfAlarm=labelShelfAlarm, cmTrapHistoryTable=cmTrapHistoryTable, downloadFilename=downloadFilename, labelLocalEthIPAdd=labelLocalEthIPAdd, failureTransSlot18=failureTransSlot18, successTransSlot7=successTransSlot7, valueTrap4Destination=valueTrap4Destination, stateFlashStatus=stateFlashStatus, labelNetworkEthMask=labelNetworkEthMask, serialAMCslot6=serialAMCslot6, successTransSlot11=successTransSlot11, stateResetSlot=stateResetSlot, labelShelfSerialNum=labelShelfSerialNum, successTransSlot6=successTransSlot6, enumResetSlot=enumResetSlot, agentIDAMCslot6=agentIDAMCslot6, valueDataCrc=valueDataCrc, labelSecurityMode=labelSecurityMode, agentIDAMCslot14=agentIDAMCslot14, failureTransSlot11=failureTransSlot11, uomModTemp=uomModTemp, relayTestMode=relayTestMode, agentIDAMCslot9=agentIDAMCslot9, cmTrapHistoryTableIndex=cmTrapHistoryTableIndex, flashPrgCnt1=flashPrgCnt1, labelLocalEthMask=labelLocalEthMask, successTransSlot9=successTransSlot9, netrapAdditionalInfoInteger2=netrapAdditionalInfoInteger2, gx2cmFactoryTable=gx2cmFactoryTable, valueShelfAlarm=valueShelfAlarm, statePassword=statePassword, serialAMCslot1=serialAMCslot1, objectTableData=objectTableData, bootControlByte=bootControlByte, gx2cmAnalogTable=gx2cmAnalogTable, gx2cmDownloadTable=gx2cmDownloadTable, stateAlmLimCrc=stateAlmLimCrc, valueISDNModemIPAddress=valueISDNModemIPAddress, successTransSlot12=successTransSlot12, failureTransSlot12=failureTransSlot12, labelISDNPingTimeout=labelISDNPingTimeout, downloadState=downloadState, netrapChangedValueOID=netrapChangedValueOID, agentIDAMCslot16=agentIDAMCslot16, netWorkMacAdd=netWorkMacAdd, valueAlmLimCrc=valueAlmLimCrc, labelISDNModemIPAddress=labelISDNModemIPAddress, successTransSlot17=successTransSlot17, serialAMCslot14=serialAMCslot14, netrapChangedObjectId=netrapChangedObjectId, netrapAdditionalInfoInteger3=netrapAdditionalInfoInteger3, flashBank1=flashBank1, trapCMHardwareAlarm=trapCMHardwareAlarm, bpTestCnt=bpTestCnt, gx2cmAMCTableIndex=gx2cmAMCTableIndex, successTransSlot16=successTransSlot16, trapCMModuleTempAlarm=trapCMModuleTempAlarm, valueFactoryChgString=valueFactoryChgString, fanTestMode=fanTestMode)
mibBuilder.exportSymbols('OMNI-gx2CM-MIB', gx2cmSecurityTableIndex=gx2cmSecurityTableIndex, minorLowModTemp=minorLowModTemp, serialAMCslot3=serialAMCslot3, valueOperatorChgString=valueOperatorChgString, netrapChangedValueIpAddress=netrapChangedValueIpAddress, agentIDAMCslot2=agentIDAMCslot2, labelGateWayIPAdd=labelGateWayIPAdd, trapCMBootAlarm=trapCMBootAlarm, agentIDAMCslot8=agentIDAMCslot8, slotPollMode=slotPollMode, successTransSlot4=successTransSlot4, gx2cmAnalogEntry=gx2cmAnalogEntry, gx2cmDiagnosticEntry=gx2cmDiagnosticEntry, valueShelfSerialNum=valueShelfSerialNum, labelISDNBackoffTimer=labelISDNBackoffTimer, valueAMCslot10=valueAMCslot10, serialAMCslot11=serialAMCslot11, serialAMCslot15=serialAMCslot15, successTransSlot5=successTransSlot5, fanControl=fanControl, failureTransSlot8=failureTransSlot8, failureTransSlot1=failureTransSlot1)
|
str = input().strip()
n = int(input())
def check(s):
if s=='a'or s=='e' or s=='i' or s=='o' or s=='u':
return True
return False
def non_vowels(str,n):
i,index =0,0
start = 0
res = 0
non_vowels = 0
disturb_flag = True
while index<len(str):
if disturb_flag:
if not check(str[index]):
non_vowels +=1
else:
if not check(str[start]) and check(str[index]):
non_vowels -=1
elif not check(str[index]):
non_vowels +=1
if non_vowels<n:
disturb_flag = True
start +=1
if disturb_flag and non_vowels>=n:
if res==0:
res = index +1
else:
res = res+1
disturb_flag = False
index +=1
if disturb_flag:
return -1
return res
res = non_vowels(str,n)
print(res)
|
str = input().strip()
n = int(input())
def check(s):
if s == 'a' or s == 'e' or s == 'i' or (s == 'o') or (s == 'u'):
return True
return False
def non_vowels(str, n):
(i, index) = (0, 0)
start = 0
res = 0
non_vowels = 0
disturb_flag = True
while index < len(str):
if disturb_flag:
if not check(str[index]):
non_vowels += 1
else:
if not check(str[start]) and check(str[index]):
non_vowels -= 1
elif not check(str[index]):
non_vowels += 1
if non_vowels < n:
disturb_flag = True
start += 1
if disturb_flag and non_vowels >= n:
if res == 0:
res = index + 1
else:
res = res + 1
disturb_flag = False
index += 1
if disturb_flag:
return -1
return res
res = non_vowels(str, n)
print(res)
|
low = int(input())
high = int(input())
x = int(input())
#first from bottom
num = low
while num <=high:
tverrsum = sum([int(i) for i in str(num)])
if tverrsum == x:
print(num)
break
num+=1
#first from top
num = high
while num >= low:
tverrsum = sum([int(i) for i in str(num)])
if tverrsum == x:
print(num)
break
num-=1
|
low = int(input())
high = int(input())
x = int(input())
num = low
while num <= high:
tverrsum = sum([int(i) for i in str(num)])
if tverrsum == x:
print(num)
break
num += 1
num = high
while num >= low:
tverrsum = sum([int(i) for i in str(num)])
if tverrsum == x:
print(num)
break
num -= 1
|
print("Python Program to print the sum and average of natural numbers!")
limit = int(input("Enter the limit of numbers:"))
sumOfNumbers = (limit * (limit + 1)) / 2
averageOfNumbers = sumOfNumbers / limit
print("The sum of", limit, "natural numbers is", sumOfNumbers)
print("The Average of", limit, "natural number is", averageOfNumbers)
|
print('Python Program to print the sum and average of natural numbers!')
limit = int(input('Enter the limit of numbers:'))
sum_of_numbers = limit * (limit + 1) / 2
average_of_numbers = sumOfNumbers / limit
print('The sum of', limit, 'natural numbers is', sumOfNumbers)
print('The Average of', limit, 'natural number is', averageOfNumbers)
|
_base_ = [
'../_base_/datasets/s3dis_seg-3d-13class.py',
'../_base_/models/pointnet2_msg.py',
'../_base_/schedules/seg_cosine_50e.py', '../_base_/default_runtime.py'
]
# data settings
data = dict(samples_per_gpu=16)
evaluation = dict(interval=2)
# model settings
model = dict(
backbone=dict(in_channels=9), # [xyz, rgb, normalized_xyz]
decode_head=dict(
num_classes=13, ignore_index=13,
loss_decode=dict(class_weight=None)), # S3DIS doesn't use class_weight
test_cfg=dict(
num_points=4096,
block_size=1.0,
sample_rate=0.5,
use_normalized_coord=True,
batch_size=24))
# runtime settings
checkpoint_config = dict(interval=2)
# PointNet2-MSG needs longer training time than PointNet2-SSG
runner = dict(type='EpochBasedRunner', max_epochs=80)
|
_base_ = ['../_base_/datasets/s3dis_seg-3d-13class.py', '../_base_/models/pointnet2_msg.py', '../_base_/schedules/seg_cosine_50e.py', '../_base_/default_runtime.py']
data = dict(samples_per_gpu=16)
evaluation = dict(interval=2)
model = dict(backbone=dict(in_channels=9), decode_head=dict(num_classes=13, ignore_index=13, loss_decode=dict(class_weight=None)), test_cfg=dict(num_points=4096, block_size=1.0, sample_rate=0.5, use_normalized_coord=True, batch_size=24))
checkpoint_config = dict(interval=2)
runner = dict(type='EpochBasedRunner', max_epochs=80)
|
string = str (input())
string_copy = string
new_string = string.replace(string[0],string[-1])
new_string = string_copy.replace(string_copy[-1],string_copy[0])
print(new_string)
|
string = str(input())
string_copy = string
new_string = string.replace(string[0], string[-1])
new_string = string_copy.replace(string_copy[-1], string_copy[0])
print(new_string)
|
class SetupForm(QtWidgets.QWidget):
global model
model = SetupInformation()
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
self.setObjectName("setupDialog")
# self.resize(1754, 3000)
self.model = model
|
class Setupform(QtWidgets.QWidget):
global model
model = setup_information()
def __init__(self):
super().__init__()
self.initUI()
def init_ui(self):
self.setObjectName('setupDialog')
self.model = model
|
def request(flow):
real_github_token = 'REPLACE_ME!'
auth_header = flow.request.headers.get('Authorization')
if auth_header:
flow.request.headers['Authorization'] = auth_header.replace('__GITHUB_TOKEN_PLACEHOLDER__', real_github_token)
def response(flow):
recording_proxy = 'http://host.docker.internal:8080'
link_header = flow.response.headers.get('Link')
if link_header:
flow.response.headers['Link'] = link_header.replace('https://api.github.com', recording_proxy)
flow.response.content = flow.response.content.replace(b'https://api.github.com', recording_proxy.encode('ascii'))
|
def request(flow):
real_github_token = 'REPLACE_ME!'
auth_header = flow.request.headers.get('Authorization')
if auth_header:
flow.request.headers['Authorization'] = auth_header.replace('__GITHUB_TOKEN_PLACEHOLDER__', real_github_token)
def response(flow):
recording_proxy = 'http://host.docker.internal:8080'
link_header = flow.response.headers.get('Link')
if link_header:
flow.response.headers['Link'] = link_header.replace('https://api.github.com', recording_proxy)
flow.response.content = flow.response.content.replace(b'https://api.github.com', recording_proxy.encode('ascii'))
|
TimesTable = int(input("Please Choose A Times Table To Be Quizzed On;\n1)One Times Tables\n2)Two Times Tables\n3)Three Times Tables\n4)Four Times Tables\n5)Five Times Tables\n6)Six Times Tables\n7)Seven Times Tables\n8)Eight Times Tables\n9)Nine Times Tables\n10)Ten Times Tables\n11)Eleven Times Tables\n12)Twelve Times Tables\nPlease Choose One To Start: "))
No1 = 1
ans = 0
for x in range (12):
ans = No1 * TimesTable
print("\n",No1,"x",TimesTable,"=",ans)
No1 = No1 + 1
|
times_table = int(input('Please Choose A Times Table To Be Quizzed On;\n1)One Times Tables\n2)Two Times Tables\n3)Three Times Tables\n4)Four Times Tables\n5)Five Times Tables\n6)Six Times Tables\n7)Seven Times Tables\n8)Eight Times Tables\n9)Nine Times Tables\n10)Ten Times Tables\n11)Eleven Times Tables\n12)Twelve Times Tables\nPlease Choose One To Start: '))
no1 = 1
ans = 0
for x in range(12):
ans = No1 * TimesTable
print('\n', No1, 'x', TimesTable, '=', ans)
no1 = No1 + 1
|
nums = (input("")).split()
n = int(nums[0])
m = int(nums[1])
l= int(nums[2])
list1 = []
for i in range(n):
request = (input("")).split()
request[1] = float(request[1])
request[2] = int(request[2])
request[3] = int(request[3])
request.append(i)
list1.append(request)
list1.sort()
list1 = sorted(list1, key=lambda a_entry: a_entry[1])
taken = []
for i in range(m+1):
taken.append(False)
if(l==1):
for i in range(n):
if(list1[i][2]==1):
if(list1[i][3]==-1):
list1[i][2]=0
continue
if(list1[i][3]>m):
list1[i][3]=-1
elif(list1[i][3]!=0):
taken[list1[i][3]]=True
index = 1
for i in range(n):
if(list1[i][2]==0):
if(index>m):
list1[i][3]=-1
continue
if(list1[i][3]!=0):
check =True
while(taken[index]):
index+=1
if(index>m):
check =False
break
if(check):
taken[index]=True
list1[i][3]=index
index+=1
else:
list1[i][3] = -1
else:
index = 1
for i in range(n):
if(list1[i][3]==-1):
list1[i][2] = 0
if(index>m):
list1[i][3]=-1
elif(list1[i][3]!=0):
list1[i][3]=index
index+=1
# print(list1)
for i in range(n):
print(list1[i][0]+" " + str(list1[i][1])+" " + str(list1[i][2])+" " + str(list1[i][3]))
# lst1 = sorted(lst, key=lambda a_entry: a_entry[1])
# print(lst1)
|
nums = input('').split()
n = int(nums[0])
m = int(nums[1])
l = int(nums[2])
list1 = []
for i in range(n):
request = input('').split()
request[1] = float(request[1])
request[2] = int(request[2])
request[3] = int(request[3])
request.append(i)
list1.append(request)
list1.sort()
list1 = sorted(list1, key=lambda a_entry: a_entry[1])
taken = []
for i in range(m + 1):
taken.append(False)
if l == 1:
for i in range(n):
if list1[i][2] == 1:
if list1[i][3] == -1:
list1[i][2] = 0
continue
if list1[i][3] > m:
list1[i][3] = -1
elif list1[i][3] != 0:
taken[list1[i][3]] = True
index = 1
for i in range(n):
if list1[i][2] == 0:
if index > m:
list1[i][3] = -1
continue
if list1[i][3] != 0:
check = True
while taken[index]:
index += 1
if index > m:
check = False
break
if check:
taken[index] = True
list1[i][3] = index
index += 1
else:
list1[i][3] = -1
else:
index = 1
for i in range(n):
if list1[i][3] == -1:
list1[i][2] = 0
if index > m:
list1[i][3] = -1
elif list1[i][3] != 0:
list1[i][3] = index
index += 1
for i in range(n):
print(list1[i][0] + ' ' + str(list1[i][1]) + ' ' + str(list1[i][2]) + ' ' + str(list1[i][3]))
|
capitals = ["Amsterdam", "Andorra la Vella", "Athens", "Berlin", "Bratislava", "Brussels", "Dublin", "Helsinki",
"Lisbon", "Ljubljana", "Luxembourg", "Madrid", "Monaco", "Nicosia", "Paris", "Riga", "Rome", "San Marino",
"Tallinn", "Valletta", "Vatican City", "Vienna", "Vilnius"]
# len_cities = len(capitals)
# print("length of capital arrays = ",len_cities)
countries = ["Netherlands", "Andorra", "Greece", "Germany", "Slovakia", "Belgium", "Ireland", "Finland", "Portugal",
"Slovenia", "Luxembourg", "Spain", "Monaco", "Cyprus", "France", "Latvia", "Italy", "San Marino",
"Estonia", "Malta", "Vatican City", "Austria", "Lithuania"]
# print(capitals.index("Berlin"))
print("Rules: All countries and capitals have to be capitalized!\n"
"If no correct answers apply enter 'none'\n")
capitals_input = input("Name a capital city of a eurozone country: ")
if capitals_input in capitals:
print("Well done!")
countries_input = input(f"Which country is {capitals_input} the capital of? ")
if countries_input in countries:
if capitals.index(capitals_input) == countries.index(countries_input):
print("That's correct")
neighbors = {
"Netherlands": ["Germany", "Belgium"],
"Andorra": ["Spain", "France"],
"Greece": ["none"],
"Germany": ["France", "Austria", "Netherlands", "Belgium", "Luxembourg"],
"Slovakia": ["Austria"],
"Belgium": ["Netherlands", "Luxembourg", "Germany", "France"],
"Ireland": ["none"],
"Finland": ["none"],
"Portugal": ["Spain"],
"Slovenia": ["Austria", "Italy"],
"Luxembourg": ["Belgium", "Germany", "France"],
"Spain": ["Portugal", "Andorra", "France"],
"Monaco": ["France"],
"Cyprus": ["none"],
"France": ["Germany", "Spain", "Andorra", "Italy", "Luxembourg", "Monaco", "Belgium"],
"Latvia": ["Estonia", "Lithuania"],
"Italy": ["San Marino", "Vatican City", "France", "Slovenia", "Austria"],
"San Marino": ["Italy"],
"Estonia": ["Latvia"],
"Malta": ["none"],
"Vatican City": ["Italy"],
"Austria": ["Italy", "Slovenia", "Slovakia", "Germany"],
"Lithuania": ["Latvia"],
}
neighbor_input = input(f"Can you name any of {countries_input}'s neighboring countries that also use the "
f"Euro? (excluding maritime borders) ")
if neighbor_input in (neighbors[countries_input]):
print("That is correct!")
capitals_input_2 = input(f"Do you also know {neighbor_input}'s capital? ")
if capitals_input_2 in capitals:
if capitals.index(capitals_input_2) == countries.index(neighbor_input):
print("Well done!")
else:
print("That's not the capital.")
else:
print("That's not a neighboring country!")
else:
print("Wrong country!")
else:
print("Country is not on the list!")
elif capitals_input == str("no"):
print("haiyaaa, why not?")
else:
print("Wrong!")
|
capitals = ['Amsterdam', 'Andorra la Vella', 'Athens', 'Berlin', 'Bratislava', 'Brussels', 'Dublin', 'Helsinki', 'Lisbon', 'Ljubljana', 'Luxembourg', 'Madrid', 'Monaco', 'Nicosia', 'Paris', 'Riga', 'Rome', 'San Marino', 'Tallinn', 'Valletta', 'Vatican City', 'Vienna', 'Vilnius']
countries = ['Netherlands', 'Andorra', 'Greece', 'Germany', 'Slovakia', 'Belgium', 'Ireland', 'Finland', 'Portugal', 'Slovenia', 'Luxembourg', 'Spain', 'Monaco', 'Cyprus', 'France', 'Latvia', 'Italy', 'San Marino', 'Estonia', 'Malta', 'Vatican City', 'Austria', 'Lithuania']
print("Rules: All countries and capitals have to be capitalized!\nIf no correct answers apply enter 'none'\n")
capitals_input = input('Name a capital city of a eurozone country: ')
if capitals_input in capitals:
print('Well done!')
countries_input = input(f'Which country is {capitals_input} the capital of? ')
if countries_input in countries:
if capitals.index(capitals_input) == countries.index(countries_input):
print("That's correct")
neighbors = {'Netherlands': ['Germany', 'Belgium'], 'Andorra': ['Spain', 'France'], 'Greece': ['none'], 'Germany': ['France', 'Austria', 'Netherlands', 'Belgium', 'Luxembourg'], 'Slovakia': ['Austria'], 'Belgium': ['Netherlands', 'Luxembourg', 'Germany', 'France'], 'Ireland': ['none'], 'Finland': ['none'], 'Portugal': ['Spain'], 'Slovenia': ['Austria', 'Italy'], 'Luxembourg': ['Belgium', 'Germany', 'France'], 'Spain': ['Portugal', 'Andorra', 'France'], 'Monaco': ['France'], 'Cyprus': ['none'], 'France': ['Germany', 'Spain', 'Andorra', 'Italy', 'Luxembourg', 'Monaco', 'Belgium'], 'Latvia': ['Estonia', 'Lithuania'], 'Italy': ['San Marino', 'Vatican City', 'France', 'Slovenia', 'Austria'], 'San Marino': ['Italy'], 'Estonia': ['Latvia'], 'Malta': ['none'], 'Vatican City': ['Italy'], 'Austria': ['Italy', 'Slovenia', 'Slovakia', 'Germany'], 'Lithuania': ['Latvia']}
neighbor_input = input(f"Can you name any of {countries_input}'s neighboring countries that also use the Euro? (excluding maritime borders) ")
if neighbor_input in neighbors[countries_input]:
print('That is correct!')
capitals_input_2 = input(f"Do you also know {neighbor_input}'s capital? ")
if capitals_input_2 in capitals:
if capitals.index(capitals_input_2) == countries.index(neighbor_input):
print('Well done!')
else:
print("That's not the capital.")
else:
print("That's not a neighboring country!")
else:
print('Wrong country!')
else:
print('Country is not on the list!')
elif capitals_input == str('no'):
print('haiyaaa, why not?')
else:
print('Wrong!')
|
CONFIG = {
'http': {
'port': 3000
},
'authentication': {
'salt_rounds': 12,
'secret': '!!! CHANGE ME !!!',
'issuer': 'example.com',
'token_expiry': '24h',
'admin_primary_email': 'admin@localhost',
'admin_default_password': 'admin'
},
'authorization': {
'default_roles': ['user:read', 'user:write', 'public:read'],
'approved_roles': ['posts:write', 'comment:write']
}
}
|
config = {'http': {'port': 3000}, 'authentication': {'salt_rounds': 12, 'secret': '!!! CHANGE ME !!!', 'issuer': 'example.com', 'token_expiry': '24h', 'admin_primary_email': 'admin@localhost', 'admin_default_password': 'admin'}, 'authorization': {'default_roles': ['user:read', 'user:write', 'public:read'], 'approved_roles': ['posts:write', 'comment:write']}}
|
class FilePath:
regex = '[0-9]{4}'
def to_python(self, value):
return int(value)
|
class Filepath:
regex = '[0-9]{4}'
def to_python(self, value):
return int(value)
|
test = {'name': 'q7',
'points': 8,
'suites': [{'cases': [{'code': '>>> t = Tree (1 , [ Tree (2) , Tree (1 , [ '
'Tree (2 , [ Tree (3 , [ Tree (0)])])])])\n'
'\n'
'>>> longest_seq( t) # 1 -> 2 -> 3\n'
'3\n'
'\n'
'>>> t = Tree (1)\n'
'\n'
'>>> longest_seq( t)\n'
'1\n'}],
'scored': True,
'setup': 'from q7 import *',
'type': 'doctest'}]}
|
test = {'name': 'q7', 'points': 8, 'suites': [{'cases': [{'code': '>>> t = Tree (1 , [ Tree (2) , Tree (1 , [ Tree (2 , [ Tree (3 , [ Tree (0)])])])])\n\n>>> longest_seq( t) # 1 -> 2 -> 3\n3\n\n>>> t = Tree (1)\n\n>>> longest_seq( t)\n1\n'}], 'scored': True, 'setup': 'from q7 import *', 'type': 'doctest'}]}
|
x = [input() for x in range(10)]
m = 0
m_index = 0
for i in range(0,10,2):
if int(x[i]) > m:
m = int(x[i])
m_index = i
print(f"a maioe nota foi de {x[m_index+1]} com {x[m_index]} pontos")
|
x = [input() for x in range(10)]
m = 0
m_index = 0
for i in range(0, 10, 2):
if int(x[i]) > m:
m = int(x[i])
m_index = i
print(f'a maioe nota foi de {x[m_index + 1]} com {x[m_index]} pontos')
|
class Commands:
def __init__(self, arguments_commandline: list):
commands_allowed = ['compile', 'clean']
if len(arguments_commandline) > 1:
command = arguments_commandline[1]
if not command in commands_allowed:
raise Exception("You give an invalid command")
self.arguments_commandline = arguments_commandline
def is_command_given(self):
return len(self.arguments_commandline) > 1
def get_command_given(self):
return self.arguments_commandline[1]
|
class Commands:
def __init__(self, arguments_commandline: list):
commands_allowed = ['compile', 'clean']
if len(arguments_commandline) > 1:
command = arguments_commandline[1]
if not command in commands_allowed:
raise exception('You give an invalid command')
self.arguments_commandline = arguments_commandline
def is_command_given(self):
return len(self.arguments_commandline) > 1
def get_command_given(self):
return self.arguments_commandline[1]
|
size(200, 400)
path = BezierPath()
path.polygon((80, 28), (50, 146), (146, 152), (172, 78))
with savedState():
clipPath(path)
scale(200/512)
image("../images/drawbot.png", (0, 0))
translate(0, 200)
with savedState():
scale(200/512)
image("../images/drawbot.png", (0, 0))
|
size(200, 400)
path = bezier_path()
path.polygon((80, 28), (50, 146), (146, 152), (172, 78))
with saved_state():
clip_path(path)
scale(200 / 512)
image('../images/drawbot.png', (0, 0))
translate(0, 200)
with saved_state():
scale(200 / 512)
image('../images/drawbot.png', (0, 0))
|
with open("input.txt", "r") as input_file:
lines = input_file.readlines()
reports = [int(line, 2) for line in lines]
counts = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
for report in reports:
i = 0
num_of_bits = len(counts)
while i < num_of_bits:
counts[num_of_bits-1-i] += report >> i & 1
i += 1
gamma_string = ""
epsilon_string = ""
for count in counts:
if count > len(lines) / 2:
gamma_string += "1"
epsilon_string += "0"
else:
gamma_string += "0"
epsilon_string += "1"
gamma = int(gamma_string, 2)
epsilon = int(epsilon_string, 2)
power = gamma * epsilon
print(gamma, bin(epsilon), power)
|
with open('input.txt', 'r') as input_file:
lines = input_file.readlines()
reports = [int(line, 2) for line in lines]
counts = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
for report in reports:
i = 0
num_of_bits = len(counts)
while i < num_of_bits:
counts[num_of_bits - 1 - i] += report >> i & 1
i += 1
gamma_string = ''
epsilon_string = ''
for count in counts:
if count > len(lines) / 2:
gamma_string += '1'
epsilon_string += '0'
else:
gamma_string += '0'
epsilon_string += '1'
gamma = int(gamma_string, 2)
epsilon = int(epsilon_string, 2)
power = gamma * epsilon
print(gamma, bin(epsilon), power)
|
class Template:
model_owner = "model_owner"
detail_view = "detail_view"
detail_view_u = "detail_view_u"
detail_view_d = "detail_view_d"
detail_view_ud = "detail_view_ud"
all_objects_view = "all_objects_view"
filter_objects_view = "filter_objects_view"
user_register_view = "user_register_view"
user_profile_view = "user_profile_view"
user_profile_detail_view = "user_profile_detail_view"
|
class Template:
model_owner = 'model_owner'
detail_view = 'detail_view'
detail_view_u = 'detail_view_u'
detail_view_d = 'detail_view_d'
detail_view_ud = 'detail_view_ud'
all_objects_view = 'all_objects_view'
filter_objects_view = 'filter_objects_view'
user_register_view = 'user_register_view'
user_profile_view = 'user_profile_view'
user_profile_detail_view = 'user_profile_detail_view'
|
#Write a function called num_factors. num_factors should
#have one parameter, an integer. num_factors should count
#how many factors the number has and return that count as
#an integer
#
#A number is a factor of another number if it divides
#evenly into that number. For example, 3 is a factor of 6,
#but 4 is not. As such, all factors will be less than the
#number itself.
#
#Do not count 1 or the number itself in your factor count.
#For example, 6 should have 2 factors: 2 and 3. Do not
#count 1 and 6. You may assume the number will be less than
#1000.
#Add your code here!
def num_factors( num ):
count = 0
for i in range(2,num):
if num % i == 0:
count += 1
return count
#Below are some lines of code that will test your function.
#You can change the value of the variable(s) to test your
#function with different inputs.
#
#If your function works correctly, this will originally
#print: 0, 2, 0, 6, 6, each on their own line.
print(num_factors(5))
print(num_factors(6))
print(num_factors(97))
print(num_factors(105))
print(num_factors(999))
|
def num_factors(num):
count = 0
for i in range(2, num):
if num % i == 0:
count += 1
return count
print(num_factors(5))
print(num_factors(6))
print(num_factors(97))
print(num_factors(105))
print(num_factors(999))
|
#
# Created on Sat Apr 25 2020
#
# Title: Leetcode - Jump Game
#
# Author: Vatsal Mistry
# Web: mistryvatsal.github.io
#
# Approach will be to traverse array in reverse, maintain last_optimum_pos
# and check whether last_optimum_pos is at the 0 index
class Solution:
def canJump(self, nums):
N = len(nums)
last_optimum_pos = N-1
for i in range(N-1, -1, -1):
if (i + nums[i]) >= last_optimum_pos:
last_optimum_pos = i
return (last_optimum_pos == 0)
|
class Solution:
def can_jump(self, nums):
n = len(nums)
last_optimum_pos = N - 1
for i in range(N - 1, -1, -1):
if i + nums[i] >= last_optimum_pos:
last_optimum_pos = i
return last_optimum_pos == 0
|
while True:
n = int(input())
if n == 0:
break
ans = 0
for i in range(n):
flag = True
s = input()
for j in range(len(s)):
if s[j] == ' ' and ans <= j:
flag = False
ans = j
break
if flag and ans < len(s):
ans = len(s)
print(ans+1)
|
while True:
n = int(input())
if n == 0:
break
ans = 0
for i in range(n):
flag = True
s = input()
for j in range(len(s)):
if s[j] == ' ' and ans <= j:
flag = False
ans = j
break
if flag and ans < len(s):
ans = len(s)
print(ans + 1)
|
# Shopping Options
# https://aonecode.com/amazon-online-assessment-shopping-options
def getNumberOfOptions(priceOfJeans, priceOfShoes, priceOfSkirts, priceOfTops, dollars):
if not priceOfJeans or not priceOfShoes or not priceOfSkirts or not priceOfTops:
return 0
js = []
for i in range(len(priceOfJeans)):
for j in range(len(priceOfShoes)):
js.append(priceOfJeans[i] + priceOfShoes[j])
st = []
for i in range(len(priceOfSkirts)):
for j in range(len(priceOfTops)):
st.append(priceOfSkirts[i] + priceOfTops[j])
js.sort()
st.sort()
res = 0
left, right = 0, len(st) - 1
while left < len(js) and right >= 0:
if js[left] + st[right] <= dollars:
res += right - 0 + 1
left += 1
else:
# js[left] + st[right] > dollars
right -= 1
return res
|
def get_number_of_options(priceOfJeans, priceOfShoes, priceOfSkirts, priceOfTops, dollars):
if not priceOfJeans or not priceOfShoes or (not priceOfSkirts) or (not priceOfTops):
return 0
js = []
for i in range(len(priceOfJeans)):
for j in range(len(priceOfShoes)):
js.append(priceOfJeans[i] + priceOfShoes[j])
st = []
for i in range(len(priceOfSkirts)):
for j in range(len(priceOfTops)):
st.append(priceOfSkirts[i] + priceOfTops[j])
js.sort()
st.sort()
res = 0
(left, right) = (0, len(st) - 1)
while left < len(js) and right >= 0:
if js[left] + st[right] <= dollars:
res += right - 0 + 1
left += 1
else:
right -= 1
return res
|
_base_ = [
'_base_/datasets/cxr14_bs16.py',
'_base_/models/resnet50_cxr14.py',
'_base_/schedules/cxr14_bs16_ep20.py',
'_base_/default_runtime.py'
]
|
_base_ = ['_base_/datasets/cxr14_bs16.py', '_base_/models/resnet50_cxr14.py', '_base_/schedules/cxr14_bs16_ep20.py', '_base_/default_runtime.py']
|
#encoding:utf-8
# Write here subreddit name. Like this one for /r/BigAnimeTiddies.
subreddit = 'BigAnimeTiddies'
# This is for your public telegram channel.
t_channel = '@r_BigAnimeTiddies'
def send_post(submission, r2t):
return r2t.send_simple(submission)
|
subreddit = 'BigAnimeTiddies'
t_channel = '@r_BigAnimeTiddies'
def send_post(submission, r2t):
return r2t.send_simple(submission)
|
def rest():
i01.setHeadSpeed(1.0,1.0)
i01.setHandSpeed("right", 1.0, 1.0, 1.0, 1.0, 1.0, 1.0)
i01.setArmSpeed("right", 1.0, 1.0, 1.0, 1.0)
#atach
i01.head.neck.attach()
i01.head.rothead.attach()
i01.rightHand.attach()
i01.rightArm.shoulder.attach()
i01.rightArm.omoplate.attach()
i01.rightArm.bicep.attach()
leftneckServo.attach(right, 13)
rightneckServo.attach(right, 12)
sleep(0.5)
#r.arm
i01.moveArm("right",0,90,30,10)
#head
i01.head.neck.moveTo(75)
i01.head.rothead.moveTo(88)
#r.hand
i01.moveHand("right",2,2,2,2,2,88)
#roll neck
delta = 20
neckMoveTo(restPos,delta)
sleep(7)
leftneckServo.detach()
rightneckServo.detach()
i01.detach()
|
def rest():
i01.setHeadSpeed(1.0, 1.0)
i01.setHandSpeed('right', 1.0, 1.0, 1.0, 1.0, 1.0, 1.0)
i01.setArmSpeed('right', 1.0, 1.0, 1.0, 1.0)
i01.head.neck.attach()
i01.head.rothead.attach()
i01.rightHand.attach()
i01.rightArm.shoulder.attach()
i01.rightArm.omoplate.attach()
i01.rightArm.bicep.attach()
leftneckServo.attach(right, 13)
rightneckServo.attach(right, 12)
sleep(0.5)
i01.moveArm('right', 0, 90, 30, 10)
i01.head.neck.moveTo(75)
i01.head.rothead.moveTo(88)
i01.moveHand('right', 2, 2, 2, 2, 2, 88)
delta = 20
neck_move_to(restPos, delta)
sleep(7)
leftneckServo.detach()
rightneckServo.detach()
i01.detach()
|
#!/usr/bin/python3
for i in range(-10,-100,-30):
print(i)
print(i)
|
for i in range(-10, -100, -30):
print(i)
print(i)
|
def test_index(client):
r = client.get("/")
assert r.status_code == 200
def test_paper_page(client):
r = client.get("/paper/1812.35598")
assert r.status_code == 200
|
def test_index(client):
r = client.get('/')
assert r.status_code == 200
def test_paper_page(client):
r = client.get('/paper/1812.35598')
assert r.status_code == 200
|
class Node:
def __init__(self, data=None):
self.__data=data
self.__next=None
@property
def data(self):
return self.__data
@data.setter
def data(self, data):
self.__data=data
@property
def next(self):
return self.__next
@next.setter
def next(self, n):
self.__next = n
class LStack:
def __init__(self):
self.top=None
def empty(self):
if self.top is None:
return True
else:
return False
def push(self, data):
New_node = Node(data)
New_node.next = self.top
self.top = New_node
def pop(self):
if self.empty():
return
temp = self.top.data
self.top = self.top.next
return temp
def peek(self):
if self.empty():
return
return self.top.data
if __name__ =="__main__":
s = LStack()
s.push(1)
s.push(2)
s.push(3)
s.push(4)
s.push(5)
while not s.empty():
print(s.pop(), end=" ")
|
class Node:
def __init__(self, data=None):
self.__data = data
self.__next = None
@property
def data(self):
return self.__data
@data.setter
def data(self, data):
self.__data = data
@property
def next(self):
return self.__next
@next.setter
def next(self, n):
self.__next = n
class Lstack:
def __init__(self):
self.top = None
def empty(self):
if self.top is None:
return True
else:
return False
def push(self, data):
new_node = node(data)
New_node.next = self.top
self.top = New_node
def pop(self):
if self.empty():
return
temp = self.top.data
self.top = self.top.next
return temp
def peek(self):
if self.empty():
return
return self.top.data
if __name__ == '__main__':
s = l_stack()
s.push(1)
s.push(2)
s.push(3)
s.push(4)
s.push(5)
while not s.empty():
print(s.pop(), end=' ')
|
def pkgs_raw(packages):
pkgs_raw_str = ""
for package in packages:
pkgs_raw_str += str(package) + "\n"
print(pkgs_raw_str)
def pkgs_traits(packages, traits_to_print):
pkgs_traits_str = ""
for package in packages:
pkgs_traits_str += "\n"
for trait in traits_to_print:
if trait in package:
pkgs_traits_str += "%s: %s\n" % (trait, package[trait])
print(pkgs_traits_str)
|
def pkgs_raw(packages):
pkgs_raw_str = ''
for package in packages:
pkgs_raw_str += str(package) + '\n'
print(pkgs_raw_str)
def pkgs_traits(packages, traits_to_print):
pkgs_traits_str = ''
for package in packages:
pkgs_traits_str += '\n'
for trait in traits_to_print:
if trait in package:
pkgs_traits_str += '%s: %s\n' % (trait, package[trait])
print(pkgs_traits_str)
|
webgui = Runtime.create("webgui","WebGui")
# if you don't want the browser to
# autostart to homepage
#
# webgui.autoStartBrowser(false)
# set a different port number to listen to
# default is 8888
# webgui.setPort(7777)
# on startup the webgui will look for a "resources"
# directory (may change in the future)
# static html files can be placed here and accessed through
# the webgui service
# starts the websocket server
# and attempts to autostart browser
webgui.startService();
|
webgui = Runtime.create('webgui', 'WebGui')
webgui.startService()
|
class Solution:
max_time = 0
def numOfMinutes(self, n: int, headID: int, manager: List[int], informTime: List[int]) -> int:
global max_time
max_time=0
def dfs(adj,node,path_sum):
global max_time
if adj.get(node)==None:
max_time=max(max_time,path_sum)
return
else:
for i in adj[node]:
dfs(adj,i,path_sum+informTime[node])
adj={}
for i in range(len(manager)):
if adj.get(manager[i])!=None:
adj[manager[i]].append(i)
else:
adj[manager[i]]=[i]
max_path=0
dfs(adj,headID,0)
return max_time
|
class Solution:
max_time = 0
def num_of_minutes(self, n: int, headID: int, manager: List[int], informTime: List[int]) -> int:
global max_time
max_time = 0
def dfs(adj, node, path_sum):
global max_time
if adj.get(node) == None:
max_time = max(max_time, path_sum)
return
else:
for i in adj[node]:
dfs(adj, i, path_sum + informTime[node])
adj = {}
for i in range(len(manager)):
if adj.get(manager[i]) != None:
adj[manager[i]].append(i)
else:
adj[manager[i]] = [i]
max_path = 0
dfs(adj, headID, 0)
return max_time
|
def z_inicial(lista):
cont=0
if len(lista) == 0:
return
else:
for i in range(len(lista)):
if lista[i][0] == "z" or lista[i][0] == "Z":
cont+=1
return cont
lista=input().split()
print(z_inicial(lista))
|
def z_inicial(lista):
cont = 0
if len(lista) == 0:
return
else:
for i in range(len(lista)):
if lista[i][0] == 'z' or lista[i][0] == 'Z':
cont += 1
return cont
lista = input().split()
print(z_inicial(lista))
|
''' Problem # 3
Write a program that takes the salary and grade from user.
It then adds 50% bonus if the grade is greater tha 15.
It adds 25% bonus if the grade is 15 or less and then it should display the salary
Pseudocode
1. Start
2. Take the salary and grade from the user
3. If the grade is greater than 15
then
1. Calculate the bonus using the formula 50 / 100 * salary # can also use 1.5
4. Otherwise do the following
1. Caculate the bonus using the formula 25 / 100 * salary # can also use 1.25
5. Calculate the total salary using salary = salary + bonus.
6. Display the total salary
7. End
# I need to create three variables:
# 1. Salary needs to be a floating point number
# 2. grade needs to be a interger
# 3. bonus should be a floating point number
Main
|
Real Salary
|
Real bonus
|
Interger grade
|
Input Salary
|
Input bonus
|
False | True
____if grade > 15__________________________
| |
Bonus = 25/100 * salary bonus = 50/100 * salary
|_______________________ 0 _____________|
|
salary = salary + bonus
|
Output"Your total salary is"salary and bonus
|
End
'''
salary = float(input("please enter the salary: "))
grade = int(input("please enter your grade: "))
if grade > 15:
bonus = 50 / 100 * salary
else:
bonus = 25 / 100 * salary
salary += bonus # salary = salary + bonus
print("Your total salary is", salary) # please enter the salary: 50000
# please enter your grade: 18
# Your total salary is 75000.0
|
""" Problem # 3
Write a program that takes the salary and grade from user.
It then adds 50% bonus if the grade is greater tha 15.
It adds 25% bonus if the grade is 15 or less and then it should display the salary
Pseudocode
1. Start
2. Take the salary and grade from the user
3. If the grade is greater than 15
then
1. Calculate the bonus using the formula 50 / 100 * salary # can also use 1.5
4. Otherwise do the following
1. Caculate the bonus using the formula 25 / 100 * salary # can also use 1.25
5. Calculate the total salary using salary = salary + bonus.
6. Display the total salary
7. End
# I need to create three variables:
# 1. Salary needs to be a floating point number
# 2. grade needs to be a interger
# 3. bonus should be a floating point number
Main
|
Real Salary
|
Real bonus
|
Interger grade
|
Input Salary
|
Input bonus
|
False | True
____if grade > 15__________________________
| |
Bonus = 25/100 * salary bonus = 50/100 * salary
|_______________________ 0 _____________|
|
salary = salary + bonus
|
Output"Your total salary is"salary and bonus
|
End
"""
salary = float(input('please enter the salary: '))
grade = int(input('please enter your grade: '))
if grade > 15:
bonus = 50 / 100 * salary
else:
bonus = 25 / 100 * salary
salary += bonus
print('Your total salary is', salary)
|
## 1. Overview ##
f = open("movie_metadata.csv", 'r')
movie_metadata = f.read()
movie_metadata = movie_metadata.split('\n')
movie_data = []
for element in movie_metadata:
row = element.split(',')
movie_data.append(row)
print(movie_data[:5])
## 3. Writing Our Own Functions ##
def first_elts(nested_lists):
list_heads = []
for n_list in nested_lists:
list_heads.append(n_list[0])
return list_heads
movie_names = first_elts(movie_data)
print(movie_names)
## 4. Functions with Multiple Return Paths ##
def is_usa(movie):
origin_idx = 6
return True if movie[origin_idx] == "USA" else False
wonder_woman = ['Wonder Woman','Patty Jenkins','Color',141,'Gal Gadot','English','USA',2017]
wonder_woman_usa = is_usa(wonder_woman)
## 5. Functions with Multiple Arguments ##
wonder_woman = ['Wonder Woman','Patty Jenkins','Color',141,'Gal Gadot','English','USA',2017]
def is_usa(input_lst):
if input_lst[6] == "USA":
return True
else:
return False
def index_equals_str(input_lst, index, input_str):
return input_lst[index] == input_str
wonder_woman_in_color = index_equals_str(wonder_woman, 2, "Color")
## 6. Optional Arguments ##
def index_equals_str(input_lst,index,input_str):
if input_lst[index] == input_str:
return True
else:
return False
def counter(input_lst,header_row = False):
num_elt = 0
if header_row == True:
input_lst = input_lst[1:len(input_lst)]
for each in input_lst:
num_elt = num_elt + 1
return num_elt
def feature_counter(input_lst, index, input_str, header_row=False):
num_feature = 0
if header_row == True:
input_lst = input_lst[1:]
for row in input_lst:
num_feature += 1 if row[index] == input_str else 0
return num_feature
num_of_us_movies = feature_counter(movie_data, 6, "USA", True)
## 7. Calling a Function inside another Function ##
def feature_counter(input_lst, index, input_str, header_row = False):
num_elt = 0
if header_row == True:
input_lst = input_lst[1:]
for each in input_lst:
if each[index] == input_str:
num_elt += 1
return num_elt
def summary_statistics(input_lst):
input_lst = input_lst[1:]
num_japan_films = feature_counter(input_lst, 6, "Japan")
num_color_films = feature_counter(input_lst, 2, "Color")
num_films_in_english = feature_counter(input_lst, 5, "English")
summary_dict = {"japan_films": num_japan_films,
"color_films": num_color_films,
"films_in_english": num_films_in_english}
return summary_dict
summary = summary_statistics(movie_data)
|
f = open('movie_metadata.csv', 'r')
movie_metadata = f.read()
movie_metadata = movie_metadata.split('\n')
movie_data = []
for element in movie_metadata:
row = element.split(',')
movie_data.append(row)
print(movie_data[:5])
def first_elts(nested_lists):
list_heads = []
for n_list in nested_lists:
list_heads.append(n_list[0])
return list_heads
movie_names = first_elts(movie_data)
print(movie_names)
def is_usa(movie):
origin_idx = 6
return True if movie[origin_idx] == 'USA' else False
wonder_woman = ['Wonder Woman', 'Patty Jenkins', 'Color', 141, 'Gal Gadot', 'English', 'USA', 2017]
wonder_woman_usa = is_usa(wonder_woman)
wonder_woman = ['Wonder Woman', 'Patty Jenkins', 'Color', 141, 'Gal Gadot', 'English', 'USA', 2017]
def is_usa(input_lst):
if input_lst[6] == 'USA':
return True
else:
return False
def index_equals_str(input_lst, index, input_str):
return input_lst[index] == input_str
wonder_woman_in_color = index_equals_str(wonder_woman, 2, 'Color')
def index_equals_str(input_lst, index, input_str):
if input_lst[index] == input_str:
return True
else:
return False
def counter(input_lst, header_row=False):
num_elt = 0
if header_row == True:
input_lst = input_lst[1:len(input_lst)]
for each in input_lst:
num_elt = num_elt + 1
return num_elt
def feature_counter(input_lst, index, input_str, header_row=False):
num_feature = 0
if header_row == True:
input_lst = input_lst[1:]
for row in input_lst:
num_feature += 1 if row[index] == input_str else 0
return num_feature
num_of_us_movies = feature_counter(movie_data, 6, 'USA', True)
def feature_counter(input_lst, index, input_str, header_row=False):
num_elt = 0
if header_row == True:
input_lst = input_lst[1:]
for each in input_lst:
if each[index] == input_str:
num_elt += 1
return num_elt
def summary_statistics(input_lst):
input_lst = input_lst[1:]
num_japan_films = feature_counter(input_lst, 6, 'Japan')
num_color_films = feature_counter(input_lst, 2, 'Color')
num_films_in_english = feature_counter(input_lst, 5, 'English')
summary_dict = {'japan_films': num_japan_films, 'color_films': num_color_films, 'films_in_english': num_films_in_english}
return summary_dict
summary = summary_statistics(movie_data)
|
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
Manifest = {
'Name': 'temp_sensor_status_transition_monitor',
'Description': 'Network Analytics Agent Script to monitor'
'status transitions of all temperature sensors',
'Version': '1.0',
'Author': 'Aruba Networks'
}
class Policy(NAE):
def __init__(self):
self.variables['sensors_list'] = ''
uri1 = '/rest/v1/system/subsystems/*/*/temp_sensors/*?' \
'attributes=status'
self.m1 = Monitor(uri1, 'Sensor Status')
# MONITOR NORMAL STATE TRANSITIONS
# Normal -> Min
self.r1 = Rule('Sensor Status - Normal -> Min')
self.r1.condition(
'transition {} from "normal" to "min"', [self.m1])
self.r1.action(self.sensor_status_action_normal)
# Normal -> Max
self.r2 = Rule('Sensor Status - Normal -> Max')
self.r2.condition(
'transition {} from "normal" to "max"', [self.m1])
self.r2.action(self.sensor_status_action_normal)
# Low Critical -> Min
self.r3 = Rule('Sensor Status - Low Critical -> Min')
self.r3.condition(
'transition {} from "low_critical" to "min"', [self.m1])
self.r3.action(self.sensor_status_action_normal)
# Critical -> Max
self.r4 = Rule('Sensor Status - Critical -> Max')
self.r4.condition(
'transition {} from "critical" to "max"', [self.m1])
self.r4.action(self.sensor_status_action_normal)
# Fault -> Uninitialized
self.r5 = Rule('Sensor Status - Fault -> Uninitialized')
self.r5.condition(
'transition {} from "fault" to "uninitialized"', [self.m1])
self.r5.action(self.sensor_status_action_normal)
# Fault -> Normal
self.r6 = Rule('Sensor Status - Fault -> Normal')
self.r6.condition(
'transition {} from "fault" to "normal"', [self.m1])
self.r6.action(self.sensor_status_action_normal)
# Fault -> Min
self.r7 = Rule('Sensor Status - Fault -> Min')
self.r7.condition(
'transition {} from "fault" to "min"', [self.m1])
self.r7.action(self.sensor_status_action_normal)
# Fault -> Max
self.r8 = Rule('Sensor Status - Fault -> Max')
self.r8.condition(
'transition {} from "fault" to "max"', [self.m1])
self.r8.action(self.sensor_status_action_normal)
# MONITOR CRITICAL STATE TRANSITIONS
# Min -> Low Critical
self.r9 = Rule('Sensor Status - Min -> Low Critical')
self.r9.condition(
'transition {} from "min" to "low_critical"', [self.m1])
self.r9.action(self.sensor_status_action_critical)
# Max -> Critical
self.r10 = Rule('Sensor Status - Max -> Critical')
self.r10.condition(
'transition {} from "max" to "critical"', [self.m1])
self.r10.action(self.sensor_status_action_critical)
# Critical -> Emergency
self.r11 = Rule(
'Sensor Status - Critical -> Emergency')
self.r11.condition(
'transition {} from "critical" to "emergency"',
[self.m1])
self.r11.action(self.sensor_status_action_critical)
# Emergency -> Critical
self.r12 = Rule('Sensor Status - Emergency -> Critical')
self.r12.condition(
'transition {} from "emergency" to "critical"', [self.m1])
self.r12.action(self.sensor_status_action_critical)
# Uninitialized -> Fault
self.r13 = Rule('Sensor Status - Uninitialized -> Fault')
self.r13.condition(
'transition {} from "uninitialized" to "fault"', [self.m1])
self.r13.action(self.sensor_status_action_critical)
# Normal -> Fault
self.r14 = Rule('Sensor Status - Normal -> Fault')
self.r14.condition(
'transition {} from "normal" to "fault"', [self.m1])
self.r14.action(self.sensor_status_action_critical)
# Min -> Fault
self.r15 = Rule('Sensor Status - Min -> Fault')
self.r15.condition(
'transition {} from "min" to "fault"', [self.m1])
self.r15.action(self.sensor_status_action_critical)
# Low Critical -> Fault
self.r16 = Rule('Sensor Status - Low Critical -> Fault')
self.r16.condition(
'transition {} from "low_critical" to "fault"', [self.m1])
self.r16.action(self.sensor_status_action_critical)
# Max -> Fault
self.r17 = Rule('Sensor Status - Max -> Fault')
self.r17.condition(
'transition {} from "max" to "fault"', [self.m1])
self.r17.action(self.sensor_status_action_critical)
# Critical -> Fault
self.r18 = Rule('Sensor Status - Critical -> Fault')
self.r18.condition(
'transition {} from "critical" to "fault"', [self.m1])
self.r18.action(self.sensor_status_action_critical)
# Emergency -> Fault
self.r19 = Rule('Sensor Status - Emergency -> Fault')
self.r19.condition(
'transition {} from "emergency" to "fault"', [self.m1])
self.r19.action(self.sensor_status_action_critical)
# Fault -> Emergency
self.r20 = Rule('Sensor Status - Fault -> Emergency')
self.r20.condition(
'transition {} from "fault" to "emergency"', [self.m1])
self.r20.action(self.sensor_status_action_critical)
# Fault -> Critical
self.r21 = Rule('Sensor Status - Fault -> Critical')
self.r21.condition(
'transition {} from "fault" to "critical"', [self.m1])
self.r21.action(self.sensor_status_action_critical)
# Fault -> Low Critical
self.r22 = Rule('Sensor Status - Fault -> Low Critical')
self.r22.condition(
'transition {} from "fault" to "low_critical"', [self.m1])
self.r22.action(self.sensor_status_action_critical)
def sensor_status_action_critical(self, event):
self.logger.debug('********CRITICAL********')
self.logger.debug('LABEL = ' + event['labels'] +
'VALUE = ' + event['value'])
label = str(event['labels'])
labelsplit = label.split(",")
readsensor = labelsplit[1]
readsensorsplit = readsensor.split("=")
sensorname = str(readsensorsplit[1])
self.logger.debug('Sensor Name= ' + sensorname)
if self.variables['sensors_list'] != '':
findsensor = self.variables['sensors_list']
istrue = findsensor.find(sensorname)
if istrue == -1:
sensors_list = sensorname + self.variables['sensors_list']
self.variables['sensors_list'] = sensors_list
self.logger.debug('list of sensors : ' +
self.variables['sensors_list'])
self.setactions(sensorname)
else:
ActionSyslog('Sensor: ' + sensorname +
' is in Critical state')
ActionCLI('show environment temperature')
else:
self.variables['sensors_list'] = sensorname
self.logger.debug('list of sensors:' +
self.variables['sensors_list'])
self.setactions(sensorname)
def setactions(self, sensorname):
self.logger.debug('+++ CALLBACK: SENSOR STATUS - CRITICAL!')
self.set_alert_level(AlertLevel.CRITICAL)
ActionSyslog('Sensor: ' + sensorname +
' is in Critical state')
ActionCLI('show environment temperature')
def sensor_status_action_normal(self, event):
if self.get_alert_level() is not None:
if self.variables['sensors_list'] == '':
self.set_policy_status_normal()
else:
print('********NORMAL********')
label = str(event['labels'])
labelsplit = label.split(",")
readsensor = labelsplit[1]
readsensorsplit = readsensor.split("=")
sensorname = str(readsensorsplit[1])
'''
delete all Sensor Name's which moved back to
Normal state from Critical state
'''
index = 0
length = len(sensorname)
findsensor = self.variables['sensors_list']
index = findsensor.find(sensorname)
if index != -1:
# index = string.find(str, substr)
findsensor = findsensor[
0:index] + findsensor[
index + length:]
self.variables['sensors_list'] = findsensor
self.logger.debug('Sensor name deleted: ' + sensorname)
self.logger.debug('Current Sensors list: ' +
self.variables['sensors_list'])
ActionSyslog('Sensor ' + sensorname +
' is back to Normal')
if self.variables['sensors_list'] == '':
self.set_policy_status_normal()
def set_policy_status_normal(self):
self.remove_alert_level()
ActionSyslog('All Sensors are Normal')
|
manifest = {'Name': 'temp_sensor_status_transition_monitor', 'Description': 'Network Analytics Agent Script to monitorstatus transitions of all temperature sensors', 'Version': '1.0', 'Author': 'Aruba Networks'}
class Policy(NAE):
def __init__(self):
self.variables['sensors_list'] = ''
uri1 = '/rest/v1/system/subsystems/*/*/temp_sensors/*?attributes=status'
self.m1 = monitor(uri1, 'Sensor Status')
self.r1 = rule('Sensor Status - Normal -> Min')
self.r1.condition('transition {} from "normal" to "min"', [self.m1])
self.r1.action(self.sensor_status_action_normal)
self.r2 = rule('Sensor Status - Normal -> Max')
self.r2.condition('transition {} from "normal" to "max"', [self.m1])
self.r2.action(self.sensor_status_action_normal)
self.r3 = rule('Sensor Status - Low Critical -> Min')
self.r3.condition('transition {} from "low_critical" to "min"', [self.m1])
self.r3.action(self.sensor_status_action_normal)
self.r4 = rule('Sensor Status - Critical -> Max')
self.r4.condition('transition {} from "critical" to "max"', [self.m1])
self.r4.action(self.sensor_status_action_normal)
self.r5 = rule('Sensor Status - Fault -> Uninitialized')
self.r5.condition('transition {} from "fault" to "uninitialized"', [self.m1])
self.r5.action(self.sensor_status_action_normal)
self.r6 = rule('Sensor Status - Fault -> Normal')
self.r6.condition('transition {} from "fault" to "normal"', [self.m1])
self.r6.action(self.sensor_status_action_normal)
self.r7 = rule('Sensor Status - Fault -> Min')
self.r7.condition('transition {} from "fault" to "min"', [self.m1])
self.r7.action(self.sensor_status_action_normal)
self.r8 = rule('Sensor Status - Fault -> Max')
self.r8.condition('transition {} from "fault" to "max"', [self.m1])
self.r8.action(self.sensor_status_action_normal)
self.r9 = rule('Sensor Status - Min -> Low Critical')
self.r9.condition('transition {} from "min" to "low_critical"', [self.m1])
self.r9.action(self.sensor_status_action_critical)
self.r10 = rule('Sensor Status - Max -> Critical')
self.r10.condition('transition {} from "max" to "critical"', [self.m1])
self.r10.action(self.sensor_status_action_critical)
self.r11 = rule('Sensor Status - Critical -> Emergency')
self.r11.condition('transition {} from "critical" to "emergency"', [self.m1])
self.r11.action(self.sensor_status_action_critical)
self.r12 = rule('Sensor Status - Emergency -> Critical')
self.r12.condition('transition {} from "emergency" to "critical"', [self.m1])
self.r12.action(self.sensor_status_action_critical)
self.r13 = rule('Sensor Status - Uninitialized -> Fault')
self.r13.condition('transition {} from "uninitialized" to "fault"', [self.m1])
self.r13.action(self.sensor_status_action_critical)
self.r14 = rule('Sensor Status - Normal -> Fault')
self.r14.condition('transition {} from "normal" to "fault"', [self.m1])
self.r14.action(self.sensor_status_action_critical)
self.r15 = rule('Sensor Status - Min -> Fault')
self.r15.condition('transition {} from "min" to "fault"', [self.m1])
self.r15.action(self.sensor_status_action_critical)
self.r16 = rule('Sensor Status - Low Critical -> Fault')
self.r16.condition('transition {} from "low_critical" to "fault"', [self.m1])
self.r16.action(self.sensor_status_action_critical)
self.r17 = rule('Sensor Status - Max -> Fault')
self.r17.condition('transition {} from "max" to "fault"', [self.m1])
self.r17.action(self.sensor_status_action_critical)
self.r18 = rule('Sensor Status - Critical -> Fault')
self.r18.condition('transition {} from "critical" to "fault"', [self.m1])
self.r18.action(self.sensor_status_action_critical)
self.r19 = rule('Sensor Status - Emergency -> Fault')
self.r19.condition('transition {} from "emergency" to "fault"', [self.m1])
self.r19.action(self.sensor_status_action_critical)
self.r20 = rule('Sensor Status - Fault -> Emergency')
self.r20.condition('transition {} from "fault" to "emergency"', [self.m1])
self.r20.action(self.sensor_status_action_critical)
self.r21 = rule('Sensor Status - Fault -> Critical')
self.r21.condition('transition {} from "fault" to "critical"', [self.m1])
self.r21.action(self.sensor_status_action_critical)
self.r22 = rule('Sensor Status - Fault -> Low Critical')
self.r22.condition('transition {} from "fault" to "low_critical"', [self.m1])
self.r22.action(self.sensor_status_action_critical)
def sensor_status_action_critical(self, event):
self.logger.debug('********CRITICAL********')
self.logger.debug('LABEL = ' + event['labels'] + 'VALUE = ' + event['value'])
label = str(event['labels'])
labelsplit = label.split(',')
readsensor = labelsplit[1]
readsensorsplit = readsensor.split('=')
sensorname = str(readsensorsplit[1])
self.logger.debug('Sensor Name= ' + sensorname)
if self.variables['sensors_list'] != '':
findsensor = self.variables['sensors_list']
istrue = findsensor.find(sensorname)
if istrue == -1:
sensors_list = sensorname + self.variables['sensors_list']
self.variables['sensors_list'] = sensors_list
self.logger.debug('list of sensors : ' + self.variables['sensors_list'])
self.setactions(sensorname)
else:
action_syslog('Sensor: ' + sensorname + ' is in Critical state')
action_cli('show environment temperature')
else:
self.variables['sensors_list'] = sensorname
self.logger.debug('list of sensors:' + self.variables['sensors_list'])
self.setactions(sensorname)
def setactions(self, sensorname):
self.logger.debug('+++ CALLBACK: SENSOR STATUS - CRITICAL!')
self.set_alert_level(AlertLevel.CRITICAL)
action_syslog('Sensor: ' + sensorname + ' is in Critical state')
action_cli('show environment temperature')
def sensor_status_action_normal(self, event):
if self.get_alert_level() is not None:
if self.variables['sensors_list'] == '':
self.set_policy_status_normal()
else:
print('********NORMAL********')
label = str(event['labels'])
labelsplit = label.split(',')
readsensor = labelsplit[1]
readsensorsplit = readsensor.split('=')
sensorname = str(readsensorsplit[1])
"\n delete all Sensor Name's which moved back to\n Normal state from Critical state\n "
index = 0
length = len(sensorname)
findsensor = self.variables['sensors_list']
index = findsensor.find(sensorname)
if index != -1:
findsensor = findsensor[0:index] + findsensor[index + length:]
self.variables['sensors_list'] = findsensor
self.logger.debug('Sensor name deleted: ' + sensorname)
self.logger.debug('Current Sensors list: ' + self.variables['sensors_list'])
action_syslog('Sensor ' + sensorname + ' is back to Normal')
if self.variables['sensors_list'] == '':
self.set_policy_status_normal()
def set_policy_status_normal(self):
self.remove_alert_level()
action_syslog('All Sensors are Normal')
|
#gwang_01.py
j = 0
for i in range (1000):
if (i % 3) == 0 or (i%5) == 0: j+=i
j
|
j = 0
for i in range(1000):
if i % 3 == 0 or i % 5 == 0:
j += i
j
|
dp = [0 for i in range(301)];stair = [0 for i in range(301)]
n = int(input())
for i in range(n): stair[i] = int(input())
dp[0] = stair[0];dp[1] = stair[0]+stair[1];dp[2] = max(stair[0]+stair[2],stair[1]+stair[2])
for i in range(3,n): dp[i] = max(dp[i-2]+stair[i],dp[i-3]+stair[i-1]+stair[i])
print(dp[n-1])
|
dp = [0 for i in range(301)]
stair = [0 for i in range(301)]
n = int(input())
for i in range(n):
stair[i] = int(input())
dp[0] = stair[0]
dp[1] = stair[0] + stair[1]
dp[2] = max(stair[0] + stair[2], stair[1] + stair[2])
for i in range(3, n):
dp[i] = max(dp[i - 2] + stair[i], dp[i - 3] + stair[i - 1] + stair[i])
print(dp[n - 1])
|
def read_only_properties(*args):
def class_rebuilder(cls):
def __setattr__(self, key, value):
if key in args and key in self.__dict__:
raise AttributeError("Can't modify %s" % key)
else:
super().__setattr__(key, value)
cls.__setattr__ = __setattr__
return cls
return class_rebuilder
|
def read_only_properties(*args):
def class_rebuilder(cls):
def __setattr__(self, key, value):
if key in args and key in self.__dict__:
raise attribute_error("Can't modify %s" % key)
else:
super().__setattr__(key, value)
cls.__setattr__ = __setattr__
return cls
return class_rebuilder
|
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
'target_name': 'gfx_geometry',
'type': '<(component)',
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
],
'defines': [
'GFX_IMPLEMENTATION',
],
'sources': [
'geometry/box_f.cc',
'geometry/box_f.h',
'geometry/cubic_bezier.h',
'geometry/cubic_bezier.cc',
'geometry/insets.cc',
'geometry/insets.h',
'geometry/insets_base.h',
'geometry/insets_f.cc',
'geometry/insets_f.h',
'geometry/matrix3_f.cc',
'geometry/matrix3_f.h',
'geometry/point.cc',
'geometry/point.h',
'geometry/point3_f.cc',
'geometry/point3_f.h',
'geometry/point_conversions.cc',
'geometry/point_conversions.h',
'geometry/point_f.cc',
'geometry/point_f.h',
'geometry/quad_f.cc',
'geometry/quad_f.h',
'geometry/rect.cc',
'geometry/rect.h',
'geometry/rect_conversions.cc',
'geometry/rect_conversions.h',
'geometry/rect_f.cc',
'geometry/rect_f.h',
'geometry/r_tree.h',
'geometry/r_tree_base.cc',
'geometry/r_tree_base.h',
'geometry/safe_integer_conversions.h',
'geometry/scroll_offset.cc',
'geometry/scroll_offset.h',
'geometry/size.cc',
'geometry/size.h',
'geometry/size_conversions.cc',
'geometry/size_conversions.h',
'geometry/size_f.cc',
'geometry/size_f.h',
'geometry/vector2d.cc',
'geometry/vector2d.h',
'geometry/vector2d_conversions.cc',
'geometry/vector2d_conversions.h',
'geometry/vector2d_f.cc',
'geometry/vector2d_f.h',
'geometry/vector3d_f.cc',
'geometry/vector3d_f.h',
],
# TODO(jdduke): Revisit optimization after gauging benefit, crbug/419051.
'includes': [
'../../build/android/increase_size_for_speed.gypi',
],
},
{
'target_name': 'gfx',
'type': '<(component)',
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/base/base.gyp:base_i18n',
'<(DEPTH)/base/base.gyp:base_static',
'<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'<(DEPTH)/skia/skia.gyp:skia',
'<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng',
'<(DEPTH)/third_party/icu/icu.gyp:icui18n',
'<(DEPTH)/third_party/icu/icu.gyp:icuuc',
'<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
'<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
'gfx_geometry',
],
# text_elider.h includes ICU headers.
'export_dependent_settings': [
'<(DEPTH)/skia/skia.gyp:skia',
'<(DEPTH)/third_party/icu/icu.gyp:icui18n',
'<(DEPTH)/third_party/icu/icu.gyp:icuuc',
],
'defines': [
'GFX_IMPLEMENTATION',
],
'include_dirs': [
'<(DEPTH)/third_party/icu/source/common'
],
'sources': [
'android/device_display_info.cc',
'android/device_display_info.h',
'android/gfx_jni_registrar.cc',
'android/gfx_jni_registrar.h',
'android/java_bitmap.cc',
'android/java_bitmap.h',
'android/shared_device_display_info.cc',
'android/shared_device_display_info.h',
'android/view_configuration.cc',
'android/view_configuration.h',
'animation/animation.cc',
'animation/animation.h',
'animation/animation_container.cc',
'animation/animation_container.h',
'animation/animation_container_element.h',
'animation/animation_container_observer.h',
'animation/animation_delegate.h',
'animation/linear_animation.cc',
'animation/linear_animation.h',
'animation/multi_animation.cc',
'animation/multi_animation.h',
'animation/slide_animation.cc',
'animation/slide_animation.h',
'animation/throb_animation.cc',
'animation/throb_animation.h',
'animation/tween.cc',
'animation/tween.h',
'break_list.h',
'canvas.cc',
'canvas.h',
'canvas_notimplemented.cc',
'canvas_paint_mac.h',
'canvas_paint_mac.mm',
'canvas_paint_win.cc',
'canvas_paint_win.h',
'canvas_skia.cc',
'canvas_skia_paint.h',
'codec/jpeg_codec.cc',
'codec/jpeg_codec.h',
'codec/png_codec.cc',
'codec/png_codec.h',
'color_utils.cc',
'color_utils.h',
'display.cc',
'display.h',
'display_change_notifier.cc',
'display_change_notifier.h',
'display_observer.cc',
'display_observer.h',
'font.cc',
'font.h',
'font_fallback.h',
'font_fallback_linux.cc',
'font_fallback_mac.cc',
'font_fallback_win.cc',
'font_fallback_win.h',
'font_list.cc',
'font_list.h',
'font_list_impl.cc',
'font_list_impl.h',
'font_render_params.cc',
'font_render_params.h',
'font_render_params_android.cc',
'font_render_params_linux.cc',
'font_render_params_mac.cc',
'font_render_params_win.cc',
'frame_time.h',
'gfx_export.h',
'gfx_paths.cc',
'gfx_paths.h',
'gpu_memory_buffer.cc',
'gpu_memory_buffer.h',
'image/canvas_image_source.cc',
'image/canvas_image_source.h',
'image/image.cc',
'image/image.h',
'image/image_family.cc',
'image/image_family.h',
'image/image_ios.mm',
'image/image_mac.mm',
'image/image_png_rep.cc',
'image/image_png_rep.h',
'image/image_skia.cc',
'image/image_skia.h',
'image/image_skia_operations.cc',
'image/image_skia_operations.h',
'image/image_skia_rep.cc',
'image/image_skia_rep.h',
'image/image_skia_source.h',
'image/image_skia_util_ios.h',
'image/image_skia_util_ios.mm',
'image/image_skia_util_mac.h',
'image/image_skia_util_mac.mm',
'image/image_util.cc',
'image/image_util.h',
'image/image_util_ios.mm',
'interpolated_transform.cc',
'interpolated_transform.h',
'linux_font_delegate.cc',
'linux_font_delegate.h',
'mac/coordinate_conversion.h',
'mac/coordinate_conversion.mm',
'mac/scoped_ns_disable_screen_updates.h',
'native_widget_types.h',
'nine_image_painter.cc',
'nine_image_painter.h',
'overlay_transform.h',
'pango_util.cc',
'pango_util.h',
'path.cc',
'path.h',
'path_aura.cc',
'path_win.cc',
'path_win.h',
'path_x11.cc',
'path_x11.h',
'platform_font.h',
'platform_font_android.cc',
'platform_font_ios.h',
'platform_font_ios.mm',
'platform_font_mac.h',
'platform_font_mac.mm',
'platform_font_ozone.cc',
'platform_font_pango.cc',
'platform_font_pango.h',
'platform_font_win.cc',
'platform_font_win.h',
'range/range.cc',
'range/range.h',
'range/range_mac.mm',
'range/range_win.cc',
'render_text.cc',
'render_text.h',
'render_text_harfbuzz.cc',
'render_text_harfbuzz.h',
'render_text_mac.cc',
'render_text_mac.h',
'render_text_ozone.cc',
'render_text_pango.cc',
'render_text_pango.h',
'render_text_win.cc',
'render_text_win.h',
'scoped_canvas.h',
'scoped_cg_context_save_gstate_mac.h',
'scoped_ns_graphics_context_save_gstate_mac.h',
'scoped_ns_graphics_context_save_gstate_mac.mm',
'screen.cc',
'screen.h',
'screen_android.cc',
'screen_aura.cc',
'screen_ios.mm',
'screen_mac.mm',
'screen_win.cc',
'screen_win.h',
'scrollbar_size.cc',
'scrollbar_size.h',
'selection_model.cc',
'selection_model.h',
'sequential_id_generator.cc',
'sequential_id_generator.h',
'shadow_value.cc',
'shadow_value.h',
'skbitmap_operations.cc',
'skbitmap_operations.h',
'skia_util.cc',
'skia_util.h',
'switches.cc',
'switches.h',
'sys_color_change_listener.cc',
'sys_color_change_listener.h',
'text_constants.h',
'text_elider.cc',
'text_elider.h',
'text_utils.cc',
'text_utils.h',
'text_utils_android.cc',
'text_utils_ios.mm',
'text_utils_skia.cc',
'transform.cc',
'transform.h',
'transform_util.cc',
'transform_util.h',
'ui_gfx_exports.cc',
'utf16_indexing.cc',
'utf16_indexing.h',
'vsync_provider.h',
'win/direct_write.cc',
'win/direct_write.h',
'win/dpi.cc',
'win/dpi.h',
'win/hwnd_util.cc',
'win/hwnd_util.h',
'win/scoped_set_map_mode.h',
'win/singleton_hwnd.cc',
'win/singleton_hwnd.h',
'win/window_impl.cc',
'win/window_impl.h',
],
'includes': [
'../../build/android/increase_size_for_speed.gypi',
],
'conditions': [
['OS=="ios"', {
'dependencies': [
'<(DEPTH)/ui/ios/ui_ios.gyp:ui_ios',
],
# iOS only uses a subset of UI.
'sources/': [
['exclude', '^codec/jpeg_codec\\.cc$'],
],
}, {
'dependencies': [
'<(libjpeg_gyp_path):libjpeg',
],
}],
# TODO(asvitkine): Switch all platforms to use canvas_skia.cc.
# http://crbug.com/105550
['use_canvas_skia==1', {
'sources!': [
'canvas_notimplemented.cc',
],
}, { # use_canvas_skia!=1
'sources!': [
'canvas_skia.cc',
],
}],
['OS=="win"', {
'sources': [
'gdi_util.cc',
'gdi_util.h',
'icon_util.cc',
'icon_util.h',
],
# TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
# C4324 is structure was padded due to __declspec(align()), which is
# uninteresting.
'msvs_disabled_warnings': [ 4267, 4324 ],
}],
['OS=="android"', {
'sources!': [
'animation/throb_animation.cc',
'display_observer.cc',
'selection_model.cc',
],
'dependencies': [
'gfx_jni_headers',
],
'link_settings': {
'libraries': [
'-landroid',
'-ljnigraphics',
],
},
}],
['use_aura==0 and toolkit_views==0', {
'sources!': [
'nine_image_painter.cc',
'nine_image_painter.h',
],
}],
['OS=="android" and use_aura==0', {
'sources!': [
'path.cc',
],
}],
['OS=="android" and use_aura==1', {
'sources!': [
'screen_android.cc',
],
}],
['OS=="android" and android_webview_build==0', {
'dependencies': [
'<(DEPTH)/base/base.gyp:base_java',
],
}],
['OS=="android" or OS=="ios"', {
'sources!': [
'render_text.cc',
'render_text.h',
'render_text_harfbuzz.cc',
'render_text_harfbuzz.h',
'text_utils_skia.cc',
],
}],
['use_x11==1', {
'dependencies': [
'../../build/linux/system.gyp:x11',
'x/gfx_x11.gyp:gfx_x11',
],
}],
['use_pango==1', {
'dependencies': [
'<(DEPTH)/build/linux/system.gyp:pangocairo',
],
'sources!': [
'platform_font_ozone.cc',
'render_text_ozone.cc',
],
}],
['desktop_linux==1 or chromeos==1', {
'dependencies': [
# font_render_params_linux.cc uses fontconfig
'<(DEPTH)/build/linux/system.gyp:fontconfig',
],
}],
],
'target_conditions': [
# Need 'target_conditions' to override default filename_rules to include
# the file on iOS.
['OS == "ios"', {
'sources/': [
['include', '^scoped_cg_context_save_gstate_mac\\.h$'],
],
}],
],
},
{
'target_name': 'gfx_test_support',
'type': 'static_library',
'sources': [
'image/image_unittest_util.cc',
'image/image_unittest_util.h',
'image/image_unittest_util_ios.mm',
'image/image_unittest_util_mac.mm',
'test/fontconfig_util_linux.cc',
'test/fontconfig_util_linux.h',
'test/gfx_util.cc',
'test/gfx_util.h',
'test/ui_cocoa_test_helper.h',
'test/ui_cocoa_test_helper.mm',
],
'dependencies': [
'../../base/base.gyp:base',
'../../skia/skia.gyp:skia',
'../../testing/gtest.gyp:gtest',
],
'conditions': [
['OS == "mac"', {
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
],
},
}],
['OS=="ios"', {
# The cocoa files don't apply to iOS.
'sources/': [
['exclude', 'cocoa']
],
}],
['OS=="linux"', {
'dependencies': [
'../../build/linux/system.gyp:fontconfig',
],
}],
],
},
],
'conditions': [
['OS=="android"' , {
'targets': [
{
'target_name': 'gfx_jni_headers',
'type': 'none',
'sources': [
'../android/java/src/org/chromium/ui/gfx/BitmapHelper.java',
'../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java',
'../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java',
],
'variables': {
'jni_gen_package': 'ui/gfx',
},
'includes': [ '../../build/jni_generator.gypi' ],
},
],
}],
],
}
|
{'variables': {'chromium_code': 1}, 'targets': [{'target_name': 'gfx_geometry', 'type': '<(component)', 'dependencies': ['<(DEPTH)/base/base.gyp:base'], 'defines': ['GFX_IMPLEMENTATION'], 'sources': ['geometry/box_f.cc', 'geometry/box_f.h', 'geometry/cubic_bezier.h', 'geometry/cubic_bezier.cc', 'geometry/insets.cc', 'geometry/insets.h', 'geometry/insets_base.h', 'geometry/insets_f.cc', 'geometry/insets_f.h', 'geometry/matrix3_f.cc', 'geometry/matrix3_f.h', 'geometry/point.cc', 'geometry/point.h', 'geometry/point3_f.cc', 'geometry/point3_f.h', 'geometry/point_conversions.cc', 'geometry/point_conversions.h', 'geometry/point_f.cc', 'geometry/point_f.h', 'geometry/quad_f.cc', 'geometry/quad_f.h', 'geometry/rect.cc', 'geometry/rect.h', 'geometry/rect_conversions.cc', 'geometry/rect_conversions.h', 'geometry/rect_f.cc', 'geometry/rect_f.h', 'geometry/r_tree.h', 'geometry/r_tree_base.cc', 'geometry/r_tree_base.h', 'geometry/safe_integer_conversions.h', 'geometry/scroll_offset.cc', 'geometry/scroll_offset.h', 'geometry/size.cc', 'geometry/size.h', 'geometry/size_conversions.cc', 'geometry/size_conversions.h', 'geometry/size_f.cc', 'geometry/size_f.h', 'geometry/vector2d.cc', 'geometry/vector2d.h', 'geometry/vector2d_conversions.cc', 'geometry/vector2d_conversions.h', 'geometry/vector2d_f.cc', 'geometry/vector2d_f.h', 'geometry/vector3d_f.cc', 'geometry/vector3d_f.h'], 'includes': ['../../build/android/increase_size_for_speed.gypi']}, {'target_name': 'gfx', 'type': '<(component)', 'dependencies': ['<(DEPTH)/base/base.gyp:base', '<(DEPTH)/base/base.gyp:base_i18n', '<(DEPTH)/base/base.gyp:base_static', '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', '<(DEPTH)/skia/skia.gyp:skia', '<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng', '<(DEPTH)/third_party/icu/icu.gyp:icui18n', '<(DEPTH)/third_party/icu/icu.gyp:icuuc', '<(DEPTH)/third_party/libpng/libpng.gyp:libpng', '<(DEPTH)/third_party/zlib/zlib.gyp:zlib', 'gfx_geometry'], 'export_dependent_settings': ['<(DEPTH)/skia/skia.gyp:skia', '<(DEPTH)/third_party/icu/icu.gyp:icui18n', '<(DEPTH)/third_party/icu/icu.gyp:icuuc'], 'defines': ['GFX_IMPLEMENTATION'], 'include_dirs': ['<(DEPTH)/third_party/icu/source/common'], 'sources': ['android/device_display_info.cc', 'android/device_display_info.h', 'android/gfx_jni_registrar.cc', 'android/gfx_jni_registrar.h', 'android/java_bitmap.cc', 'android/java_bitmap.h', 'android/shared_device_display_info.cc', 'android/shared_device_display_info.h', 'android/view_configuration.cc', 'android/view_configuration.h', 'animation/animation.cc', 'animation/animation.h', 'animation/animation_container.cc', 'animation/animation_container.h', 'animation/animation_container_element.h', 'animation/animation_container_observer.h', 'animation/animation_delegate.h', 'animation/linear_animation.cc', 'animation/linear_animation.h', 'animation/multi_animation.cc', 'animation/multi_animation.h', 'animation/slide_animation.cc', 'animation/slide_animation.h', 'animation/throb_animation.cc', 'animation/throb_animation.h', 'animation/tween.cc', 'animation/tween.h', 'break_list.h', 'canvas.cc', 'canvas.h', 'canvas_notimplemented.cc', 'canvas_paint_mac.h', 'canvas_paint_mac.mm', 'canvas_paint_win.cc', 'canvas_paint_win.h', 'canvas_skia.cc', 'canvas_skia_paint.h', 'codec/jpeg_codec.cc', 'codec/jpeg_codec.h', 'codec/png_codec.cc', 'codec/png_codec.h', 'color_utils.cc', 'color_utils.h', 'display.cc', 'display.h', 'display_change_notifier.cc', 'display_change_notifier.h', 'display_observer.cc', 'display_observer.h', 'font.cc', 'font.h', 'font_fallback.h', 'font_fallback_linux.cc', 'font_fallback_mac.cc', 'font_fallback_win.cc', 'font_fallback_win.h', 'font_list.cc', 'font_list.h', 'font_list_impl.cc', 'font_list_impl.h', 'font_render_params.cc', 'font_render_params.h', 'font_render_params_android.cc', 'font_render_params_linux.cc', 'font_render_params_mac.cc', 'font_render_params_win.cc', 'frame_time.h', 'gfx_export.h', 'gfx_paths.cc', 'gfx_paths.h', 'gpu_memory_buffer.cc', 'gpu_memory_buffer.h', 'image/canvas_image_source.cc', 'image/canvas_image_source.h', 'image/image.cc', 'image/image.h', 'image/image_family.cc', 'image/image_family.h', 'image/image_ios.mm', 'image/image_mac.mm', 'image/image_png_rep.cc', 'image/image_png_rep.h', 'image/image_skia.cc', 'image/image_skia.h', 'image/image_skia_operations.cc', 'image/image_skia_operations.h', 'image/image_skia_rep.cc', 'image/image_skia_rep.h', 'image/image_skia_source.h', 'image/image_skia_util_ios.h', 'image/image_skia_util_ios.mm', 'image/image_skia_util_mac.h', 'image/image_skia_util_mac.mm', 'image/image_util.cc', 'image/image_util.h', 'image/image_util_ios.mm', 'interpolated_transform.cc', 'interpolated_transform.h', 'linux_font_delegate.cc', 'linux_font_delegate.h', 'mac/coordinate_conversion.h', 'mac/coordinate_conversion.mm', 'mac/scoped_ns_disable_screen_updates.h', 'native_widget_types.h', 'nine_image_painter.cc', 'nine_image_painter.h', 'overlay_transform.h', 'pango_util.cc', 'pango_util.h', 'path.cc', 'path.h', 'path_aura.cc', 'path_win.cc', 'path_win.h', 'path_x11.cc', 'path_x11.h', 'platform_font.h', 'platform_font_android.cc', 'platform_font_ios.h', 'platform_font_ios.mm', 'platform_font_mac.h', 'platform_font_mac.mm', 'platform_font_ozone.cc', 'platform_font_pango.cc', 'platform_font_pango.h', 'platform_font_win.cc', 'platform_font_win.h', 'range/range.cc', 'range/range.h', 'range/range_mac.mm', 'range/range_win.cc', 'render_text.cc', 'render_text.h', 'render_text_harfbuzz.cc', 'render_text_harfbuzz.h', 'render_text_mac.cc', 'render_text_mac.h', 'render_text_ozone.cc', 'render_text_pango.cc', 'render_text_pango.h', 'render_text_win.cc', 'render_text_win.h', 'scoped_canvas.h', 'scoped_cg_context_save_gstate_mac.h', 'scoped_ns_graphics_context_save_gstate_mac.h', 'scoped_ns_graphics_context_save_gstate_mac.mm', 'screen.cc', 'screen.h', 'screen_android.cc', 'screen_aura.cc', 'screen_ios.mm', 'screen_mac.mm', 'screen_win.cc', 'screen_win.h', 'scrollbar_size.cc', 'scrollbar_size.h', 'selection_model.cc', 'selection_model.h', 'sequential_id_generator.cc', 'sequential_id_generator.h', 'shadow_value.cc', 'shadow_value.h', 'skbitmap_operations.cc', 'skbitmap_operations.h', 'skia_util.cc', 'skia_util.h', 'switches.cc', 'switches.h', 'sys_color_change_listener.cc', 'sys_color_change_listener.h', 'text_constants.h', 'text_elider.cc', 'text_elider.h', 'text_utils.cc', 'text_utils.h', 'text_utils_android.cc', 'text_utils_ios.mm', 'text_utils_skia.cc', 'transform.cc', 'transform.h', 'transform_util.cc', 'transform_util.h', 'ui_gfx_exports.cc', 'utf16_indexing.cc', 'utf16_indexing.h', 'vsync_provider.h', 'win/direct_write.cc', 'win/direct_write.h', 'win/dpi.cc', 'win/dpi.h', 'win/hwnd_util.cc', 'win/hwnd_util.h', 'win/scoped_set_map_mode.h', 'win/singleton_hwnd.cc', 'win/singleton_hwnd.h', 'win/window_impl.cc', 'win/window_impl.h'], 'includes': ['../../build/android/increase_size_for_speed.gypi'], 'conditions': [['OS=="ios"', {'dependencies': ['<(DEPTH)/ui/ios/ui_ios.gyp:ui_ios'], 'sources/': [['exclude', '^codec/jpeg_codec\\.cc$']]}, {'dependencies': ['<(libjpeg_gyp_path):libjpeg']}], ['use_canvas_skia==1', {'sources!': ['canvas_notimplemented.cc']}, {'sources!': ['canvas_skia.cc']}], ['OS=="win"', {'sources': ['gdi_util.cc', 'gdi_util.h', 'icon_util.cc', 'icon_util.h'], 'msvs_disabled_warnings': [4267, 4324]}], ['OS=="android"', {'sources!': ['animation/throb_animation.cc', 'display_observer.cc', 'selection_model.cc'], 'dependencies': ['gfx_jni_headers'], 'link_settings': {'libraries': ['-landroid', '-ljnigraphics']}}], ['use_aura==0 and toolkit_views==0', {'sources!': ['nine_image_painter.cc', 'nine_image_painter.h']}], ['OS=="android" and use_aura==0', {'sources!': ['path.cc']}], ['OS=="android" and use_aura==1', {'sources!': ['screen_android.cc']}], ['OS=="android" and android_webview_build==0', {'dependencies': ['<(DEPTH)/base/base.gyp:base_java']}], ['OS=="android" or OS=="ios"', {'sources!': ['render_text.cc', 'render_text.h', 'render_text_harfbuzz.cc', 'render_text_harfbuzz.h', 'text_utils_skia.cc']}], ['use_x11==1', {'dependencies': ['../../build/linux/system.gyp:x11', 'x/gfx_x11.gyp:gfx_x11']}], ['use_pango==1', {'dependencies': ['<(DEPTH)/build/linux/system.gyp:pangocairo'], 'sources!': ['platform_font_ozone.cc', 'render_text_ozone.cc']}], ['desktop_linux==1 or chromeos==1', {'dependencies': ['<(DEPTH)/build/linux/system.gyp:fontconfig']}]], 'target_conditions': [['OS == "ios"', {'sources/': [['include', '^scoped_cg_context_save_gstate_mac\\.h$']]}]]}, {'target_name': 'gfx_test_support', 'type': 'static_library', 'sources': ['image/image_unittest_util.cc', 'image/image_unittest_util.h', 'image/image_unittest_util_ios.mm', 'image/image_unittest_util_mac.mm', 'test/fontconfig_util_linux.cc', 'test/fontconfig_util_linux.h', 'test/gfx_util.cc', 'test/gfx_util.h', 'test/ui_cocoa_test_helper.h', 'test/ui_cocoa_test_helper.mm'], 'dependencies': ['../../base/base.gyp:base', '../../skia/skia.gyp:skia', '../../testing/gtest.gyp:gtest'], 'conditions': [['OS == "mac"', {'link_settings': {'libraries': ['$(SDKROOT)/System/Library/Frameworks/AppKit.framework']}}], ['OS=="ios"', {'sources/': [['exclude', 'cocoa']]}], ['OS=="linux"', {'dependencies': ['../../build/linux/system.gyp:fontconfig']}]]}], 'conditions': [['OS=="android"', {'targets': [{'target_name': 'gfx_jni_headers', 'type': 'none', 'sources': ['../android/java/src/org/chromium/ui/gfx/BitmapHelper.java', '../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java', '../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java'], 'variables': {'jni_gen_package': 'ui/gfx'}, 'includes': ['../../build/jni_generator.gypi']}]}]]}
|
#!/usr/bin/env python3
# ex6: String and Text
# Assign the string with 10 replacing the formatting character to variable 'x'
x = "There are %d types of people." % 10
# Assign the string with "binary" to variable 'binary'
binary = "binary"
# Assign the string with "don't" to variable 'do_not'
do_not = "don't"
# Assign the string with 'binary' and 'do_not' replacing the
# formatting character to variable 'y'
y = "Those who know %s and those who %s." % (binary, do_not) # Two strings inside of a string
# Print "There are 10 types of people."
print(x)
# Print "Those who know binary and those who don't."
print(y)
# Print "I said 'There are 10 types of people.'"
print("I said %r." % x) # One string inside of a string
# Print "I also said: 'Those who know binary and those who don't.'."
print("I also said: '%s'." % y) # One string inside of a string
# Assign boolean False to variable 'hilarious'
hilarious = False
# Assign the string with an unevaluated formatting character to 'joke_evaluation'
joke_evaluation = "Isn't that joke so funny?! %r"
# Print "Isn't that joke so funny?! False"
print(joke_evaluation % hilarious) # One string inside of a string
# Assign string to 'w'
w = "This is the left side of..."
# Assign string to 'e'
e = "a string with a right side."
# Print "This is the left side of...a string with a right side."
print(w + e) # Concatenate two strings with + operator
|
x = 'There are %d types of people.' % 10
binary = 'binary'
do_not = "don't"
y = 'Those who know %s and those who %s.' % (binary, do_not)
print(x)
print(y)
print('I said %r.' % x)
print("I also said: '%s'." % y)
hilarious = False
joke_evaluation = "Isn't that joke so funny?! %r"
print(joke_evaluation % hilarious)
w = 'This is the left side of...'
e = 'a string with a right side.'
print(w + e)
|
class QolsysException(Exception):
pass
class QolsysGwConfigIncomplete(QolsysException):
pass
class QolsysGwConfigError(QolsysException):
pass
class UnableToParseEventException(QolsysException):
pass
class UnknownQolsysControlException(QolsysException):
pass
class UnknownQolsysEventException(QolsysException):
pass
class UnknownQolsysSensorException(QolsysException):
pass
class MissingUserCodeException(QolsysException):
pass
class InvalidUserCodeException(QolsysException):
pass
|
class Qolsysexception(Exception):
pass
class Qolsysgwconfigincomplete(QolsysException):
pass
class Qolsysgwconfigerror(QolsysException):
pass
class Unabletoparseeventexception(QolsysException):
pass
class Unknownqolsyscontrolexception(QolsysException):
pass
class Unknownqolsyseventexception(QolsysException):
pass
class Unknownqolsyssensorexception(QolsysException):
pass
class Missingusercodeexception(QolsysException):
pass
class Invalidusercodeexception(QolsysException):
pass
|
## 3. Read the File Into a String ##
f = open("dq_unisex_names.csv", 'r')
names = f.read();
## 4. Convert the String to a List ##
f = open('dq_unisex_names.csv', 'r')
names = f.read()
names_list = names.split('\n')
first_five = names_list[0:5]
print(first_five)
## 5. Convert the List of Strings to a List of Lists ##
f = open('dq_unisex_names.csv', 'r')
names = f.read()
names_list = names.split('\n')
nested_list = []
for name in names_list:
nested_list.append(name.split(','))
print(nested_list[0:5])
## 6. Convert Numerical Values ##
print(nested_list[0:5])
numerical_list = []
for ele in nested_list:
numerical_list.append([ele[0], float(ele[1])])
## 7. Filter the List ##
# The last value is ~100 people
numerical_list[len(numerical_list)-1]
thousand_or_greater = []
for ele in numerical_list:
if ele[1] >= 1000:
thousand_or_greater.append(ele[0])
print(thousand_or_greater[0:10])
|
f = open('dq_unisex_names.csv', 'r')
names = f.read()
f = open('dq_unisex_names.csv', 'r')
names = f.read()
names_list = names.split('\n')
first_five = names_list[0:5]
print(first_five)
f = open('dq_unisex_names.csv', 'r')
names = f.read()
names_list = names.split('\n')
nested_list = []
for name in names_list:
nested_list.append(name.split(','))
print(nested_list[0:5])
print(nested_list[0:5])
numerical_list = []
for ele in nested_list:
numerical_list.append([ele[0], float(ele[1])])
numerical_list[len(numerical_list) - 1]
thousand_or_greater = []
for ele in numerical_list:
if ele[1] >= 1000:
thousand_or_greater.append(ele[0])
print(thousand_or_greater[0:10])
|
def main():
x_coords = []
x_lines = ["side 1 G", "side 1 5", "side 1 10", "side 1 15", "side 1 20", "side 1 25", "side 1 30", "side 1 35",
"side 1 40", "side 1 45", "50", "side 2 45", "side 2 40", "side 2 35", "side 2 30", "side 2 25",
"side 2 20", "side 2 15", "side 2 10", "side 2 5", "side 2 G"]
for i, line in enumerate(x_lines):
if i < 10:
if i > 0:
x_coords += ["{0} outside the {1}".format(x, line) for x in range(4, 0, -1)]
x_coords.append("on the {0}".format(line))
x_coords += ["{0} inside the {1}".format(x, line) for x in range(1, 4)]
elif i == 10:
x_coords += ["{0} outside the {1} on side 1".format(x, line) for x in range(4, 0, -1)]
x_coords.append("on the {0}".format(line))
x_coords += ["{0} outside the {1} on side 2".format(x, line) for x in range(1, 5)]
else:
x_coords += ["{0} inside the {1}".format(x, line) for x in range(3, 0, -1)]
x_coords.append("on the {0}".format(line))
if i + 1 < len(x_lines):
x_coords += ["{0} outside the {1}".format(x, line) for x in range(1, 5)]
y_coords = []
y_coords.append("on the front sideline")
y_coords += ["{0} behind the front sideline".format(x) for x in range(1, 50)]
y_coords += ["{0} in front of the front hash".format(x) for x in range(50, 0, -1)]
y_coords.append("on the front hash")
y_coords += ["{0} behind the front hash".format(x) for x in range(1, 50)]
y_coords += ["{0} in front of the back hash".format(x) for x in range(50, 0, -1)]
y_coords.append("on the back hash")
y_coords += ["{0} behind the back hash".format(x) for x in range(1, 50)]
y_coords += ["{0} in front of the back sideline".format(x) for x in range(50, 0, -1)]
y_coords.append("on the back sideline")
output = ""
for x in x_coords:
for y in y_coords:
output += "{0}, {1}. \n".format(x, y)
with open("output.txt", "w") as out:
out.write(output)
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
main()
# See PyCharm help at https://www.jetbrains.com/help/pycharm/
|
def main():
x_coords = []
x_lines = ['side 1 G', 'side 1 5', 'side 1 10', 'side 1 15', 'side 1 20', 'side 1 25', 'side 1 30', 'side 1 35', 'side 1 40', 'side 1 45', '50', 'side 2 45', 'side 2 40', 'side 2 35', 'side 2 30', 'side 2 25', 'side 2 20', 'side 2 15', 'side 2 10', 'side 2 5', 'side 2 G']
for (i, line) in enumerate(x_lines):
if i < 10:
if i > 0:
x_coords += ['{0} outside the {1}'.format(x, line) for x in range(4, 0, -1)]
x_coords.append('on the {0}'.format(line))
x_coords += ['{0} inside the {1}'.format(x, line) for x in range(1, 4)]
elif i == 10:
x_coords += ['{0} outside the {1} on side 1'.format(x, line) for x in range(4, 0, -1)]
x_coords.append('on the {0}'.format(line))
x_coords += ['{0} outside the {1} on side 2'.format(x, line) for x in range(1, 5)]
else:
x_coords += ['{0} inside the {1}'.format(x, line) for x in range(3, 0, -1)]
x_coords.append('on the {0}'.format(line))
if i + 1 < len(x_lines):
x_coords += ['{0} outside the {1}'.format(x, line) for x in range(1, 5)]
y_coords = []
y_coords.append('on the front sideline')
y_coords += ['{0} behind the front sideline'.format(x) for x in range(1, 50)]
y_coords += ['{0} in front of the front hash'.format(x) for x in range(50, 0, -1)]
y_coords.append('on the front hash')
y_coords += ['{0} behind the front hash'.format(x) for x in range(1, 50)]
y_coords += ['{0} in front of the back hash'.format(x) for x in range(50, 0, -1)]
y_coords.append('on the back hash')
y_coords += ['{0} behind the back hash'.format(x) for x in range(1, 50)]
y_coords += ['{0} in front of the back sideline'.format(x) for x in range(50, 0, -1)]
y_coords.append('on the back sideline')
output = ''
for x in x_coords:
for y in y_coords:
output += '{0}, {1}. \n'.format(x, y)
with open('output.txt', 'w') as out:
out.write(output)
if __name__ == '__main__':
main()
|
def main():
arr = []
while True:
arr.append(1)
if len(arr) >= 10:
break
return None
if __name__ == "__main__":
main()
|
def main():
arr = []
while True:
arr.append(1)
if len(arr) >= 10:
break
return None
if __name__ == '__main__':
main()
|
enums = {
'AcpAmplitudeCorrectionType': {
'values': [
{
'documentation': {
'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.'
},
'name': 'RF_CENTER_FREQUENCY',
'value': 0
},
{
'documentation': {
'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.'
},
'name': 'SPECTRUM_FREQUENCY_BIN',
'value': 1
}
]
},
'AcpAveragingEnabled': {
'values': [
{
'documentation': {
'description': ' The measurement is performed on a single acquisition.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The ACP measurement uses the RFMXSPECAN_ATTR_ACP_AVERAGING_COUNT attribute as the number of acquisitions over which the ACP measurement is averaged. '
},
'name': 'TRUE',
'value': 1
}
]
},
'AcpAveragingType': {
'values': [
{
'documentation': {
'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. '
},
'name': 'RMS',
'value': 0
},
{
'documentation': {
'description': ' The power spectrum is averaged in a logarithmic scale.'
},
'name': 'LOG',
'value': 1
},
{
'documentation': {
'description': ' The square root of the power spectrum is averaged.'
},
'name': 'SCALAR',
'value': 2
},
{
'documentation': {
'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.'
},
'name': 'MAXIMUM',
'value': 3
},
{
'documentation': {
'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. '
},
'name': 'MINIMUM',
'value': 4
}
]
},
'AcpCarrierMode': {
'values': [
{
'documentation': {
'description': ' The carrier power is not considered as part of the total carrier power.'
},
'name': 'PASSIVE',
'value': 0
},
{
'documentation': {
'description': ' The carrier power is considered as part of the total carrier power.'
},
'name': 'ACTIVE',
'value': 1
}
]
},
'AcpCarrierRrcFilterEnabled': {
'values': [
{
'documentation': {
'description': ' The channel power of the acquired carrier channel is measured directly.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The measurement applies the RRC filter on the acquired carrier channel before measuring the carrier channel power.'
},
'name': 'TRUE',
'value': 1
}
]
},
'AcpFftOverlapMode': {
'values': [
{
'documentation': {
'description': ' Disables the overlap between the chunks.'
},
'name': 'DISABLED',
'value': 0
},
{
'documentation': {
'description': ' Measurement sets the overlap based on the value you have set for the RFMXSPECAN_ATTR_ACP_FFT_WINDOW attribute. When you set the RFMXSPECAN_ATTR_ACP_FFT_WINDOW attribute to any value other than RFMXSPECAN_VAL_ACP_FFT_WINDOW_NONE, the number of overlapped samples between consecutive chunks is set to 50% of the value of the RFMXSPECAN_ATTR_ACP_SEQUENTIAL_FFT_SIZE attribute. When you set the RFMXSPECAN_ATTR_ACP_FFT_WINDOW attribute to RFMXSPECAN_VAL_ACP_FFT_WINDOW_NONE, the chunks are not overlapped and the overlap is set to 0%.'
},
'name': 'AUTOMATIC',
'value': 1
},
{
'documentation': {
'description': ' Measurement uses the overlap that you specify in the RFMXSPECAN_ATTR_ACP_FFT_OVERLAP attribute.'
},
'name': 'USER_DEFINED',
'value': 2
}
]
},
'AcpFftWindow': {
'values': [
{
'documentation': {
'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes.'
},
'name': 'NONE',
'value': 0
},
{
'documentation': {
'description': ' Measures single-tone amplitudes accurately.'
},
'name': 'FLAT_TOP',
'value': 1
},
{
'documentation': {
'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.'
},
'name': 'HANNING',
'value': 2
},
{
'documentation': {
'description': ' Analyzes closely-spaced sine waves.'
},
'name': 'HAMMING',
'value': 3
},
{
'documentation': {
'description': ' Provides a good balance of spectral leakage, frequency resolution, and amplitude attenuation. Hence, this windowing is useful for time-frequency analysis.'
},
'name': 'GAUSSIAN',
'value': 4
},
{
'documentation': {
'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. '
},
'name': 'BLACKMAN',
'value': 5
},
{
'documentation': {
'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. '
},
'name': 'BLACKMAN_HARRIS',
'value': 6
},
{
'documentation': {
'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes.'
},
'name': 'KAISER_BESSEL',
'value': 7
}
]
},
'AcpIFOutputPowerOffsetAuto': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'AcpMeasurementMethod': {
'values': [
{
'documentation': {
'description': ' The ACP measurement acquires the spectrum using the same signal analyzer setting across frequency bands. Use this method when measurement speed is desirable over higher dynamic range. '
},
'name': 'NORMAL',
'value': 0
},
{
'documentation': {
'description': ' The ACP measurement acquires the spectrum using the hardware-specific optimizations for different frequency bands. Use this method to get the best dynamic range.\n\n Supported devices: PXIe-5665/5668'
},
'name': 'DYNAMIC_RANGE',
'value': 1
},
{
'documentation': {
'description': ' The ACP measurement acquires I/Q samples for a duration specified by the RFMXSPECAN_ATTR_ACP_SWEEP_TIME_INTERVAL attribute. These samples are divided into smaller chunks. The size of each chunk is defined by the RFMXSPECAN_ATTR_ACP_SEQUENTIAL_FFT_SIZE attribute. The overlap between the chunks is defined by the RFMXSPECAN_ATTR_ACP_FFT_OVERLAP_MODE attribute. FFT is computed on each of these chunks. The resultant FFTs are averaged to get the spectrum and is used to compute ACP. If the total acquired samples is not an integer multiple of the FFT size, the remaining samples at the end of acquisition are not used for the measurement. Use this method to optimize ACP measurement speed. Accuracy of the results may be reduced when using this measurement method.'
},
'name': 'SEQUENTIAL_FFT',
'value': 2
}
]
},
'AcpMeasurementMode': {
'values': [
{
'documentation': {
'description': ' ACP measurement is performed on the acquired signal. '
},
'name': 'MEASURE',
'value': 0
},
{
'documentation': {
'description': ' Manual noise calibration of the signal analyzer is performed for the ACP measurement.'
},
'name': 'CALIBRATE_NOISE_FLOOR',
'value': 1
}
]
},
'AcpNoiseCalibrationAveragingAuto': {
'values': [
{
'documentation': {
'description': ' RFmx uses the averages that you set for the RFMXSPECAN_ATTR_ACP_NOISE_CALIBRATION_AVERAGING_COUNT attribute.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' When you set the RFMXSPECAN_ATTR_ACP_MEASUREMENT_METHOD attribute to RFMXSPECAN_VAL_ACP_MEASUREMENT_METHOD_NORMAL, RFmx uses a noise calibration averaging count of 32. When you set the RFMXSPECAN_ATTR_ACP_MEASUREMENT_METHOD attribute to RFMXSPECAN_VAL_ACP_MEASUREMENT_METHOD_DYNAMIC_RANGE and the sweep time is less than 5 ms, RFmx uses a noise calibration averaging count of 15. When you set the RFMXSPECAN_ATTR_ACP_MEASUREMENT_METHOD attribute to RFMXSPECAN_VAL_ACP_MEASUREMENT_METHOD_DYNAMIC_RANGE and the sweep time is greater than or equal to 5 ms, RFmx uses a noise calibration averaging count of 5.'
},
'name': 'TRUE',
'value': 1
}
]
},
'AcpNoiseCalibrationDataValid': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'AcpNoiseCalibrationMode': {
'values': [
{
'documentation': {
'description': ' When you set the RFMXSPECAN_ATTR_ACP_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_ACP_MEASUREMENT_MODE_CALIBRATE_NOISE_FLOOR, you can initiate instrument noise calibration for the ACP measurement manually. When you set the RFMXSPECAN_ATTR_ACP_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_ACP_MEASUREMENT_MODE_MEASURE, you can initiate the ACP measurement manually.'
},
'name': 'MANUAL',
'value': 0
},
{
'documentation': {
'description': ' When you set the RFMXSPECAN_ATTR_ACP_NOISE_COMPENSATION_ENABLED to RFMXSPECAN_VAL_ACP_NOISE_COMPENSATION_ENABLED_TRUE, RFmx sets the Input Isolation Enabled attribute to Enabled and calibrates the instrument noise in the current state of the instrument. RFmx then resets the Input Isolation Enabled attribute and performs the ACP measurement, including compensation for noise of the instrument. RFmx skips noise calibration in this mode if valid noise calibration data is already cached. When you set the RFMXSPECAN_ATTR_ACP_NOISE_COMPENSATION_ENABLED attribute to RFMXSPECAN_VAL_ACP_NOISE_COMPENSATION_ENABLED_FALSE, RFmx does not calibrate instrument noise and only performs the ACP measurement without compensating for noise of the instrument.'
},
'name': 'AUTO',
'value': 1
}
]
},
'AcpNoiseCompensationEnabled': {
'values': [
{
'documentation': {
'description': ' Disables noise compensation.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables noise compensation.'
},
'name': 'TRUE',
'value': 1
}
]
},
'AcpNoiseCompensationType': {
'values': [
{
'documentation': {
'description': ' Compensates for noise from the analyzer and the 50-ohm termination. The measured power values are in excess of the thermal noise floor.'
},
'name': 'ANALYZER_AND_TERMINATION',
'value': 0
},
{
'documentation': {
'description': ' Compensates for the analyzer noise only.'
},
'name': 'ANALYZER_ONLY',
'value': 1
}
]
},
'AcpOffsetEnabled': {
'values': [
{
'documentation': {
'description': ' Disables the offset channel for ACP measurement.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables the offset channel for ACP measurement.'
},
'name': 'TRUE',
'value': 1
}
]
},
'AcpOffsetFrequencyDefinition': {
'values': [
{
'documentation': {
'description': ' The offset frequency is defined from the center of the closest carrier to the center of the offset channel.'
},
'name': 'CARRIER_CENTER_TO_OFFSET_CENTER',
'value': 0
},
{
'documentation': {
'description': ' The offset frequency is defined from the center of the closest carrier to the nearest edge of the offset channel.'
},
'name': 'CARRIER_CENTER_TO_OFFSET_EDGE',
'value': 1
}
]
},
'AcpOffsetPowerReferenceCarrier': {
'values': [
{
'documentation': {
'description': ' The measurement uses the power measured in the carrier closest to the offset channel center frequency, as the power reference.'
},
'name': 'CLOSEST',
'value': 0
},
{
'documentation': {
'description': ' The measurement uses the highest power measured among all the active carriers as the power reference.'
},
'name': 'HIGHEST',
'value': 1
},
{
'documentation': {
'description': ' The measurement uses the sum of powers measured in all the active carriers as the power reference.'
},
'name': 'COMPOSITE',
'value': 2
},
{
'documentation': {
'description': ' The measurement uses the power measured in the carrier that has an index specified by the RFMXSPECAN_ATTR_ACP_OFFSET_POWER_REFERENCE_SPECIFIC attribute, as the power reference.'
},
'name': 'SPECIFIC',
'value': 3
}
]
},
'AcpOffsetRrcFilterEnabled': {
'values': [
{
'documentation': {
'description': ' The channel power of the acquired offset channel is measured directly.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The measurement applies the RRC filter on the acquired offset channel before measuring the offset channel power.'
},
'name': 'TRUE',
'value': 1
}
]
},
'AcpOffsetSideband': {
'values': [
{
'documentation': {
'description': ' Configures a lower offset segment to the left of the leftmost carrier. '
},
'name': 'NEGATIVE',
'value': 0
},
{
'documentation': {
'description': ' Configures an upper offset segment to the right of the rightmost carrier. '
},
'name': 'POSITIVE',
'value': 1
},
{
'documentation': {
'description': ' Configures both negative and positive offset segments.'
},
'name': 'BOTH',
'value': 2
}
]
},
'AcpPowerUnits': {
'values': [
{
'documentation': {
'description': ' The absolute powers are reported in dBm.'
},
'name': 'DBM',
'value': 0
},
{
'documentation': {
'description': ' The absolute powers are reported in dBm/Hz.'
},
'name': 'DBM_PER_HZ',
'value': 1
}
]
},
'AcpRbwAutoBandwidth': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'AcpRbwFilterBandwidthDefinition': {
'values': [
{
'documentation': {
'description': ' Defines the RBW in terms of the 3dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_ACP_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_ACP_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3dB bandwidth of the window specified by the RFMXSPECAN_ATTR_ACP_FFT_WINDOW attribute.'
},
'name': '3_DB',
'value': 0
},
{
'documentation': {
'description': ' Defines the RBW in terms of the bin width of the spectrum computed using FFT when you set the RFMXSPECAN_ATTR_ACP_RBW_FILTER_TYPE attribute to FFT Based.'
},
'name': 'BIN_WIDTH',
'value': 2
}
]
},
'AcpRbwFilterType': {
'values': [
{
'documentation': {
'description': ' No RBW filtering is performed.'
},
'name': 'FFT_BASED',
'value': 0
},
{
'documentation': {
'description': ' An RBW filter with a Gaussian response is applied.'
},
'name': 'GAUSSIAN',
'value': 1
},
{
'documentation': {
'description': ' An RBW filter with a flat response is applied.'
},
'name': 'FLAT',
'value': 2
}
]
},
'AcpSweepTimeAuto': {
'values': [
{
'documentation': {
'description': ' The measurement uses the sweep time that you specify in the RFMXSPECAN_ATTR_ACP_SWEEP_TIME_INTERVAL attribute.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The measurement calculates the sweep time based on the value of the RFMXSPECAN_ATTR_ACP_RBW_FILTER_BANDWIDTH attribute.'
},
'name': 'TRUE',
'value': 1
}
]
},
'AmpmAMToAMCurveFitType': {
'values': [
{
'name': 'LEAST_SQUARE',
'value': 0
},
{
'name': 'LEAST_ABSOLUTE_RESIDUAL',
'value': 1
},
{
'name': 'BISQUARE',
'value': 2
}
]
},
'AmpmAMToAMEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'AmpmAMToPMCurveFitType': {
'values': [
{
'name': 'LEAST_SQUARE',
'value': 0
},
{
'name': 'LEAST_ABSOLUTE_RESIDUAL',
'value': 1
},
{
'name': 'BISQUARE',
'value': 2
}
]
},
'AmpmAMToPMEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'AmpmAutoCarrierDetectionEnabled': {
'values': [
{
'documentation': {
'description': ' Disables auto detection of carrier offset and carrier bandwidth.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables auto detection of carrier offset and carrier bandwidth.'
},
'name': 'TRUE',
'value': 1
}
]
},
'AmpmAveragingEnabled': {
'values': [
{
'documentation': {
'description': ' The measurement is performed on a single acquisition.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The AMPM measurement uses the RFMXSPECAN_ATTR_AMPM_AVERAGING_COUNT attribute as the number of acquisitions over which the signal for the AMPM measurement is averaged.'
},
'name': 'TRUE',
'value': 1
}
]
},
'AmpmCompressionPointEnabled': {
'values': [
{
'documentation': {
'description': ' Disables computation of compression points.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables computation of compression points.'
},
'name': 'TRUE',
'value': 1
}
]
},
'AmpmCompressionPointGainReference': {
'values': [
{
'documentation': {
'description': ' Measurement computes the gain reference to be used for compression point calculation. The computed gain reference is also returned as RFMXSPECAN_ATTR_AMPM_RESULTS_MEAN_LINEAR_GAIN result.'
},
'name': 'AUTO',
'value': 0
},
{
'documentation': {
'description': ' Measurement uses the gain corresponding to the reference power that you specify for the RFMXSPECAN_ATTR_AMPM_COMPRESSION_POINT_GAIN_REFERENCE_POWER attribute as gain reference. The reference power can be configured as either input or output power based on the value of the RFMXSPECAN_ATTR_AMPM_REFERENCE_POWER_TYPE attribute.'
},
'name': 'REFERENCE_POWER',
'value': 1
}
]
},
'AmpmEqualizerMode': {
'values': [
{
'documentation': {
'description': ' Equalization is not performed.'
},
'name': 'OFF',
'value': 0
},
{
'documentation': {
'description': ' The equalizer is turned on to compensate for the effect of the channel.'
},
'name': 'TRAIN',
'value': 1
}
]
},
'AmpmEvmEnabled': {
'values': [
{
'documentation': {
'description': ' Disables EVM computation. NaN is returned as Mean RMS EVM.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables EVM computation.'
},
'name': 'TRUE',
'value': 1
}
]
},
'AmpmFrequencyOffsetCorrectionEnabled': {
'values': [
{
'documentation': {
'description': ' The measurement does not perform frequency offset correction.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The measurement computes and corrects any frequency offset between the reference and the acquired waveforms.'
},
'name': 'TRUE',
'value': 1
}
]
},
'AmpmIQOriginOffsetCorrectionEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'AmpmMeasurementSampleRateMode': {
'values': [
{
'documentation': {
'description': ' The acquisition sample rate is defined by the value of the RFMXSPECAN_ATTR_AMPM_MEASUREMENT_SAMPLE_RATE attribute.'
},
'name': 'USER',
'value': 0
},
{
'documentation': {
'description': ' The acquisition sample rate is set to match the sample rate of the reference waveform.'
},
'name': 'REFERENCE_WAVEFORM',
'value': 1
}
]
},
'AmpmReferencePowerType': {
'values': [
{
'documentation': {
'description': ' The instantaneous powers at the input port of device under test (DUT) forms the x-axis of AM to AM and AM to PM traces.'
},
'name': 'INPUT',
'value': 0
},
{
'documentation': {
'description': ' The instantaneous powers at the output port of DUT forms the x-axis of AM to AM and AM to PM traces.'
},
'name': 'OUTPUT',
'value': 1
}
]
},
'AmpmReferenceWaveformIdleDurationPresent': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'AmpmSignalType': {
'values': [
{
'documentation': {
'description': ' The reference waveform is a cellular or connectivity standard signal.'
},
'name': 'MODULATED',
'value': 0
},
{
'documentation': {
'description': ' The reference waveform is a continuous signal comprising of one or more tones.'
},
'name': 'TONES',
'value': 1
}
]
},
'AmpmSynchronizationMethod': {
'values': [
{
'documentation': {
'description': ' Synchronizes the acquired and reference waveforms assuming that sample rate is sufficient to prevent aliasing in intermediate operations. This method is recommended when the measurement sampling rate is high.'
},
'name': 'DIRECT',
'value': 1
},
{
'documentation': {
'description': ' Synchronizes the acquired and reference waveforms while ascertaining that intermediate operations are not impacted by aliasing. This method is recommended for non-contiguous carriers separated by a large gap, and/or when the measurement sampling rate is low. Refer to AMPM concept help for more information.'
},
'name': 'ALIAS_PROTECTED',
'value': 2
}
]
},
'AmpmThresholdEnabled': {
'values': [
{
'documentation': {
'description': ' All samples are considered for the AMPM measurement.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Samples above the threshold level specified in the RFMXSPECAN_ATTR_AMPM_THRESHOLD_LEVEL attribute are considered for the AMPM measurement.'
},
'name': 'TRUE',
'value': 1
}
]
},
'AmpmThresholdType': {
'values': [
{
'documentation': {
'description': ' The threshold is relative to the peak power of the acquired samples.'
},
'name': 'RELATIVE',
'value': 0
},
{
'documentation': {
'description': ' The threshold is the absolute power, in dBm.'
},
'name': 'ABSOLUTE',
'value': 1
}
]
},
'Boolean': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'CcdfRbwFilterType': {
'values': [
{
'documentation': {
'description': ' The measurement does not use any RBW filtering.'
},
'name': 'NONE',
'value': 5
},
{
'documentation': {
'description': ' The RBW filter has a Gaussian response.'
},
'name': 'GAUSSIAN',
'value': 1
},
{
'documentation': {
'description': ' The RBW filter has a flat response.'
},
'name': 'FLAT',
'value': 2
},
{
'documentation': {
'description': ' The RRC filter with the roll-off specified by the RFMXSPECAN_ATTR_CCDF_RBW_FILTER_RRC_ALPHA attribute is used as the RBW filter.'
},
'name': 'RRC',
'value': 6
}
]
},
'CcdfThresholdEnabled': {
'values': [
{
'documentation': {
'description': ' All samples are considered for the CCDF measurement.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The samples above the threshold level specified in the RFMXSPECAN_ATTR_CCDF_THRESHOLD_LEVEL attribute are considered for the CCDF measurement.'
},
'name': 'TRUE',
'value': 1
}
]
},
'CcdfThresholdType': {
'values': [
{
'documentation': {
'description': ' The threshold is relative to the peak power of the acquired samples.'
},
'name': 'RELATIVE',
'value': 0
},
{
'documentation': {
'description': ' The threshold is the absolute power, in dBm.'
},
'name': 'ABSOLUTE',
'value': 1
}
]
},
'ChpAmplitudeCorrectionType': {
'values': [
{
'documentation': {
'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.'
},
'name': 'RF_CENTER_FREQUENCY',
'value': 0
},
{
'documentation': {
'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.'
},
'name': 'SPECTRUM_FREQUENCY_BIN',
'value': 1
}
]
},
'ChpAveragingEnabled': {
'values': [
{
'documentation': {
'description': ' The measurement is performed on a single acquisition.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The CHP measurement uses the RFMXSPECAN_ATTR_CHP_AVERAGING_COUNT attribute as the number of acquisitions over which the CHP measurement is averaged.'
},
'name': 'TRUE',
'value': 1
}
]
},
'ChpAveragingType': {
'values': [
{
'documentation': {
'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. '
},
'name': 'RMS',
'value': 0
},
{
'documentation': {
'description': ' The power spectrum is averaged in a logarithmic scale.'
},
'name': 'LOG',
'value': 1
},
{
'documentation': {
'description': ' The square root of the power spectrum is averaged.'
},
'name': 'SCALAR',
'value': 2
},
{
'documentation': {
'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.'
},
'name': 'MAXIMUM',
'value': 3
},
{
'documentation': {
'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. '
},
'name': 'MINIMUM',
'value': 4
}
]
},
'ChpCarrierRrcFilterEnabled': {
'values': [
{
'documentation': {
'description': ' The channel power of the acquired channel is measured directly.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The measurement applies the RRC filter on the acquired channel before measuring the channel power.'
},
'name': 'TRUE',
'value': 1
}
]
},
'ChpFftWindow': {
'values': [
{
'documentation': {
'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes. '
},
'name': 'NONE',
'value': 0
},
{
'documentation': {
'description': ' Measures single-tone amplitudes accurately.'
},
'name': 'FLAT_TOP',
'value': 1
},
{
'documentation': {
'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.'
},
'name': 'HANNING',
'value': 2
},
{
'documentation': {
'description': ' Analyzes closely-spaced sine waves.'
},
'name': 'HAMMING',
'value': 3
},
{
'documentation': {
'description': ' Provides a good balance of spectral leakage, frequency resolution, and amplitude attenuation. Hence, this windowing is useful for time-frequency analysis.'
},
'name': 'GAUSSIAN',
'value': 4
},
{
'documentation': {
'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. '
},
'name': 'BLACKMAN',
'value': 5
},
{
'documentation': {
'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. '
},
'name': 'BLACKMAN_HARRIS',
'value': 6
},
{
'documentation': {
'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes. '
},
'name': 'KAISER_BESSEL',
'value': 7
}
]
},
'ChpMeasurementMode': {
'values': [
{
'documentation': {
'description': ' CHP measurement is performed on the acquired signal.'
},
'name': 'MEASURE',
'value': 0
},
{
'documentation': {
'description': ' Manual noise calibration of the signal analyzer is performed for the CHP measurement.'
},
'name': 'CALIBRATE_NOISE_FLOOR',
'value': 1
}
]
},
'ChpNoiseCalibrationAveragingAuto': {
'values': [
{
'documentation': {
'description': ' RFmx uses the averages that you set for the RFMXSPECAN_ATTR_CHP_NOISE_CALIBRATION_AVERAGING_COUNT attribute. '
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' RFmx uses a noise calibration averaging count of 32.'
},
'name': 'TRUE',
'value': 1
}
]
},
'ChpNoiseCalibrationDataValid': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'ChpNoiseCalibrationMode': {
'values': [
{
'documentation': {
'description': ' When you set the RFMXSPECAN_ATTR_CHP_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_CHP_MEASUREMENT_MODE_CALIBRATE_NOISE_FLOOR, you can initiate instrument noise calibration for the CHP measurement manually. When you set the RFMXSPECAN_ATTR_CHP_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_CHP_MEASUREMENT_MODE_MEASURE, you can initiate the CHP measurement manually.'
},
'name': 'MANUAL',
'value': 0
},
{
'documentation': {
'description': ' When you set the RFMXSPECAN_ATTR_CHP_NOISE_COMPENSATION_ENABLED attribute to RFMXSPECAN_VAL_CHP_NOISE_COMPENSATION_ENABLED_TRUE, RFmx sets Input Isolation Enabled to Enabled and calibrates the intrument noise in the current state of the instrument. RFmx then resets the Input Isolation Enabled attribute and performs the CHP measurement, including compensation for noise of the instrument. RFmx skips noise calibration in this mode if valid noise calibration data is already cached. When you set the RFMXSPECAN_ATTR_CHP_NOISE_COMPENSATION_ENABLED attribute to RFMXSPECAN_VAL_CHP_NOISE_COMPENSATION_ENABLED_FALSE, RFmx does not calibrate instrument noise and performs only the CHP measurement without compensating for the noise contribution of the instrument.'
},
'name': 'AUTO',
'value': 1
}
]
},
'ChpNoiseCompensationEnabled': {
'values': [
{
'documentation': {
'description': ' Disables noise compensation.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables noise compensation.'
},
'name': 'TRUE',
'value': 1
}
]
},
'ChpNoiseCompensationType': {
'values': [
{
'documentation': {
'description': ' Compensates for noise from the analyzer and the 50 ohm termination. The measured power values are in excess of the thermal noise floor.'
},
'name': 'ANALYZER_AND_TERMINATION',
'value': 0
},
{
'documentation': {
'description': ' Compensates for the analyzer noise only.'
},
'name': 'ANALYZER_ONLY',
'value': 1
}
]
},
'ChpRbwAutoBandwidth': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'ChpRbwFilterBandwidthDefinition': {
'values': [
{
'documentation': {
'description': ' Defines the RBW in terms of the 3 dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_CHP_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_CHP_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3 dB bandwidth of the window specified by the RFMXSPECAN_ATTR_CHP_FFT_WINDOW attribute.'
},
'name': '3_DB',
'value': 0
},
{
'documentation': {
'description': ' Defines the RBW in terms of the spectrum bin width computed using an FFT when you set the RFMXSPECAN_ATTR_CHP_RBW_FILTER_TYPE attribute to FFT Based.'
},
'name': 'BIN_WIDTH',
'value': 2
}
]
},
'ChpRbwFilterType': {
'values': [
{
'documentation': {
'description': ' No RBW filtering is performed.'
},
'name': 'FFT_BASED',
'value': 0
},
{
'documentation': {
'description': ' An RBW filter with a Gaussian response is applied.'
},
'name': 'GAUSSIAN',
'value': 1
},
{
'documentation': {
'description': ' An RBW filter with a flat response is applied. '
},
'name': 'FLAT',
'value': 2
}
]
},
'ChpSweepTimeAuto': {
'values': [
{
'documentation': {
'description': ' The measurement uses the sweep time that you specify in the RFMXSPECAN_ATTR_CHP_SWEEP_TIME_INTERVAL attribute. '
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The measurement calculates the sweep time based on the value of the RFMXSPECAN_ATTR_CHP_RBW_FILTER_BANDWIDTH attribute.'
},
'name': 'TRUE',
'value': 1
}
]
},
'DigitalEdgeTriggerEdge': {
'values': [
{
'documentation': {
'description': ' The trigger asserts on the rising edge of the signal.'
},
'name': 'RISING_EDGE',
'value': 0
},
{
'documentation': {
'description': ' The trigger asserts on the falling edge of the signal.'
},
'name': 'FALLING_EDGE',
'value': 1
}
]
},
'DigitalEdgeTriggerSource': {
'generate-mappings': True,
'values': [
{
'documentation': {
'description': ' The trigger is received on PFI 0.'
},
'name': 'PFI0',
'value': 'PFI0'
},
{
'documentation': {
'description': ' The trigger is received on PFI 1.'
},
'name': 'PFI1',
'value': 'PFI1'
},
{
'documentation': {
'description': ' The trigger is received on PXI trigger line 0.'
},
'name': 'PXI_TRIG0',
'value': 'PXI_Trig0'
},
{
'documentation': {
'description': ' The trigger is received on PXI trigger line 1.'
},
'name': 'PXI_TRIG1',
'value': 'PXI_Trig1'
},
{
'documentation': {
'description': ' The trigger is received on PXI trigger line 2.'
},
'name': 'PXI_TRIG2',
'value': 'PXI_Trig2'
},
{
'documentation': {
'description': ' The trigger is received on PXI trigger line 3.'
},
'name': 'PXI_TRIG3',
'value': 'PXI_Trig3'
},
{
'documentation': {
'description': ' The trigger is received on PXI trigger line 4.'
},
'name': 'PXI_TRIG4',
'value': 'PXI_Trig4'
},
{
'documentation': {
'description': ' The trigger is received on PXI trigger line 5.'
},
'name': 'PXI_TRIG5',
'value': 'PXI_Trig5'
},
{
'documentation': {
'description': ' The trigger is received on PXI trigger line 6.'
},
'name': 'PXI_TRIG6',
'value': 'PXI_Trig6'
},
{
'documentation': {
'description': ' The trigger is received on PXI trigger line 7.'
},
'name': 'PXI_TRIG7',
'value': 'PXI_Trig7'
},
{
'documentation': {
'description': ' The trigger is received on the PXI star trigger line. '
},
'name': 'PXI_STAR',
'value': 'PXI_STAR'
},
{
'documentation': {
'description': ' The trigger is received on the PXIe DStar B trigger line. '
},
'name': 'PXIE_DSTARB',
'value': 'PXIe_DStarB'
},
{
'documentation': {
'description': ' The trigger is received from the timer event.'
},
'name': 'TIMER_EVENT',
'value': 'TimerEvent'
}
]
},
'DpdApplyDpdCfrEnabled': {
'values': [
{
'documentation': {
'description': ' Disables CFR. The maximum increase in PAPR, after pre-distortion, is limited to 6 dB.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables CFR.'
},
'name': 'TRUE',
'value': 1
}
]
},
'DpdApplyDpdCfrMethod': {
'values': [
{
'documentation': {
'description': ' Hard clips the signal such that the target PAPR is achieved.'
},
'name': 'CLIPPING',
'value': 0
},
{
'documentation': {
'description': ' Scales the peaks in the signal using weighted window function to get smooth peaks and achieve the target PAPR.'
},
'name': 'PEAK_WINDOWING',
'value': 1
},
{
'documentation': {
'description': ' Scales the peaks using modified sigmoid transfer function to get smooth peaks and achieve the target PAPR. This method does not support the filter operation.'
},
'name': 'SIGMOID',
'value': 2
}
]
},
'DpdApplyDpdCfrTargetPaprType': {
'values': [
{
'documentation': {
'description': ' Sets the target PAPR for pre-distorted waveform equal to the PAPR of input waveform.'
},
'name': 'INPUT_PAPR',
'value': 0
},
{
'documentation': {
'description': ' Sets the target PAPR equal to the value that you set for the Apply DPD CFR Target PAPR attribute.'
},
'name': 'CUSTOM',
'value': 1
}
]
},
'DpdApplyDpdCfrWindowType': {
'values': [
{
'documentation': {
'description': ' Uses the flat top window function to scale peaks.'
},
'name': 'FLAT_TOP',
'value': 1
},
{
'documentation': {
'description': ' Uses the Hanning window function to scale peaks.'
},
'name': 'HANNING',
'value': 2
},
{
'documentation': {
'description': ' Uses the Hamming window function to scale peaks.'
},
'name': 'HAMMING',
'value': 3
},
{
'documentation': {
'description': ' Uses the Gaussian window function to scale peaks.'
},
'name': 'GAUSSIAN',
'value': 4
},
{
'documentation': {
'description': ' Uses the Blackman window function to scale peaks.'
},
'name': 'BLACKMAN',
'value': 5
},
{
'documentation': {
'description': ' Uses the Blackman-Harris window function to scale peaks.'
},
'name': 'BLACKMAN_HARRIS',
'value': 6
},
{
'documentation': {
'description': ' Uses the Kaiser-Bessel window function to scale peaks.'
},
'name': 'KAISER_BESSEL',
'value': 7
}
]
},
'DpdApplyDpdConfigurationInput': {
'values': [
{
'documentation': {
'description': ' Uses the computed DPD polynomial or lookup table for applying DPD on an input waveform using the same RFmx session handle. The configuration parameters for applying DPD such as the RFMXSPECAN_ATTR_DPD_DUT_AVERAGE_INPUT_POWER, RFMXSPECAN_ATTR_DPD_MODEL, RFMXSPECAN_ATTR_DPD_MEASUREMENT_SAMPLE_RATE, DPD polynomial, and lookup table are obtained from the DPD measurement configuration. '
},
'name': 'MEASUREMENT',
'value': 0
},
{
'documentation': {
'description': ' Applies DPD by using a computed DPD polynomial or lookup table on an input waveform. You must set the configuration parameters for applying DPD such as the RFMXSPECAN_ATTR_DPD_APPLY_DPD_USER_DUT_AVERAGE_INPUT_POWER, RFMXSPECAN_ATTR_DPD_APPLY_DPD_USER_DPD_MODEL, RFMXSPECAN_ATTR_DPD_APPLY_DPD_USER_MEASUREMENT_SAMPLE_RATE, DPD polynomial, and lookup table. '
},
'name': 'USER',
'value': 1
}
]
},
'DpdApplyDpdIdleDurationPresent': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'DpdApplyDpdLookupTableCorrectionType': {
'values': [
{
'documentation': {
'description': ' The measurement predistorts the magnitude and phase of the input waveform.'
},
'name': 'MAGNITUDE_AND_PHASE',
'value': 0
},
{
'documentation': {
'description': ' The measurement predistorts only the magnitude of the input waveform.'
},
'name': 'MAGNITUDE_ONLY',
'value': 1
},
{
'documentation': {
'description': ' The measurement predistorts only the phase of the input waveform.'
},
'name': 'PHASE_ONLY',
'value': 2
}
]
},
'DpdApplyDpdMemoryModelCorrectionType': {
'values': [
{
'documentation': {
'description': ' The measurement predistorts the magnitude and phase of the input waveform.'
},
'name': 'MAGNITUDE_AND_PHASE',
'value': 0
},
{
'documentation': {
'description': ' The measurement predistorts only the magnitude of the input waveform.'
},
'name': 'MAGNITUDE_ONLY',
'value': 1
},
{
'documentation': {
'description': ' The measurement predistorts only the phase of the input waveform.'
},
'name': 'PHASE_ONLY',
'value': 2
}
]
},
'DpdApplyDpdUserDpdModel': {
'values': [
{
'documentation': {
'description': ' This model computes the complex gain coefficients applied to linearize systems with negligible memory effects.'
},
'name': 'LOOKUP_TABLE',
'value': 0
},
{
'documentation': {
'description': ' This model computes the memory polynomial predistortion coefficients used to linearize systems with moderate memory effects.'
},
'name': 'MEMORY_POLYNOMIAL',
'value': 1
},
{
'documentation': {
'description': ' This model computes the generalized memory polynomial predistortion coefficients used to linearize systems with significant memory effects.'
},
'name': 'GENERALIZED_MEMORY_POLYNOMIAL',
'value': 2
}
]
},
'DpdApplyDpdUserLookupTableType': {
'values': [
{
'documentation': {
'description': ' Input powers in the LUT are specified in dBm.'
},
'name': 'LOG',
'value': 0
},
{
'documentation': {
'description': ' Input powers in the LUT are specified in watts.'
},
'name': 'LINEAR',
'value': 1
}
]
},
'DpdAutoCarrierDetectionEnabled': {
'values': [
{
'documentation': {
'description': ' Disables auto detection of carrier offset and carrier bandwidth.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables auto detection of carrier offset and carrier bandwidth.'
},
'name': 'TRUE',
'value': 1
}
]
},
'DpdAveragingEnabled': {
'values': [
{
'documentation': {
'description': ' The measurement is performed on a single acquisition.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The DPD measurement uses the RFMXSPECAN_ATTR_DPD_AVERAGING_COUNT attribute as the number of acquisitions over which the signal for the DPD measurement is averaged. '
},
'name': 'TRUE',
'value': 1
}
]
},
'DpdFrequencyOffsetCorrectionEnabled': {
'values': [
{
'documentation': {
'description': ' The measurement computes and corrects any frequency offset between the reference and the acquired waveforms.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The measurement does not perform frequency offset correction.'
},
'name': 'TRUE',
'value': 1
}
]
},
'DpdIQOriginOffsetCorrectionEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'DpdIterativeDpdEnabled': {
'values': [
{
'documentation': {
'description': ' RFmx computes the DPD Results DPD Polynomial without considering the value of the DPD Previous DPD Polynomial.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' RFmx computes the DPD Results DPD Polynomial based on the value of the DPD Previous DPD Polynomial.'
},
'name': 'TRUE',
'value': 1
}
]
},
'DpdLookupTableAMToAMCurveFitType': {
'values': [
{
'name': 'LEAST_SQUARE',
'value': 0
},
{
'name': 'LEAST_ABSOLUTE_RESIDUAL',
'value': 1
},
{
'name': 'BISQUARE',
'value': 2
}
]
},
'DpdLookupTableAMToPMCurveFitType': {
'values': [
{
'name': 'LEAST_SQUARE',
'value': 0
},
{
'name': 'LEAST_ABSOLUTE_RESIDUAL',
'value': 1
},
{
'name': 'BISQUARE',
'value': 2
}
]
},
'DpdLookupTableThresholdEnabled': {
'values': [
{
'documentation': {
'description': ' All samples are considered for the DPD measurement.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Only samples above the threshold level which you specify in the RFMXSPECAN_ATTR_DPD_LOOKUP_TABLE_THRESHOLD_LEVEL attribute are considered for the DPD measurement.'
},
'name': 'TRUE',
'value': 1
}
]
},
'DpdLookupTableThresholdType': {
'values': [
{
'documentation': {
'description': ' The threshold is relative to the peak power of the acquired samples.'
},
'name': 'RELATIVE',
'value': 0
},
{
'documentation': {
'description': ' The threshold is the absolute power, in dBm.'
},
'name': 'ABSOLUTE',
'value': 1
}
]
},
'DpdLookupTableType': {
'values': [
{
'documentation': {
'description': ' Input powers in the LUT are specified in dBm.'
},
'name': 'LOG',
'value': 0
},
{
'documentation': {
'description': ' Input powers in the LUT are specified in watts.'
},
'name': 'LINEAR',
'value': 1
}
]
},
'DpdMeasurementSampleRateMode': {
'values': [
{
'documentation': {
'description': ' The acquisition sample rate is defined by the value of the RFMXSPECAN_ATTR_DPD_MEASUREMENT_SAMPLE_RATE attribute.'
},
'name': 'USER',
'value': 0
},
{
'documentation': {
'description': ' The acquisition sample rate is set to match the sample rate of the reference waveform.'
},
'name': 'REFERENCE_WAVEFORM',
'value': 1
}
]
},
'DpdModel': {
'values': [
{
'documentation': {
'description': ' This model computes the complex gain coefficients applied when performing digital predistortion to linearize systems with negligible memory effects.'
},
'name': 'LOOKUP_TABLE',
'value': 0
},
{
'documentation': {
'description': ' This model computes the memory polynomial predistortion coefficients used to linearize systems with moderate memory effects.'
},
'name': 'MEMORY_POLYNOMIAL',
'value': 1
},
{
'documentation': {
'description': ' This model computes the generalized memory polynomial predistortion coefficients used to linearize systems with significant memory effects.'
},
'name': 'GENERALIZED_MEMORY_POLYNOMIAL',
'value': 2
}
]
},
'DpdNmseEnabled': {
'values': [
{
'documentation': {
'description': ' Disables NMSE computation. NaN is returned as NMSE.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables NMSE computation.'
},
'name': 'TRUE',
'value': 1
}
]
},
'DpdPreDpdCfrEnabled': {
'values': [
{
'documentation': {
'description': ' Disables the CFR. The RFmxSpecAn_DPDApplyPreDPDSignalConditioning function returns an error when the CFR is disabled.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables the CFR.'
},
'name': 'TRUE',
'value': 1
}
]
},
'DpdPreDpdCfrFilterEnabled': {
'values': [
{
'documentation': {
'description': ' Disables the filter operation when performing CFR.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables filter operation when performing CFR. Filter operation is not supported when you set the RFMXSPECAN_ATTR_DPD_PRE_DPD_CFR_METHOD attribute to RFMXSPECAN_VAL_DPD_PRE_DPD_CFR_METHOD_SIGMOID.'
},
'name': 'TRUE',
'value': 1
}
]
},
'DpdPreDpdCfrMethod': {
'values': [
{
'documentation': {
'description': ' Hard clips the signal such that the target PAPR is achieved.'
},
'name': 'CLIPPING',
'value': 0
},
{
'documentation': {
'description': ' Scales the peaks in the signal using weighted window function to get smooth peaks and achieve the target PAPR.'
},
'name': 'PEAK_WINDOWING',
'value': 1
},
{
'documentation': {
'description': ' Scales the peaks using modified sigmoid transfer function to get smooth peaks and achieve the target PAPR. This method does not support the filter operation.'
},
'name': 'SIGMOID',
'value': 2
}
]
},
'DpdPreDpdCfrWindowType': {
'values': [
{
'documentation': {
'description': ' Uses the flat top window function to scale peaks.'
},
'name': 'FLAT_TOP',
'value': 1
},
{
'documentation': {
'description': ' Uses the Hanning window function to scale peaks.'
},
'name': 'HANNING',
'value': 2
},
{
'documentation': {
'description': ' Uses the Hamming window function to scale peaks.'
},
'name': 'HAMMING',
'value': 3
},
{
'documentation': {
'description': ' Uses the Gaussian window function to scale peaks.'
},
'name': 'GAUSSIAN',
'value': 4
},
{
'documentation': {
'description': ' Uses the Blackman window function to scale peaks.'
},
'name': 'BLACKMAN',
'value': 5
},
{
'documentation': {
'description': ' Uses the Blackman-Harris window function to scale peaks.'
},
'name': 'BLACKMAN_HARRIS',
'value': 6
},
{
'documentation': {
'description': ' Uses the Kaiser-Bessel window function to scale peaks.'
},
'name': 'KAISER_BESSEL',
'value': 7
}
]
},
'DpdReferenceWaveformIdleDurationPresent': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'DpdSignalType': {
'values': [
{
'documentation': {
'description': ' The reference waveform is a cellular or connectivity standard signal.'
},
'name': 'MODULATED',
'value': 0
},
{
'documentation': {
'description': ' The reference waveform is a continuous signal comprising one or more tones.'
},
'name': 'TONES',
'value': 1
}
]
},
'DpdSynchronizationMethod': {
'values': [
{
'documentation': {
'description': ' Synchronizes the acquired and reference waveforms assuming that sample rate is sufficient to prevent aliasing in intermediate operations. This method is recommended when measurement sampling rate is high.'
},
'name': 'DIRECT',
'value': 1
},
{
'documentation': {
'description': ' Synchronizes the acquired and reference waveforms while ascertaining that intermediate operations are not impacted by aliasing. This method is recommended for non-contiguous carriers separated by a large gap, and/or when measurement sampling rate is low. Refer to DPD concept help for more information.'
},
'name': 'ALIAS_PROTECTED',
'value': 2
}
]
},
'DpdTargetGainType': {
'values': [
{
'documentation': {
'description': ' The DPD polynomial or lookup table is computed by assuming that the linearized gain expected from the DUT after applying DPD on the input waveform is equal to the average power gain provided by the DUT without DPD.'
},
'name': 'AVERAGE_GAIN',
'value': 0
},
{
'documentation': {
'description': ' The DPD polynomial or lookup table is computed by assuming that the linearized gain expected from the DUT after applying DPD on the input waveform is equal to the gain provided by the DUT, without DPD, to the parts of the reference waveform that do not drive the DUT into non-linear gain-expansion or compression regions of its input-output characteristics.\n\n The measurement computes the linear region gain as the average gain experienced by the parts of the reference waveform that are below a threshold which is computed as shown in the following equation:\n\n Linear region threshold (dBm) = Max {-25, Min {reference waveform power} + 6, DUT Average Input Power -15}'
},
'name': 'LINEAR_REGION_GAIN',
'value': 1
},
{
'documentation': {
'description': ' The DPD polynomial or lookup table is computed by assuming that the linearized gain expected from the DUT after applying DPD on the input waveform is equal to the average power gain provided by the DUT, without DPD, to all the samples of the reference waveform for which the magnitude is greater than the peak power in the reference waveform (dBm) - 0.5dB.'
},
'name': 'PEAK_INPUT_POWER_GAIN',
'value': 2
}
]
},
'FcntAveragingEnabled': {
'values': [
{
'documentation': {
'description': ' The measurement is performed on a single acquisition.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The FCnt measurement uses the RFMXSPECAN_ATTR_FCNT_AVERAGING_COUNT attribute as the number of acquisitions over which the FCnt measurement is averaged. '
},
'name': 'TRUE',
'value': 1
}
]
},
'FcntAveragingType': {
'values': [
{
'documentation': {
'description': ' The mean of the instantaneous signal phase difference over multiple acquisitions is used for the frequency measurement. '
},
'name': 'MEAN',
'value': 6
},
{
'documentation': {
'description': ' The maximum instantaneous signal phase difference over multiple acquisitions is used for the frequency measurement. '
},
'name': 'MAXIMUM',
'value': 3
},
{
'documentation': {
'description': ' The minimum instantaneous signal phase difference over multiple acquisitions is used for the frequency measurement. '
},
'name': 'MINIMUM',
'value': 4
},
{
'documentation': {
'description': ' The maximum instantaneous signal phase difference over multiple acquisitions is used for the frequency measurement. The sign of the phase difference is ignored to find the maximum instantaneous value.'
},
'name': 'MINMAX',
'value': 7
}
]
},
'FcntRbwFilterType': {
'values': [
{
'documentation': {
'description': ' The measurement does not use any RBW filtering.'
},
'name': 'NONE',
'value': 5
},
{
'documentation': {
'description': ' The RBW filter has a Gaussian response.'
},
'name': 'GAUSSIAN',
'value': 1
},
{
'documentation': {
'description': ' The RBW filter has a flat response.'
},
'name': 'FLAT',
'value': 2
},
{
'documentation': {
'description': ' The RRC filter with the roll-off specified by RFMXSPECAN_ATTR_FCNT_RBW_FILTER_RRC_ALPHA attribute is used as the RBW filter.'
},
'name': 'RRC',
'value': 6
}
]
},
'FcntThresholdEnabled': {
'values': [
{
'documentation': {
'description': ' All samples are considered for the FCnt measurement. '
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The samples above the threshold level specified in the RFMXSPECAN_ATTR_FCNT_THRESHOLD_LEVEL attribute are considered for the FCnt measurement. '
},
'name': 'TRUE',
'value': 1
}
]
},
'FcntThresholdType': {
'values': [
{
'documentation': {
'description': ' The threshold is relative to the peak power of the acquired samples.'
},
'name': 'RELATIVE',
'value': 0
},
{
'documentation': {
'description': ' The threshold is the absolute power, in dBm.'
},
'name': 'ABSOLUTE',
'value': 1
}
]
},
'FrequencyReferenceSource': {
'generate-mappings': True,
'values': [
{
'name': 'ONBOARD_CLOCK',
'value': 'OnboardClock'
},
{
'name': 'REF_IN',
'value': 'RefIn'
},
{
'name': 'PXI_CLK',
'value': 'PXI_Clk'
},
{
'name': 'CLK_IN',
'value': 'ClkIn'
}
]
},
'HarmAutoHarmonicsSetupEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'HarmAveragingEnabled': {
'values': [
{
'documentation': {
'description': ' The measurement is performed on a single acquisition.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The Harmonics measurement uses the RFMXSPECAN_ATTR_HARM_AVERAGING_COUNT attribute as the number of acquisitions over which the Harmonics measurement is averaged.'
},
'name': 'TRUE',
'value': 1
}
]
},
'HarmAveragingType': {
'values': [
{
'documentation': {
'description': ' The power trace is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. '
},
'name': 'RMS',
'value': 0
},
{
'documentation': {
'description': ' The power trace is averaged in a logarithmic scale.'
},
'name': 'LOG',
'value': 1
},
{
'documentation': {
'description': ' The square root of the power trace is averaged.'
},
'name': 'SCALAR',
'value': 2
},
{
'documentation': {
'description': ' The maximum instantaneous power in the power trace is retained from one acquisition to the next.'
},
'name': 'MAXIMUM',
'value': 3
},
{
'documentation': {
'description': ' The minimum instantaneous power in the power trace is retained from one acquisition to the next.'
},
'name': 'MINIMUM',
'value': 4
}
]
},
'HarmHarmonicEnabled': {
'values': [
{
'documentation': {
'description': ' Disables the harmonic for measurement.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables the harmonic for measurement.'
},
'name': 'TRUE',
'value': 1
}
]
},
'HarmMeasurementMethod': {
'values': [
{
'documentation': {
'description': ' The harmonics measurement acquires the signal using the same signal analyzer setting across frequency bands. Use this method when the measurement speed is desirable over higher dynamic range.\n\n Supported devices: PXIe-5644/5645/5646, PXIe-5663/5665/5668'
},
'name': 'TIME_DOMAIN',
'value': 0
},
{
'documentation': {
'description': ' The harmonics measurement acquires the signal using the hardware-specific features, such as the IF filter and IF gain, for different frequency bands. Use this method to get the best dynamic range.\n\n Supported devices: PXIe-5665/5668'
},
'name': 'DYNAMIC_RANGE',
'value': 2
}
]
},
'HarmNoiseCompensationEnabled': {
'values': [
{
'documentation': {
'description': ' Disables compensation of the average harmonic powers for the noise floor of the signal analyzer.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables compensation of the average harmonic powers for the noise floor of the signal analyzer. The noise floor of the signal analyzer is measured for the RF path used by the harmonics measurement and cached for future use. If the signal analyzer or measurement parameters change, noise floors are measured again.\n\n Supported devices: PXIe-5663/5665/5668'
},
'name': 'TRUE',
'value': 1
}
]
},
'HarmRbwFilterType': {
'values': [
{
'name': 'GAUSSIAN',
'value': 1
},
{
'name': 'FLAT',
'value': 2
},
{
'name': 'NONE',
'value': 5
},
{
'name': 'RRC',
'value': 6
}
]
},
'IMAmplitudeCorrectionType': {
'values': [
{
'name': 'RF_CENTER_FREQUENCY',
'value': 0
},
{
'name': 'SPECTRUM_FREQUENCY_BIN',
'value': 1
}
]
},
'IMAutoIntermodsSetupEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'IMAveragingEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'IMAveragingType': {
'values': [
{
'name': 'RMS',
'value': 0
},
{
'name': 'LOG',
'value': 1
},
{
'name': 'SCALAR',
'value': 2
},
{
'name': 'MAXIMUM',
'value': 3
},
{
'name': 'MINIMUM',
'value': 4
}
]
},
'IMFftWindow': {
'values': [
{
'name': 'NONE',
'value': 0
},
{
'name': 'FLAT_TOP',
'value': 1
},
{
'name': 'HANNING',
'value': 2
},
{
'name': 'HAMMING',
'value': 3
},
{
'name': 'GAUSSIAN',
'value': 4
},
{
'name': 'BLACKMAN',
'value': 5
},
{
'name': 'BLACKMAN_HARRIS',
'value': 6
},
{
'name': 'KAISER_BESSEL',
'value': 7
}
]
},
'IMFrequencyDefinition': {
'values': [
{
'name': 'RELATIVE',
'value': 0
},
{
'name': 'ABSOLUTE',
'value': 1
}
]
},
'IMIFOutputPowerOffsetAuto': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'IMIntermodEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'IMIntermodSide': {
'values': [
{
'name': 'LOWER',
'value': 0
},
{
'name': 'UPPER',
'value': 1
},
{
'name': 'BOTH',
'value': 2
}
]
},
'IMLocalPeakSearchEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'IMMeasurementMethod': {
'values': [
{
'name': 'NORMAL',
'value': 0
},
{
'name': 'DYNAMIC_RANGE',
'value': 1
},
{
'name': 'SEGMENTED',
'value': 2
}
]
},
'IMRbwFilterAutoBandwidth': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'IMRbwFilterType': {
'values': [
{
'name': 'FFT_BASED',
'value': 0
},
{
'name': 'GAUSSIAN',
'value': 1
},
{
'name': 'FLAT',
'value': 2
}
]
},
'IMSweepTimeAuto': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'IQBandwidthAuto': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'IQDeleteRecordOnFetch': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'IQPowerEdgeTriggerLevelType': {
'values': [
{
'name': 'RELATIVE',
'value': 0
},
{
'name': 'ABSOLUTE',
'value': 1
}
]
},
'IQPowerEdgeTriggerSlope': {
'values': [
{
'name': 'RISING_SLOPE',
'value': 0
},
{
'name': 'FALLING_SLOPE',
'value': 1
}
]
},
'LimitedConfigurationChange': {
'values': [
{
'documentation': {
'description': ' This is the normal mode of RFmx operation. All configuration changes in RFmxInstr attributes or in personality attributes will be applied during RFmx Commit.'
},
'name': 'DISABLED',
'value': 0
},
{
'documentation': {
'description': ' Signal configuration and RFmxInstr configuration are locked after the first Commit or Initiate of the named signal configuration. Any configuration change thereafter either in RFmxInstr attributes or personality attributes will not be considered by subsequent RFmx Commits or Initiates of this signal. Use No Change if you have created named signal configurations for all measurement configurations but are setting some RFmxInstr attributes. Refer to the Limitations of the Limited Configuration Change Attribute topic for more details about the limitations of using this mode. '
},
'name': 'NO_CHANGE',
'value': 1
},
{
'documentation': {
'description': ' Signal configuration, other than center frequency, external attenuation, and RFInstr configuration, is locked after first Commit or Initiate of the named signal configuration. Thereafter, only the Center Frequency and RFMXSPECAN_ATTR_EXTERNAL_ATTENUATION attribute value changes will be considered by subsequent driver Commits or Initiates of this signal. Refer to the Limitations of the Limited Configuration Change Attribute topic for more details about the limitations of using this mode. '
},
'name': 'FREQUENCY',
'value': 2
},
{
'documentation': {
'description': ' Signal configuration, other than the reference level and RFInstr configuration, is locked after first Commit or Initiate of the named signal configuration. Thereafter only the RFMXSPECAN_ATTR_REFERENCE_LEVEL attribute value change will be considered by subsequent driver Commits or Initiates of this signal. If you have configured this signal to use an IQ Power Edge Trigger, NI recommends that you set the RFMXSPECAN_ATTR_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE to RFMXSPECAN_VAL_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE_RELATIVE so that the trigger level is automatically adjusted as you adjust the reference level. Refer to the Limitations of the Limited Configuration Change Attribute topic for more details about the limitations of using this mode. '
},
'name': 'REFERENCE_LEVEL',
'value': 3
},
{
'documentation': {
'description': ' Signal configuration, other than center frequency, reference level, external attenuation, and RFInstr configuration, is locked after first Commit or Initiate of the named signal configuration. Thereafter only Center Frequency, RFMXSPECAN_ATTR_REFERENCE_LEVEL, and RFMXSPECAN_ATTR_EXTERNAL_ATTENUATION attribute value changes will be considered by subsequent driver Commits or Initiates of this signal. If you have configured this signal to use an IQ Power Edge Trigger, NI recommends you set the RFMXSPECAN_ATTR_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE to RFMXSPECAN_VAL_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE_RELATIVE so that the trigger level is automatically adjusted as you adjust the reference level. Refer to the Limitations of the Limited Configuration Change Attribute topic for more details about the limitations of using this mode. '
},
'name': 'FREQUENCY_AND_REFERENCE_LEVEL',
'value': 4
},
{
'documentation': {
'description': ' Signal configuration, other than Selected Ports, Center frequency, Reference level, External attenuation, and RFInstr configuration, is locked after first Commit or Initiate of the named signal configuration. Thereafter only Selected Ports, Center Frequency, RFMXSPECAN_ATTR_REFERENCE_LEVEL, and RFMXSPECAN_ATTR_EXTERNAL_ATTENUATION attribute value changes will be considered by subsequent driver Commits or Initiates of this signal. If you have configured this signal to use an IQ Power Edge Trigger, NI recommends you set the RFMXSPECAN_ATTR_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE to RFMXSPECAN_VAL_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE_RELATIVE so that the trigger level is automatically adjusted as you adjust the reference level. Refer to the Limitations of the Limited Configuration Change Attribute topic for more details about the limitations of using this mode.'
},
'name': 'SELECTED_PORTS_FREQUENCY_AND_REFERENCE_LEVEL',
'value': 5
}
]
},
'MarkerNextPeak': {
'values': [
{
'name': 'NEXT_HIGHEST',
'value': 0
},
{
'name': 'NEXT_LEFT',
'value': 1
},
{
'name': 'NEXT_RIGHT',
'value': 2
}
]
},
'MarkerPeakExcursionEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'MarkerThresholdEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'MarkerTrace': {
'values': [
{
'name': 'ACP_SPECTRUM',
'value': 0
},
{
'name': 'CCDF_GAUSSIAN_PROBABILITIES_TRACE',
'value': 1
},
{
'name': 'CCDF_PROBABILITIES_TRACE',
'value': 2
},
{
'name': 'CHP_SPECTRUM',
'value': 3
},
{
'name': 'FCNT_POWER_TRACE',
'value': 4
},
{
'name': 'OBW_SPECTRUM',
'value': 5
},
{
'name': 'SEM_SPECTRUM',
'value': 6
},
{
'name': 'SPECTRUM',
'value': 7
},
{
'name': 'TXP_POWER_TRACE',
'value': 8
}
]
},
'MarkerType': {
'values': [
{
'name': 'OFF',
'value': 0
},
{
'name': 'NORMAL',
'value': 1
},
{
'name': 'DELTA',
'value': 3
}
]
},
'MeasurementTypes': {
'values': [
{
'name': 'ACP',
'value': 1
},
{
'name': 'CCDF',
'value': 2
},
{
'name': 'CHP',
'value': 4
},
{
'name': 'FCNT',
'value': 8
},
{
'name': 'HARMONICS',
'value': 16
},
{
'name': 'OBW',
'value': 32
},
{
'name': 'SEM',
'value': 64
},
{
'name': 'SPECTRUM',
'value': 128
},
{
'name': 'SPUR',
'value': 256
},
{
'name': 'TXP',
'value': 512
},
{
'name': 'AMPM',
'value': 1024
},
{
'name': 'DPD',
'value': 2048
},
{
'name': 'IQ',
'value': 4096
},
{
'name': 'IM',
'value': 8192
},
{
'name': 'NF',
'value': 16384
},
{
'name': 'PHASENOISE',
'value': 32768
},
{
'name': 'PAVT',
'value': 65536
}
]
},
'MechanicalAttenuationAuto': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'NFAveragingEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'NFCalibrationDataValid': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'NFCalibrationLossCompensationEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'NFColdSourceMode': {
'values': [
{
'name': 'MEASURE',
'value': 0
},
{
'name': 'CALIBRATE',
'value': 1
}
]
},
'NFDutInputLossCompensationEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'NFDutOutputLossCompensationEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'NFDutType': {
'values': [
{
'name': 'AMPLIFIER',
'value': 0
},
{
'name': 'DOWNCONVERTER',
'value': 1
},
{
'name': 'UPCONVERTER',
'value': 2
}
]
},
'NFExternalPreampPresent': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'NFFrequencyConverterFrequencyContext': {
'values': [
{
'name': 'RF',
'value': 0
},
{
'name': 'IF',
'value': 1
}
]
},
'NFFrequencyConverterSideband': {
'values': [
{
'name': 'LSB',
'value': 0
},
{
'name': 'USB',
'value': 1
}
]
},
'NFMeasurementMethod': {
'values': [
{
'name': 'Y_FACTOR',
'value': 0
},
{
'name': 'COLD_SOURCE',
'value': 1
}
]
},
'NFYFactorMode': {
'values': [
{
'name': 'MEASURE',
'value': 0
},
{
'name': 'CALIBRATE',
'value': 1
}
]
},
'NFYFactorNoiseSourceLossCompensationEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'ObwAmplitudeCorrectionType': {
'values': [
{
'documentation': {
'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.'
},
'name': 'RF_CENTER_FREQUENCY',
'value': 0
},
{
'documentation': {
'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.'
},
'name': 'SPECTRUM_FREQUENCY_BIN',
'value': 1
}
]
},
'ObwAveragingEnabled': {
'values': [
{
'documentation': {
'description': ' The measurement is performed on a single acquisition.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The OBW measurement uses the RFMXSPECAN_ATTR_OBW_AVERAGING_COUNT attribute as the number of acquisitions over which the OBW measurement is averaged.'
},
'name': 'TRUE',
'value': 1
}
]
},
'ObwAveragingType': {
'values': [
{
'documentation': {
'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. '
},
'name': 'RMS',
'value': 0
},
{
'documentation': {
'description': ' The power spectrum is averaged in a logarithmic scale.'
},
'name': 'LOG',
'value': 1
},
{
'documentation': {
'description': ' The square root of the power spectrum is averaged.'
},
'name': 'SCALAR',
'value': 2
},
{
'documentation': {
'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.'
},
'name': 'MAXIMUM',
'value': 3
},
{
'documentation': {
'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. '
},
'name': 'MINIMUM',
'value': 4
}
]
},
'ObwFftWindow': {
'values': [
{
'documentation': {
'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes. '
},
'name': 'NONE',
'value': 0
},
{
'documentation': {
'description': ' Measures single-tone amplitudes accurately.'
},
'name': 'FLAT_TOP',
'value': 1
},
{
'documentation': {
'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.'
},
'name': 'HANNING',
'value': 2
},
{
'documentation': {
'description': ' Analyzes closely-spaced sine waves.'
},
'name': 'HAMMING',
'value': 3
},
{
'documentation': {
'description': ' Provides a good balance of spectral leakage, frequency resolution, and amplitude attenuation. Hence, this windowing is useful for time-frequency analysis.'
},
'name': 'GAUSSIAN',
'value': 4
},
{
'documentation': {
'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. '
},
'name': 'BLACKMAN',
'value': 5
},
{
'documentation': {
'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. '
},
'name': 'BLACKMAN_HARRIS',
'value': 6
},
{
'documentation': {
'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes. '
},
'name': 'KAISER_BESSEL',
'value': 7
}
]
},
'ObwPowerUnits': {
'values': [
{
'documentation': {
'description': ' The absolute powers are reported in dBm.'
},
'name': 'DBM',
'value': 0
},
{
'documentation': {
'description': ' The absolute powers are reported in dBm/Hz.'
},
'name': 'DBM_PER_HZ',
'value': 1
}
]
},
'ObwRbwAutoBandwidth': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'ObwRbwFilterBandwidthDefinition': {
'values': [
{
'documentation': {
'description': ' Defines the RBW in terms of the 3 dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_OBW_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_OBW_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3 dB bandwidth of the window specified by the RFMXSPECAN_ATTR_OBW_FFT_WINDOW attribute.'
},
'name': '3_DB',
'value': 0
},
{
'documentation': {
'description': ' Defines the RBW in terms of the spectrum bin width computed using an FFT when you set the RFMXSPECAN_ATTR_OBW_RBW_FILTER_TYPE attribute to FFT Based.'
},
'name': 'BIN_WIDTH',
'value': 2
}
]
},
'ObwRbwFilterType': {
'values': [
{
'documentation': {
'description': ' No RBW filtering is performed.'
},
'name': 'FFT_BASED',
'value': 0
},
{
'documentation': {
'description': ' The RBW filter has a Gaussian response.'
},
'name': 'GAUSSIAN',
'value': 1
},
{
'documentation': {
'description': ' The RBW filter has a flat response.'
},
'name': 'FLAT',
'value': 2
}
]
},
'ObwSweepTimeAuto': {
'values': [
{
'documentation': {
'description': ' The measurement uses the sweep time that you specify in the RFMXSPECAN_ATTR_OBW_SWEEP_TIME_INTERVAL attribute. '
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The measurement calculates the sweep time based on the value of the RFMXSPECAN_ATTR_OBW_RBW_FILTER_BANDWIDTH attribute.'
},
'name': 'TRUE',
'value': 1
}
]
},
'PavtFrequencyOffsetCorrectionEnabled': {
'values': [
{
'documentation': {
'description': ' Disables the frequency offset correction.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables the frequency offset correction. The measurement computes and corrects any frequency offset between the reference and the acquired waveforms.'
},
'name': 'TRUE',
'value': 1
}
]
},
'PavtFrequencyTrackingEnabled': {
'values': [
{
'documentation': {
'description': ' Disables the drift correction for the measurement.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables the drift correction. The measurement corrects and reports the frequency offset per segment.'
},
'name': 'TRUE',
'value': 1
}
]
},
'PavtMeasurementIntervalMode': {
'values': [
{
'documentation': {
'description': ' The time offset from the start of segment and the duration over which the measurement is performed is uniform for all segments and is given by the RFMXSPECAN_ATTR_PAVT_MEASUREMENT_OFFSET attribute and the RFMXSPECAN_ATTR_PAVT_MEASUREMENT_LENGTH attribute respectively.'
},
'name': 'UNIFORM',
'value': 0
},
{
'documentation': {
'description': ' The time offset from the start of segment and the duration over which the measurement is performed is configured separately for each segment and is given by the RFMXSPECAN_ATTR_PAVT_SEGMENT_MEASUREMENT_OFFSET attribute and the RFMXSPECAN_ATTR_PAVT_SEGMENT_MEASUREMENT_LENGTH attribute respectively.'
},
'name': 'VARIABLE',
'value': 1
}
]
},
'PavtMeasurementLocationType': {
'values': [
{
'documentation': {
'description': ' The measurement is performed over a single record across multiple segments separated in time. The measurement locations of the segments are specified by the RFMXSPECAN_ATTR_PAVT_SEGMENT_START_TIME attribute. The number of segments is equal to the number of segment start times.'
},
'name': 'TIME',
'value': 0
},
{
'documentation': {
'description': ' The measurement is performed across segments obtained in multiple records, where each record is obtained when a trigger is received. The number of segments is equal to the number of triggers (records).'
},
'name': 'TRIGGER',
'value': 1
}
]
},
'PavtPhaseUnwrapEnabled': {
'values': [
{
'documentation': {
'description': ' Phase measurement results are wrapped within +/-180 degrees.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Phase measurement results are unwrapped.'
},
'name': 'TRUE',
'value': 1
}
]
},
'PavtSegmentType': {
'values': [
{
'documentation': {
'description': ' Phase and amplitude is measured in this segment.'
},
'name': 'PHASE_AND_AMPLITUDE',
'value': 0
},
{
'documentation': {
'description': ' Amplitude is measured in this segment.'
},
'name': 'AMPLITUDE',
'value': 1
},
{
'documentation': {
'description': ' Frequency error is measured in this segment.'
},
'name': 'FREQUENCY_ERROR_MEASUREMENT',
'value': 2
}
]
},
'PhaseNoiseCancellationEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'PhaseNoiseFftWindow': {
'values': [
{
'name': 'NONE',
'value': 0
},
{
'name': 'FLAT_TOP',
'value': 1
},
{
'name': 'HANNING',
'value': 2
},
{
'name': 'HAMMING',
'value': 3
},
{
'name': 'GAUSSIAN',
'value': 4
},
{
'name': 'BLACKMAN',
'value': 5
},
{
'name': 'BLACKMAN_HARRIS',
'value': 6
},
{
'name': 'KAISER_BESSEL',
'value': 7
}
]
},
'PhaseNoiseIntegratedNoiseRangeDefinition': {
'values': [
{
'name': 'NONE',
'value': 0
},
{
'name': 'MEASUREMENT',
'value': 1
},
{
'name': 'CUSTOM',
'value': 2
}
]
},
'PhaseNoiseRangeDefinition': {
'values': [
{
'name': 'MANUAL',
'value': 0
},
{
'name': 'AUTO',
'value': 1
}
]
},
'PhaseNoiseSmoothingType': {
'values': [
{
'name': 'NONE',
'value': 0
},
{
'name': 'LINEAR',
'value': 1
},
{
'name': 'LOGARITHMIC',
'value': 2
},
{
'name': 'MEDIAN',
'value': 3
}
]
},
'PhaseNoiseSpurRemovalEnabled': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'RFAttenuationAuto': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'SemAmplitudeCorrectionType': {
'values': [
{
'documentation': {
'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.'
},
'name': 'RF_CENTER_FREQUENCY',
'value': 0
},
{
'documentation': {
'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.'
},
'name': 'SPECTRUM_FREQUENCY_BIN',
'value': 1
}
]
},
'SemAveragingEnabled': {
'values': [
{
'documentation': {
'description': ' The measurement is performed on a single acquisition.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The SEM measurement uses the RFMXSPECAN_ATTR_SEM_AVERAGING_COUNT attribute as the number of acquisitions over which the SEM measurement is averaged.'
},
'name': 'TRUE',
'value': 1
}
]
},
'SemAveragingType': {
'values': [
{
'documentation': {
'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. '
},
'name': 'RMS',
'value': 0
},
{
'documentation': {
'description': ' The power spectrum is averaged in a logarithmic scale.'
},
'name': 'LOG',
'value': 1
},
{
'documentation': {
'description': ' The square root of the power spectrum is averaged.'
},
'name': 'SCALAR',
'value': 2
},
{
'documentation': {
'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.'
},
'name': 'MAXIMUM',
'value': 3
},
{
'documentation': {
'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. '
},
'name': 'MINIMUM',
'value': 4
}
]
},
'SemCarrierEnabled': {
'values': [
{
'documentation': {
'description': ' The carrier power is not considered as part of the total carrier power.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The carrier power is considered as part of the total carrier power.'
},
'name': 'TRUE',
'value': 1
}
]
},
'SemCarrierRbwAutoBandwidth': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'SemCarrierRbwFilterBandwidthDefinition': {
'values': [
{
'documentation': {
'description': ' Defines the RBW in terms of the 3 dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_SEM_CARRIER_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_SEM_CARRIER_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3 dB bandwidth of the window specified by the RFMXSPECAN_ATTR_SEM_FFT_WINDOW attribute.'
},
'name': '3_DB',
'value': 0
},
{
'documentation': {
'description': ' Defines the RBW in terms of the spectrum bin width computed using an FFT when you set the RFMXSPECAN_ATTR_SEM_CARRIER_RBW_FILTER_TYPE attribute to FFT Based.'
},
'name': 'BIN_WIDTH',
'value': 2
}
]
},
'SemCarrierRbwFilterType': {
'values': [
{
'documentation': {
'description': ' No RBW filtering is performed.'
},
'name': 'FFT_BASED',
'value': 0
},
{
'documentation': {
'description': ' The RBW filter has a Gaussian response.'
},
'name': 'GAUSSIAN',
'value': 1
},
{
'documentation': {
'description': ' The RBW filter has a flat response.'
},
'name': 'FLAT',
'value': 2
}
]
},
'SemCarrierRrcFilterEnabled': {
'values': [
{
'documentation': {
'description': ' The channel power of the acquired carrier channel is measured directly.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The measurement applies the RRC filter on the acquired carrier channel before measuring the carrier channel power.'
},
'name': 'TRUE',
'value': 1
}
]
},
'SemCompositeMeasurementStatus': {
'values': [
{
'name': 'FAIL',
'value': 0
},
{
'name': 'PASS',
'value': 1
}
]
},
'SemFftWindow': {
'values': [
{
'documentation': {
'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes. '
},
'name': 'NONE',
'value': 0
},
{
'documentation': {
'description': ' Measures single-tone amplitudes accurately.'
},
'name': 'FLAT_TOP',
'value': 1
},
{
'documentation': {
'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.'
},
'name': 'HANNING',
'value': 2
},
{
'documentation': {
'description': ' Analyzes closely-spaced sine waves.'
},
'name': 'HAMMING',
'value': 3
},
{
'documentation': {
'description': ' Provides a good balance of spectral leakage, frequency resolution, and amplitude attenuation. Hence, this windowing is useful for time-frequency analysis.'
},
'name': 'GAUSSIAN',
'value': 4
},
{
'documentation': {
'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. '
},
'name': 'BLACKMAN',
'value': 5
},
{
'documentation': {
'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. '
},
'name': 'BLACKMAN_HARRIS',
'value': 6
},
{
'documentation': {
'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes. '
},
'name': 'KAISER_BESSEL',
'value': 7
}
]
},
'SemLowerOffsetMeasurementStatus': {
'values': [
{
'name': 'FAIL',
'value': 0
},
{
'name': 'PASS',
'value': 1
}
]
},
'SemOffsetAbsoluteLimitMode': {
'values': [
{
'documentation': {
'description': ' The line specified by the RFMXSPECAN_ATTR_SEM_OFFSET_ABSOLUTE_LIMIT_START and RFMXSPECAN_ATTR_SEM_OFFSET_ABSOLUTE_LIMIT_STOP attribute values as the two ends is considered as the mask.'
},
'name': 'MANUAL',
'value': 0
},
{
'documentation': {
'description': ' The two ends of the line are coupled to the value of the RFMXSPECAN_ATTR_SEM_OFFSET_ABSOLUTE_LIMIT_START attribute.'
},
'name': 'COUPLE',
'value': 1
}
]
},
'SemOffsetEnabled': {
'values': [
{
'documentation': {
'description': ' Disables the offset segment for the SEM measurement.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables the offset segment for the SEM measurement.'
},
'name': 'TRUE',
'value': 1
}
]
},
'SemOffsetFrequencyDefinition': {
'values': [
{
'documentation': {
'description': ' The start frequency and stop frequency are defined from the center of the closest carrier channel bandwidth to the center of the offset segment measurement bandwidth.\n\nMeasurement Bandwidth = Resolution Bandwidth * Bandwidth Integral.'
},
'name': 'CARRIER_CENTER_TO_MEASUREMENT_BANDWIDTH_CENTER',
'value': 0
},
{
'documentation': {
'description': ' The start frequency and stop frequency are defined from the center of the closest carrier channel bandwidth to the nearest edge of the offset segment measurement bandwidth.'
},
'name': 'CARRIER_CENTER_TO_MEASUREMENT_BANDWIDTH_EDGE',
'value': 1
},
{
'documentation': {
'description': ' The start frequency and stop frequency are defined from the nearest edge of the closest carrier channel bandwidth to the center of the nearest offset segment measurement bandwidth.'
},
'name': 'CARRIER_EDGE_TO_MEASUREMENT_BANDWIDTH_CENTER',
'value': 2
},
{
'documentation': {
'description': ' The start frequency and stop frequency are defined from the nearest edge of the closest carrier channel bandwidth to the edge of the nearest offset segment measurement bandwidth.'
},
'name': 'CARRIER_EDGE_TO_MEASUREMENT_BANDWIDTH_EDGE',
'value': 3
}
]
},
'SemOffsetLimitFailMask': {
'values': [
{
'documentation': {
'description': ' The measurement fails if the power in the segment exceeds both the absolute and relative masks.'
},
'name': 'ABSOLUTE_AND_RELATIVE',
'value': 0
},
{
'documentation': {
'description': ' The measurement fails if the power in the segment exceeds either the absolute or relative mask.'
},
'name': 'ABSOLUTE_OR_RELATIVE',
'value': 1
},
{
'documentation': {
'description': ' The measurement fails if the power in the segment exceeds the absolute mask.'
},
'name': 'ABSOLUTE',
'value': 2
},
{
'documentation': {
'description': ' The measurement fails if the power in the segment exceeds the relative mask.'
},
'name': 'RELATIVE',
'value': 3
}
]
},
'SemOffsetRbwAutoBandwidth': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'SemOffsetRbwFilterBandwidthDefinition': {
'values': [
{
'documentation': {
'description': ' Defines the RBW in terms of the 3dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_SEM_OFFSET_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_SEM_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3dB bandwidth of the window specified by the RFMXSPECAN_ATTR_SEM_FFT_WINDOW attribute.'
},
'name': '3_DB',
'value': 0
},
{
'documentation': {
'description': ' Defines the RBW in terms of the spectrum bin width computed using FFT when you set the RFMXSPECAN_ATTR_SEM_OFFSET_RBW_FILTER_TYPE attribute to FFT Based.'
},
'name': 'BIN_WIDTH',
'value': 2
}
]
},
'SemOffsetRbwFilterType': {
'values': [
{
'documentation': {
'description': ' No RBW filtering is performed.'
},
'name': 'FFT_BASED',
'value': 0
},
{
'documentation': {
'description': ' The RBW filter has a Gaussian response.'
},
'name': 'GAUSSIAN',
'value': 1
},
{
'documentation': {
'description': ' The RBW filter has a flat response.'
},
'name': 'FLAT',
'value': 2
}
]
},
'SemOffsetRelativeLimitMode': {
'values': [
{
'documentation': {
'description': ' The line specified by the RFMXSPECAN_ATTR_SEM_OFFSET_RELATIVE_LIMIT_START and RFMXSPECAN_ATTR_SEM_OFFSET_RELATIVE_LIMIT_STOP attribute values as the two ends is considered as the mask.'
},
'name': 'MANUAL',
'value': 0
},
{
'documentation': {
'description': ' The two ends of the line are coupled to the value of the RFMXSPECAN_ATTR_SEM_OFFSET_RELATIVE_LIMIT_START attribute.'
},
'name': 'COUPLE',
'value': 1
}
]
},
'SemOffsetSideband': {
'values': [
{
'documentation': {
'description': ' Configures a lower offset segment to the left of the leftmost carrier. '
},
'name': 'NEGATIVE',
'value': 0
},
{
'documentation': {
'description': ' Configures an upper offset segment to the right of the rightmost carrier. '
},
'name': 'POSITIVE',
'value': 1
},
{
'documentation': {
'description': ' Configures both negative and positive offset segments.'
},
'name': 'BOTH',
'value': 2
}
]
},
'SemPowerUnits': {
'values': [
{
'documentation': {
'description': ' The absolute powers are reported in dBm.'
},
'name': 'DBM',
'value': 0
},
{
'documentation': {
'description': ' The absolute powers are reported in dBm/Hz.'
},
'name': 'DBM_PER_HZ',
'value': 1
}
]
},
'SemReferenceType': {
'values': [
{
'documentation': {
'description': ' The power reference is the integrated power of the closest carrier.'
},
'name': 'INTEGRATION',
'value': 0
},
{
'documentation': {
'description': ' The power reference is the peak power of the closest carrier.'
},
'name': 'PEAK',
'value': 1
}
]
},
'SemSweepTimeAuto': {
'values': [
{
'documentation': {
'description': ' The measurement uses the sweep time that you specify in the RFMXSPECAN_ATTR_SEM_SWEEP_TIME_INTERVAL attribute.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The measurement calculates the sweep time based on the value of the RFMXSPECAN_ATTR_SEM_OFFSET_RBW_FILTER_BANDWIDTH and RFMXSPECAN_ATTR_SEM_CARRIER_RBW_FILTER_BANDWIDTH attributes.'
},
'name': 'TRUE',
'value': 1
}
]
},
'SemUpperOffsetMeasurementStatus': {
'values': [
{
'name': 'FAIL',
'value': 0
},
{
'name': 'PASS',
'value': 1
}
]
},
'SpectrumAmplitudeCorrectionType': {
'values': [
{
'documentation': {
'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.'
},
'name': 'RF_CENTER_FREQUENCY',
'value': 0
},
{
'documentation': {
'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.'
},
'name': 'SPECTRUM_FREQUENCY_BIN',
'value': 1
}
]
},
'SpectrumAnalysisInput': {
'values': [
{
'documentation': {
'description': ' Measurement analyzes the acquired I+jQ data, resulting generally in a spectrum that is not symmetric around 0 Hz. Spectrum trace result contains both positive and negative frequencies. Since the RMS power of the complex envelope is 3.01 dB higher than that of its equivalent real RF signal, the spectrum trace result of the acquired I+jQ data is scaled by -3.01 dB. '
},
'name': 'IQ',
'value': 0
},
{
'documentation': {
'description': ' Measurement ignores the Q data from the acquired I+jQ data and analyzes I+j0, resulting in a spectrum that is symmetric around 0 Hz. Spectrum trace result contains positive frequencies only. Spectrum of I+j0 data is scaled by +3.01 dB to account for the power of the negative frequencies that are not returned in the spectrum trace.'
},
'name': 'I_ONLY',
'value': 1
},
{
'documentation': {
'description': ' Measurement ignores the I data from the acquired I+jQ data and analyzes Q+j0, resulting in a spectrum that is symmetric around 0 Hz. Spectrum trace result contains positive frequencies only. Spectrum of Q+j0 data is scaled by +3.01 dB to account for the power of the negative frequencies that are not returned in the spectrum trace.'
},
'name': 'Q_ONLY',
'value': 2
}
]
},
'SpectrumAveragingEnabled': {
'values': [
{
'documentation': {
'description': ' The measurement is performed on a single acquisition.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The spectrum measurement uses the RFMXSPECAN_ATTR_SPECTRUM_AVERAGING_COUNT attribute as the number of acquisitions over which the spectrum measurement is averaged.'
},
'name': 'TRUE',
'value': 1
}
]
},
'SpectrumAveragingType': {
'values': [
{
'documentation': {
'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. '
},
'name': 'RMS',
'value': 0
},
{
'documentation': {
'description': ' The power spectrum is averaged in a logarithmic scale.'
},
'name': 'LOG',
'value': 1
},
{
'documentation': {
'description': ' The square root of the power spectrum is averaged.'
},
'name': 'SCALAR',
'value': 2
},
{
'documentation': {
'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.'
},
'name': 'MAXIMUM',
'value': 3
},
{
'documentation': {
'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. '
},
'name': 'MINIMUM',
'value': 4
}
]
},
'SpectrumDetectorType': {
'values': [
{
'documentation': {
'description': ' The detector is disabled.'
},
'name': 'NONE',
'value': 0
},
{
'documentation': {
'description': ' The middle sample in the bucket is detected.'
},
'name': 'SAMPLE',
'value': 1
},
{
'documentation': {
'description': ' The maximum value of the samples within the bucket is detected if the signal only rises or if the signal only falls. If the signal, within a bucket, both rises and falls, then the maximum and minimum values of the samples are detected in alternate buckets.'
},
'name': 'NORMAL',
'value': 2
},
{
'documentation': {
'description': ' The maximum value of the samples in the bucket is detected.'
},
'name': 'PEAK',
'value': 3
},
{
'documentation': {
'description': ' The minimum value of the samples in the bucket is detected.'
},
'name': 'NEGATIVE_PEAK',
'value': 4
},
{
'documentation': {
'description': ' The average RMS of all the samples in the bucket is detected.'
},
'name': 'AVERAGE_RMS',
'value': 5
},
{
'documentation': {
'description': ' The average voltage of all the samples in the bucket is detected. '
},
'name': 'AVERAGE_VOLTAGE',
'value': 6
},
{
'documentation': {
'description': ' The average log of all the samples in the bucket is detected.'
},
'name': 'AVERAGE_LOG',
'value': 7
}
]
},
'SpectrumFftWindow': {
'values': [
{
'documentation': {
'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes. '
},
'name': 'NONE',
'value': 0
},
{
'documentation': {
'description': ' Measures single-tone amplitudes accurately.'
},
'name': 'FLAT_TOP',
'value': 1
},
{
'documentation': {
'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.'
},
'name': 'HANNING',
'value': 2
},
{
'documentation': {
'description': ' Analyzes closely-spaced sine waves.'
},
'name': 'HAMMING',
'value': 3
},
{
'documentation': {
'description': ' Provides a good balance of spectral leakage, frequency resolution, and amplitude attenuation. Hence, this windowing is useful for time-frequency analysis.'
},
'name': 'GAUSSIAN',
'value': 4
},
{
'documentation': {
'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. '
},
'name': 'BLACKMAN',
'value': 5
},
{
'documentation': {
'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. '
},
'name': 'BLACKMAN_HARRIS',
'value': 6
},
{
'documentation': {
'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes. '
},
'name': 'KAISER_BESSEL',
'value': 7
}
]
},
'SpectrumMeasurementMode': {
'values': [
{
'documentation': {
'description': ' Spectrum measurement is performed on the acquired signal. '
},
'name': 'MEASURE',
'value': 0
},
{
'documentation': {
'description': ' Manual noise calibration of the signal analyzer is performed for the spectrum measurement.'
},
'name': 'CALIBRATE_NOISE_FLOOR',
'value': 1
}
]
},
'SpectrumNoiseCalibrationAveragingAuto': {
'values': [
{
'documentation': {
'description': ' RFmx uses the averages that you set for the RFMXSPECAN_ATTR_SPECTRUM_NOISE_CALIBRATION_AVERAGING_COUNT attribute.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' RFmx uses a noise calibration averaging count of 32.'
},
'name': 'TRUE',
'value': 1
}
]
},
'SpectrumNoiseCalibrationDataValid': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'SpectrumNoiseCalibrationMode': {
'values': [
{
'documentation': {
'description': ' When you set the RFMXSPECAN_ATTR_SPECTRUM_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_SPECTRUM_MEASUREMENT_MODE_CALIBRATE_NOISE_FLOOR, you can initiate instrument noise calibration for the spectrum measurement manually. When you set the RFMXSPECAN_ATTR_SPECTRUM_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_SPECTRUM_MEASUREMENT_MODE_MEASURE, you can initiate the spectrum measurement manually.'
},
'name': 'MANUAL',
'value': 0
},
{
'documentation': {
'description': ' When you set the RFMXSPECAN_ATTR_SPECTRUM_NOISE_COMPENSATION_ENABLED attribute to RFMXSPECAN_VAL_SPECTRUM_NOISE_COMPENSATION_ENABLED_TRUE, RFmx sets the Input Isolation Enabled attribute to Enabled and calibrates the intrument noise in the current state of the instrument. RFmx then resets the Input Isolation Enabled attribute and performs the spectrum measurement, including compensation for noise from the instrument. RFmx skips noise calibration in this mode if valid noise calibration data is already cached. When you set the RFMXSPECAN_ATTR_SPECTRUM_NOISE_COMPENSATION_ENABLED attribute to RFMXSPECAN_VAL_SPECTRUM_NOISE_COMPENSATION_ENABLED_FALSE, RFmx does not calibrate instrument noise and performs only the spectrum measurement without compensating for the noise from the instrument.'
},
'name': 'AUTO',
'value': 1
}
]
},
'SpectrumNoiseCompensationEnabled': {
'values': [
{
'documentation': {
'description': ' Disables compensation of the spectrum for the noise floor of the signal analyzer.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables compensation of the spectrum for the noise floor of the signal analyzer. The noise floor of the signal analyzer is measured for the RF path used by the Spectrum measurement and cached for future use. If signal analyzer or measurement parameters change, noise floors are measured again.'
},
'name': 'TRUE',
'value': 1
}
]
},
'SpectrumNoiseCompensationType': {
'values': [
{
'documentation': {
'description': ' Compensates for noise from the analyzer and the 50 ohm termination. The measured power values are in excess of the thermal noise floor.'
},
'name': 'ANALYZER_AND_TERMINATION',
'value': 0
},
{
'documentation': {
'description': ' Compensates for the analyzer noise only.'
},
'name': 'ANALYZER_ONLY',
'value': 1
}
]
},
'SpectrumPowerUnits': {
'values': [
{
'documentation': {
'description': ' The absolute powers are reported in dBm.'
},
'name': 'DBM',
'value': 0
},
{
'documentation': {
'description': ' The absolute powers are reported in dBm/Hz.'
},
'name': 'DBM_PER_HZ',
'value': 1
},
{
'documentation': {
'description': ' The absolute powers are reported in dBW.'
},
'name': 'DBW',
'value': 2
},
{
'documentation': {
'description': ' The absolute powers are reported in dBV.'
},
'name': 'DBV',
'value': 3
},
{
'documentation': {
'description': ' The absolute powers are reported in dBmV.'
},
'name': 'DBMV',
'value': 4
},
{
'documentation': {
'description': ' The absolute powers are reported in dBuV.'
},
'name': 'DBUV',
'value': 5
},
{
'documentation': {
'description': ' The absolute powers are reported in W.'
},
'name': 'WATTS',
'value': 6
},
{
'documentation': {
'description': ' The absolute powers are reported in volts.'
},
'name': 'VOLTS',
'value': 7
},
{
'documentation': {
'description': ' The absolute powers are reported in volts2.'
},
'name': 'VOLTS_SQUARED',
'value': 8
}
]
},
'SpectrumRbwAutoBandwidth': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'SpectrumRbwFilterBandwidthDefinition': {
'values': [
{
'documentation': {
'description': ' Defines the RBW in terms of the 3dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_SPECTRUM_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3dB bandwidth of the window specified by the RFMXSPECAN_ATTR_SPECTRUM_FFT_WINDOW attribute.'
},
'name': '3_DB',
'value': 0
},
{
'documentation': {
'description': ' Defines the RBW in terms of the 6dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_TYPE attribute to FFT Based, RBW is the 6dB bandwidth of the window specified by the RFMXSPECAN_ATTR_SPECTRUM_FFT_WINDOW attribute.'
},
'name': '6_DB',
'value': 1
},
{
'documentation': {
'description': ' Defines the RBW in terms of the spectrum bin width computed using FFT when you set the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_TYPE attribute to FFT Based.'
},
'name': 'BIN_WIDTH',
'value': 2
},
{
'documentation': {
'description': ' Defines the RBW in terms of the ENBW bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_TYPE attribute to FFT Based, RBW is the ENBW bandwidth of the window specified by the RFMXSPECAN_ATTR_SPECTRUM_FFT_WINDOW attribute.'
},
'name': 'ENBW',
'value': 3
}
]
},
'SpectrumRbwFilterType': {
'values': [
{
'documentation': {
'description': ' No RBW filtering is performed.'
},
'name': 'FFT_BASED',
'value': 0
},
{
'documentation': {
'description': ' The RBW filter has a Gaussian response.'
},
'name': 'GAUSSIAN',
'value': 1
},
{
'documentation': {
'description': ' The RBW filter has a flat response.'
},
'name': 'FLAT',
'value': 2
}
]
},
'SpectrumSweepTimeAuto': {
'values': [
{
'documentation': {
'description': ' The measurement uses the sweep time that you specify in the RFMXSPECAN_ATTR_SPECTRUM_SWEEP_TIME_INTERVAL attribute. '
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The measurement calculates the sweep time based on the value of the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_BANDWIDTH attribute.'
},
'name': 'TRUE',
'value': 1
}
]
},
'SpectrumVbwFilterAutoBandwidth': {
'values': [
{
'documentation': {
'description': ' Specify the video bandwidth in the RFMXSPECAN_ATTR_SPECTRUM_VBW_FILTER_BANDWIDTH attribute. The RFMXSPECAN_ATTR_SPECTRUM_VBW_FILTER_VBW_TO_RBW_RATIO attribute is disregarded in this mode.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Specify video bandwidth in terms of the VBW to RBW ratio. The value of the video bandwidth is then computed by using the RFMXSPECAN_ATTR_SPECTRUM_VBW_FILTER_VBW_TO_RBW_RATIO attribute and the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_BANDWIDTH attribute. The value of the RFMXSPECAN_ATTR_SPECTRUM_VBW_FILTER_BANDWIDTH attribute is disregarded in this mode.'
},
'name': 'TRUE',
'value': 1
}
]
},
'SpurAbsoluteLimitMode': {
'values': [
{
'name': 'MANUAL',
'value': 0
},
{
'name': 'COUPLE',
'value': 1
}
]
},
'SpurAmplitudeCorrectionType': {
'values': [
{
'documentation': {
'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.'
},
'name': 'RF_CENTER_FREQUENCY',
'value': 0
},
{
'documentation': {
'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.'
},
'name': 'SPECTRUM_FREQUENCY_BIN',
'value': 1
}
]
},
'SpurAveragingEnabled': {
'values': [
{
'documentation': {
'description': ' The measurement is performed on a single acquisition.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The Spur measurement uses the RFMXSPECAN_ATTR_SPUR_AVERAGING_COUNT attribute as the number of acquisitions over which the Spur measurement is averaged.'
},
'name': 'TRUE',
'value': 1
}
]
},
'SpurAveragingType': {
'values': [
{
'documentation': {
'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. '
},
'name': 'RMS',
'value': 0
},
{
'documentation': {
'description': ' The power spectrum is averaged in a logarithmic scale.'
},
'name': 'LOG',
'value': 1
},
{
'documentation': {
'description': ' The square root of the power spectrum is averaged.'
},
'name': 'SCALAR',
'value': 2
},
{
'documentation': {
'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.'
},
'name': 'MAXIMUM',
'value': 3
},
{
'documentation': {
'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. '
},
'name': 'MINIMUM',
'value': 4
}
]
},
'SpurFftWindow': {
'values': [
{
'documentation': {
'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes. '
},
'name': 'NONE',
'value': 0
},
{
'documentation': {
'description': ' Measures single-tone amplitudes accurately.'
},
'name': 'FLAT_TOP',
'value': 1
},
{
'documentation': {
'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.'
},
'name': 'HANNING',
'value': 2
},
{
'documentation': {
'description': ' Analyzes closely-spaced sine waves.'
},
'name': 'HAMMING',
'value': 3
},
{
'documentation': {
'description': ' Provides a balance of spectral leakage, frequency resolution, and amplitude attenuation. This windowing is useful for time-frequency analysis.'
},
'name': 'GAUSSIAN',
'value': 4
},
{
'documentation': {
'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. '
},
'name': 'BLACKMAN',
'value': 5
},
{
'documentation': {
'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. '
},
'name': 'BLACKMAN_HARRIS',
'value': 6
},
{
'documentation': {
'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes.'
},
'name': 'KAISER_BESSEL',
'value': 7
}
]
},
'SpurMeasurementStatus': {
'values': [
{
'name': 'FAIL',
'value': 0
},
{
'name': 'PASS',
'value': 1
}
]
},
'SpurRangeDetectorType': {
'values': [
{
'documentation': {
'description': ' The detector is disabled.'
},
'name': 'NONE',
'value': 0
},
{
'documentation': {
'description': ' The middle sample in the bucket is detected.'
},
'name': 'SAMPLE',
'value': 1
},
{
'documentation': {
'description': ' The maximum value of the samples within the bucket is detected if the signal only rises or if the signal only falls. If the signal, within a bucket, both rises and falls, then the maximum and minimum values of the samples are detected in alternate buckets.'
},
'name': 'NORMAL',
'value': 2
},
{
'documentation': {
'description': ' The maximum value of the samples in the bucket is detected.'
},
'name': 'PEAK',
'value': 3
},
{
'documentation': {
'description': ' The minimum value of the samples in the bucket is detected.'
},
'name': 'NEGATIVE_PEAK',
'value': 4
},
{
'documentation': {
'description': ' The average RMS of all the samples in the bucket is detected.'
},
'name': 'AVERAGE_RMS',
'value': 5
},
{
'documentation': {
'description': ' The average voltage of all the samples in the bucket is detected. '
},
'name': 'AVERAGE_VOLTAGE',
'value': 6
},
{
'documentation': {
'description': ' The average log of all the samples in the bucket is detected.'
},
'name': 'AVERAGE_LOG',
'value': 7
}
]
},
'SpurRangeEnabled': {
'values': [
{
'documentation': {
'description': ' Disables the acquisition of the frequency range.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Enables measurement of Spurs in the frequency range.'
},
'name': 'TRUE',
'value': 1
}
]
},
'SpurRangeStatus': {
'values': [
{
'name': 'FAIL',
'value': 0
},
{
'name': 'PASS',
'value': 1
}
]
},
'SpurRangeVbwFilterAutoBandwidth': {
'values': [
{
'documentation': {
'description': ' Specify the video bandwidth in the RFMXSPECAN_ATTR_SPUR_RANGE_VBW_FILTER_BANDWIDTH attribute. The Spur VBW to RBW Ratio attribute is disregarded in this mode.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Specify video bandwidth in terms of the VBW to RBW ratio. The value of the video bandwidth is then computed by using the RFMXSPECAN_ATTR_SPUR_RANGE_VBW_FILTER_VBW_TO_RBW_RATIO attribute and the RFMXSPECAN_ATTR_SPUR_RANGE_RBW_FILTER_BANDWIDTH attribute. The value of the RFMXSPECAN_ATTR_SPUR_RANGE_VBW_FILTER_BANDWIDTH attribute is disregarded in this mode.'
},
'name': 'TRUE',
'value': 1
}
]
},
'SpurRbwAutoBandwidth': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'SpurRbwFilterBandwidthDefinition': {
'values': [
{
'name': '3_DB',
'value': 0
},
{
'name': 'BIN_WIDTH',
'value': 2
},
{
'name': 'ENBW',
'value': 3
}
]
},
'SpurRbwFilterType': {
'values': [
{
'name': 'FFT_BASED',
'value': 0
},
{
'name': 'GAUSSIAN',
'value': 1
},
{
'name': 'FLAT',
'value': 2
}
]
},
'SpurSweepTimeAuto': {
'values': [
{
'name': 'FALSE',
'value': 0
},
{
'name': 'TRUE',
'value': 1
}
]
},
'TriggerMinimumQuietTimeMode': {
'values': [
{
'documentation': {
'description': ' The minimum quiet time for triggering is the value of the RFMXSPECAN_ATTR_TRIGGER_MINIMUM_QUIET_TIME_DURATION attribute. '
},
'name': 'MANUAL',
'value': 0
},
{
'documentation': {
'description': ' The measurement computes the minimum quiet time used for triggering.'
},
'name': 'AUTO',
'value': 1
}
]
},
'TriggerType': {
'values': [
{
'documentation': {
'description': ' No Reference Trigger is configured.'
},
'name': 'NONE',
'value': 0
},
{
'documentation': {
'description': ' The Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified using the RFMXSPECAN_ATTR_DIGITAL_EDGE_TRIGGER_SOURCE attribute.'
},
'name': 'DIGITAL_EDGE',
'value': 1
},
{
'documentation': {
'description': ' The Reference Trigger is asserted when the signal changes past the level specified by the slope (rising or falling), which is configured using the RFMXSPECAN_ATTR_IQ_POWER_EDGE_TRIGGER_SLOPE attribute.'
},
'name': 'IQ_POWER_EDGE',
'value': 2
},
{
'documentation': {
'description': ' The Reference Trigger is not asserted until a software trigger occurs. '
},
'name': 'SOFTWARE',
'value': 3
}
]
},
'TxpAveragingEnabled': {
'values': [
{
'documentation': {
'description': ' The measurement is performed on a single acquisition.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The TXP measurement uses the RFMXSPECAN_ATTR_TXP_AVERAGING_COUNT attribute as the number of acquisitions over which the TXP measurement is averaged.'
},
'name': 'TRUE',
'value': 1
}
]
},
'TxpAveragingType': {
'values': [
{
'documentation': {
'description': ' The power trace is linearly averaged.'
},
'name': 'RMS',
'value': 0
},
{
'documentation': {
'description': ' The power trace is averaged in a logarithmic scale.'
},
'name': 'LOG',
'value': 1
},
{
'documentation': {
'description': ' The square root of the power trace is averaged.'
},
'name': 'SCALAR',
'value': 2
},
{
'documentation': {
'description': ' The maximum instantaneous power in the power trace is retained from one acquisition to the next.'
},
'name': 'MAXIMUM',
'value': 3
},
{
'documentation': {
'description': ' The minimum instantaneous power in the power trace is retained from one acquisition to the next.'
},
'name': 'MINIMUM',
'value': 4
}
]
},
'TxpRbwFilterType': {
'values': [
{
'documentation': {
'description': ' The RBW filter has a Gaussian response.'
},
'name': 'NONE',
'value': 1
},
{
'documentation': {
'description': ' The RBW filter has a flat response.'
},
'name': 'GAUSSIAN',
'value': 2
},
{
'documentation': {
'description': ' The measurement does not use any RBW filtering.'
},
'name': 'FLAT',
'value': 5
},
{
'documentation': {
'description': ' The RRC filter with the roll-off specified by the RFMXSPECAN_ATTR_TXP_RBW_FILTER_ALPHA attribute is used as the RBW filter.'
},
'name': 'RRC',
'value': 6
}
]
},
'TxpThresholdEnabled': {
'values': [
{
'documentation': {
'description': ' All the acquired samples are considered for the TXP measurement.'
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' The samples above the threshold level specified in the RFMXSPECAN_ATTR_TXP_THRESHOLD_LEVEL attribute are considered for the TXP measurement.'
},
'name': 'TRUE',
'value': 1
}
]
},
'TxpThresholdType': {
'values': [
{
'documentation': {
'description': ' The threshold is relative to the peak power of the acquired samples.'
},
'name': 'RELATIVE',
'value': 0
},
{
'documentation': {
'description': ' The threshold is the absolute power, in dBm.'
},
'name': 'ABSOLUTE',
'value': 1
}
]
},
'TxpVbwFilterAutoBandwidth': {
'values': [
{
'documentation': {
'description': ' Specify the video bandwidth in the RFMXSPECAN_ATTR_TXP_VBW_FILTER_BANDWIDTH attribute. The RFMXSPECAN_ATTR_TXP_VBW_FILTER_VBW_TO_RBW_RATIO attribute is disregarded in this mode. '
},
'name': 'FALSE',
'value': 0
},
{
'documentation': {
'description': ' Specify video bandwidth in terms of the VBW to RBW ratio. The value of the video bandwidth is then computed by using the RFMXSPECAN_ATTR_TXP_VBW_FILTER_VBW_TO_RBW_RATIO attribute and the RFMXSPECAN_ATTR_TXP_RBW_FILTER_BANDWIDTH attribute. The value of the RFMXSPECAN_ATTR_TXP_VBW_FILTER_BANDWIDTH attribute is disregarded in this mode.'
},
'name': 'TRUE',
'value': 1
}
]
}
}
|
enums = {'AcpAmplitudeCorrectionType': {'values': [{'documentation': {'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.'}, 'name': 'RF_CENTER_FREQUENCY', 'value': 0}, {'documentation': {'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.'}, 'name': 'SPECTRUM_FREQUENCY_BIN', 'value': 1}]}, 'AcpAveragingEnabled': {'values': [{'documentation': {'description': ' The measurement is performed on a single acquisition.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The ACP measurement uses the RFMXSPECAN_ATTR_ACP_AVERAGING_COUNT attribute as the number of acquisitions over which the ACP measurement is averaged. '}, 'name': 'TRUE', 'value': 1}]}, 'AcpAveragingType': {'values': [{'documentation': {'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. '}, 'name': 'RMS', 'value': 0}, {'documentation': {'description': ' The power spectrum is averaged in a logarithmic scale.'}, 'name': 'LOG', 'value': 1}, {'documentation': {'description': ' The square root of the power spectrum is averaged.'}, 'name': 'SCALAR', 'value': 2}, {'documentation': {'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.'}, 'name': 'MAXIMUM', 'value': 3}, {'documentation': {'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. '}, 'name': 'MINIMUM', 'value': 4}]}, 'AcpCarrierMode': {'values': [{'documentation': {'description': ' The carrier power is not considered as part of the total carrier power.'}, 'name': 'PASSIVE', 'value': 0}, {'documentation': {'description': ' The carrier power is considered as part of the total carrier power.'}, 'name': 'ACTIVE', 'value': 1}]}, 'AcpCarrierRrcFilterEnabled': {'values': [{'documentation': {'description': ' The channel power of the acquired carrier channel is measured directly.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The measurement applies the RRC filter on the acquired carrier channel before measuring the carrier channel power.'}, 'name': 'TRUE', 'value': 1}]}, 'AcpFftOverlapMode': {'values': [{'documentation': {'description': ' Disables the overlap between the chunks.'}, 'name': 'DISABLED', 'value': 0}, {'documentation': {'description': ' Measurement sets the overlap based on the value you have set for the RFMXSPECAN_ATTR_ACP_FFT_WINDOW attribute. When you set the RFMXSPECAN_ATTR_ACP_FFT_WINDOW attribute to any value other than RFMXSPECAN_VAL_ACP_FFT_WINDOW_NONE, the number of overlapped samples between consecutive chunks is set to 50% of the value of the RFMXSPECAN_ATTR_ACP_SEQUENTIAL_FFT_SIZE attribute. When you set the RFMXSPECAN_ATTR_ACP_FFT_WINDOW attribute to RFMXSPECAN_VAL_ACP_FFT_WINDOW_NONE, the chunks are not overlapped and the overlap is set to 0%.'}, 'name': 'AUTOMATIC', 'value': 1}, {'documentation': {'description': ' Measurement uses the overlap that you specify in the RFMXSPECAN_ATTR_ACP_FFT_OVERLAP attribute.'}, 'name': 'USER_DEFINED', 'value': 2}]}, 'AcpFftWindow': {'values': [{'documentation': {'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes.'}, 'name': 'NONE', 'value': 0}, {'documentation': {'description': ' Measures single-tone amplitudes accurately.'}, 'name': 'FLAT_TOP', 'value': 1}, {'documentation': {'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.'}, 'name': 'HANNING', 'value': 2}, {'documentation': {'description': ' Analyzes closely-spaced sine waves.'}, 'name': 'HAMMING', 'value': 3}, {'documentation': {'description': ' Provides a good balance of spectral leakage, frequency resolution, and amplitude attenuation. Hence, this windowing is useful for time-frequency analysis.'}, 'name': 'GAUSSIAN', 'value': 4}, {'documentation': {'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. '}, 'name': 'BLACKMAN', 'value': 5}, {'documentation': {'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. '}, 'name': 'BLACKMAN_HARRIS', 'value': 6}, {'documentation': {'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes.'}, 'name': 'KAISER_BESSEL', 'value': 7}]}, 'AcpIFOutputPowerOffsetAuto': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'AcpMeasurementMethod': {'values': [{'documentation': {'description': ' The ACP measurement acquires the spectrum using the same signal analyzer setting across frequency bands. Use this method when measurement speed is desirable over higher dynamic range. '}, 'name': 'NORMAL', 'value': 0}, {'documentation': {'description': ' The ACP measurement acquires the spectrum using the hardware-specific optimizations for different frequency bands. Use this method to get the best dynamic range.\n\n Supported devices: PXIe-5665/5668'}, 'name': 'DYNAMIC_RANGE', 'value': 1}, {'documentation': {'description': ' The ACP measurement acquires I/Q samples for a duration specified by the RFMXSPECAN_ATTR_ACP_SWEEP_TIME_INTERVAL attribute. These samples are divided into smaller chunks. The size of each chunk is defined by the RFMXSPECAN_ATTR_ACP_SEQUENTIAL_FFT_SIZE attribute. The overlap between the chunks is defined by the RFMXSPECAN_ATTR_ACP_FFT_OVERLAP_MODE attribute. FFT is computed on each of these chunks. The resultant FFTs are averaged to get the spectrum and is used to compute ACP. If the total acquired samples is not an integer multiple of the FFT size, the remaining samples at the end of acquisition are not used for the measurement. Use this method to optimize ACP measurement speed. Accuracy of the results may be reduced when using this measurement method.'}, 'name': 'SEQUENTIAL_FFT', 'value': 2}]}, 'AcpMeasurementMode': {'values': [{'documentation': {'description': ' ACP measurement is performed on the acquired signal. '}, 'name': 'MEASURE', 'value': 0}, {'documentation': {'description': ' Manual noise calibration of the signal analyzer is performed for the ACP measurement.'}, 'name': 'CALIBRATE_NOISE_FLOOR', 'value': 1}]}, 'AcpNoiseCalibrationAveragingAuto': {'values': [{'documentation': {'description': ' RFmx uses the averages that you set for the RFMXSPECAN_ATTR_ACP_NOISE_CALIBRATION_AVERAGING_COUNT attribute.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' When you set the RFMXSPECAN_ATTR_ACP_MEASUREMENT_METHOD attribute to RFMXSPECAN_VAL_ACP_MEASUREMENT_METHOD_NORMAL, RFmx uses a noise calibration averaging count of 32. When you set the RFMXSPECAN_ATTR_ACP_MEASUREMENT_METHOD attribute to RFMXSPECAN_VAL_ACP_MEASUREMENT_METHOD_DYNAMIC_RANGE and the sweep time is less than 5 ms, RFmx uses a noise calibration averaging count of 15. When you set the RFMXSPECAN_ATTR_ACP_MEASUREMENT_METHOD attribute to RFMXSPECAN_VAL_ACP_MEASUREMENT_METHOD_DYNAMIC_RANGE and the sweep time is greater than or equal to 5 ms, RFmx uses a noise calibration averaging count of 5.'}, 'name': 'TRUE', 'value': 1}]}, 'AcpNoiseCalibrationDataValid': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'AcpNoiseCalibrationMode': {'values': [{'documentation': {'description': ' When you set the RFMXSPECAN_ATTR_ACP_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_ACP_MEASUREMENT_MODE_CALIBRATE_NOISE_FLOOR, you can initiate instrument noise calibration for the ACP measurement manually. When you set the RFMXSPECAN_ATTR_ACP_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_ACP_MEASUREMENT_MODE_MEASURE, you can initiate the ACP measurement manually.'}, 'name': 'MANUAL', 'value': 0}, {'documentation': {'description': ' When you set the RFMXSPECAN_ATTR_ACP_NOISE_COMPENSATION_ENABLED to RFMXSPECAN_VAL_ACP_NOISE_COMPENSATION_ENABLED_TRUE, RFmx sets the Input Isolation Enabled attribute to Enabled and calibrates the instrument noise in the current state of the instrument. RFmx then resets the Input Isolation Enabled attribute and performs the ACP measurement, including compensation for noise of the instrument. RFmx skips noise calibration in this mode if valid noise calibration data is already cached. When you set the RFMXSPECAN_ATTR_ACP_NOISE_COMPENSATION_ENABLED attribute to RFMXSPECAN_VAL_ACP_NOISE_COMPENSATION_ENABLED_FALSE, RFmx does not calibrate instrument noise and only performs the ACP measurement without compensating for noise of the instrument.'}, 'name': 'AUTO', 'value': 1}]}, 'AcpNoiseCompensationEnabled': {'values': [{'documentation': {'description': ' Disables noise compensation.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables noise compensation.'}, 'name': 'TRUE', 'value': 1}]}, 'AcpNoiseCompensationType': {'values': [{'documentation': {'description': ' Compensates for noise from the analyzer and the 50-ohm termination. The measured power values are in excess of the thermal noise floor.'}, 'name': 'ANALYZER_AND_TERMINATION', 'value': 0}, {'documentation': {'description': ' Compensates for the analyzer noise only.'}, 'name': 'ANALYZER_ONLY', 'value': 1}]}, 'AcpOffsetEnabled': {'values': [{'documentation': {'description': ' Disables the offset channel for ACP measurement.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables the offset channel for ACP measurement.'}, 'name': 'TRUE', 'value': 1}]}, 'AcpOffsetFrequencyDefinition': {'values': [{'documentation': {'description': ' The offset frequency is defined from the center of the closest carrier to the center of the offset channel.'}, 'name': 'CARRIER_CENTER_TO_OFFSET_CENTER', 'value': 0}, {'documentation': {'description': ' The offset frequency is defined from the center of the closest carrier to the nearest edge of the offset channel.'}, 'name': 'CARRIER_CENTER_TO_OFFSET_EDGE', 'value': 1}]}, 'AcpOffsetPowerReferenceCarrier': {'values': [{'documentation': {'description': ' The measurement uses the power measured in the carrier closest to the offset channel center frequency, as the power reference.'}, 'name': 'CLOSEST', 'value': 0}, {'documentation': {'description': ' The measurement uses the highest power measured among all the active carriers as the power reference.'}, 'name': 'HIGHEST', 'value': 1}, {'documentation': {'description': ' The measurement uses the sum of powers measured in all the active carriers as the power reference.'}, 'name': 'COMPOSITE', 'value': 2}, {'documentation': {'description': ' The measurement uses the power measured in the carrier that has an index specified by the RFMXSPECAN_ATTR_ACP_OFFSET_POWER_REFERENCE_SPECIFIC attribute, as the power reference.'}, 'name': 'SPECIFIC', 'value': 3}]}, 'AcpOffsetRrcFilterEnabled': {'values': [{'documentation': {'description': ' The channel power of the acquired offset channel is measured directly.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The measurement applies the RRC filter on the acquired offset channel before measuring the offset channel power.'}, 'name': 'TRUE', 'value': 1}]}, 'AcpOffsetSideband': {'values': [{'documentation': {'description': ' Configures a lower offset segment to the left of the leftmost carrier. '}, 'name': 'NEGATIVE', 'value': 0}, {'documentation': {'description': ' Configures an upper offset segment to the right of the rightmost carrier. '}, 'name': 'POSITIVE', 'value': 1}, {'documentation': {'description': ' Configures both negative and positive offset segments.'}, 'name': 'BOTH', 'value': 2}]}, 'AcpPowerUnits': {'values': [{'documentation': {'description': ' The absolute powers are reported in dBm.'}, 'name': 'DBM', 'value': 0}, {'documentation': {'description': ' The absolute powers are reported in dBm/Hz.'}, 'name': 'DBM_PER_HZ', 'value': 1}]}, 'AcpRbwAutoBandwidth': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'AcpRbwFilterBandwidthDefinition': {'values': [{'documentation': {'description': ' Defines the RBW in terms of the 3dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_ACP_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_ACP_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3dB bandwidth of the window specified by the RFMXSPECAN_ATTR_ACP_FFT_WINDOW attribute.'}, 'name': '3_DB', 'value': 0}, {'documentation': {'description': ' Defines the RBW in terms of the bin width of the spectrum computed using FFT when you set the RFMXSPECAN_ATTR_ACP_RBW_FILTER_TYPE attribute to FFT Based.'}, 'name': 'BIN_WIDTH', 'value': 2}]}, 'AcpRbwFilterType': {'values': [{'documentation': {'description': ' No RBW filtering is performed.'}, 'name': 'FFT_BASED', 'value': 0}, {'documentation': {'description': ' An RBW filter with a Gaussian response is applied.'}, 'name': 'GAUSSIAN', 'value': 1}, {'documentation': {'description': ' An RBW filter with a flat response is applied.'}, 'name': 'FLAT', 'value': 2}]}, 'AcpSweepTimeAuto': {'values': [{'documentation': {'description': ' The measurement uses the sweep time that you specify in the RFMXSPECAN_ATTR_ACP_SWEEP_TIME_INTERVAL attribute.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The measurement calculates the sweep time based on the value of the RFMXSPECAN_ATTR_ACP_RBW_FILTER_BANDWIDTH attribute.'}, 'name': 'TRUE', 'value': 1}]}, 'AmpmAMToAMCurveFitType': {'values': [{'name': 'LEAST_SQUARE', 'value': 0}, {'name': 'LEAST_ABSOLUTE_RESIDUAL', 'value': 1}, {'name': 'BISQUARE', 'value': 2}]}, 'AmpmAMToAMEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'AmpmAMToPMCurveFitType': {'values': [{'name': 'LEAST_SQUARE', 'value': 0}, {'name': 'LEAST_ABSOLUTE_RESIDUAL', 'value': 1}, {'name': 'BISQUARE', 'value': 2}]}, 'AmpmAMToPMEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'AmpmAutoCarrierDetectionEnabled': {'values': [{'documentation': {'description': ' Disables auto detection of carrier offset and carrier bandwidth.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables auto detection of carrier offset and carrier bandwidth.'}, 'name': 'TRUE', 'value': 1}]}, 'AmpmAveragingEnabled': {'values': [{'documentation': {'description': ' The measurement is performed on a single acquisition.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The AMPM measurement uses the RFMXSPECAN_ATTR_AMPM_AVERAGING_COUNT attribute as the number of acquisitions over which the signal for the AMPM measurement is averaged.'}, 'name': 'TRUE', 'value': 1}]}, 'AmpmCompressionPointEnabled': {'values': [{'documentation': {'description': ' Disables computation of compression points.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables computation of compression points.'}, 'name': 'TRUE', 'value': 1}]}, 'AmpmCompressionPointGainReference': {'values': [{'documentation': {'description': ' Measurement computes the gain reference to be used for compression point calculation. The computed gain reference is also returned as RFMXSPECAN_ATTR_AMPM_RESULTS_MEAN_LINEAR_GAIN result.'}, 'name': 'AUTO', 'value': 0}, {'documentation': {'description': ' Measurement uses the gain corresponding to the reference power that you specify for the RFMXSPECAN_ATTR_AMPM_COMPRESSION_POINT_GAIN_REFERENCE_POWER attribute as gain reference. The reference power can be configured as either input or output power based on the value of the RFMXSPECAN_ATTR_AMPM_REFERENCE_POWER_TYPE attribute.'}, 'name': 'REFERENCE_POWER', 'value': 1}]}, 'AmpmEqualizerMode': {'values': [{'documentation': {'description': ' Equalization is not performed.'}, 'name': 'OFF', 'value': 0}, {'documentation': {'description': ' The equalizer is turned on to compensate for the effect of the channel.'}, 'name': 'TRAIN', 'value': 1}]}, 'AmpmEvmEnabled': {'values': [{'documentation': {'description': ' Disables EVM computation. NaN is returned as Mean RMS EVM.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables EVM computation.'}, 'name': 'TRUE', 'value': 1}]}, 'AmpmFrequencyOffsetCorrectionEnabled': {'values': [{'documentation': {'description': ' The measurement does not perform frequency offset correction.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The measurement computes and corrects any frequency offset between the reference and the acquired waveforms.'}, 'name': 'TRUE', 'value': 1}]}, 'AmpmIQOriginOffsetCorrectionEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'AmpmMeasurementSampleRateMode': {'values': [{'documentation': {'description': ' The acquisition sample rate is defined by the value of the RFMXSPECAN_ATTR_AMPM_MEASUREMENT_SAMPLE_RATE attribute.'}, 'name': 'USER', 'value': 0}, {'documentation': {'description': ' The acquisition sample rate is set to match the sample rate of the reference waveform.'}, 'name': 'REFERENCE_WAVEFORM', 'value': 1}]}, 'AmpmReferencePowerType': {'values': [{'documentation': {'description': ' The instantaneous powers at the input port of device under test (DUT) forms the x-axis of AM to AM and AM to PM traces.'}, 'name': 'INPUT', 'value': 0}, {'documentation': {'description': ' The instantaneous powers at the output port of DUT forms the x-axis of AM to AM and AM to PM traces.'}, 'name': 'OUTPUT', 'value': 1}]}, 'AmpmReferenceWaveformIdleDurationPresent': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'AmpmSignalType': {'values': [{'documentation': {'description': ' The reference waveform is a cellular or connectivity standard signal.'}, 'name': 'MODULATED', 'value': 0}, {'documentation': {'description': ' The reference waveform is a continuous signal comprising of one or more tones.'}, 'name': 'TONES', 'value': 1}]}, 'AmpmSynchronizationMethod': {'values': [{'documentation': {'description': ' Synchronizes the acquired and reference waveforms assuming that sample rate is sufficient to prevent aliasing in intermediate operations. This method is recommended when the measurement sampling rate is high.'}, 'name': 'DIRECT', 'value': 1}, {'documentation': {'description': ' Synchronizes the acquired and reference waveforms while ascertaining that intermediate operations are not impacted by aliasing. This method is recommended for non-contiguous carriers separated by a large gap, and/or when the measurement sampling rate is low. Refer to AMPM concept help for more information.'}, 'name': 'ALIAS_PROTECTED', 'value': 2}]}, 'AmpmThresholdEnabled': {'values': [{'documentation': {'description': ' All samples are considered for the AMPM measurement.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Samples above the threshold level specified in the RFMXSPECAN_ATTR_AMPM_THRESHOLD_LEVEL attribute are considered for the AMPM measurement.'}, 'name': 'TRUE', 'value': 1}]}, 'AmpmThresholdType': {'values': [{'documentation': {'description': ' The threshold is relative to the peak power of the acquired samples.'}, 'name': 'RELATIVE', 'value': 0}, {'documentation': {'description': ' The threshold is the absolute power, in dBm.'}, 'name': 'ABSOLUTE', 'value': 1}]}, 'Boolean': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'CcdfRbwFilterType': {'values': [{'documentation': {'description': ' The measurement does not use any RBW filtering.'}, 'name': 'NONE', 'value': 5}, {'documentation': {'description': ' The RBW filter has a Gaussian response.'}, 'name': 'GAUSSIAN', 'value': 1}, {'documentation': {'description': ' The RBW filter has a flat response.'}, 'name': 'FLAT', 'value': 2}, {'documentation': {'description': ' The RRC filter with the roll-off specified by the RFMXSPECAN_ATTR_CCDF_RBW_FILTER_RRC_ALPHA attribute is used as the RBW filter.'}, 'name': 'RRC', 'value': 6}]}, 'CcdfThresholdEnabled': {'values': [{'documentation': {'description': ' All samples are considered for the CCDF measurement.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The samples above the threshold level specified in the RFMXSPECAN_ATTR_CCDF_THRESHOLD_LEVEL attribute are considered for the CCDF measurement.'}, 'name': 'TRUE', 'value': 1}]}, 'CcdfThresholdType': {'values': [{'documentation': {'description': ' The threshold is relative to the peak power of the acquired samples.'}, 'name': 'RELATIVE', 'value': 0}, {'documentation': {'description': ' The threshold is the absolute power, in dBm.'}, 'name': 'ABSOLUTE', 'value': 1}]}, 'ChpAmplitudeCorrectionType': {'values': [{'documentation': {'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.'}, 'name': 'RF_CENTER_FREQUENCY', 'value': 0}, {'documentation': {'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.'}, 'name': 'SPECTRUM_FREQUENCY_BIN', 'value': 1}]}, 'ChpAveragingEnabled': {'values': [{'documentation': {'description': ' The measurement is performed on a single acquisition.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The CHP measurement uses the RFMXSPECAN_ATTR_CHP_AVERAGING_COUNT attribute as the number of acquisitions over which the CHP measurement is averaged.'}, 'name': 'TRUE', 'value': 1}]}, 'ChpAveragingType': {'values': [{'documentation': {'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. '}, 'name': 'RMS', 'value': 0}, {'documentation': {'description': ' The power spectrum is averaged in a logarithmic scale.'}, 'name': 'LOG', 'value': 1}, {'documentation': {'description': ' The square root of the power spectrum is averaged.'}, 'name': 'SCALAR', 'value': 2}, {'documentation': {'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.'}, 'name': 'MAXIMUM', 'value': 3}, {'documentation': {'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. '}, 'name': 'MINIMUM', 'value': 4}]}, 'ChpCarrierRrcFilterEnabled': {'values': [{'documentation': {'description': ' The channel power of the acquired channel is measured directly.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The measurement applies the RRC filter on the acquired channel before measuring the channel power.'}, 'name': 'TRUE', 'value': 1}]}, 'ChpFftWindow': {'values': [{'documentation': {'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes. '}, 'name': 'NONE', 'value': 0}, {'documentation': {'description': ' Measures single-tone amplitudes accurately.'}, 'name': 'FLAT_TOP', 'value': 1}, {'documentation': {'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.'}, 'name': 'HANNING', 'value': 2}, {'documentation': {'description': ' Analyzes closely-spaced sine waves.'}, 'name': 'HAMMING', 'value': 3}, {'documentation': {'description': ' Provides a good balance of spectral leakage, frequency resolution, and amplitude attenuation. Hence, this windowing is useful for time-frequency analysis.'}, 'name': 'GAUSSIAN', 'value': 4}, {'documentation': {'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. '}, 'name': 'BLACKMAN', 'value': 5}, {'documentation': {'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. '}, 'name': 'BLACKMAN_HARRIS', 'value': 6}, {'documentation': {'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes. '}, 'name': 'KAISER_BESSEL', 'value': 7}]}, 'ChpMeasurementMode': {'values': [{'documentation': {'description': ' CHP measurement is performed on the acquired signal.'}, 'name': 'MEASURE', 'value': 0}, {'documentation': {'description': ' Manual noise calibration of the signal analyzer is performed for the CHP measurement.'}, 'name': 'CALIBRATE_NOISE_FLOOR', 'value': 1}]}, 'ChpNoiseCalibrationAveragingAuto': {'values': [{'documentation': {'description': ' RFmx uses the averages that you set for the RFMXSPECAN_ATTR_CHP_NOISE_CALIBRATION_AVERAGING_COUNT attribute. '}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' RFmx uses a noise calibration averaging count of 32.'}, 'name': 'TRUE', 'value': 1}]}, 'ChpNoiseCalibrationDataValid': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'ChpNoiseCalibrationMode': {'values': [{'documentation': {'description': ' When you set the RFMXSPECAN_ATTR_CHP_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_CHP_MEASUREMENT_MODE_CALIBRATE_NOISE_FLOOR, you can initiate instrument noise calibration for the CHP measurement manually. When you set the RFMXSPECAN_ATTR_CHP_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_CHP_MEASUREMENT_MODE_MEASURE, you can initiate the CHP measurement manually.'}, 'name': 'MANUAL', 'value': 0}, {'documentation': {'description': ' When you set the RFMXSPECAN_ATTR_CHP_NOISE_COMPENSATION_ENABLED attribute to RFMXSPECAN_VAL_CHP_NOISE_COMPENSATION_ENABLED_TRUE, RFmx sets Input Isolation Enabled to Enabled and calibrates the intrument noise in the current state of the instrument. RFmx then resets the Input Isolation Enabled attribute and performs the CHP measurement, including compensation for noise of the instrument. RFmx skips noise calibration in this mode if valid noise calibration data is already cached. When you set the RFMXSPECAN_ATTR_CHP_NOISE_COMPENSATION_ENABLED attribute to RFMXSPECAN_VAL_CHP_NOISE_COMPENSATION_ENABLED_FALSE, RFmx does not calibrate instrument noise and performs only the CHP measurement without compensating for the noise contribution of the instrument.'}, 'name': 'AUTO', 'value': 1}]}, 'ChpNoiseCompensationEnabled': {'values': [{'documentation': {'description': ' Disables noise compensation.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables noise compensation.'}, 'name': 'TRUE', 'value': 1}]}, 'ChpNoiseCompensationType': {'values': [{'documentation': {'description': ' Compensates for noise from the analyzer and the 50 ohm termination. The measured power values are in excess of the thermal noise floor.'}, 'name': 'ANALYZER_AND_TERMINATION', 'value': 0}, {'documentation': {'description': ' Compensates for the analyzer noise only.'}, 'name': 'ANALYZER_ONLY', 'value': 1}]}, 'ChpRbwAutoBandwidth': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'ChpRbwFilterBandwidthDefinition': {'values': [{'documentation': {'description': ' Defines the RBW in terms of the 3 dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_CHP_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_CHP_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3 dB bandwidth of the window specified by the RFMXSPECAN_ATTR_CHP_FFT_WINDOW attribute.'}, 'name': '3_DB', 'value': 0}, {'documentation': {'description': ' Defines the RBW in terms of the spectrum bin width computed using an FFT when you set the RFMXSPECAN_ATTR_CHP_RBW_FILTER_TYPE attribute to FFT Based.'}, 'name': 'BIN_WIDTH', 'value': 2}]}, 'ChpRbwFilterType': {'values': [{'documentation': {'description': ' No RBW filtering is performed.'}, 'name': 'FFT_BASED', 'value': 0}, {'documentation': {'description': ' An RBW filter with a Gaussian response is applied.'}, 'name': 'GAUSSIAN', 'value': 1}, {'documentation': {'description': ' An RBW filter with a flat response is applied. '}, 'name': 'FLAT', 'value': 2}]}, 'ChpSweepTimeAuto': {'values': [{'documentation': {'description': ' The measurement uses the sweep time that you specify in the RFMXSPECAN_ATTR_CHP_SWEEP_TIME_INTERVAL attribute. '}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The measurement calculates the sweep time based on the value of the RFMXSPECAN_ATTR_CHP_RBW_FILTER_BANDWIDTH attribute.'}, 'name': 'TRUE', 'value': 1}]}, 'DigitalEdgeTriggerEdge': {'values': [{'documentation': {'description': ' The trigger asserts on the rising edge of the signal.'}, 'name': 'RISING_EDGE', 'value': 0}, {'documentation': {'description': ' The trigger asserts on the falling edge of the signal.'}, 'name': 'FALLING_EDGE', 'value': 1}]}, 'DigitalEdgeTriggerSource': {'generate-mappings': True, 'values': [{'documentation': {'description': ' The trigger is received on PFI 0.'}, 'name': 'PFI0', 'value': 'PFI0'}, {'documentation': {'description': ' The trigger is received on PFI 1.'}, 'name': 'PFI1', 'value': 'PFI1'}, {'documentation': {'description': ' The trigger is received on PXI trigger line 0.'}, 'name': 'PXI_TRIG0', 'value': 'PXI_Trig0'}, {'documentation': {'description': ' The trigger is received on PXI trigger line 1.'}, 'name': 'PXI_TRIG1', 'value': 'PXI_Trig1'}, {'documentation': {'description': ' The trigger is received on PXI trigger line 2.'}, 'name': 'PXI_TRIG2', 'value': 'PXI_Trig2'}, {'documentation': {'description': ' The trigger is received on PXI trigger line 3.'}, 'name': 'PXI_TRIG3', 'value': 'PXI_Trig3'}, {'documentation': {'description': ' The trigger is received on PXI trigger line 4.'}, 'name': 'PXI_TRIG4', 'value': 'PXI_Trig4'}, {'documentation': {'description': ' The trigger is received on PXI trigger line 5.'}, 'name': 'PXI_TRIG5', 'value': 'PXI_Trig5'}, {'documentation': {'description': ' The trigger is received on PXI trigger line 6.'}, 'name': 'PXI_TRIG6', 'value': 'PXI_Trig6'}, {'documentation': {'description': ' The trigger is received on PXI trigger line 7.'}, 'name': 'PXI_TRIG7', 'value': 'PXI_Trig7'}, {'documentation': {'description': ' The trigger is received on the PXI star trigger line. '}, 'name': 'PXI_STAR', 'value': 'PXI_STAR'}, {'documentation': {'description': ' The trigger is received on the PXIe DStar B trigger line. '}, 'name': 'PXIE_DSTARB', 'value': 'PXIe_DStarB'}, {'documentation': {'description': ' The trigger is received from the timer event.'}, 'name': 'TIMER_EVENT', 'value': 'TimerEvent'}]}, 'DpdApplyDpdCfrEnabled': {'values': [{'documentation': {'description': ' Disables CFR. The maximum increase in PAPR, after pre-distortion, is limited to 6 dB.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables CFR.'}, 'name': 'TRUE', 'value': 1}]}, 'DpdApplyDpdCfrMethod': {'values': [{'documentation': {'description': ' Hard clips the signal such that the target PAPR is achieved.'}, 'name': 'CLIPPING', 'value': 0}, {'documentation': {'description': ' Scales the peaks in the signal using weighted window function to get smooth peaks and achieve the target PAPR.'}, 'name': 'PEAK_WINDOWING', 'value': 1}, {'documentation': {'description': ' Scales the peaks using modified sigmoid transfer function to get smooth peaks and achieve the target PAPR. This method does not support the filter operation.'}, 'name': 'SIGMOID', 'value': 2}]}, 'DpdApplyDpdCfrTargetPaprType': {'values': [{'documentation': {'description': ' Sets the target PAPR for pre-distorted waveform equal to the PAPR of input waveform.'}, 'name': 'INPUT_PAPR', 'value': 0}, {'documentation': {'description': ' Sets the target PAPR equal to the value that you set for the Apply DPD CFR Target PAPR attribute.'}, 'name': 'CUSTOM', 'value': 1}]}, 'DpdApplyDpdCfrWindowType': {'values': [{'documentation': {'description': ' Uses the flat top window function to scale peaks.'}, 'name': 'FLAT_TOP', 'value': 1}, {'documentation': {'description': ' Uses the Hanning window function to scale peaks.'}, 'name': 'HANNING', 'value': 2}, {'documentation': {'description': ' Uses the Hamming window function to scale peaks.'}, 'name': 'HAMMING', 'value': 3}, {'documentation': {'description': ' Uses the Gaussian window function to scale peaks.'}, 'name': 'GAUSSIAN', 'value': 4}, {'documentation': {'description': ' Uses the Blackman window function to scale peaks.'}, 'name': 'BLACKMAN', 'value': 5}, {'documentation': {'description': ' Uses the Blackman-Harris window function to scale peaks.'}, 'name': 'BLACKMAN_HARRIS', 'value': 6}, {'documentation': {'description': ' Uses the Kaiser-Bessel window function to scale peaks.'}, 'name': 'KAISER_BESSEL', 'value': 7}]}, 'DpdApplyDpdConfigurationInput': {'values': [{'documentation': {'description': ' Uses the computed DPD polynomial or lookup table for applying DPD on an input waveform using the same RFmx session handle. The configuration parameters for applying DPD such as the RFMXSPECAN_ATTR_DPD_DUT_AVERAGE_INPUT_POWER, RFMXSPECAN_ATTR_DPD_MODEL, RFMXSPECAN_ATTR_DPD_MEASUREMENT_SAMPLE_RATE, DPD polynomial, and lookup table are obtained from the DPD measurement configuration. '}, 'name': 'MEASUREMENT', 'value': 0}, {'documentation': {'description': ' Applies DPD by using a computed DPD polynomial or lookup table on an input waveform. You must set the configuration parameters for applying DPD such as the RFMXSPECAN_ATTR_DPD_APPLY_DPD_USER_DUT_AVERAGE_INPUT_POWER, RFMXSPECAN_ATTR_DPD_APPLY_DPD_USER_DPD_MODEL, RFMXSPECAN_ATTR_DPD_APPLY_DPD_USER_MEASUREMENT_SAMPLE_RATE, DPD polynomial, and lookup table. '}, 'name': 'USER', 'value': 1}]}, 'DpdApplyDpdIdleDurationPresent': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'DpdApplyDpdLookupTableCorrectionType': {'values': [{'documentation': {'description': ' The measurement predistorts the magnitude and phase of the input waveform.'}, 'name': 'MAGNITUDE_AND_PHASE', 'value': 0}, {'documentation': {'description': ' The measurement predistorts only the magnitude of the input waveform.'}, 'name': 'MAGNITUDE_ONLY', 'value': 1}, {'documentation': {'description': ' The measurement predistorts only the phase of the input waveform.'}, 'name': 'PHASE_ONLY', 'value': 2}]}, 'DpdApplyDpdMemoryModelCorrectionType': {'values': [{'documentation': {'description': ' The measurement predistorts the magnitude and phase of the input waveform.'}, 'name': 'MAGNITUDE_AND_PHASE', 'value': 0}, {'documentation': {'description': ' The measurement predistorts only the magnitude of the input waveform.'}, 'name': 'MAGNITUDE_ONLY', 'value': 1}, {'documentation': {'description': ' The measurement predistorts only the phase of the input waveform.'}, 'name': 'PHASE_ONLY', 'value': 2}]}, 'DpdApplyDpdUserDpdModel': {'values': [{'documentation': {'description': ' This model computes the complex gain coefficients applied to linearize systems with negligible memory effects.'}, 'name': 'LOOKUP_TABLE', 'value': 0}, {'documentation': {'description': ' This model computes the memory polynomial predistortion coefficients used to linearize systems with moderate memory effects.'}, 'name': 'MEMORY_POLYNOMIAL', 'value': 1}, {'documentation': {'description': ' This model computes the generalized memory polynomial predistortion coefficients used to linearize systems with significant memory effects.'}, 'name': 'GENERALIZED_MEMORY_POLYNOMIAL', 'value': 2}]}, 'DpdApplyDpdUserLookupTableType': {'values': [{'documentation': {'description': ' Input powers in the LUT are specified in dBm.'}, 'name': 'LOG', 'value': 0}, {'documentation': {'description': ' Input powers in the LUT are specified in watts.'}, 'name': 'LINEAR', 'value': 1}]}, 'DpdAutoCarrierDetectionEnabled': {'values': [{'documentation': {'description': ' Disables auto detection of carrier offset and carrier bandwidth.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables auto detection of carrier offset and carrier bandwidth.'}, 'name': 'TRUE', 'value': 1}]}, 'DpdAveragingEnabled': {'values': [{'documentation': {'description': ' The measurement is performed on a single acquisition.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The DPD measurement uses the RFMXSPECAN_ATTR_DPD_AVERAGING_COUNT attribute as the number of acquisitions over which the signal for the DPD measurement is averaged. '}, 'name': 'TRUE', 'value': 1}]}, 'DpdFrequencyOffsetCorrectionEnabled': {'values': [{'documentation': {'description': ' The measurement computes and corrects any frequency offset between the reference and the acquired waveforms.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The measurement does not perform frequency offset correction.'}, 'name': 'TRUE', 'value': 1}]}, 'DpdIQOriginOffsetCorrectionEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'DpdIterativeDpdEnabled': {'values': [{'documentation': {'description': ' RFmx computes the DPD Results DPD Polynomial without considering the value of the DPD Previous DPD Polynomial.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' RFmx computes the DPD Results DPD Polynomial based on the value of the DPD Previous DPD Polynomial.'}, 'name': 'TRUE', 'value': 1}]}, 'DpdLookupTableAMToAMCurveFitType': {'values': [{'name': 'LEAST_SQUARE', 'value': 0}, {'name': 'LEAST_ABSOLUTE_RESIDUAL', 'value': 1}, {'name': 'BISQUARE', 'value': 2}]}, 'DpdLookupTableAMToPMCurveFitType': {'values': [{'name': 'LEAST_SQUARE', 'value': 0}, {'name': 'LEAST_ABSOLUTE_RESIDUAL', 'value': 1}, {'name': 'BISQUARE', 'value': 2}]}, 'DpdLookupTableThresholdEnabled': {'values': [{'documentation': {'description': ' All samples are considered for the DPD measurement.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Only samples above the threshold level which you specify in the RFMXSPECAN_ATTR_DPD_LOOKUP_TABLE_THRESHOLD_LEVEL attribute are considered for the DPD measurement.'}, 'name': 'TRUE', 'value': 1}]}, 'DpdLookupTableThresholdType': {'values': [{'documentation': {'description': ' The threshold is relative to the peak power of the acquired samples.'}, 'name': 'RELATIVE', 'value': 0}, {'documentation': {'description': ' The threshold is the absolute power, in dBm.'}, 'name': 'ABSOLUTE', 'value': 1}]}, 'DpdLookupTableType': {'values': [{'documentation': {'description': ' Input powers in the LUT are specified in dBm.'}, 'name': 'LOG', 'value': 0}, {'documentation': {'description': ' Input powers in the LUT are specified in watts.'}, 'name': 'LINEAR', 'value': 1}]}, 'DpdMeasurementSampleRateMode': {'values': [{'documentation': {'description': ' The acquisition sample rate is defined by the value of the RFMXSPECAN_ATTR_DPD_MEASUREMENT_SAMPLE_RATE attribute.'}, 'name': 'USER', 'value': 0}, {'documentation': {'description': ' The acquisition sample rate is set to match the sample rate of the reference waveform.'}, 'name': 'REFERENCE_WAVEFORM', 'value': 1}]}, 'DpdModel': {'values': [{'documentation': {'description': ' This model computes the complex gain coefficients applied when performing digital predistortion to linearize systems with negligible memory effects.'}, 'name': 'LOOKUP_TABLE', 'value': 0}, {'documentation': {'description': ' This model computes the memory polynomial predistortion coefficients used to linearize systems with moderate memory effects.'}, 'name': 'MEMORY_POLYNOMIAL', 'value': 1}, {'documentation': {'description': ' This model computes the generalized memory polynomial predistortion coefficients used to linearize systems with significant memory effects.'}, 'name': 'GENERALIZED_MEMORY_POLYNOMIAL', 'value': 2}]}, 'DpdNmseEnabled': {'values': [{'documentation': {'description': ' Disables NMSE computation. NaN is returned as NMSE.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables NMSE computation.'}, 'name': 'TRUE', 'value': 1}]}, 'DpdPreDpdCfrEnabled': {'values': [{'documentation': {'description': ' Disables the CFR. The RFmxSpecAn_DPDApplyPreDPDSignalConditioning function returns an error when the CFR is disabled.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables the CFR.'}, 'name': 'TRUE', 'value': 1}]}, 'DpdPreDpdCfrFilterEnabled': {'values': [{'documentation': {'description': ' Disables the filter operation when performing CFR.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables filter operation when performing CFR. Filter operation is not supported when you set the RFMXSPECAN_ATTR_DPD_PRE_DPD_CFR_METHOD attribute to RFMXSPECAN_VAL_DPD_PRE_DPD_CFR_METHOD_SIGMOID.'}, 'name': 'TRUE', 'value': 1}]}, 'DpdPreDpdCfrMethod': {'values': [{'documentation': {'description': ' Hard clips the signal such that the target PAPR is achieved.'}, 'name': 'CLIPPING', 'value': 0}, {'documentation': {'description': ' Scales the peaks in the signal using weighted window function to get smooth peaks and achieve the target PAPR.'}, 'name': 'PEAK_WINDOWING', 'value': 1}, {'documentation': {'description': ' Scales the peaks using modified sigmoid transfer function to get smooth peaks and achieve the target PAPR. This method does not support the filter operation.'}, 'name': 'SIGMOID', 'value': 2}]}, 'DpdPreDpdCfrWindowType': {'values': [{'documentation': {'description': ' Uses the flat top window function to scale peaks.'}, 'name': 'FLAT_TOP', 'value': 1}, {'documentation': {'description': ' Uses the Hanning window function to scale peaks.'}, 'name': 'HANNING', 'value': 2}, {'documentation': {'description': ' Uses the Hamming window function to scale peaks.'}, 'name': 'HAMMING', 'value': 3}, {'documentation': {'description': ' Uses the Gaussian window function to scale peaks.'}, 'name': 'GAUSSIAN', 'value': 4}, {'documentation': {'description': ' Uses the Blackman window function to scale peaks.'}, 'name': 'BLACKMAN', 'value': 5}, {'documentation': {'description': ' Uses the Blackman-Harris window function to scale peaks.'}, 'name': 'BLACKMAN_HARRIS', 'value': 6}, {'documentation': {'description': ' Uses the Kaiser-Bessel window function to scale peaks.'}, 'name': 'KAISER_BESSEL', 'value': 7}]}, 'DpdReferenceWaveformIdleDurationPresent': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'DpdSignalType': {'values': [{'documentation': {'description': ' The reference waveform is a cellular or connectivity standard signal.'}, 'name': 'MODULATED', 'value': 0}, {'documentation': {'description': ' The reference waveform is a continuous signal comprising one or more tones.'}, 'name': 'TONES', 'value': 1}]}, 'DpdSynchronizationMethod': {'values': [{'documentation': {'description': ' Synchronizes the acquired and reference waveforms assuming that sample rate is sufficient to prevent aliasing in intermediate operations. This method is recommended when measurement sampling rate is high.'}, 'name': 'DIRECT', 'value': 1}, {'documentation': {'description': ' Synchronizes the acquired and reference waveforms while ascertaining that intermediate operations are not impacted by aliasing. This method is recommended for non-contiguous carriers separated by a large gap, and/or when measurement sampling rate is low. Refer to DPD concept help for more information.'}, 'name': 'ALIAS_PROTECTED', 'value': 2}]}, 'DpdTargetGainType': {'values': [{'documentation': {'description': ' The DPD polynomial or lookup table is computed by assuming that the linearized gain expected from the DUT after applying DPD on the input waveform is equal to the average power gain provided by the DUT without DPD.'}, 'name': 'AVERAGE_GAIN', 'value': 0}, {'documentation': {'description': ' The DPD polynomial or lookup table is computed by assuming that the linearized gain expected from the DUT after applying DPD on the input waveform is equal to the gain provided by the DUT, without DPD, to the parts of the reference waveform that do not drive the DUT into non-linear gain-expansion or compression regions of its input-output characteristics.\n\n The measurement computes the linear region gain as the average gain experienced by the parts of the reference waveform that are below a threshold which is computed as shown in the following equation:\n\n Linear region threshold (dBm) = Max {-25, Min {reference waveform power} + 6, DUT Average Input Power -15}'}, 'name': 'LINEAR_REGION_GAIN', 'value': 1}, {'documentation': {'description': ' The DPD polynomial or lookup table is computed by assuming that the linearized gain expected from the DUT after applying DPD on the input waveform is equal to the average power gain provided by the DUT, without DPD, to all the samples of the reference waveform for which the magnitude is greater than the peak power in the reference waveform (dBm) - 0.5dB.'}, 'name': 'PEAK_INPUT_POWER_GAIN', 'value': 2}]}, 'FcntAveragingEnabled': {'values': [{'documentation': {'description': ' The measurement is performed on a single acquisition.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The FCnt measurement uses the RFMXSPECAN_ATTR_FCNT_AVERAGING_COUNT attribute as the number of acquisitions over which the FCnt measurement is averaged. '}, 'name': 'TRUE', 'value': 1}]}, 'FcntAveragingType': {'values': [{'documentation': {'description': ' The mean of the instantaneous signal phase difference over multiple acquisitions is used for the frequency measurement. '}, 'name': 'MEAN', 'value': 6}, {'documentation': {'description': ' The maximum instantaneous signal phase difference over multiple acquisitions is used for the frequency measurement. '}, 'name': 'MAXIMUM', 'value': 3}, {'documentation': {'description': ' The minimum instantaneous signal phase difference over multiple acquisitions is used for the frequency measurement. '}, 'name': 'MINIMUM', 'value': 4}, {'documentation': {'description': ' The maximum instantaneous signal phase difference over multiple acquisitions is used for the frequency measurement. The sign of the phase difference is ignored to find the maximum instantaneous value.'}, 'name': 'MINMAX', 'value': 7}]}, 'FcntRbwFilterType': {'values': [{'documentation': {'description': ' The measurement does not use any RBW filtering.'}, 'name': 'NONE', 'value': 5}, {'documentation': {'description': ' The RBW filter has a Gaussian response.'}, 'name': 'GAUSSIAN', 'value': 1}, {'documentation': {'description': ' The RBW filter has a flat response.'}, 'name': 'FLAT', 'value': 2}, {'documentation': {'description': ' The RRC filter with the roll-off specified by RFMXSPECAN_ATTR_FCNT_RBW_FILTER_RRC_ALPHA attribute is used as the RBW filter.'}, 'name': 'RRC', 'value': 6}]}, 'FcntThresholdEnabled': {'values': [{'documentation': {'description': ' All samples are considered for the FCnt measurement. '}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The samples above the threshold level specified in the RFMXSPECAN_ATTR_FCNT_THRESHOLD_LEVEL attribute are considered for the FCnt measurement. '}, 'name': 'TRUE', 'value': 1}]}, 'FcntThresholdType': {'values': [{'documentation': {'description': ' The threshold is relative to the peak power of the acquired samples.'}, 'name': 'RELATIVE', 'value': 0}, {'documentation': {'description': ' The threshold is the absolute power, in dBm.'}, 'name': 'ABSOLUTE', 'value': 1}]}, 'FrequencyReferenceSource': {'generate-mappings': True, 'values': [{'name': 'ONBOARD_CLOCK', 'value': 'OnboardClock'}, {'name': 'REF_IN', 'value': 'RefIn'}, {'name': 'PXI_CLK', 'value': 'PXI_Clk'}, {'name': 'CLK_IN', 'value': 'ClkIn'}]}, 'HarmAutoHarmonicsSetupEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'HarmAveragingEnabled': {'values': [{'documentation': {'description': ' The measurement is performed on a single acquisition.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The Harmonics measurement uses the RFMXSPECAN_ATTR_HARM_AVERAGING_COUNT attribute as the number of acquisitions over which the Harmonics measurement is averaged.'}, 'name': 'TRUE', 'value': 1}]}, 'HarmAveragingType': {'values': [{'documentation': {'description': ' The power trace is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. '}, 'name': 'RMS', 'value': 0}, {'documentation': {'description': ' The power trace is averaged in a logarithmic scale.'}, 'name': 'LOG', 'value': 1}, {'documentation': {'description': ' The square root of the power trace is averaged.'}, 'name': 'SCALAR', 'value': 2}, {'documentation': {'description': ' The maximum instantaneous power in the power trace is retained from one acquisition to the next.'}, 'name': 'MAXIMUM', 'value': 3}, {'documentation': {'description': ' The minimum instantaneous power in the power trace is retained from one acquisition to the next.'}, 'name': 'MINIMUM', 'value': 4}]}, 'HarmHarmonicEnabled': {'values': [{'documentation': {'description': ' Disables the harmonic for measurement.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables the harmonic for measurement.'}, 'name': 'TRUE', 'value': 1}]}, 'HarmMeasurementMethod': {'values': [{'documentation': {'description': ' The harmonics measurement acquires the signal using the same signal analyzer setting across frequency bands. Use this method when the measurement speed is desirable over higher dynamic range.\n\n Supported devices: PXIe-5644/5645/5646, PXIe-5663/5665/5668'}, 'name': 'TIME_DOMAIN', 'value': 0}, {'documentation': {'description': ' The harmonics measurement acquires the signal using the hardware-specific features, such as the IF filter and IF gain, for different frequency bands. Use this method to get the best dynamic range.\n\n Supported devices: PXIe-5665/5668'}, 'name': 'DYNAMIC_RANGE', 'value': 2}]}, 'HarmNoiseCompensationEnabled': {'values': [{'documentation': {'description': ' Disables compensation of the average harmonic powers for the noise floor of the signal analyzer.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables compensation of the average harmonic powers for the noise floor of the signal analyzer. The noise floor of the signal analyzer is measured for the RF path used by the harmonics measurement and cached for future use. If the signal analyzer or measurement parameters change, noise floors are measured again.\n\n Supported devices: PXIe-5663/5665/5668'}, 'name': 'TRUE', 'value': 1}]}, 'HarmRbwFilterType': {'values': [{'name': 'GAUSSIAN', 'value': 1}, {'name': 'FLAT', 'value': 2}, {'name': 'NONE', 'value': 5}, {'name': 'RRC', 'value': 6}]}, 'IMAmplitudeCorrectionType': {'values': [{'name': 'RF_CENTER_FREQUENCY', 'value': 0}, {'name': 'SPECTRUM_FREQUENCY_BIN', 'value': 1}]}, 'IMAutoIntermodsSetupEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'IMAveragingEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'IMAveragingType': {'values': [{'name': 'RMS', 'value': 0}, {'name': 'LOG', 'value': 1}, {'name': 'SCALAR', 'value': 2}, {'name': 'MAXIMUM', 'value': 3}, {'name': 'MINIMUM', 'value': 4}]}, 'IMFftWindow': {'values': [{'name': 'NONE', 'value': 0}, {'name': 'FLAT_TOP', 'value': 1}, {'name': 'HANNING', 'value': 2}, {'name': 'HAMMING', 'value': 3}, {'name': 'GAUSSIAN', 'value': 4}, {'name': 'BLACKMAN', 'value': 5}, {'name': 'BLACKMAN_HARRIS', 'value': 6}, {'name': 'KAISER_BESSEL', 'value': 7}]}, 'IMFrequencyDefinition': {'values': [{'name': 'RELATIVE', 'value': 0}, {'name': 'ABSOLUTE', 'value': 1}]}, 'IMIFOutputPowerOffsetAuto': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'IMIntermodEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'IMIntermodSide': {'values': [{'name': 'LOWER', 'value': 0}, {'name': 'UPPER', 'value': 1}, {'name': 'BOTH', 'value': 2}]}, 'IMLocalPeakSearchEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'IMMeasurementMethod': {'values': [{'name': 'NORMAL', 'value': 0}, {'name': 'DYNAMIC_RANGE', 'value': 1}, {'name': 'SEGMENTED', 'value': 2}]}, 'IMRbwFilterAutoBandwidth': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'IMRbwFilterType': {'values': [{'name': 'FFT_BASED', 'value': 0}, {'name': 'GAUSSIAN', 'value': 1}, {'name': 'FLAT', 'value': 2}]}, 'IMSweepTimeAuto': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'IQBandwidthAuto': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'IQDeleteRecordOnFetch': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'IQPowerEdgeTriggerLevelType': {'values': [{'name': 'RELATIVE', 'value': 0}, {'name': 'ABSOLUTE', 'value': 1}]}, 'IQPowerEdgeTriggerSlope': {'values': [{'name': 'RISING_SLOPE', 'value': 0}, {'name': 'FALLING_SLOPE', 'value': 1}]}, 'LimitedConfigurationChange': {'values': [{'documentation': {'description': ' This is the normal mode of RFmx operation. All configuration changes in RFmxInstr attributes or in personality attributes will be applied during RFmx Commit.'}, 'name': 'DISABLED', 'value': 0}, {'documentation': {'description': ' Signal configuration and RFmxInstr configuration are locked after the first Commit or Initiate of the named signal configuration. Any configuration change thereafter either in RFmxInstr attributes or personality attributes will not be considered by subsequent RFmx Commits or Initiates of this signal. Use No Change if you have created named signal configurations for all measurement configurations but are setting some RFmxInstr attributes. Refer to the Limitations of the Limited Configuration Change Attribute topic for more details about the limitations of using this mode. '}, 'name': 'NO_CHANGE', 'value': 1}, {'documentation': {'description': ' Signal configuration, other than center frequency, external attenuation, and RFInstr configuration, is locked after first Commit or Initiate of the named signal configuration. Thereafter, only the Center Frequency and RFMXSPECAN_ATTR_EXTERNAL_ATTENUATION attribute value changes will be considered by subsequent driver Commits or Initiates of this signal. Refer to the Limitations of the Limited Configuration Change Attribute topic for more details about the limitations of using this mode. '}, 'name': 'FREQUENCY', 'value': 2}, {'documentation': {'description': ' Signal configuration, other than the reference level and RFInstr configuration, is locked after first Commit or Initiate of the named signal configuration. Thereafter only the RFMXSPECAN_ATTR_REFERENCE_LEVEL attribute value change will be considered by subsequent driver Commits or Initiates of this signal. If you have configured this signal to use an IQ Power Edge Trigger, NI recommends that you set the RFMXSPECAN_ATTR_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE to RFMXSPECAN_VAL_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE_RELATIVE so that the trigger level is automatically adjusted as you adjust the reference level. Refer to the Limitations of the Limited Configuration Change Attribute topic for more details about the limitations of using this mode. '}, 'name': 'REFERENCE_LEVEL', 'value': 3}, {'documentation': {'description': ' Signal configuration, other than center frequency, reference level, external attenuation, and RFInstr configuration, is locked after first Commit or Initiate of the named signal configuration. Thereafter only Center Frequency, RFMXSPECAN_ATTR_REFERENCE_LEVEL, and RFMXSPECAN_ATTR_EXTERNAL_ATTENUATION attribute value changes will be considered by subsequent driver Commits or Initiates of this signal. If you have configured this signal to use an IQ Power Edge Trigger, NI recommends you set the RFMXSPECAN_ATTR_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE to RFMXSPECAN_VAL_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE_RELATIVE so that the trigger level is automatically adjusted as you adjust the reference level. Refer to the Limitations of the Limited Configuration Change Attribute topic for more details about the limitations of using this mode. '}, 'name': 'FREQUENCY_AND_REFERENCE_LEVEL', 'value': 4}, {'documentation': {'description': ' Signal configuration, other than Selected Ports, Center frequency, Reference level, External attenuation, and RFInstr configuration, is locked after first Commit or Initiate of the named signal configuration. Thereafter only Selected Ports, Center Frequency, RFMXSPECAN_ATTR_REFERENCE_LEVEL, and RFMXSPECAN_ATTR_EXTERNAL_ATTENUATION attribute value changes will be considered by subsequent driver Commits or Initiates of this signal. If you have configured this signal to use an IQ Power Edge Trigger, NI recommends you set the RFMXSPECAN_ATTR_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE to RFMXSPECAN_VAL_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE_RELATIVE so that the trigger level is automatically adjusted as you adjust the reference level. Refer to the Limitations of the Limited Configuration Change Attribute topic for more details about the limitations of using this mode.'}, 'name': 'SELECTED_PORTS_FREQUENCY_AND_REFERENCE_LEVEL', 'value': 5}]}, 'MarkerNextPeak': {'values': [{'name': 'NEXT_HIGHEST', 'value': 0}, {'name': 'NEXT_LEFT', 'value': 1}, {'name': 'NEXT_RIGHT', 'value': 2}]}, 'MarkerPeakExcursionEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'MarkerThresholdEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'MarkerTrace': {'values': [{'name': 'ACP_SPECTRUM', 'value': 0}, {'name': 'CCDF_GAUSSIAN_PROBABILITIES_TRACE', 'value': 1}, {'name': 'CCDF_PROBABILITIES_TRACE', 'value': 2}, {'name': 'CHP_SPECTRUM', 'value': 3}, {'name': 'FCNT_POWER_TRACE', 'value': 4}, {'name': 'OBW_SPECTRUM', 'value': 5}, {'name': 'SEM_SPECTRUM', 'value': 6}, {'name': 'SPECTRUM', 'value': 7}, {'name': 'TXP_POWER_TRACE', 'value': 8}]}, 'MarkerType': {'values': [{'name': 'OFF', 'value': 0}, {'name': 'NORMAL', 'value': 1}, {'name': 'DELTA', 'value': 3}]}, 'MeasurementTypes': {'values': [{'name': 'ACP', 'value': 1}, {'name': 'CCDF', 'value': 2}, {'name': 'CHP', 'value': 4}, {'name': 'FCNT', 'value': 8}, {'name': 'HARMONICS', 'value': 16}, {'name': 'OBW', 'value': 32}, {'name': 'SEM', 'value': 64}, {'name': 'SPECTRUM', 'value': 128}, {'name': 'SPUR', 'value': 256}, {'name': 'TXP', 'value': 512}, {'name': 'AMPM', 'value': 1024}, {'name': 'DPD', 'value': 2048}, {'name': 'IQ', 'value': 4096}, {'name': 'IM', 'value': 8192}, {'name': 'NF', 'value': 16384}, {'name': 'PHASENOISE', 'value': 32768}, {'name': 'PAVT', 'value': 65536}]}, 'MechanicalAttenuationAuto': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'NFAveragingEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'NFCalibrationDataValid': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'NFCalibrationLossCompensationEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'NFColdSourceMode': {'values': [{'name': 'MEASURE', 'value': 0}, {'name': 'CALIBRATE', 'value': 1}]}, 'NFDutInputLossCompensationEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'NFDutOutputLossCompensationEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'NFDutType': {'values': [{'name': 'AMPLIFIER', 'value': 0}, {'name': 'DOWNCONVERTER', 'value': 1}, {'name': 'UPCONVERTER', 'value': 2}]}, 'NFExternalPreampPresent': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'NFFrequencyConverterFrequencyContext': {'values': [{'name': 'RF', 'value': 0}, {'name': 'IF', 'value': 1}]}, 'NFFrequencyConverterSideband': {'values': [{'name': 'LSB', 'value': 0}, {'name': 'USB', 'value': 1}]}, 'NFMeasurementMethod': {'values': [{'name': 'Y_FACTOR', 'value': 0}, {'name': 'COLD_SOURCE', 'value': 1}]}, 'NFYFactorMode': {'values': [{'name': 'MEASURE', 'value': 0}, {'name': 'CALIBRATE', 'value': 1}]}, 'NFYFactorNoiseSourceLossCompensationEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'ObwAmplitudeCorrectionType': {'values': [{'documentation': {'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.'}, 'name': 'RF_CENTER_FREQUENCY', 'value': 0}, {'documentation': {'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.'}, 'name': 'SPECTRUM_FREQUENCY_BIN', 'value': 1}]}, 'ObwAveragingEnabled': {'values': [{'documentation': {'description': ' The measurement is performed on a single acquisition.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The OBW measurement uses the RFMXSPECAN_ATTR_OBW_AVERAGING_COUNT attribute as the number of acquisitions over which the OBW measurement is averaged.'}, 'name': 'TRUE', 'value': 1}]}, 'ObwAveragingType': {'values': [{'documentation': {'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. '}, 'name': 'RMS', 'value': 0}, {'documentation': {'description': ' The power spectrum is averaged in a logarithmic scale.'}, 'name': 'LOG', 'value': 1}, {'documentation': {'description': ' The square root of the power spectrum is averaged.'}, 'name': 'SCALAR', 'value': 2}, {'documentation': {'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.'}, 'name': 'MAXIMUM', 'value': 3}, {'documentation': {'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. '}, 'name': 'MINIMUM', 'value': 4}]}, 'ObwFftWindow': {'values': [{'documentation': {'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes. '}, 'name': 'NONE', 'value': 0}, {'documentation': {'description': ' Measures single-tone amplitudes accurately.'}, 'name': 'FLAT_TOP', 'value': 1}, {'documentation': {'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.'}, 'name': 'HANNING', 'value': 2}, {'documentation': {'description': ' Analyzes closely-spaced sine waves.'}, 'name': 'HAMMING', 'value': 3}, {'documentation': {'description': ' Provides a good balance of spectral leakage, frequency resolution, and amplitude attenuation. Hence, this windowing is useful for time-frequency analysis.'}, 'name': 'GAUSSIAN', 'value': 4}, {'documentation': {'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. '}, 'name': 'BLACKMAN', 'value': 5}, {'documentation': {'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. '}, 'name': 'BLACKMAN_HARRIS', 'value': 6}, {'documentation': {'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes. '}, 'name': 'KAISER_BESSEL', 'value': 7}]}, 'ObwPowerUnits': {'values': [{'documentation': {'description': ' The absolute powers are reported in dBm.'}, 'name': 'DBM', 'value': 0}, {'documentation': {'description': ' The absolute powers are reported in dBm/Hz.'}, 'name': 'DBM_PER_HZ', 'value': 1}]}, 'ObwRbwAutoBandwidth': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'ObwRbwFilterBandwidthDefinition': {'values': [{'documentation': {'description': ' Defines the RBW in terms of the 3 dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_OBW_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_OBW_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3 dB bandwidth of the window specified by the RFMXSPECAN_ATTR_OBW_FFT_WINDOW attribute.'}, 'name': '3_DB', 'value': 0}, {'documentation': {'description': ' Defines the RBW in terms of the spectrum bin width computed using an FFT when you set the RFMXSPECAN_ATTR_OBW_RBW_FILTER_TYPE attribute to FFT Based.'}, 'name': 'BIN_WIDTH', 'value': 2}]}, 'ObwRbwFilterType': {'values': [{'documentation': {'description': ' No RBW filtering is performed.'}, 'name': 'FFT_BASED', 'value': 0}, {'documentation': {'description': ' The RBW filter has a Gaussian response.'}, 'name': 'GAUSSIAN', 'value': 1}, {'documentation': {'description': ' The RBW filter has a flat response.'}, 'name': 'FLAT', 'value': 2}]}, 'ObwSweepTimeAuto': {'values': [{'documentation': {'description': ' The measurement uses the sweep time that you specify in the RFMXSPECAN_ATTR_OBW_SWEEP_TIME_INTERVAL attribute. '}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The measurement calculates the sweep time based on the value of the RFMXSPECAN_ATTR_OBW_RBW_FILTER_BANDWIDTH attribute.'}, 'name': 'TRUE', 'value': 1}]}, 'PavtFrequencyOffsetCorrectionEnabled': {'values': [{'documentation': {'description': ' Disables the frequency offset correction.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables the frequency offset correction. The measurement computes and corrects any frequency offset between the reference and the acquired waveforms.'}, 'name': 'TRUE', 'value': 1}]}, 'PavtFrequencyTrackingEnabled': {'values': [{'documentation': {'description': ' Disables the drift correction for the measurement.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables the drift correction. The measurement corrects and reports the frequency offset per segment.'}, 'name': 'TRUE', 'value': 1}]}, 'PavtMeasurementIntervalMode': {'values': [{'documentation': {'description': ' The time offset from the start of segment and the duration over which the measurement is performed is uniform for all segments and is given by the RFMXSPECAN_ATTR_PAVT_MEASUREMENT_OFFSET attribute and the RFMXSPECAN_ATTR_PAVT_MEASUREMENT_LENGTH attribute respectively.'}, 'name': 'UNIFORM', 'value': 0}, {'documentation': {'description': ' The time offset from the start of segment and the duration over which the measurement is performed is configured separately for each segment and is given by the RFMXSPECAN_ATTR_PAVT_SEGMENT_MEASUREMENT_OFFSET attribute and the RFMXSPECAN_ATTR_PAVT_SEGMENT_MEASUREMENT_LENGTH attribute respectively.'}, 'name': 'VARIABLE', 'value': 1}]}, 'PavtMeasurementLocationType': {'values': [{'documentation': {'description': ' The measurement is performed over a single record across multiple segments separated in time. The measurement locations of the segments are specified by the RFMXSPECAN_ATTR_PAVT_SEGMENT_START_TIME attribute. The number of segments is equal to the number of segment start times.'}, 'name': 'TIME', 'value': 0}, {'documentation': {'description': ' The measurement is performed across segments obtained in multiple records, where each record is obtained when a trigger is received. The number of segments is equal to the number of triggers (records).'}, 'name': 'TRIGGER', 'value': 1}]}, 'PavtPhaseUnwrapEnabled': {'values': [{'documentation': {'description': ' Phase measurement results are wrapped within +/-180 degrees.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Phase measurement results are unwrapped.'}, 'name': 'TRUE', 'value': 1}]}, 'PavtSegmentType': {'values': [{'documentation': {'description': ' Phase and amplitude is measured in this segment.'}, 'name': 'PHASE_AND_AMPLITUDE', 'value': 0}, {'documentation': {'description': ' Amplitude is measured in this segment.'}, 'name': 'AMPLITUDE', 'value': 1}, {'documentation': {'description': ' Frequency error is measured in this segment.'}, 'name': 'FREQUENCY_ERROR_MEASUREMENT', 'value': 2}]}, 'PhaseNoiseCancellationEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'PhaseNoiseFftWindow': {'values': [{'name': 'NONE', 'value': 0}, {'name': 'FLAT_TOP', 'value': 1}, {'name': 'HANNING', 'value': 2}, {'name': 'HAMMING', 'value': 3}, {'name': 'GAUSSIAN', 'value': 4}, {'name': 'BLACKMAN', 'value': 5}, {'name': 'BLACKMAN_HARRIS', 'value': 6}, {'name': 'KAISER_BESSEL', 'value': 7}]}, 'PhaseNoiseIntegratedNoiseRangeDefinition': {'values': [{'name': 'NONE', 'value': 0}, {'name': 'MEASUREMENT', 'value': 1}, {'name': 'CUSTOM', 'value': 2}]}, 'PhaseNoiseRangeDefinition': {'values': [{'name': 'MANUAL', 'value': 0}, {'name': 'AUTO', 'value': 1}]}, 'PhaseNoiseSmoothingType': {'values': [{'name': 'NONE', 'value': 0}, {'name': 'LINEAR', 'value': 1}, {'name': 'LOGARITHMIC', 'value': 2}, {'name': 'MEDIAN', 'value': 3}]}, 'PhaseNoiseSpurRemovalEnabled': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'RFAttenuationAuto': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'SemAmplitudeCorrectionType': {'values': [{'documentation': {'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.'}, 'name': 'RF_CENTER_FREQUENCY', 'value': 0}, {'documentation': {'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.'}, 'name': 'SPECTRUM_FREQUENCY_BIN', 'value': 1}]}, 'SemAveragingEnabled': {'values': [{'documentation': {'description': ' The measurement is performed on a single acquisition.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The SEM measurement uses the RFMXSPECAN_ATTR_SEM_AVERAGING_COUNT attribute as the number of acquisitions over which the SEM measurement is averaged.'}, 'name': 'TRUE', 'value': 1}]}, 'SemAveragingType': {'values': [{'documentation': {'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. '}, 'name': 'RMS', 'value': 0}, {'documentation': {'description': ' The power spectrum is averaged in a logarithmic scale.'}, 'name': 'LOG', 'value': 1}, {'documentation': {'description': ' The square root of the power spectrum is averaged.'}, 'name': 'SCALAR', 'value': 2}, {'documentation': {'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.'}, 'name': 'MAXIMUM', 'value': 3}, {'documentation': {'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. '}, 'name': 'MINIMUM', 'value': 4}]}, 'SemCarrierEnabled': {'values': [{'documentation': {'description': ' The carrier power is not considered as part of the total carrier power.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The carrier power is considered as part of the total carrier power.'}, 'name': 'TRUE', 'value': 1}]}, 'SemCarrierRbwAutoBandwidth': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'SemCarrierRbwFilterBandwidthDefinition': {'values': [{'documentation': {'description': ' Defines the RBW in terms of the 3 dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_SEM_CARRIER_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_SEM_CARRIER_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3 dB bandwidth of the window specified by the RFMXSPECAN_ATTR_SEM_FFT_WINDOW attribute.'}, 'name': '3_DB', 'value': 0}, {'documentation': {'description': ' Defines the RBW in terms of the spectrum bin width computed using an FFT when you set the RFMXSPECAN_ATTR_SEM_CARRIER_RBW_FILTER_TYPE attribute to FFT Based.'}, 'name': 'BIN_WIDTH', 'value': 2}]}, 'SemCarrierRbwFilterType': {'values': [{'documentation': {'description': ' No RBW filtering is performed.'}, 'name': 'FFT_BASED', 'value': 0}, {'documentation': {'description': ' The RBW filter has a Gaussian response.'}, 'name': 'GAUSSIAN', 'value': 1}, {'documentation': {'description': ' The RBW filter has a flat response.'}, 'name': 'FLAT', 'value': 2}]}, 'SemCarrierRrcFilterEnabled': {'values': [{'documentation': {'description': ' The channel power of the acquired carrier channel is measured directly.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The measurement applies the RRC filter on the acquired carrier channel before measuring the carrier channel power.'}, 'name': 'TRUE', 'value': 1}]}, 'SemCompositeMeasurementStatus': {'values': [{'name': 'FAIL', 'value': 0}, {'name': 'PASS', 'value': 1}]}, 'SemFftWindow': {'values': [{'documentation': {'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes. '}, 'name': 'NONE', 'value': 0}, {'documentation': {'description': ' Measures single-tone amplitudes accurately.'}, 'name': 'FLAT_TOP', 'value': 1}, {'documentation': {'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.'}, 'name': 'HANNING', 'value': 2}, {'documentation': {'description': ' Analyzes closely-spaced sine waves.'}, 'name': 'HAMMING', 'value': 3}, {'documentation': {'description': ' Provides a good balance of spectral leakage, frequency resolution, and amplitude attenuation. Hence, this windowing is useful for time-frequency analysis.'}, 'name': 'GAUSSIAN', 'value': 4}, {'documentation': {'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. '}, 'name': 'BLACKMAN', 'value': 5}, {'documentation': {'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. '}, 'name': 'BLACKMAN_HARRIS', 'value': 6}, {'documentation': {'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes. '}, 'name': 'KAISER_BESSEL', 'value': 7}]}, 'SemLowerOffsetMeasurementStatus': {'values': [{'name': 'FAIL', 'value': 0}, {'name': 'PASS', 'value': 1}]}, 'SemOffsetAbsoluteLimitMode': {'values': [{'documentation': {'description': ' The line specified by the RFMXSPECAN_ATTR_SEM_OFFSET_ABSOLUTE_LIMIT_START and RFMXSPECAN_ATTR_SEM_OFFSET_ABSOLUTE_LIMIT_STOP attribute values as the two ends is considered as the mask.'}, 'name': 'MANUAL', 'value': 0}, {'documentation': {'description': ' The two ends of the line are coupled to the value of the RFMXSPECAN_ATTR_SEM_OFFSET_ABSOLUTE_LIMIT_START attribute.'}, 'name': 'COUPLE', 'value': 1}]}, 'SemOffsetEnabled': {'values': [{'documentation': {'description': ' Disables the offset segment for the SEM measurement.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables the offset segment for the SEM measurement.'}, 'name': 'TRUE', 'value': 1}]}, 'SemOffsetFrequencyDefinition': {'values': [{'documentation': {'description': ' The start frequency and stop frequency are defined from the center of the closest carrier channel bandwidth to the center of the offset segment measurement bandwidth.\n\nMeasurement Bandwidth = Resolution Bandwidth * Bandwidth Integral.'}, 'name': 'CARRIER_CENTER_TO_MEASUREMENT_BANDWIDTH_CENTER', 'value': 0}, {'documentation': {'description': ' The start frequency and stop frequency are defined from the center of the closest carrier channel bandwidth to the nearest edge of the offset segment measurement bandwidth.'}, 'name': 'CARRIER_CENTER_TO_MEASUREMENT_BANDWIDTH_EDGE', 'value': 1}, {'documentation': {'description': ' The start frequency and stop frequency are defined from the nearest edge of the closest carrier channel bandwidth to the center of the nearest offset segment measurement bandwidth.'}, 'name': 'CARRIER_EDGE_TO_MEASUREMENT_BANDWIDTH_CENTER', 'value': 2}, {'documentation': {'description': ' The start frequency and stop frequency are defined from the nearest edge of the closest carrier channel bandwidth to the edge of the nearest offset segment measurement bandwidth.'}, 'name': 'CARRIER_EDGE_TO_MEASUREMENT_BANDWIDTH_EDGE', 'value': 3}]}, 'SemOffsetLimitFailMask': {'values': [{'documentation': {'description': ' The measurement fails if the power in the segment exceeds both the absolute and relative masks.'}, 'name': 'ABSOLUTE_AND_RELATIVE', 'value': 0}, {'documentation': {'description': ' The measurement fails if the power in the segment exceeds either the absolute or relative mask.'}, 'name': 'ABSOLUTE_OR_RELATIVE', 'value': 1}, {'documentation': {'description': ' The measurement fails if the power in the segment exceeds the absolute mask.'}, 'name': 'ABSOLUTE', 'value': 2}, {'documentation': {'description': ' The measurement fails if the power in the segment exceeds the relative mask.'}, 'name': 'RELATIVE', 'value': 3}]}, 'SemOffsetRbwAutoBandwidth': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'SemOffsetRbwFilterBandwidthDefinition': {'values': [{'documentation': {'description': ' Defines the RBW in terms of the 3dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_SEM_OFFSET_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_SEM_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3dB bandwidth of the window specified by the RFMXSPECAN_ATTR_SEM_FFT_WINDOW attribute.'}, 'name': '3_DB', 'value': 0}, {'documentation': {'description': ' Defines the RBW in terms of the spectrum bin width computed using FFT when you set the RFMXSPECAN_ATTR_SEM_OFFSET_RBW_FILTER_TYPE attribute to FFT Based.'}, 'name': 'BIN_WIDTH', 'value': 2}]}, 'SemOffsetRbwFilterType': {'values': [{'documentation': {'description': ' No RBW filtering is performed.'}, 'name': 'FFT_BASED', 'value': 0}, {'documentation': {'description': ' The RBW filter has a Gaussian response.'}, 'name': 'GAUSSIAN', 'value': 1}, {'documentation': {'description': ' The RBW filter has a flat response.'}, 'name': 'FLAT', 'value': 2}]}, 'SemOffsetRelativeLimitMode': {'values': [{'documentation': {'description': ' The line specified by the RFMXSPECAN_ATTR_SEM_OFFSET_RELATIVE_LIMIT_START and RFMXSPECAN_ATTR_SEM_OFFSET_RELATIVE_LIMIT_STOP attribute values as the two ends is considered as the mask.'}, 'name': 'MANUAL', 'value': 0}, {'documentation': {'description': ' The two ends of the line are coupled to the value of the RFMXSPECAN_ATTR_SEM_OFFSET_RELATIVE_LIMIT_START attribute.'}, 'name': 'COUPLE', 'value': 1}]}, 'SemOffsetSideband': {'values': [{'documentation': {'description': ' Configures a lower offset segment to the left of the leftmost carrier. '}, 'name': 'NEGATIVE', 'value': 0}, {'documentation': {'description': ' Configures an upper offset segment to the right of the rightmost carrier. '}, 'name': 'POSITIVE', 'value': 1}, {'documentation': {'description': ' Configures both negative and positive offset segments.'}, 'name': 'BOTH', 'value': 2}]}, 'SemPowerUnits': {'values': [{'documentation': {'description': ' The absolute powers are reported in dBm.'}, 'name': 'DBM', 'value': 0}, {'documentation': {'description': ' The absolute powers are reported in dBm/Hz.'}, 'name': 'DBM_PER_HZ', 'value': 1}]}, 'SemReferenceType': {'values': [{'documentation': {'description': ' The power reference is the integrated power of the closest carrier.'}, 'name': 'INTEGRATION', 'value': 0}, {'documentation': {'description': ' The power reference is the peak power of the closest carrier.'}, 'name': 'PEAK', 'value': 1}]}, 'SemSweepTimeAuto': {'values': [{'documentation': {'description': ' The measurement uses the sweep time that you specify in the RFMXSPECAN_ATTR_SEM_SWEEP_TIME_INTERVAL attribute.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The measurement calculates the sweep time based on the value of the RFMXSPECAN_ATTR_SEM_OFFSET_RBW_FILTER_BANDWIDTH and RFMXSPECAN_ATTR_SEM_CARRIER_RBW_FILTER_BANDWIDTH attributes.'}, 'name': 'TRUE', 'value': 1}]}, 'SemUpperOffsetMeasurementStatus': {'values': [{'name': 'FAIL', 'value': 0}, {'name': 'PASS', 'value': 1}]}, 'SpectrumAmplitudeCorrectionType': {'values': [{'documentation': {'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.'}, 'name': 'RF_CENTER_FREQUENCY', 'value': 0}, {'documentation': {'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.'}, 'name': 'SPECTRUM_FREQUENCY_BIN', 'value': 1}]}, 'SpectrumAnalysisInput': {'values': [{'documentation': {'description': ' Measurement analyzes the acquired I+jQ data, resulting generally in a spectrum that is not symmetric around 0 Hz. Spectrum trace result contains both positive and negative frequencies. Since the RMS power of the complex envelope is 3.01 dB higher than that of its equivalent real RF signal, the spectrum trace result of the acquired I+jQ data is scaled by -3.01 dB. '}, 'name': 'IQ', 'value': 0}, {'documentation': {'description': ' Measurement ignores the Q data from the acquired I+jQ data and analyzes I+j0, resulting in a spectrum that is symmetric around 0 Hz. Spectrum trace result contains positive frequencies only. Spectrum of I+j0 data is scaled by +3.01 dB to account for the power of the negative frequencies that are not returned in the spectrum trace.'}, 'name': 'I_ONLY', 'value': 1}, {'documentation': {'description': ' Measurement ignores the I data from the acquired I+jQ data and analyzes Q+j0, resulting in a spectrum that is symmetric around 0 Hz. Spectrum trace result contains positive frequencies only. Spectrum of Q+j0 data is scaled by +3.01 dB to account for the power of the negative frequencies that are not returned in the spectrum trace.'}, 'name': 'Q_ONLY', 'value': 2}]}, 'SpectrumAveragingEnabled': {'values': [{'documentation': {'description': ' The measurement is performed on a single acquisition.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The spectrum measurement uses the RFMXSPECAN_ATTR_SPECTRUM_AVERAGING_COUNT attribute as the number of acquisitions over which the spectrum measurement is averaged.'}, 'name': 'TRUE', 'value': 1}]}, 'SpectrumAveragingType': {'values': [{'documentation': {'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. '}, 'name': 'RMS', 'value': 0}, {'documentation': {'description': ' The power spectrum is averaged in a logarithmic scale.'}, 'name': 'LOG', 'value': 1}, {'documentation': {'description': ' The square root of the power spectrum is averaged.'}, 'name': 'SCALAR', 'value': 2}, {'documentation': {'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.'}, 'name': 'MAXIMUM', 'value': 3}, {'documentation': {'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. '}, 'name': 'MINIMUM', 'value': 4}]}, 'SpectrumDetectorType': {'values': [{'documentation': {'description': ' The detector is disabled.'}, 'name': 'NONE', 'value': 0}, {'documentation': {'description': ' The middle sample in the bucket is detected.'}, 'name': 'SAMPLE', 'value': 1}, {'documentation': {'description': ' The maximum value of the samples within the bucket is detected if the signal only rises or if the signal only falls. If the signal, within a bucket, both rises and falls, then the maximum and minimum values of the samples are detected in alternate buckets.'}, 'name': 'NORMAL', 'value': 2}, {'documentation': {'description': ' The maximum value of the samples in the bucket is detected.'}, 'name': 'PEAK', 'value': 3}, {'documentation': {'description': ' The minimum value of the samples in the bucket is detected.'}, 'name': 'NEGATIVE_PEAK', 'value': 4}, {'documentation': {'description': ' The average RMS of all the samples in the bucket is detected.'}, 'name': 'AVERAGE_RMS', 'value': 5}, {'documentation': {'description': ' The average voltage of all the samples in the bucket is detected. '}, 'name': 'AVERAGE_VOLTAGE', 'value': 6}, {'documentation': {'description': ' The average log of all the samples in the bucket is detected.'}, 'name': 'AVERAGE_LOG', 'value': 7}]}, 'SpectrumFftWindow': {'values': [{'documentation': {'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes. '}, 'name': 'NONE', 'value': 0}, {'documentation': {'description': ' Measures single-tone amplitudes accurately.'}, 'name': 'FLAT_TOP', 'value': 1}, {'documentation': {'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.'}, 'name': 'HANNING', 'value': 2}, {'documentation': {'description': ' Analyzes closely-spaced sine waves.'}, 'name': 'HAMMING', 'value': 3}, {'documentation': {'description': ' Provides a good balance of spectral leakage, frequency resolution, and amplitude attenuation. Hence, this windowing is useful for time-frequency analysis.'}, 'name': 'GAUSSIAN', 'value': 4}, {'documentation': {'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. '}, 'name': 'BLACKMAN', 'value': 5}, {'documentation': {'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. '}, 'name': 'BLACKMAN_HARRIS', 'value': 6}, {'documentation': {'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes. '}, 'name': 'KAISER_BESSEL', 'value': 7}]}, 'SpectrumMeasurementMode': {'values': [{'documentation': {'description': ' Spectrum measurement is performed on the acquired signal. '}, 'name': 'MEASURE', 'value': 0}, {'documentation': {'description': ' Manual noise calibration of the signal analyzer is performed for the spectrum measurement.'}, 'name': 'CALIBRATE_NOISE_FLOOR', 'value': 1}]}, 'SpectrumNoiseCalibrationAveragingAuto': {'values': [{'documentation': {'description': ' RFmx uses the averages that you set for the RFMXSPECAN_ATTR_SPECTRUM_NOISE_CALIBRATION_AVERAGING_COUNT attribute.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' RFmx uses a noise calibration averaging count of 32.'}, 'name': 'TRUE', 'value': 1}]}, 'SpectrumNoiseCalibrationDataValid': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'SpectrumNoiseCalibrationMode': {'values': [{'documentation': {'description': ' When you set the RFMXSPECAN_ATTR_SPECTRUM_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_SPECTRUM_MEASUREMENT_MODE_CALIBRATE_NOISE_FLOOR, you can initiate instrument noise calibration for the spectrum measurement manually. When you set the RFMXSPECAN_ATTR_SPECTRUM_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_SPECTRUM_MEASUREMENT_MODE_MEASURE, you can initiate the spectrum measurement manually.'}, 'name': 'MANUAL', 'value': 0}, {'documentation': {'description': ' When you set the RFMXSPECAN_ATTR_SPECTRUM_NOISE_COMPENSATION_ENABLED attribute to RFMXSPECAN_VAL_SPECTRUM_NOISE_COMPENSATION_ENABLED_TRUE, RFmx sets the Input Isolation Enabled attribute to Enabled and calibrates the intrument noise in the current state of the instrument. RFmx then resets the Input Isolation Enabled attribute and performs the spectrum measurement, including compensation for noise from the instrument. RFmx skips noise calibration in this mode if valid noise calibration data is already cached. When you set the RFMXSPECAN_ATTR_SPECTRUM_NOISE_COMPENSATION_ENABLED attribute to RFMXSPECAN_VAL_SPECTRUM_NOISE_COMPENSATION_ENABLED_FALSE, RFmx does not calibrate instrument noise and performs only the spectrum measurement without compensating for the noise from the instrument.'}, 'name': 'AUTO', 'value': 1}]}, 'SpectrumNoiseCompensationEnabled': {'values': [{'documentation': {'description': ' Disables compensation of the spectrum for the noise floor of the signal analyzer.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables compensation of the spectrum for the noise floor of the signal analyzer. The noise floor of the signal analyzer is measured for the RF path used by the Spectrum measurement and cached for future use. If signal analyzer or measurement parameters change, noise floors are measured again.'}, 'name': 'TRUE', 'value': 1}]}, 'SpectrumNoiseCompensationType': {'values': [{'documentation': {'description': ' Compensates for noise from the analyzer and the 50 ohm termination. The measured power values are in excess of the thermal noise floor.'}, 'name': 'ANALYZER_AND_TERMINATION', 'value': 0}, {'documentation': {'description': ' Compensates for the analyzer noise only.'}, 'name': 'ANALYZER_ONLY', 'value': 1}]}, 'SpectrumPowerUnits': {'values': [{'documentation': {'description': ' The absolute powers are reported in dBm.'}, 'name': 'DBM', 'value': 0}, {'documentation': {'description': ' The absolute powers are reported in dBm/Hz.'}, 'name': 'DBM_PER_HZ', 'value': 1}, {'documentation': {'description': ' The absolute powers are reported in dBW.'}, 'name': 'DBW', 'value': 2}, {'documentation': {'description': ' The absolute powers are reported in dBV.'}, 'name': 'DBV', 'value': 3}, {'documentation': {'description': ' The absolute powers are reported in dBmV.'}, 'name': 'DBMV', 'value': 4}, {'documentation': {'description': ' The absolute powers are reported in dBuV.'}, 'name': 'DBUV', 'value': 5}, {'documentation': {'description': ' The absolute powers are reported in W.'}, 'name': 'WATTS', 'value': 6}, {'documentation': {'description': ' The absolute powers are reported in volts.'}, 'name': 'VOLTS', 'value': 7}, {'documentation': {'description': ' The absolute powers are reported in volts2.'}, 'name': 'VOLTS_SQUARED', 'value': 8}]}, 'SpectrumRbwAutoBandwidth': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'SpectrumRbwFilterBandwidthDefinition': {'values': [{'documentation': {'description': ' Defines the RBW in terms of the 3dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_SPECTRUM_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3dB bandwidth of the window specified by the RFMXSPECAN_ATTR_SPECTRUM_FFT_WINDOW attribute.'}, 'name': '3_DB', 'value': 0}, {'documentation': {'description': ' Defines the RBW in terms of the 6dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_TYPE attribute to FFT Based, RBW is the 6dB bandwidth of the window specified by the RFMXSPECAN_ATTR_SPECTRUM_FFT_WINDOW attribute.'}, 'name': '6_DB', 'value': 1}, {'documentation': {'description': ' Defines the RBW in terms of the spectrum bin width computed using FFT when you set the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_TYPE attribute to FFT Based.'}, 'name': 'BIN_WIDTH', 'value': 2}, {'documentation': {'description': ' Defines the RBW in terms of the ENBW bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_TYPE attribute to FFT Based, RBW is the ENBW bandwidth of the window specified by the RFMXSPECAN_ATTR_SPECTRUM_FFT_WINDOW attribute.'}, 'name': 'ENBW', 'value': 3}]}, 'SpectrumRbwFilterType': {'values': [{'documentation': {'description': ' No RBW filtering is performed.'}, 'name': 'FFT_BASED', 'value': 0}, {'documentation': {'description': ' The RBW filter has a Gaussian response.'}, 'name': 'GAUSSIAN', 'value': 1}, {'documentation': {'description': ' The RBW filter has a flat response.'}, 'name': 'FLAT', 'value': 2}]}, 'SpectrumSweepTimeAuto': {'values': [{'documentation': {'description': ' The measurement uses the sweep time that you specify in the RFMXSPECAN_ATTR_SPECTRUM_SWEEP_TIME_INTERVAL attribute. '}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The measurement calculates the sweep time based on the value of the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_BANDWIDTH attribute.'}, 'name': 'TRUE', 'value': 1}]}, 'SpectrumVbwFilterAutoBandwidth': {'values': [{'documentation': {'description': ' Specify the video bandwidth in the RFMXSPECAN_ATTR_SPECTRUM_VBW_FILTER_BANDWIDTH attribute. The RFMXSPECAN_ATTR_SPECTRUM_VBW_FILTER_VBW_TO_RBW_RATIO attribute is disregarded in this mode.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Specify video bandwidth in terms of the VBW to RBW ratio. The value of the video bandwidth is then computed by using the RFMXSPECAN_ATTR_SPECTRUM_VBW_FILTER_VBW_TO_RBW_RATIO attribute and the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_BANDWIDTH attribute. The value of the RFMXSPECAN_ATTR_SPECTRUM_VBW_FILTER_BANDWIDTH attribute is disregarded in this mode.'}, 'name': 'TRUE', 'value': 1}]}, 'SpurAbsoluteLimitMode': {'values': [{'name': 'MANUAL', 'value': 0}, {'name': 'COUPLE', 'value': 1}]}, 'SpurAmplitudeCorrectionType': {'values': [{'documentation': {'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.'}, 'name': 'RF_CENTER_FREQUENCY', 'value': 0}, {'documentation': {'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.'}, 'name': 'SPECTRUM_FREQUENCY_BIN', 'value': 1}]}, 'SpurAveragingEnabled': {'values': [{'documentation': {'description': ' The measurement is performed on a single acquisition.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The Spur measurement uses the RFMXSPECAN_ATTR_SPUR_AVERAGING_COUNT attribute as the number of acquisitions over which the Spur measurement is averaged.'}, 'name': 'TRUE', 'value': 1}]}, 'SpurAveragingType': {'values': [{'documentation': {'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. '}, 'name': 'RMS', 'value': 0}, {'documentation': {'description': ' The power spectrum is averaged in a logarithmic scale.'}, 'name': 'LOG', 'value': 1}, {'documentation': {'description': ' The square root of the power spectrum is averaged.'}, 'name': 'SCALAR', 'value': 2}, {'documentation': {'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.'}, 'name': 'MAXIMUM', 'value': 3}, {'documentation': {'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. '}, 'name': 'MINIMUM', 'value': 4}]}, 'SpurFftWindow': {'values': [{'documentation': {'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes. '}, 'name': 'NONE', 'value': 0}, {'documentation': {'description': ' Measures single-tone amplitudes accurately.'}, 'name': 'FLAT_TOP', 'value': 1}, {'documentation': {'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.'}, 'name': 'HANNING', 'value': 2}, {'documentation': {'description': ' Analyzes closely-spaced sine waves.'}, 'name': 'HAMMING', 'value': 3}, {'documentation': {'description': ' Provides a balance of spectral leakage, frequency resolution, and amplitude attenuation. This windowing is useful for time-frequency analysis.'}, 'name': 'GAUSSIAN', 'value': 4}, {'documentation': {'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. '}, 'name': 'BLACKMAN', 'value': 5}, {'documentation': {'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. '}, 'name': 'BLACKMAN_HARRIS', 'value': 6}, {'documentation': {'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes.'}, 'name': 'KAISER_BESSEL', 'value': 7}]}, 'SpurMeasurementStatus': {'values': [{'name': 'FAIL', 'value': 0}, {'name': 'PASS', 'value': 1}]}, 'SpurRangeDetectorType': {'values': [{'documentation': {'description': ' The detector is disabled.'}, 'name': 'NONE', 'value': 0}, {'documentation': {'description': ' The middle sample in the bucket is detected.'}, 'name': 'SAMPLE', 'value': 1}, {'documentation': {'description': ' The maximum value of the samples within the bucket is detected if the signal only rises or if the signal only falls. If the signal, within a bucket, both rises and falls, then the maximum and minimum values of the samples are detected in alternate buckets.'}, 'name': 'NORMAL', 'value': 2}, {'documentation': {'description': ' The maximum value of the samples in the bucket is detected.'}, 'name': 'PEAK', 'value': 3}, {'documentation': {'description': ' The minimum value of the samples in the bucket is detected.'}, 'name': 'NEGATIVE_PEAK', 'value': 4}, {'documentation': {'description': ' The average RMS of all the samples in the bucket is detected.'}, 'name': 'AVERAGE_RMS', 'value': 5}, {'documentation': {'description': ' The average voltage of all the samples in the bucket is detected. '}, 'name': 'AVERAGE_VOLTAGE', 'value': 6}, {'documentation': {'description': ' The average log of all the samples in the bucket is detected.'}, 'name': 'AVERAGE_LOG', 'value': 7}]}, 'SpurRangeEnabled': {'values': [{'documentation': {'description': ' Disables the acquisition of the frequency range.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Enables measurement of Spurs in the frequency range.'}, 'name': 'TRUE', 'value': 1}]}, 'SpurRangeStatus': {'values': [{'name': 'FAIL', 'value': 0}, {'name': 'PASS', 'value': 1}]}, 'SpurRangeVbwFilterAutoBandwidth': {'values': [{'documentation': {'description': ' Specify the video bandwidth in the RFMXSPECAN_ATTR_SPUR_RANGE_VBW_FILTER_BANDWIDTH attribute. The Spur VBW to RBW Ratio attribute is disregarded in this mode.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Specify video bandwidth in terms of the VBW to RBW ratio. The value of the video bandwidth is then computed by using the RFMXSPECAN_ATTR_SPUR_RANGE_VBW_FILTER_VBW_TO_RBW_RATIO attribute and the RFMXSPECAN_ATTR_SPUR_RANGE_RBW_FILTER_BANDWIDTH attribute. The value of the RFMXSPECAN_ATTR_SPUR_RANGE_VBW_FILTER_BANDWIDTH attribute is disregarded in this mode.'}, 'name': 'TRUE', 'value': 1}]}, 'SpurRbwAutoBandwidth': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'SpurRbwFilterBandwidthDefinition': {'values': [{'name': '3_DB', 'value': 0}, {'name': 'BIN_WIDTH', 'value': 2}, {'name': 'ENBW', 'value': 3}]}, 'SpurRbwFilterType': {'values': [{'name': 'FFT_BASED', 'value': 0}, {'name': 'GAUSSIAN', 'value': 1}, {'name': 'FLAT', 'value': 2}]}, 'SpurSweepTimeAuto': {'values': [{'name': 'FALSE', 'value': 0}, {'name': 'TRUE', 'value': 1}]}, 'TriggerMinimumQuietTimeMode': {'values': [{'documentation': {'description': ' The minimum quiet time for triggering is the value of the RFMXSPECAN_ATTR_TRIGGER_MINIMUM_QUIET_TIME_DURATION attribute. '}, 'name': 'MANUAL', 'value': 0}, {'documentation': {'description': ' The measurement computes the minimum quiet time used for triggering.'}, 'name': 'AUTO', 'value': 1}]}, 'TriggerType': {'values': [{'documentation': {'description': ' No Reference Trigger is configured.'}, 'name': 'NONE', 'value': 0}, {'documentation': {'description': ' The Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified using the RFMXSPECAN_ATTR_DIGITAL_EDGE_TRIGGER_SOURCE attribute.'}, 'name': 'DIGITAL_EDGE', 'value': 1}, {'documentation': {'description': ' The Reference Trigger is asserted when the signal changes past the level specified by the slope (rising or falling), which is configured using the RFMXSPECAN_ATTR_IQ_POWER_EDGE_TRIGGER_SLOPE attribute.'}, 'name': 'IQ_POWER_EDGE', 'value': 2}, {'documentation': {'description': ' The Reference Trigger is not asserted until a software trigger occurs. '}, 'name': 'SOFTWARE', 'value': 3}]}, 'TxpAveragingEnabled': {'values': [{'documentation': {'description': ' The measurement is performed on a single acquisition.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The TXP measurement uses the RFMXSPECAN_ATTR_TXP_AVERAGING_COUNT attribute as the number of acquisitions over which the TXP measurement is averaged.'}, 'name': 'TRUE', 'value': 1}]}, 'TxpAveragingType': {'values': [{'documentation': {'description': ' The power trace is linearly averaged.'}, 'name': 'RMS', 'value': 0}, {'documentation': {'description': ' The power trace is averaged in a logarithmic scale.'}, 'name': 'LOG', 'value': 1}, {'documentation': {'description': ' The square root of the power trace is averaged.'}, 'name': 'SCALAR', 'value': 2}, {'documentation': {'description': ' The maximum instantaneous power in the power trace is retained from one acquisition to the next.'}, 'name': 'MAXIMUM', 'value': 3}, {'documentation': {'description': ' The minimum instantaneous power in the power trace is retained from one acquisition to the next.'}, 'name': 'MINIMUM', 'value': 4}]}, 'TxpRbwFilterType': {'values': [{'documentation': {'description': ' The RBW filter has a Gaussian response.'}, 'name': 'NONE', 'value': 1}, {'documentation': {'description': ' The RBW filter has a flat response.'}, 'name': 'GAUSSIAN', 'value': 2}, {'documentation': {'description': ' The measurement does not use any RBW filtering.'}, 'name': 'FLAT', 'value': 5}, {'documentation': {'description': ' The RRC filter with the roll-off specified by the RFMXSPECAN_ATTR_TXP_RBW_FILTER_ALPHA attribute is used as the RBW filter.'}, 'name': 'RRC', 'value': 6}]}, 'TxpThresholdEnabled': {'values': [{'documentation': {'description': ' All the acquired samples are considered for the TXP measurement.'}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' The samples above the threshold level specified in the RFMXSPECAN_ATTR_TXP_THRESHOLD_LEVEL attribute are considered for the TXP measurement.'}, 'name': 'TRUE', 'value': 1}]}, 'TxpThresholdType': {'values': [{'documentation': {'description': ' The threshold is relative to the peak power of the acquired samples.'}, 'name': 'RELATIVE', 'value': 0}, {'documentation': {'description': ' The threshold is the absolute power, in dBm.'}, 'name': 'ABSOLUTE', 'value': 1}]}, 'TxpVbwFilterAutoBandwidth': {'values': [{'documentation': {'description': ' Specify the video bandwidth in the RFMXSPECAN_ATTR_TXP_VBW_FILTER_BANDWIDTH attribute. The RFMXSPECAN_ATTR_TXP_VBW_FILTER_VBW_TO_RBW_RATIO attribute is disregarded in this mode. '}, 'name': 'FALSE', 'value': 0}, {'documentation': {'description': ' Specify video bandwidth in terms of the VBW to RBW ratio. The value of the video bandwidth is then computed by using the RFMXSPECAN_ATTR_TXP_VBW_FILTER_VBW_TO_RBW_RATIO attribute and the RFMXSPECAN_ATTR_TXP_RBW_FILTER_BANDWIDTH attribute. The value of the RFMXSPECAN_ATTR_TXP_VBW_FILTER_BANDWIDTH attribute is disregarded in this mode.'}, 'name': 'TRUE', 'value': 1}]}}
|
for letra in 'Laiana Nardi':
print(letra)
print("For loop letra!")
for contador in range(2,8):
print(contador)
print("For Loop contador!")
friends = ['John','Terry','Eric','Michael','George']
# for friend in friends:
# print(friend)
for index in range(len(friends)):
print(friends[index])
for friend in friends:
if friend == 'Eric':
print('Found ' + friend + '!')
break
# continue
print(friend)
for friend in friends:
for number in [1,2,3]:
print(friend, number)
print("For Loop friend done!")
|
for letra in 'Laiana Nardi':
print(letra)
print('For loop letra!')
for contador in range(2, 8):
print(contador)
print('For Loop contador!')
friends = ['John', 'Terry', 'Eric', 'Michael', 'George']
for index in range(len(friends)):
print(friends[index])
for friend in friends:
if friend == 'Eric':
print('Found ' + friend + '!')
break
print(friend)
for friend in friends:
for number in [1, 2, 3]:
print(friend, number)
print('For Loop friend done!')
|
num = int(input())
def ListOfNum(num):
L = []
while num != 0:
x = num%10
num = num//10
L.append(x)
return L
def Multiply(L):
result = 1
for i in L:
result = result *i
return result
L = ListOfNum(num) #L = [2,6,8]
result = 0
while len(L) > 1:
result +=1
x = Multiply(L)
L = ListOfNum(x)
print(result)
number = int(input("enter number"))
product = 1
persistence = 0
print(number)
while number > 9:
for digit in range(0, len(str(number))):
product *= int(str(number)[digit])
print(product)
persistence += 1
number = product
product = 1
print("persistence:", persistence)
|
num = int(input())
def list_of_num(num):
l = []
while num != 0:
x = num % 10
num = num // 10
L.append(x)
return L
def multiply(L):
result = 1
for i in L:
result = result * i
return result
l = list_of_num(num)
result = 0
while len(L) > 1:
result += 1
x = multiply(L)
l = list_of_num(x)
print(result)
number = int(input('enter number'))
product = 1
persistence = 0
print(number)
while number > 9:
for digit in range(0, len(str(number))):
product *= int(str(number)[digit])
print(product)
persistence += 1
number = product
product = 1
print('persistence:', persistence)
|
l=[]
fo=open("EnglishWords.txt","r")
st=fo.read()
st=st.split()
for line in st:
if line[0]=='t':
l.append(line)
print(len(l))
|
l = []
fo = open('EnglishWords.txt', 'r')
st = fo.read()
st = st.split()
for line in st:
if line[0] == 't':
l.append(line)
print(len(l))
|
#!/usr/bin/python3
#-- Use pprint module..
x=[[1,2,3,4],[11,22,33,44],[111,222,333,444]]
#-- Use printf style formatting..
x = 22/7
#-- Write some multivariate for loops..
for x,y in [[1,2]]:
print('x',x,'y',y)
for x in enumerate(range(5)):
print('x',x)
#-- Compute diagonal sums with lambdas..
m=[
[ 5, 2, 3, 4, 1],
[ 10, 40, 30, 20, 50],
[ 100, 200, 300, 400, 500],
[ 1001, 4000, 3000, 2000, 5000],
[50000,20000,30000,40000,10000]
]
#-- Use a list comprehension to produce a list of lists..
m=8
n=9
#-- Use a dictionary comprehension..
#-- Obtain user input to fill a list with integers (use split and strip)..
#-- Open a file, write to a file..
#-- Develop a class..
#-- Use list unpacking to pass variable number of args..
#-- Use dictionary unpacking to combine two dictionaries..
#-- Use 'zip()' in an example..
#-- Use regular expressions..
#-- Convert this to a simpler expression using 'in'..
#
# if socket.gethostname() == "bristle" or socket.gethostname() == "rete":
# DEBUG = False
# else:
# DEBUG = True
#-- Write something using closures..
#-- Write something using decorators..
|
x = [[1, 2, 3, 4], [11, 22, 33, 44], [111, 222, 333, 444]]
x = 22 / 7
for (x, y) in [[1, 2]]:
print('x', x, 'y', y)
for x in enumerate(range(5)):
print('x', x)
m = [[5, 2, 3, 4, 1], [10, 40, 30, 20, 50], [100, 200, 300, 400, 500], [1001, 4000, 3000, 2000, 5000], [50000, 20000, 30000, 40000, 10000]]
m = 8
n = 9
|
# -*- coding: utf-8 -*-
class ExampleLibraryException(Exception):
'''It is a good practice to throw library specific exceptions so
that you know where the exception is comming'''
pass
class ExampleLibrary(object):
'''Libraries should be documented according to Robot Framework User Guide'''
def library_keyword(self):
'''Document keywords as well'''
return True
|
class Examplelibraryexception(Exception):
"""It is a good practice to throw library specific exceptions so
that you know where the exception is comming"""
pass
class Examplelibrary(object):
"""Libraries should be documented according to Robot Framework User Guide"""
def library_keyword(self):
"""Document keywords as well"""
return True
|
def getNumericVal(number):
if number == 1:
return 3
elif number == 2:
return 3
elif number == 3:
return 5
elif number == 4:
return 4
elif number == 5:
return 4
elif number == 6:
return 3
elif number == 7:
return 5
elif number == 8:
return 5
elif number == 9:
return 4
def lessThan20(number):
if number < 10:
return getNumericVal(number)
if number == 10:
return 3
elif number == 11:
return 6
elif number == 12:
return 6
elif number == 13:
return 8
elif number == 14:
return 8
elif number == 15:
return 7
elif number == 16:
return 7
elif number == 17:
return 9
elif number == 18:
return 8
elif number == 19:
return 8
def lessThan100(number):
if number < 20:
return lessThan20(number)
value1 = number % 10
value2 = number // 10
if value2 == 2:
if value1 == 0:
return 6
else:
return 6 + getNumericVal(value1)
elif value2 == 3:
if value1 == 0:
return 6
else:
return 6 + getNumericVal(value1)
elif value2 == 4:
if value1 == 0:
return 5
else:
return 5 + getNumericVal(value1)
elif value2 == 5:
if value1 == 0:
return 5
else:
return 5 + getNumericVal(value1)
elif value2 == 6:
if value1 == 0:
return 5
else:
return 5 + getNumericVal(value1)
elif value2 == 7:
if value1 == 0:
return 7
else:
return 7 + getNumericVal(value1)
elif value2 == 8:
if value1 == 0:
return 6
else:
return 6 + getNumericVal(value1)
elif value2 == 9:
if value1 == 0:
return 6
else:
return 6 + getNumericVal(value1)
def lessThan1000(number):
temp = number
value1 = temp % 10
temp = temp // 10
value2 = temp % 10
temp = temp // 10
value3 = temp
if value1 == 0 and value2 == 0:
return getNumericVal(value3) + 7
else:
return getNumericVal(value3) + 7 + 3 + lessThan100(10 * value2 + value1)
def countLetters(max_val):
count = 0
for i in range(1, max_val + 1):
if i <= 9:
count += getNumericVal(i)
elif i < 100:
count += lessThan100(i)
elif i < 1000:
count += lessThan1000(i)
elif i == 1000:
count += 11
return count
print(countLetters(1000))
|
def get_numeric_val(number):
if number == 1:
return 3
elif number == 2:
return 3
elif number == 3:
return 5
elif number == 4:
return 4
elif number == 5:
return 4
elif number == 6:
return 3
elif number == 7:
return 5
elif number == 8:
return 5
elif number == 9:
return 4
def less_than20(number):
if number < 10:
return get_numeric_val(number)
if number == 10:
return 3
elif number == 11:
return 6
elif number == 12:
return 6
elif number == 13:
return 8
elif number == 14:
return 8
elif number == 15:
return 7
elif number == 16:
return 7
elif number == 17:
return 9
elif number == 18:
return 8
elif number == 19:
return 8
def less_than100(number):
if number < 20:
return less_than20(number)
value1 = number % 10
value2 = number // 10
if value2 == 2:
if value1 == 0:
return 6
else:
return 6 + get_numeric_val(value1)
elif value2 == 3:
if value1 == 0:
return 6
else:
return 6 + get_numeric_val(value1)
elif value2 == 4:
if value1 == 0:
return 5
else:
return 5 + get_numeric_val(value1)
elif value2 == 5:
if value1 == 0:
return 5
else:
return 5 + get_numeric_val(value1)
elif value2 == 6:
if value1 == 0:
return 5
else:
return 5 + get_numeric_val(value1)
elif value2 == 7:
if value1 == 0:
return 7
else:
return 7 + get_numeric_val(value1)
elif value2 == 8:
if value1 == 0:
return 6
else:
return 6 + get_numeric_val(value1)
elif value2 == 9:
if value1 == 0:
return 6
else:
return 6 + get_numeric_val(value1)
def less_than1000(number):
temp = number
value1 = temp % 10
temp = temp // 10
value2 = temp % 10
temp = temp // 10
value3 = temp
if value1 == 0 and value2 == 0:
return get_numeric_val(value3) + 7
else:
return get_numeric_val(value3) + 7 + 3 + less_than100(10 * value2 + value1)
def count_letters(max_val):
count = 0
for i in range(1, max_val + 1):
if i <= 9:
count += get_numeric_val(i)
elif i < 100:
count += less_than100(i)
elif i < 1000:
count += less_than1000(i)
elif i == 1000:
count += 11
return count
print(count_letters(1000))
|
class BaseError(Exception):
pass
class RecordNotFound(BaseError):
pass
|
class Baseerror(Exception):
pass
class Recordnotfound(BaseError):
pass
|
class ArmatureActuator:
bone = None
constraint = None
influence = None
mode = None
secondary_target = None
target = None
weight = None
|
class Armatureactuator:
bone = None
constraint = None
influence = None
mode = None
secondary_target = None
target = None
weight = None
|
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def mergeTwoLists(self, list1: Optional[ListNode], list2: Optional[ListNode]) -> Optional[ListNode]:
cur = dummy = ListNode()
while list1 and list2:
if list1.val < list2.val:
cur.next = list1
list1, cur = list1.next, list1
else:
cur.next = list2
list2, cur = list2.next, list2
if list1 or list2:
cur.next = list1 if list1 else list2
return dummy.next
|
class Solution:
def merge_two_lists(self, list1: Optional[ListNode], list2: Optional[ListNode]) -> Optional[ListNode]:
cur = dummy = list_node()
while list1 and list2:
if list1.val < list2.val:
cur.next = list1
(list1, cur) = (list1.next, list1)
else:
cur.next = list2
(list2, cur) = (list2.next, list2)
if list1 or list2:
cur.next = list1 if list1 else list2
return dummy.next
|
file_name = "nameslist.txt"
names_list = open(file_name, "rt").read().splitlines(False)
print(names_list)
names_count = {}
for name in names_list:
if name not in names_count:
names_count[name] = 0
names_count[name] += 1
print(names_count)
|
file_name = 'nameslist.txt'
names_list = open(file_name, 'rt').read().splitlines(False)
print(names_list)
names_count = {}
for name in names_list:
if name not in names_count:
names_count[name] = 0
names_count[name] += 1
print(names_count)
|
n, d = map(int,input().split())
l=[]
for i in range(n):
l1=list(map(int,input().split()))
l.append(l1)
l=sorted(l)
i, j, ans, s = 0, 0, 0, 0
while j<n:
if l[i][0]+d > l[j][0]:
s+=l[j][1]
j+=1
else:
s-=l[i][1]
i+=1
ans=max(ans,s)
print(ans)
|
(n, d) = map(int, input().split())
l = []
for i in range(n):
l1 = list(map(int, input().split()))
l.append(l1)
l = sorted(l)
(i, j, ans, s) = (0, 0, 0, 0)
while j < n:
if l[i][0] + d > l[j][0]:
s += l[j][1]
j += 1
else:
s -= l[i][1]
i += 1
ans = max(ans, s)
print(ans)
|
class Atom:
def __init__(self):
pass
def __repr__(self):
raise NotImplementedError()
class Tmp(Atom):
__slots__ = ['tmp_idx']
def __init__(self, tmp_idx):
super(Tmp, self).__init__()
self.tmp_idx = tmp_idx
def __repr__(self):
return "<Tmp %d>" % self.tmp_idx
def __eq__(self, other):
return type(other) is Tmp and \
self.tmp_idx == other.tmp_idx
def __hash__(self):
return hash(('tmp', self.tmp_idx))
class Register(Atom):
__slots__ = ['reg_offset', 'size']
def __init__(self, reg_offset, size):
super(Register, self).__init__()
self.reg_offset = reg_offset
self.size = size
def __repr__(self):
return "<Reg %d<%d>>" % (self.reg_offset, self.size)
def __eq__(self, other):
return type(other) is Register and \
self.reg_offset == other.reg_offset and \
self.size == other.size
def __hash__(self):
return hash(('reg', self.reg_offset, self.size))
class MemoryLocation(Atom):
__slots__ = ['addr', 'size']
def __init__(self, addr, size):
super(MemoryLocation, self).__init__()
self.addr = addr
self.size = size
def __repr__(self):
return "<Mem %s<%d>>" % (hex(self.addr) if type(self.addr) is int else self.addr, self.size)
@property
def bits(self):
return self.size * 8
@property
def symbolic(self):
return not type(self.addr) is int
def __eq__(self, other):
return type(other) is MemoryLocation and \
self.addr == other.addr and \
self.size == other.size
def __hash__(self):
return hash(('mem', self.addr, self.size))
class Parameter(Atom):
__slots__ = ['value', 'type_', 'meta']
def __init__(self, value, type_=None, meta=None):
super(Parameter, self).__init__()
self.value = value
self.type_ = type_
self.meta = meta
def __repr__(self):
type_ = ', type=%s' % self.type_ if self.type_ is not None else ''
meta = ', meta=%s' % self.meta if self.meta is not None else ''
return '<Param %s%s%s>' % (self.value, type_, meta)
def __eq__(self, other):
return type(other) is Parameter and \
self.value == other.value and \
self.type_ == other.type_ and \
self.meta == other.meta
|
class Atom:
def __init__(self):
pass
def __repr__(self):
raise not_implemented_error()
class Tmp(Atom):
__slots__ = ['tmp_idx']
def __init__(self, tmp_idx):
super(Tmp, self).__init__()
self.tmp_idx = tmp_idx
def __repr__(self):
return '<Tmp %d>' % self.tmp_idx
def __eq__(self, other):
return type(other) is Tmp and self.tmp_idx == other.tmp_idx
def __hash__(self):
return hash(('tmp', self.tmp_idx))
class Register(Atom):
__slots__ = ['reg_offset', 'size']
def __init__(self, reg_offset, size):
super(Register, self).__init__()
self.reg_offset = reg_offset
self.size = size
def __repr__(self):
return '<Reg %d<%d>>' % (self.reg_offset, self.size)
def __eq__(self, other):
return type(other) is Register and self.reg_offset == other.reg_offset and (self.size == other.size)
def __hash__(self):
return hash(('reg', self.reg_offset, self.size))
class Memorylocation(Atom):
__slots__ = ['addr', 'size']
def __init__(self, addr, size):
super(MemoryLocation, self).__init__()
self.addr = addr
self.size = size
def __repr__(self):
return '<Mem %s<%d>>' % (hex(self.addr) if type(self.addr) is int else self.addr, self.size)
@property
def bits(self):
return self.size * 8
@property
def symbolic(self):
return not type(self.addr) is int
def __eq__(self, other):
return type(other) is MemoryLocation and self.addr == other.addr and (self.size == other.size)
def __hash__(self):
return hash(('mem', self.addr, self.size))
class Parameter(Atom):
__slots__ = ['value', 'type_', 'meta']
def __init__(self, value, type_=None, meta=None):
super(Parameter, self).__init__()
self.value = value
self.type_ = type_
self.meta = meta
def __repr__(self):
type_ = ', type=%s' % self.type_ if self.type_ is not None else ''
meta = ', meta=%s' % self.meta if self.meta is not None else ''
return '<Param %s%s%s>' % (self.value, type_, meta)
def __eq__(self, other):
return type(other) is Parameter and self.value == other.value and (self.type_ == other.type_) and (self.meta == other.meta)
|
# Utilities and color maps for plotting
# Colours from https://s-rip.ees.hokudai.ac.jp/mediawiki/index.php/Notes_for_Authors
reanalysis_color = {
'MERRA2' :'#e21f26',
'MERRA' :'#f69999',
'ERAI' :'#295f8a',
'ERA5' :'#5f98c6',
'ERA40' :'#afcbe3',
'JRA55' :'#723b7a',
'JRA55C' :'#ad71b5',
'JRA25' :'#d6b8da',
'NCEP1' :'#f57e20',
'NCEP2' :'#fdbf6e',
'20CRV2C' :'#ec008c',
'20CRV2' :'#f799D1',
'CERA20C' :'#00aeef',
'ERA20C' :'#60c8e8',
'CFSR' :'#34a048',
'REM' :'#b35b28', # reanalysis ensemble mean
'OTHER' :'#ffd700',
'OBS' :'#000000', # observations black
'OBS2' :'#777777',
} # observations grey
|
reanalysis_color = {'MERRA2': '#e21f26', 'MERRA': '#f69999', 'ERAI': '#295f8a', 'ERA5': '#5f98c6', 'ERA40': '#afcbe3', 'JRA55': '#723b7a', 'JRA55C': '#ad71b5', 'JRA25': '#d6b8da', 'NCEP1': '#f57e20', 'NCEP2': '#fdbf6e', '20CRV2C': '#ec008c', '20CRV2': '#f799D1', 'CERA20C': '#00aeef', 'ERA20C': '#60c8e8', 'CFSR': '#34a048', 'REM': '#b35b28', 'OTHER': '#ffd700', 'OBS': '#000000', 'OBS2': '#777777'}
|
# maximum_subarray_sum.py
# https://www.codewars.com/kata/54521e9ec8e60bc4de000d6c
def max_sequence(arr):
if len(arr) == 0:
return 0
all_elements_negative = True
for item in arr:
if item > 0:
all_elements_negative = False
break
if all_elements_negative:
return 0
maximum_sum = max(arr)
current_sum = 0
max_subarray = []
for i in range(len(arr)):
current_sum = 0
for j in range(i, len(arr)):
current_sum += arr[j]
print(i, j, current_sum, arr[i:j+1])
if current_sum > maximum_sum:
maximum_sum = current_sum
max_subarray = arr[i:j+1]
return maximum_sum
if __name__ == "__main__":
print(max_sequence([-2, 1, -3, 4, -1, 2, 1, -5, 4]))
|
def max_sequence(arr):
if len(arr) == 0:
return 0
all_elements_negative = True
for item in arr:
if item > 0:
all_elements_negative = False
break
if all_elements_negative:
return 0
maximum_sum = max(arr)
current_sum = 0
max_subarray = []
for i in range(len(arr)):
current_sum = 0
for j in range(i, len(arr)):
current_sum += arr[j]
print(i, j, current_sum, arr[i:j + 1])
if current_sum > maximum_sum:
maximum_sum = current_sum
max_subarray = arr[i:j + 1]
return maximum_sum
if __name__ == '__main__':
print(max_sequence([-2, 1, -3, 4, -1, 2, 1, -5, 4]))
|
x = int(input())
y = float(input())
gasto = x / y
print('{:.3f} km/l'.format(gasto))
|
x = int(input())
y = float(input())
gasto = x / y
print('{:.3f} km/l'.format(gasto))
|
# Created by MechAviv
# ID :: [931050000]
# Hidden Street : Extraction Room 1
sm.curNodeEventEnd(True)
sm.setTemporarySkillSet(0)
sm.setInGameDirectionMode(True, True, False, False)
sm.setStandAloneMode(True)
def failMessage(crack):
sm.chatScript("Tap the Control Key repeatedly to break the wall.")
sm.showEffect("Effect/Direction6.img/effect/tuto/guide1/0", 3000, 0, -100, 20, 0, False, 0)
sm.showEffect("Effect/Direction6.img/effect/tuto/breakEgg/" + str(crack), 6600, 0, 0, 1, 0, False, 0)
if not "1" in sm.getQRValue(23206):
sm.createQuestWithQRValue(23206, "1")
sm.levelUntil(10)
sm.sendDelay(3000)
sm.showFieldEffect("demonSlayer/text12", 0)
sm.sendDelay(5000)
sm.forcedInput(1)
sm.sendDelay(10)
sm.forcedInput(0)
sm.setSpeakerID(2159311)
sm.removeEscapeButton()
sm.setPlayerAsSpeaker()
sm.setSpeakerType(3)
sm.sendNext("........")
sm.showEffect("Effect/Direction6.img/effect/tuto/balloonMsg0/14", 2000, 130, 50, 10, 0, False, 0)
sm.sendDelay(2000)
sm.setSpeakerID(2159311)
sm.removeEscapeButton()
sm.setPlayerAsSpeaker()
sm.setSpeakerType(3)
sm.sendNext("(I think I hear something...)")
sm.showEffect("Effect/Direction6.img/effect/tuto/balloonMsg0/15", 2000, -130, 50, 10, 0, False, 0)
sm.sendDelay(2000)
sm.setSpeakerID(2159311)
sm.removeEscapeButton()
sm.setPlayerAsSpeaker()
sm.setSpeakerType(3)
sm.sendNext("(Where am I? Am I still alive...?)")
sm.showEffect("Effect/Direction6.img/effect/tuto/balloonMsg0/16", 2000, 130, 50, 10, 0, False, 0)
sm.sendDelay(2000)
sm.setSpeakerID(2159311)
sm.removeEscapeButton()
sm.setPlayerAsSpeaker()
sm.setSpeakerType(3)
sm.sendNext("(Ugh... My energy... Something is stealing my energy!)")
sm.showEffect("Effect/Direction6.img/effect/tuto/balloonMsg0/17", 2000, -130, 50, 10, 0, False, 0)
sm.sendDelay(2000)
sm.setSpeakerID(2159311)
sm.removeEscapeButton()
sm.setPlayerAsSpeaker()
sm.setSpeakerType(3)
sm.sendNext("(I must escape before they drain all my power!)")
sm.setPatternInputCount(0)
sm.chatScript("Tap the Control Key repeatedly to break the wall.")
sm.showEffect("Effect/Direction6.img/effect/tuto/guide1/0", 3000, 0, -100, 20, 0, False, 0)
while not sm.patternInputRequest("17#17#17#", 2, 2, 3000) and sm.getPatternInputCount() < 7:
failMessage(0)
sm.setPatternInputCount(0)
sm.playSound("demonSlayer/punch", 100)
sm.playSound("demonSlayer/crackEgg", 100)
sm.chatScript("Tap the Control Key repeatedly to break the wall.")
sm.showEffect("Effect/Direction6.img/effect/tuto/guide1/0", 3000, 0, -100, 20, 0, False, 0)
sm.showEffect("Effect/Direction6.img/effect/tuto/breakEgg/0", 6600, 0, 0, 1, 0, False, 0)
while not sm.patternInputRequest("17#17#17#", 2, 2, 3000) and sm.getPatternInputCount() < 7:
failMessage(0)
sm.setPatternInputCount(0)
sm.playSound("demonSlayer/punch", 100)
sm.playSound("demonSlayer/crackEgg", 100)
sm.showEffect("Effect/Direction6.img/effect/tuto/balloonMsg0/7", 2000, 130, 100, 10, 0, False, 0)
sm.chatScript("Tap the Control Key repeatedly to break the wall.")
sm.showEffect("Effect/Direction6.img/effect/tuto/guide1/0", 3000, 0, -100, 20, 0, False, 0)
sm.showEffect("Effect/Direction6.img/effect/tuto/breakEgg/0", 6600, 0, 0, 1, 0, False, 0)
while not sm.patternInputRequest("17#17#17#", 2, 2, 3000) and sm.getPatternInputCount() < 7:
failMessage(0)
sm.setPatternInputCount(0)
sm.playSound("demonSlayer/punch", 100)
sm.playSound("demonSlayer/crackEgg", 100)
sm.chatScript("Tap the Control Key repeatedly to break the wall.")
sm.showEffect("Effect/Direction6.img/effect/tuto/guide1/0", 3000, 0, -100, 20, 0, False, 0)
sm.showEffect("Effect/Direction6.img/effect/tuto/breakEgg/1", 6600, 0, 0, 1, 0, False, 0)
while not sm.patternInputRequest("17#17#17#", 2, 2, 3000) and sm.getPatternInputCount() < 7:
failMessage(1)
sm.setPatternInputCount(0)
sm.showEffect("Effect/Direction6.img/effect/tuto/breakEgg/0", 3600, 0, 0, 1, 0, False, 0)
sm.sendDelay(3000)
sm.showEffect("Effect/Direction6.img/effect/tuto/breakEgg/1", 3600, 0, 0, 1, 0, False, 0)
sm.showEffect("Effect/Direction6.img/effect/tuto/balloonMsg1/1", 2000, -130, 50, 10, 0, False, 0)
sm.playSound("demonSlayer/crackEgg", 100)
sm.sendDelay(1000)
sm.showEffect("Effect/Direction6.img/effect/tuto/breakEgg/2", 9000, 0, 0, 1, 0, False, 0)
sm.showEffect("Effect/Direction6.img/effect/tuto/balloonMsg1/2", 2000, 130, 50, 10, 0, False, 0)
sm.sendDelay(1000)
sm.playSound("demonSlayer/breakEgg", 100)
sm.showFieldEffect("demonSlayer/whiteOut", 0)
sm.warpInstanceIn(931050020, 0)
|
sm.curNodeEventEnd(True)
sm.setTemporarySkillSet(0)
sm.setInGameDirectionMode(True, True, False, False)
sm.setStandAloneMode(True)
def fail_message(crack):
sm.chatScript('Tap the Control Key repeatedly to break the wall.')
sm.showEffect('Effect/Direction6.img/effect/tuto/guide1/0', 3000, 0, -100, 20, 0, False, 0)
sm.showEffect('Effect/Direction6.img/effect/tuto/breakEgg/' + str(crack), 6600, 0, 0, 1, 0, False, 0)
if not '1' in sm.getQRValue(23206):
sm.createQuestWithQRValue(23206, '1')
sm.levelUntil(10)
sm.sendDelay(3000)
sm.showFieldEffect('demonSlayer/text12', 0)
sm.sendDelay(5000)
sm.forcedInput(1)
sm.sendDelay(10)
sm.forcedInput(0)
sm.setSpeakerID(2159311)
sm.removeEscapeButton()
sm.setPlayerAsSpeaker()
sm.setSpeakerType(3)
sm.sendNext('........')
sm.showEffect('Effect/Direction6.img/effect/tuto/balloonMsg0/14', 2000, 130, 50, 10, 0, False, 0)
sm.sendDelay(2000)
sm.setSpeakerID(2159311)
sm.removeEscapeButton()
sm.setPlayerAsSpeaker()
sm.setSpeakerType(3)
sm.sendNext('(I think I hear something...)')
sm.showEffect('Effect/Direction6.img/effect/tuto/balloonMsg0/15', 2000, -130, 50, 10, 0, False, 0)
sm.sendDelay(2000)
sm.setSpeakerID(2159311)
sm.removeEscapeButton()
sm.setPlayerAsSpeaker()
sm.setSpeakerType(3)
sm.sendNext('(Where am I? Am I still alive...?)')
sm.showEffect('Effect/Direction6.img/effect/tuto/balloonMsg0/16', 2000, 130, 50, 10, 0, False, 0)
sm.sendDelay(2000)
sm.setSpeakerID(2159311)
sm.removeEscapeButton()
sm.setPlayerAsSpeaker()
sm.setSpeakerType(3)
sm.sendNext('(Ugh... My energy... Something is stealing my energy!)')
sm.showEffect('Effect/Direction6.img/effect/tuto/balloonMsg0/17', 2000, -130, 50, 10, 0, False, 0)
sm.sendDelay(2000)
sm.setSpeakerID(2159311)
sm.removeEscapeButton()
sm.setPlayerAsSpeaker()
sm.setSpeakerType(3)
sm.sendNext('(I must escape before they drain all my power!)')
sm.setPatternInputCount(0)
sm.chatScript('Tap the Control Key repeatedly to break the wall.')
sm.showEffect('Effect/Direction6.img/effect/tuto/guide1/0', 3000, 0, -100, 20, 0, False, 0)
while not sm.patternInputRequest('17#17#17#', 2, 2, 3000) and sm.getPatternInputCount() < 7:
fail_message(0)
sm.setPatternInputCount(0)
sm.playSound('demonSlayer/punch', 100)
sm.playSound('demonSlayer/crackEgg', 100)
sm.chatScript('Tap the Control Key repeatedly to break the wall.')
sm.showEffect('Effect/Direction6.img/effect/tuto/guide1/0', 3000, 0, -100, 20, 0, False, 0)
sm.showEffect('Effect/Direction6.img/effect/tuto/breakEgg/0', 6600, 0, 0, 1, 0, False, 0)
while not sm.patternInputRequest('17#17#17#', 2, 2, 3000) and sm.getPatternInputCount() < 7:
fail_message(0)
sm.setPatternInputCount(0)
sm.playSound('demonSlayer/punch', 100)
sm.playSound('demonSlayer/crackEgg', 100)
sm.showEffect('Effect/Direction6.img/effect/tuto/balloonMsg0/7', 2000, 130, 100, 10, 0, False, 0)
sm.chatScript('Tap the Control Key repeatedly to break the wall.')
sm.showEffect('Effect/Direction6.img/effect/tuto/guide1/0', 3000, 0, -100, 20, 0, False, 0)
sm.showEffect('Effect/Direction6.img/effect/tuto/breakEgg/0', 6600, 0, 0, 1, 0, False, 0)
while not sm.patternInputRequest('17#17#17#', 2, 2, 3000) and sm.getPatternInputCount() < 7:
fail_message(0)
sm.setPatternInputCount(0)
sm.playSound('demonSlayer/punch', 100)
sm.playSound('demonSlayer/crackEgg', 100)
sm.chatScript('Tap the Control Key repeatedly to break the wall.')
sm.showEffect('Effect/Direction6.img/effect/tuto/guide1/0', 3000, 0, -100, 20, 0, False, 0)
sm.showEffect('Effect/Direction6.img/effect/tuto/breakEgg/1', 6600, 0, 0, 1, 0, False, 0)
while not sm.patternInputRequest('17#17#17#', 2, 2, 3000) and sm.getPatternInputCount() < 7:
fail_message(1)
sm.setPatternInputCount(0)
sm.showEffect('Effect/Direction6.img/effect/tuto/breakEgg/0', 3600, 0, 0, 1, 0, False, 0)
sm.sendDelay(3000)
sm.showEffect('Effect/Direction6.img/effect/tuto/breakEgg/1', 3600, 0, 0, 1, 0, False, 0)
sm.showEffect('Effect/Direction6.img/effect/tuto/balloonMsg1/1', 2000, -130, 50, 10, 0, False, 0)
sm.playSound('demonSlayer/crackEgg', 100)
sm.sendDelay(1000)
sm.showEffect('Effect/Direction6.img/effect/tuto/breakEgg/2', 9000, 0, 0, 1, 0, False, 0)
sm.showEffect('Effect/Direction6.img/effect/tuto/balloonMsg1/2', 2000, 130, 50, 10, 0, False, 0)
sm.sendDelay(1000)
sm.playSound('demonSlayer/breakEgg', 100)
sm.showFieldEffect('demonSlayer/whiteOut', 0)
sm.warpInstanceIn(931050020, 0)
|
class HTTPError(Exception):
pass
class VersionSpecificationError(Exception):
pass
|
class Httperror(Exception):
pass
class Versionspecificationerror(Exception):
pass
|
# -*- coding: utf-8 -*-
'''
Splunk User State Module
.. versionadded:: 2016.3.0.
This state is used to ensure presence of users in splunk.
.. code-block:: yaml
ensure example test user 1:
splunk.present:
- name: 'Example TestUser1'
- email: [email protected]
'''
def __virtual__():
'''
Only load if the splunk module is available in __salt__
'''
return 'splunk' if 'splunk.list_users' in __salt__ else False
def present(email, profile="splunk", **kwargs):
'''
Ensure a user is present
.. code-block:: yaml
ensure example test user 1:
splunk.user_present:
- realname: 'Example TestUser1'
- name: 'exampleuser'
- email: '[email protected]'
- roles: ['user']
The following parameters are required:
email
This is the email of the user in splunk
'''
name = kwargs.get('name')
ret = {
'name': name,
'changes': {},
'result': None,
'comment': ''
}
target = __salt__['splunk.get_user'](email, profile=profile, user_details=True)
if not target:
if __opts__['test']:
ret['comment'] = 'User {0} will be created'.format(name)
return ret
# create the user
result = __salt__['splunk.create_user'](
email, profile=profile, **kwargs
)
if result:
ret['changes'].setdefault('old', None)
ret['changes'].setdefault('new', 'User {0} exists'.format(name))
ret['result'] = True
else:
ret['result'] = False
ret['comment'] = 'Failed to create {0}'.format(name)
return ret
else:
ret['comment'] = 'User {0} set to be updated.'.format(name)
if __opts__['test']:
ret['result'] = None
return ret
# found a user... updating
result = __salt__['splunk.update_user'](
email, profile, **kwargs
)
if isinstance(result, bool) and result:
# no update
ret['result'] = None
ret['comment'] = "No changes"
else:
diff = {}
for field in ['name', 'realname', 'roles', 'defaultApp', 'tz', 'capabilities']:
if field == 'roles':
diff['roles'] = list(set(target.get(field, [])).symmetric_difference(set(result.get(field, []))))
elif target.get(field) != result.get(field):
diff[field] = result.get(field)
newvalues = result
ret['result'] = True
ret['changes']['diff'] = diff
ret['changes']['old'] = target
ret['changes']['new'] = newvalues
return ret
def absent(email, profile="splunk", **kwargs):
'''
Ensure a splunk user is absent
.. code-block:: yaml
ensure example test user 1:
splunk.absent:
- email: '[email protected]'
- name: 'exampleuser'
The following parameters are required:
email
This is the email of the user in splunk
name
This is the splunk username used to identify the user.
'''
user_identity = kwargs.get('name')
ret = {
'name': user_identity,
'changes': {},
'result': None,
'comment': 'User {0} is absent.'.format(user_identity)
}
target = __salt__['splunk.get_user'](email, profile=profile)
if not target:
ret['comment'] = 'User {0} does not exist'.format(user_identity)
ret['result'] = True
return ret
if __opts__['test']:
ret['comment'] = "User {0} is all set to be deleted".format(user_identity)
ret['result'] = None
return ret
result = __salt__['splunk.delete_user'](email, profile=profile)
if result:
ret['comment'] = 'Deleted user {0}'.format(user_identity)
ret['changes'].setdefault('old', 'User {0} exists'.format(user_identity))
ret['changes'].setdefault('new', 'User {0} deleted'.format(user_identity))
ret['result'] = True
else:
ret['comment'] = 'Failed to delete {0}'.format(user_identity)
ret['result'] = False
return ret
|
"""
Splunk User State Module
.. versionadded:: 2016.3.0.
This state is used to ensure presence of users in splunk.
.. code-block:: yaml
ensure example test user 1:
splunk.present:
- name: 'Example TestUser1'
- email: [email protected]
"""
def __virtual__():
"""
Only load if the splunk module is available in __salt__
"""
return 'splunk' if 'splunk.list_users' in __salt__ else False
def present(email, profile='splunk', **kwargs):
"""
Ensure a user is present
.. code-block:: yaml
ensure example test user 1:
splunk.user_present:
- realname: 'Example TestUser1'
- name: 'exampleuser'
- email: '[email protected]'
- roles: ['user']
The following parameters are required:
email
This is the email of the user in splunk
"""
name = kwargs.get('name')
ret = {'name': name, 'changes': {}, 'result': None, 'comment': ''}
target = __salt__['splunk.get_user'](email, profile=profile, user_details=True)
if not target:
if __opts__['test']:
ret['comment'] = 'User {0} will be created'.format(name)
return ret
result = __salt__['splunk.create_user'](email, profile=profile, **kwargs)
if result:
ret['changes'].setdefault('old', None)
ret['changes'].setdefault('new', 'User {0} exists'.format(name))
ret['result'] = True
else:
ret['result'] = False
ret['comment'] = 'Failed to create {0}'.format(name)
return ret
else:
ret['comment'] = 'User {0} set to be updated.'.format(name)
if __opts__['test']:
ret['result'] = None
return ret
result = __salt__['splunk.update_user'](email, profile, **kwargs)
if isinstance(result, bool) and result:
ret['result'] = None
ret['comment'] = 'No changes'
else:
diff = {}
for field in ['name', 'realname', 'roles', 'defaultApp', 'tz', 'capabilities']:
if field == 'roles':
diff['roles'] = list(set(target.get(field, [])).symmetric_difference(set(result.get(field, []))))
elif target.get(field) != result.get(field):
diff[field] = result.get(field)
newvalues = result
ret['result'] = True
ret['changes']['diff'] = diff
ret['changes']['old'] = target
ret['changes']['new'] = newvalues
return ret
def absent(email, profile='splunk', **kwargs):
"""
Ensure a splunk user is absent
.. code-block:: yaml
ensure example test user 1:
splunk.absent:
- email: '[email protected]'
- name: 'exampleuser'
The following parameters are required:
email
This is the email of the user in splunk
name
This is the splunk username used to identify the user.
"""
user_identity = kwargs.get('name')
ret = {'name': user_identity, 'changes': {}, 'result': None, 'comment': 'User {0} is absent.'.format(user_identity)}
target = __salt__['splunk.get_user'](email, profile=profile)
if not target:
ret['comment'] = 'User {0} does not exist'.format(user_identity)
ret['result'] = True
return ret
if __opts__['test']:
ret['comment'] = 'User {0} is all set to be deleted'.format(user_identity)
ret['result'] = None
return ret
result = __salt__['splunk.delete_user'](email, profile=profile)
if result:
ret['comment'] = 'Deleted user {0}'.format(user_identity)
ret['changes'].setdefault('old', 'User {0} exists'.format(user_identity))
ret['changes'].setdefault('new', 'User {0} deleted'.format(user_identity))
ret['result'] = True
else:
ret['comment'] = 'Failed to delete {0}'.format(user_identity)
ret['result'] = False
return ret
|
#!/usr/bin/env python
#fn: copy.py
# write specifi contents of alignment_py.py to blast_py.py
INPUT = open('alignment_py.py','r')
OUTPUT = open('blast_py.py','a')
lnum = 0
for line in INPUT:
lnum += 1
line = line.strip('\n')
if lnum > 6 and lnum < 138:
OUTPUT.write(line+'\n')
|
input = open('alignment_py.py', 'r')
output = open('blast_py.py', 'a')
lnum = 0
for line in INPUT:
lnum += 1
line = line.strip('\n')
if lnum > 6 and lnum < 138:
OUTPUT.write(line + '\n')
|
__author__ = 'sanyi'
class IpsetError(Exception):
pass
class IpsetNotFound(Exception):
pass
class IpsetNoRights(Exception):
pass
class IpsetInvalidResponse(Exception):
pass
class IpsetCommandHangs(Exception):
pass
class IpsetSetNotFound(Exception):
pass
class IpsetEntryNotFound(Exception):
pass
|
__author__ = 'sanyi'
class Ipseterror(Exception):
pass
class Ipsetnotfound(Exception):
pass
class Ipsetnorights(Exception):
pass
class Ipsetinvalidresponse(Exception):
pass
class Ipsetcommandhangs(Exception):
pass
class Ipsetsetnotfound(Exception):
pass
class Ipsetentrynotfound(Exception):
pass
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.