content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
---|---|
class SubrectangleQueries:
def __init__(self, rectangle: List[List[int]]):
self.rec = rectangle
self.newRec = []
def updateSubrectangle(self, row1: int, col1: int, row2: int, col2: int, newValue: int) -> None:
self.newRec.append((row1, col1, row2, col2, newValue))
def getValue(self, row: int, col: int) -> int:
for i in range(len(self.newRec) - 1, -1, -1):
if self.newRec[i][0] <= row <= self.newRec[i][2] and self.newRec[i][1] <= col <= self.newRec[i][3]:
return self.newRec[i][4]
return self.rec[row][col]
# Your SubrectangleQueries object will be instantiated and called as such:
# obj = SubrectangleQueries(rectangle)
# obj.updateSubrectangle(row1,col1,row2,col2,newValue)
# param_2 = obj.getValue(row,col)
|
class Subrectanglequeries:
def __init__(self, rectangle: List[List[int]]):
self.rec = rectangle
self.newRec = []
def update_subrectangle(self, row1: int, col1: int, row2: int, col2: int, newValue: int) -> None:
self.newRec.append((row1, col1, row2, col2, newValue))
def get_value(self, row: int, col: int) -> int:
for i in range(len(self.newRec) - 1, -1, -1):
if self.newRec[i][0] <= row <= self.newRec[i][2] and self.newRec[i][1] <= col <= self.newRec[i][3]:
return self.newRec[i][4]
return self.rec[row][col]
|
# model
model = Model()
i0 = Input("op_shape", "TENSOR_INT32", "{4}")
weights = Parameter("ker", "TENSOR_FLOAT32", "{1, 3, 3, 1}", [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0])
i1 = Input("in", "TENSOR_FLOAT32", "{1, 4, 4, 1}" )
pad = Int32Scalar("pad_same", 1)
s_x = Int32Scalar("stride_x", 1)
s_y = Int32Scalar("stride_y", 1)
i2 = Output("op", "TENSOR_FLOAT32", "{1, 4, 4, 1}")
model = model.Operation("TRANSPOSE_CONV_EX", i0, weights, i1, pad, s_x, s_y).To(i2)
# Example 1. Input in operand 0,
input0 = {i0: # output shape
[1, 4, 4, 1],
i1: # input 0
[1.0, 2.0, 3.0, 4.0,
5.0, 6.0, 7.0, 8.0,
9.0, 10.0, 11.0, 12.0,
13.0, 14.0, 15.0, 16.0]}
output0 = {i2: # output 0
[29.0, 62.0, 83.0, 75.0,
99.0, 192.0, 237.0, 198.0,
207.0, 372.0, 417.0, 330.0,
263.0, 446.0, 485.0, 365.0]}
# Instantiate an example
Example((input0, output0))
|
model = model()
i0 = input('op_shape', 'TENSOR_INT32', '{4}')
weights = parameter('ker', 'TENSOR_FLOAT32', '{1, 3, 3, 1}', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0])
i1 = input('in', 'TENSOR_FLOAT32', '{1, 4, 4, 1}')
pad = int32_scalar('pad_same', 1)
s_x = int32_scalar('stride_x', 1)
s_y = int32_scalar('stride_y', 1)
i2 = output('op', 'TENSOR_FLOAT32', '{1, 4, 4, 1}')
model = model.Operation('TRANSPOSE_CONV_EX', i0, weights, i1, pad, s_x, s_y).To(i2)
input0 = {i0: [1, 4, 4, 1], i1: [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0]}
output0 = {i2: [29.0, 62.0, 83.0, 75.0, 99.0, 192.0, 237.0, 198.0, 207.0, 372.0, 417.0, 330.0, 263.0, 446.0, 485.0, 365.0]}
example((input0, output0))
|
#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 30 13:28:17 2020
@author: Robinson Montes
Carlos Murcia
"""
|
"""
Created on Tue Jun 30 13:28:17 2020
@author: Robinson Montes
Carlos Murcia
"""
|
{
"targets": [
{
"target_name": "cityhash",
"include_dirs": ["cityhash/"],
"sources": [
"binding.cc",
"cityhash/city.cc"
]
}
]
}
|
{'targets': [{'target_name': 'cityhash', 'include_dirs': ['cityhash/'], 'sources': ['binding.cc', 'cityhash/city.cc']}]}
|
# def positive_or_negative(value):
# if value > 0:
# return "Positive!"
# elif value < 0:
# return "Negative!"
# else:
# return "It's zero!"
# number = int(input("Wprowadz liczbe: "))
# print(positive_or_negative(number))
def calculator(operation, a, b):
if operation == "add":
return a + b
elif operation == "subtract":
return a - b
elif operation == "multiple":
return a * b
elif operation == "divide":
return a / b
else:
print("There is no such an operation!")
operacja = str(input("Co chcesz zrobic? "))
num1 = int(input("Pierwszy skladnik: "))
num2 = int(input("Drugi skladnik: "))
print(calculator(operacja, num1, num2))
|
def calculator(operation, a, b):
if operation == 'add':
return a + b
elif operation == 'subtract':
return a - b
elif operation == 'multiple':
return a * b
elif operation == 'divide':
return a / b
else:
print('There is no such an operation!')
operacja = str(input('Co chcesz zrobic? '))
num1 = int(input('Pierwszy skladnik: '))
num2 = int(input('Drugi skladnik: '))
print(calculator(operacja, num1, num2))
|
pkgname = "eventlog"
pkgver = "0.2.13"
pkgrel = 0
_commit = "a5c19163ba131f79452c6dfe4e31c2b4ce4be741"
build_style = "gnu_configure"
hostmakedepends = ["pkgconf", "automake", "libtool"]
pkgdesc = "API to format and send structured log messages"
maintainer = "q66 <[email protected]>"
license = "BSD-3-Clause"
url = "https://github.com/balabit/eventlog"
source = f"{url}/archive/{_commit}.tar.gz"
sha256 = "ddd8c19cf70adced542eeb067df275cb2c0d37a5efe1ba9123102eb9b4967c7b"
def pre_configure(self):
self.do("autoreconf", "-if")
def post_install(self):
self.install_license("COPYING")
@subpackage("eventlog-devel")
def _devel(self):
return self.default_devel()
|
pkgname = 'eventlog'
pkgver = '0.2.13'
pkgrel = 0
_commit = 'a5c19163ba131f79452c6dfe4e31c2b4ce4be741'
build_style = 'gnu_configure'
hostmakedepends = ['pkgconf', 'automake', 'libtool']
pkgdesc = 'API to format and send structured log messages'
maintainer = 'q66 <[email protected]>'
license = 'BSD-3-Clause'
url = 'https://github.com/balabit/eventlog'
source = f'{url}/archive/{_commit}.tar.gz'
sha256 = 'ddd8c19cf70adced542eeb067df275cb2c0d37a5efe1ba9123102eb9b4967c7b'
def pre_configure(self):
self.do('autoreconf', '-if')
def post_install(self):
self.install_license('COPYING')
@subpackage('eventlog-devel')
def _devel(self):
return self.default_devel()
|
"""Echoes everything you say.
Usage:
/echo
/echo Hi!
Type 'cancel' to stop echoing.
"""
def handle_update(bot, update, update_queue, **kwargs):
"""Echo messages that user sends.
This is the main function that modulehander calls.
Args:
bot (telegram.Bot): Telegram bot itself
update (telegram.Update): Update that will be processed
update_queue (Queue): Queue containing all incoming and unhandled updates
kwargs: All unused keyword arguments. See more from python-telegram-bot
"""
try:
# e.g. message is "/echo I'm talking to a bot!"
text = update.message.text.split(' ', 1)[1]
except IndexError:
# e.g message is just "/echo"
text = "What do you want me to echo?"
bot.sendMessage(chat_id=update.message.chat_id, text=text)
# If module is more conversational, it can utilize the update_queue
while True:
update = update_queue.get()
if update.message.text == "":
text = "Couldn't echo that"
bot.sendMessage(chat_id=update.message.chat_id, text=text)
elif update.message.text.lower() == "cancel":
text = "Ok, I'll stop echoing..."
bot.sendMessage(chat_id=update.message.chat_id, text=text)
break
elif update.message.text.startswith('/'):
# User accesses another bot
update_queue.put(update)
break
else:
bot.sendMessage(
chat_id=update.message.chat_id, text=update.message.text)
|
"""Echoes everything you say.
Usage:
/echo
/echo Hi!
Type 'cancel' to stop echoing.
"""
def handle_update(bot, update, update_queue, **kwargs):
"""Echo messages that user sends.
This is the main function that modulehander calls.
Args:
bot (telegram.Bot): Telegram bot itself
update (telegram.Update): Update that will be processed
update_queue (Queue): Queue containing all incoming and unhandled updates
kwargs: All unused keyword arguments. See more from python-telegram-bot
"""
try:
text = update.message.text.split(' ', 1)[1]
except IndexError:
text = 'What do you want me to echo?'
bot.sendMessage(chat_id=update.message.chat_id, text=text)
while True:
update = update_queue.get()
if update.message.text == '':
text = "Couldn't echo that"
bot.sendMessage(chat_id=update.message.chat_id, text=text)
elif update.message.text.lower() == 'cancel':
text = "Ok, I'll stop echoing..."
bot.sendMessage(chat_id=update.message.chat_id, text=text)
break
elif update.message.text.startswith('/'):
update_queue.put(update)
break
else:
bot.sendMessage(chat_id=update.message.chat_id, text=update.message.text)
|
#
# PySNMP MIB module CISCO-COMPRESSION-SERVICE-ADAPTER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-COMPRESSION-SERVICE-ADAPTER-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:36:21 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, ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
cardIndex, = mibBuilder.importSymbols("OLD-CISCO-CHASSIS-MIB", "cardIndex")
NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance")
ModuleIdentity, TimeTicks, MibIdentifier, Gauge32, Counter32, iso, Bits, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, NotificationType, Unsigned32, Integer32, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "TimeTicks", "MibIdentifier", "Gauge32", "Counter32", "iso", "Bits", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "NotificationType", "Unsigned32", "Integer32", "Counter64")
DisplayString, TruthValue, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TruthValue", "TextualConvention")
ciscoCompressionServiceAdapterMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 57))
if mibBuilder.loadTexts: ciscoCompressionServiceAdapterMIB.setLastUpdated('9608150000Z')
if mibBuilder.loadTexts: ciscoCompressionServiceAdapterMIB.setOrganization('Cisco Systems, Inc.')
ciscoCSAMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 57, 1))
csaStats = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1))
csaStatsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1), )
if mibBuilder.loadTexts: csaStatsTable.setStatus('current')
csaStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1), ).setIndexNames((0, "OLD-CISCO-CHASSIS-MIB", "cardIndex"))
if mibBuilder.loadTexts: csaStatsEntry.setStatus('current')
csaInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: csaInOctets.setStatus('current')
csaOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: csaOutOctets.setStatus('current')
csaInPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: csaInPackets.setStatus('current')
csaOutPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: csaOutPackets.setStatus('current')
csaInPacketsDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: csaInPacketsDrop.setStatus('current')
csaOutPacketsDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: csaOutPacketsDrop.setStatus('current')
csaNumberOfRestarts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: csaNumberOfRestarts.setStatus('current')
csaCompressionRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 8), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: csaCompressionRatio.setStatus('current')
csaDecompressionRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 9), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: csaDecompressionRatio.setStatus('current')
csaEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 10), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: csaEnable.setStatus('current')
ciscoCSAMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 57, 3))
csaMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 57, 3, 1))
csaMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 57, 3, 2))
csaMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 57, 3, 1, 1)).setObjects(("CISCO-COMPRESSION-SERVICE-ADAPTER-MIB", "csaMIBGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
csaMIBCompliance = csaMIBCompliance.setStatus('current')
csaMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 57, 3, 2, 1)).setObjects(("CISCO-COMPRESSION-SERVICE-ADAPTER-MIB", "csaInOctets"), ("CISCO-COMPRESSION-SERVICE-ADAPTER-MIB", "csaOutOctets"), ("CISCO-COMPRESSION-SERVICE-ADAPTER-MIB", "csaInPackets"), ("CISCO-COMPRESSION-SERVICE-ADAPTER-MIB", "csaOutPackets"), ("CISCO-COMPRESSION-SERVICE-ADAPTER-MIB", "csaInPacketsDrop"), ("CISCO-COMPRESSION-SERVICE-ADAPTER-MIB", "csaOutPacketsDrop"), ("CISCO-COMPRESSION-SERVICE-ADAPTER-MIB", "csaNumberOfRestarts"), ("CISCO-COMPRESSION-SERVICE-ADAPTER-MIB", "csaCompressionRatio"), ("CISCO-COMPRESSION-SERVICE-ADAPTER-MIB", "csaDecompressionRatio"), ("CISCO-COMPRESSION-SERVICE-ADAPTER-MIB", "csaEnable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
csaMIBGroup = csaMIBGroup.setStatus('current')
mibBuilder.exportSymbols("CISCO-COMPRESSION-SERVICE-ADAPTER-MIB", ciscoCompressionServiceAdapterMIB=ciscoCompressionServiceAdapterMIB, csaOutPacketsDrop=csaOutPacketsDrop, csaStatsTable=csaStatsTable, csaInPacketsDrop=csaInPacketsDrop, csaNumberOfRestarts=csaNumberOfRestarts, csaMIBGroups=csaMIBGroups, csaStatsEntry=csaStatsEntry, csaInOctets=csaInOctets, csaEnable=csaEnable, csaMIBCompliance=csaMIBCompliance, ciscoCSAMIBConformance=ciscoCSAMIBConformance, csaDecompressionRatio=csaDecompressionRatio, csaMIBCompliances=csaMIBCompliances, ciscoCSAMIBObjects=ciscoCSAMIBObjects, csaCompressionRatio=csaCompressionRatio, csaOutOctets=csaOutOctets, csaOutPackets=csaOutPackets, csaStats=csaStats, csaMIBGroup=csaMIBGroup, PYSNMP_MODULE_ID=ciscoCompressionServiceAdapterMIB, csaInPackets=csaInPackets)
|
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, value_size_constraint, value_range_constraint, single_value_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueSizeConstraint', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection')
(cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt')
(card_index,) = mibBuilder.importSymbols('OLD-CISCO-CHASSIS-MIB', 'cardIndex')
(notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance')
(module_identity, time_ticks, mib_identifier, gauge32, counter32, iso, bits, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity, notification_type, unsigned32, integer32, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'ModuleIdentity', 'TimeTicks', 'MibIdentifier', 'Gauge32', 'Counter32', 'iso', 'Bits', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity', 'NotificationType', 'Unsigned32', 'Integer32', 'Counter64')
(display_string, truth_value, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TruthValue', 'TextualConvention')
cisco_compression_service_adapter_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 57))
if mibBuilder.loadTexts:
ciscoCompressionServiceAdapterMIB.setLastUpdated('9608150000Z')
if mibBuilder.loadTexts:
ciscoCompressionServiceAdapterMIB.setOrganization('Cisco Systems, Inc.')
cisco_csamib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 57, 1))
csa_stats = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1))
csa_stats_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1))
if mibBuilder.loadTexts:
csaStatsTable.setStatus('current')
csa_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1)).setIndexNames((0, 'OLD-CISCO-CHASSIS-MIB', 'cardIndex'))
if mibBuilder.loadTexts:
csaStatsEntry.setStatus('current')
csa_in_octets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
csaInOctets.setStatus('current')
csa_out_octets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
csaOutOctets.setStatus('current')
csa_in_packets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
csaInPackets.setStatus('current')
csa_out_packets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
csaOutPackets.setStatus('current')
csa_in_packets_drop = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
csaInPacketsDrop.setStatus('current')
csa_out_packets_drop = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
csaOutPacketsDrop.setStatus('current')
csa_number_of_restarts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
csaNumberOfRestarts.setStatus('current')
csa_compression_ratio = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 8), gauge32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
csaCompressionRatio.setStatus('current')
csa_decompression_ratio = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 9), gauge32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
csaDecompressionRatio.setStatus('current')
csa_enable = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 57, 1, 1, 1, 1, 10), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
csaEnable.setStatus('current')
cisco_csamib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 57, 3))
csa_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 57, 3, 1))
csa_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 57, 3, 2))
csa_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 57, 3, 1, 1)).setObjects(('CISCO-COMPRESSION-SERVICE-ADAPTER-MIB', 'csaMIBGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
csa_mib_compliance = csaMIBCompliance.setStatus('current')
csa_mib_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 57, 3, 2, 1)).setObjects(('CISCO-COMPRESSION-SERVICE-ADAPTER-MIB', 'csaInOctets'), ('CISCO-COMPRESSION-SERVICE-ADAPTER-MIB', 'csaOutOctets'), ('CISCO-COMPRESSION-SERVICE-ADAPTER-MIB', 'csaInPackets'), ('CISCO-COMPRESSION-SERVICE-ADAPTER-MIB', 'csaOutPackets'), ('CISCO-COMPRESSION-SERVICE-ADAPTER-MIB', 'csaInPacketsDrop'), ('CISCO-COMPRESSION-SERVICE-ADAPTER-MIB', 'csaOutPacketsDrop'), ('CISCO-COMPRESSION-SERVICE-ADAPTER-MIB', 'csaNumberOfRestarts'), ('CISCO-COMPRESSION-SERVICE-ADAPTER-MIB', 'csaCompressionRatio'), ('CISCO-COMPRESSION-SERVICE-ADAPTER-MIB', 'csaDecompressionRatio'), ('CISCO-COMPRESSION-SERVICE-ADAPTER-MIB', 'csaEnable'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
csa_mib_group = csaMIBGroup.setStatus('current')
mibBuilder.exportSymbols('CISCO-COMPRESSION-SERVICE-ADAPTER-MIB', ciscoCompressionServiceAdapterMIB=ciscoCompressionServiceAdapterMIB, csaOutPacketsDrop=csaOutPacketsDrop, csaStatsTable=csaStatsTable, csaInPacketsDrop=csaInPacketsDrop, csaNumberOfRestarts=csaNumberOfRestarts, csaMIBGroups=csaMIBGroups, csaStatsEntry=csaStatsEntry, csaInOctets=csaInOctets, csaEnable=csaEnable, csaMIBCompliance=csaMIBCompliance, ciscoCSAMIBConformance=ciscoCSAMIBConformance, csaDecompressionRatio=csaDecompressionRatio, csaMIBCompliances=csaMIBCompliances, ciscoCSAMIBObjects=ciscoCSAMIBObjects, csaCompressionRatio=csaCompressionRatio, csaOutOctets=csaOutOctets, csaOutPackets=csaOutPackets, csaStats=csaStats, csaMIBGroup=csaMIBGroup, PYSNMP_MODULE_ID=ciscoCompressionServiceAdapterMIB, csaInPackets=csaInPackets)
|
user_input = '5,4,25,18,22,9'
user_numbers = user_input.split(',')
user_numbers_as_int = []
for number in user_numbers:
user_numbers_as_int.append(int(number))
print(user_numbers_as_int)
print([number for number in user_numbers])
print([number*2 for number in user_numbers])
print([int(number) for number in user_numbers])
|
user_input = '5,4,25,18,22,9'
user_numbers = user_input.split(',')
user_numbers_as_int = []
for number in user_numbers:
user_numbers_as_int.append(int(number))
print(user_numbers_as_int)
print([number for number in user_numbers])
print([number * 2 for number in user_numbers])
print([int(number) for number in user_numbers])
|
line = "Please have a nice day"
# This takes a parameter, what prefix we're looking for.
line_new = line.startswith('Please')
print(line_new)
#Does it start with a lowercase p?
# And then we get back a False because,
# no, it doesn't start with a lowercase p
line_new = line.startswith('p')
print(line_new)
|
line = 'Please have a nice day'
line_new = line.startswith('Please')
print(line_new)
line_new = line.startswith('p')
print(line_new)
|
a=[1,2]
for i,s in enumerate(a):
print(i,"index contains",s)
|
a = [1, 2]
for (i, s) in enumerate(a):
print(i, 'index contains', s)
|
def gen_help(bot_name):
return'''
Hello!
I am a telegram bot that generates duckduckgo links from tg directly.
I am an inline bot, you can access it via @{bot_name}.
If you have any questions feel free to leave issue at http://github.com/cleac/tgsearchbot
'''.format(bot_name=bot_name)
|
def gen_help(bot_name):
return '\nHello!\n\nI am a telegram bot that generates duckduckgo links from tg directly.\nI am an inline bot, you can access it via @{bot_name}.\n\nIf you have any questions feel free to leave issue at http://github.com/cleac/tgsearchbot\n '.format(bot_name=bot_name)
|
#class Solution:
# def checkPowersOfThree(self, n: int) -> bool:
#def checkPowersOfThree(n):
# def divisible_by_3(k):
# return k % 3 == 0
# #if 1 <= n <= 2:
# if n == 2:
# return False
# if divisible_by_3(n):
# return checkPowersOfThree(n//3)
# else:
# n = n - 1
# if divisible_by_3(n):
# return checkPowersOfThree(n//3)
# else:
# return False
qualified = {1, 3, 4, 9}
def checkPowersOfThree(n):
if n in qualified:
return True
remainder = n % 3
if remainder == 2:
return False
#elif remainder == 1:
# reduced = (n-1) // 3
# if checkPowersOfThree(reduced):
# qualified.add(reduced)
# return True
# else:
# return False
else:
reduced = (n-remainder) // 3
if checkPowersOfThree(reduced):
qualified.add(reduced)
return True
else:
return False
if __name__ == "__main__":
n = 12
print(f"{checkPowersOfThree(n)}")
n = 91
print(f"{checkPowersOfThree(n)}")
n = 21
print(f"{checkPowersOfThree(n)}")
|
qualified = {1, 3, 4, 9}
def check_powers_of_three(n):
if n in qualified:
return True
remainder = n % 3
if remainder == 2:
return False
else:
reduced = (n - remainder) // 3
if check_powers_of_three(reduced):
qualified.add(reduced)
return True
else:
return False
if __name__ == '__main__':
n = 12
print(f'{check_powers_of_three(n)}')
n = 91
print(f'{check_powers_of_three(n)}')
n = 21
print(f'{check_powers_of_three(n)}')
|
n = int(input('Enter A Number:'))
count = 1
for i in range(count, 11, 1):
print (f'{n} * {count} = {n*count}')
count +=1
|
n = int(input('Enter A Number:'))
count = 1
for i in range(count, 11, 1):
print(f'{n} * {count} = {n * count}')
count += 1
|
# Sum of the diagonals of a spiral square diagonal
# OPTIMAL (<0.1s)
#
# APPROACH:
# Generate the numbers in the spiral with a simple algorithm until
# the desdired side is obtained,
SQUARE_SIDE = 1001
DUMMY_SQUARE_SIDE = 5
DUMMY_RESULT = 101
def generate_numbers(limit):
current = 1
internal_square = 1
steps = 0
while internal_square <= limit:
yield current
if current == internal_square**2:
internal_square += 2
steps += 2
current += steps
def sum_diagonals(square_side):
return sum(generate_numbers(square_side))
assert sum_diagonals(DUMMY_SQUARE_SIDE) == DUMMY_RESULT
result = sum_diagonals(SQUARE_SIDE)
|
square_side = 1001
dummy_square_side = 5
dummy_result = 101
def generate_numbers(limit):
current = 1
internal_square = 1
steps = 0
while internal_square <= limit:
yield current
if current == internal_square ** 2:
internal_square += 2
steps += 2
current += steps
def sum_diagonals(square_side):
return sum(generate_numbers(square_side))
assert sum_diagonals(DUMMY_SQUARE_SIDE) == DUMMY_RESULT
result = sum_diagonals(SQUARE_SIDE)
|
def get_data(query):
"""[summary] make variable of chart.graphs.drawgraph.Graph().CustomDraw(kwargs) from querydict. The querydict from index.html
Args:
query ([type]): [description] querydict like <QueryDict: {'csrfmiddlewaretoken': ['2aboKu6bYhaa5OiUS5cWLytPpUpEMFLLqsYlZAE3MWervMwfoQ3HP9RlRcjEl9Uj'], 'smaperiod1': ['26'], 'smaperiod2': ['52'], 'emaperiod1': ['7'], 'emaperiod2': ['14'], 'bbandN': ['20'], 'bbandk': ['2.0'], 'rsiperiod': ['14'], 'rsibuythread': ['30.0'], 'rsisellthread': ['70.0'], 'macdfastperiod': ['12'], 'macdslowperiod': ['26'], 'macdsignaleriod': ['9'], 'ichimokut': ['12'], 'ichimokuk': ['26'], 'ichimokus': ['52']}>
"""
kwargs = {}
kwargs["Sma"] = {"params": (int(query["smaperiod1"]), int(query["smaperiod2"]))}
kwargs["Ema"] = {"params": (int(query["emaperiod1"]), int(query["emaperiod2"]))}
kwargs["DEma"] = {"params": (int(query["demaperiod1"]), int(query["demaperiod2"]))}
kwargs["Bb"] = {"params": (int(query["bbandN"]), float(query["bbandk"]))}
kwargs["Rsi"] = {"params": (int(query["rsiperiod"]), float(query["rsibuythread"]), float(query["rsisellthread"]))}
kwargs["Macd"] = {"params": (int(query["macdfastperiod"]), int(query["macdslowperiod"]), int(query["macdsignalperiod"]))}
kwargs["Ichimoku"] = {"params": (int(query["ichimokut"]), int(query["ichimokuk"]), int(query["ichimokus"]))}
return kwargs
|
def get_data(query):
"""[summary] make variable of chart.graphs.drawgraph.Graph().CustomDraw(kwargs) from querydict. The querydict from index.html
Args:
query ([type]): [description] querydict like <QueryDict: {'csrfmiddlewaretoken': ['2aboKu6bYhaa5OiUS5cWLytPpUpEMFLLqsYlZAE3MWervMwfoQ3HP9RlRcjEl9Uj'], 'smaperiod1': ['26'], 'smaperiod2': ['52'], 'emaperiod1': ['7'], 'emaperiod2': ['14'], 'bbandN': ['20'], 'bbandk': ['2.0'], 'rsiperiod': ['14'], 'rsibuythread': ['30.0'], 'rsisellthread': ['70.0'], 'macdfastperiod': ['12'], 'macdslowperiod': ['26'], 'macdsignaleriod': ['9'], 'ichimokut': ['12'], 'ichimokuk': ['26'], 'ichimokus': ['52']}>
"""
kwargs = {}
kwargs['Sma'] = {'params': (int(query['smaperiod1']), int(query['smaperiod2']))}
kwargs['Ema'] = {'params': (int(query['emaperiod1']), int(query['emaperiod2']))}
kwargs['DEma'] = {'params': (int(query['demaperiod1']), int(query['demaperiod2']))}
kwargs['Bb'] = {'params': (int(query['bbandN']), float(query['bbandk']))}
kwargs['Rsi'] = {'params': (int(query['rsiperiod']), float(query['rsibuythread']), float(query['rsisellthread']))}
kwargs['Macd'] = {'params': (int(query['macdfastperiod']), int(query['macdslowperiod']), int(query['macdsignalperiod']))}
kwargs['Ichimoku'] = {'params': (int(query['ichimokut']), int(query['ichimokuk']), int(query['ichimokus']))}
return kwargs
|
PI = 3.14
SALES_TAX = 6
if __name__ == '__main__':
print('Constant file directly executed')
else:
print('Constant file is imported')
|
pi = 3.14
sales_tax = 6
if __name__ == '__main__':
print('Constant file directly executed')
else:
print('Constant file is imported')
|
# ------------------------------------------------------------------------
# Copyright 2015 Intel Corporation
#
# 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.
# ------------------------------------------------------------------------
class Configuration:
"""Compiler-specific configuration abstract base class"""
def __init__(self, context):
"""
Initialize the Configuration object
Arguments:
context -- the scons configure context
"""
if type(self) is Configuration:
raise TypeError('abstract class cannot be instantiated')
self._context = context # scons configure context
self._env = context.env # scons environment
def check_c99_flags(self):
"""
Check if command line flag is required to enable C99
support.
Returns 1 if no flag is required, 0 if no flag was
found, and the actual flag if one was found.
CFLAGS will be updated with appropriate C99 flag,
accordingly.
"""
return self._check_flags(self._c99_flags(),
self._c99_test_program(),
'.c',
'CFLAGS')
def check_cxx11_flags(self):
"""
Check if command line flag is required to enable C++11
support.
Returns 1 if no flag is required, 0 if no flag was
found, and the actual flag if one was found.
CXXFLAGS will be updated with appropriate C++11 flag,
accordingly.
"""
return self._check_flags(self._cxx11_flags(),
self._cxx11_test_program(),
'.cpp',
'CXXFLAGS')
def has_pthreads_support(self):
"""
Check if PThreads are supported by this system
Returns 1 if this system DOES support pthreads, 0
otherwise
"""
return self._context.TryCompile(self._pthreads_test_program(), '.c')
# --------------------------------------------------------------
# Check if flag is required to build the given test program.
#
# Arguments:
# test_flags -- list of flags that may be needed to build
# test_program
# test_program -- program used used to determine if one of the
# given flags is required to for a successful
# build
# test_extension -- file extension associated with the test
# program, e.g. '.cpp' for C++ and '.c' for C
# flags_key -- key used to retrieve compiler flags that may
# be updated by this check from the SCons
# environment
# --------------------------------------------------------------
def _check_flags(self,
test_flags,
test_program,
test_extension,
flags_key):
# Check if no additional flags are required.
ret = self._context.TryCompile(test_program,
test_extension)
if ret is 0:
# Try flags known to enable compiler features needed by
# the test program.
last_flags = self._env[flags_key]
for flag in test_flags:
self._env.Append(**{flags_key : flag})
ret = self._context.TryCompile(test_program,
test_extension)
if ret:
# Found a flag!
return flag
else:
# Restore original compiler flags for next flag
# test.
self._env.Replace(**{flags_key : last_flags})
return ret
# ------------------------------------------------------------
# Return test program to be used when checking for basic C99
# support.
#
# Subclasses should implement this template method or use the
# default test program found in the DefaultConfiguration class
# through composition.
# ------------------------------------------------------------
def _c99_test_program(self):
raise NotImplementedError('unimplemented method')
# --------------------------------------------------------------
# Get list of flags that could potentially enable C99 support.
#
# Subclasses should implement this template method if flags are
# needed to enable C99 support.
# --------------------------------------------------------------
def _c99_flags(self):
raise NotImplementedError('unimplemented method')
# ------------------------------------------------------------
# Return test program to be used when checking for basic C++11
# support.
#
# Subclasses should implement this template method or use the
# default test program found in the DefaultConfiguration class
# through composition.
# ------------------------------------------------------------
def _cxx11_test_program(self):
raise NotImplementedError('unimplemented method')
# --------------------------------------------------------------
# Get list of flags that could potentially enable C++11 support.
#
# Subclasses should implement this template method if flags are
# needed to enable C++11 support.
# --------------------------------------------------------------
def _cxx11_flags(self):
raise NotImplementedError('unimplemented method')
# --------------------------------------------------------------
# Return a test program to be used when checking for PThreads
# support
#
# --------------------------------------------------------------
def _pthreads_test_program(self):
return """
#include <unistd.h>
#include <pthread.h>
int main()
{
#ifndef _POSIX_THREADS
# error POSIX Threads support not available
#endif
return 0;
}
"""
|
class Configuration:
"""Compiler-specific configuration abstract base class"""
def __init__(self, context):
"""
Initialize the Configuration object
Arguments:
context -- the scons configure context
"""
if type(self) is Configuration:
raise type_error('abstract class cannot be instantiated')
self._context = context
self._env = context.env
def check_c99_flags(self):
"""
Check if command line flag is required to enable C99
support.
Returns 1 if no flag is required, 0 if no flag was
found, and the actual flag if one was found.
CFLAGS will be updated with appropriate C99 flag,
accordingly.
"""
return self._check_flags(self._c99_flags(), self._c99_test_program(), '.c', 'CFLAGS')
def check_cxx11_flags(self):
"""
Check if command line flag is required to enable C++11
support.
Returns 1 if no flag is required, 0 if no flag was
found, and the actual flag if one was found.
CXXFLAGS will be updated with appropriate C++11 flag,
accordingly.
"""
return self._check_flags(self._cxx11_flags(), self._cxx11_test_program(), '.cpp', 'CXXFLAGS')
def has_pthreads_support(self):
"""
Check if PThreads are supported by this system
Returns 1 if this system DOES support pthreads, 0
otherwise
"""
return self._context.TryCompile(self._pthreads_test_program(), '.c')
def _check_flags(self, test_flags, test_program, test_extension, flags_key):
ret = self._context.TryCompile(test_program, test_extension)
if ret is 0:
last_flags = self._env[flags_key]
for flag in test_flags:
self._env.Append(**{flags_key: flag})
ret = self._context.TryCompile(test_program, test_extension)
if ret:
return flag
else:
self._env.Replace(**{flags_key: last_flags})
return ret
def _c99_test_program(self):
raise not_implemented_error('unimplemented method')
def _c99_flags(self):
raise not_implemented_error('unimplemented method')
def _cxx11_test_program(self):
raise not_implemented_error('unimplemented method')
def _cxx11_flags(self):
raise not_implemented_error('unimplemented method')
def _pthreads_test_program(self):
return '\n#include <unistd.h>\n#include <pthread.h>\nint main()\n{\n #ifndef _POSIX_THREADS\n # error POSIX Threads support not available\n #endif\n return 0;\n}\n'
|
{
'targets': [
{
'target_name': 'electron-dragdrop-win',
'include_dirs': [
'<!(node -e "require(\'nan\')")',
],
'defines': [ 'UNICODE', '_UNICODE'],
'sources': [
],
'conditions': [
['OS=="win"', {
'sources': [
"src/addon.cpp",
"src/Worker.cpp",
"src/v8utils.cpp",
"src/ole/DataObject.cpp",
"src/ole/DropSource.cpp",
"src/ole/EnumFormat.cpp",
"src/ole/Stream.cpp",
"src/ole/ole.cpp"
],
}],
['OS!="win"', {
'sources': [
"src/addon-unsupported-platform.cc"
],
}]
]
}
]
}
|
{'targets': [{'target_name': 'electron-dragdrop-win', 'include_dirs': ['<!(node -e "require(\'nan\')")'], 'defines': ['UNICODE', '_UNICODE'], 'sources': [], 'conditions': [['OS=="win"', {'sources': ['src/addon.cpp', 'src/Worker.cpp', 'src/v8utils.cpp', 'src/ole/DataObject.cpp', 'src/ole/DropSource.cpp', 'src/ole/EnumFormat.cpp', 'src/ole/Stream.cpp', 'src/ole/ole.cpp']}], ['OS!="win"', {'sources': ['src/addon-unsupported-platform.cc']}]]}]}
|
def format_reader_port_message(message, reader_port, error):
return f'{message} with {reader_port}. Error: {error}'
def format_reader_message(message, vendor_id, product_id, serial_number):
return f'{message} with ' \
f'vendor_id={vendor_id}, ' \
f'product_id={product_id} and ' \
f'serial_number={serial_number}'
class ReaderNotFound(Exception):
def __init__(self, vendor_id, product_id, serial_number):
super(ReaderNotFound, self).__init__(
format_reader_message('No RFID Reader found', vendor_id, product_id, serial_number)
)
class ReaderCouldNotConnect(Exception):
def __init__(self, reader_port, error):
super(ReaderCouldNotConnect, self).__init__(
format_reader_port_message('Could not connect to reader', reader_port, error)
)
|
def format_reader_port_message(message, reader_port, error):
return f'{message} with {reader_port}. Error: {error}'
def format_reader_message(message, vendor_id, product_id, serial_number):
return f'{message} with vendor_id={vendor_id}, product_id={product_id} and serial_number={serial_number}'
class Readernotfound(Exception):
def __init__(self, vendor_id, product_id, serial_number):
super(ReaderNotFound, self).__init__(format_reader_message('No RFID Reader found', vendor_id, product_id, serial_number))
class Readercouldnotconnect(Exception):
def __init__(self, reader_port, error):
super(ReaderCouldNotConnect, self).__init__(format_reader_port_message('Could not connect to reader', reader_port, error))
|
word="boy"
print(word)
reverse=[]
l=list(word)
for i in l:
reverse=[i]+reverse
reverse="".join(reverse)
print(reverse)
l=[1,2,3,4]
print(l)
r=[]
for i in l:
r=[i]+r
print(r)
|
word = 'boy'
print(word)
reverse = []
l = list(word)
for i in l:
reverse = [i] + reverse
reverse = ''.join(reverse)
print(reverse)
l = [1, 2, 3, 4]
print(l)
r = []
for i in l:
r = [i] + r
print(r)
|
path = '08-File-Handling-Lab-Resources/File Reader/numbers.txt'
file = open(path, 'r')
num_sum = 0
for num in file:
num_sum += int(num)
print(num) # read
print(num_sum)
print(file.read()) # .read(n) n = number
|
path = '08-File-Handling-Lab-Resources/File Reader/numbers.txt'
file = open(path, 'r')
num_sum = 0
for num in file:
num_sum += int(num)
print(num)
print(num_sum)
print(file.read())
|
class BindingTypes:
JSFunction = 1
JSObject = 2
class Binding(object):
def __init__(self, type, src, dest):
self.type = type
self.src = src
self.dest = dest
|
class Bindingtypes:
js_function = 1
js_object = 2
class Binding(object):
def __init__(self, type, src, dest):
self.type = type
self.src = src
self.dest = dest
|
def faculty_evaluation_result(nev, rar, som, oft, voft, alw):
''' Write code to calculate faculty evaluation rating according to asssignment instructions
:param nev: Never
:param rar: Rarely
:param som: Sometimes
:param oft: Often
:param voft: Very Often
:param alw: Always
:return: rating as a string'''
total = nev + rar + som + oft + voft + alw
nev_ratio = nev / total
rar_ratio = rar / total
som_ratio = som / total
oft_ratio = oft / total
voft_ratio = voft / total
alw_ratio = alw / total
if alw_ratio + voft_ratio >= 0.9:
return "Excellent"
elif alw_ratio + voft_ratio + oft_ratio >= 0.8:
return "Very Good"
elif alw_ratio + voft_ratio + oft_ratio + som_ratio >= 0.7:
return "Good"
elif alw_ratio + voft_ratio + oft_ratio + som_ratio + rar_ratio >= 0.6:
return "Needs Improvement"
else:
return "Unacceptable"
def get_ratings(nev,rar,som, oft,voft, alw):
'''
Students aren't expected to know this material yet!
'''
ratings = []
total = nev + rar + som + oft + voft + alw
ratings.append(round(alw / total, 2))
ratings.append(round(voft / total, 2))
ratings.append(round(oft / total, 2))
ratings.append(round(som / total, 2))
ratings.append(round(rar / total, 2))
ratings.append(round(nev / total, 2))
return ratings
|
def faculty_evaluation_result(nev, rar, som, oft, voft, alw):
""" Write code to calculate faculty evaluation rating according to asssignment instructions
:param nev: Never
:param rar: Rarely
:param som: Sometimes
:param oft: Often
:param voft: Very Often
:param alw: Always
:return: rating as a string"""
total = nev + rar + som + oft + voft + alw
nev_ratio = nev / total
rar_ratio = rar / total
som_ratio = som / total
oft_ratio = oft / total
voft_ratio = voft / total
alw_ratio = alw / total
if alw_ratio + voft_ratio >= 0.9:
return 'Excellent'
elif alw_ratio + voft_ratio + oft_ratio >= 0.8:
return 'Very Good'
elif alw_ratio + voft_ratio + oft_ratio + som_ratio >= 0.7:
return 'Good'
elif alw_ratio + voft_ratio + oft_ratio + som_ratio + rar_ratio >= 0.6:
return 'Needs Improvement'
else:
return 'Unacceptable'
def get_ratings(nev, rar, som, oft, voft, alw):
"""
Students aren't expected to know this material yet!
"""
ratings = []
total = nev + rar + som + oft + voft + alw
ratings.append(round(alw / total, 2))
ratings.append(round(voft / total, 2))
ratings.append(round(oft / total, 2))
ratings.append(round(som / total, 2))
ratings.append(round(rar / total, 2))
ratings.append(round(nev / total, 2))
return ratings
|
HTTP_HOST = ''
HTTP_PORT = 8080
FLASKY_MAIL_SUBJECT_PREFIX = "(Info)"
FLASKY_MAIL_SENDER = '[email protected]'
FLASKY_ADMIN = '[email protected]'
SECRET_KEY = "\x02|\x86.\\\xea\xba\x89\xa3\xfc\r%s\x9e\x06\x9d\x01\x9c\x84\xa1b+uC"
LOG = "/var/flasky"
# WSGI Settings
WSGI_LOG = 'default'
# Flask-Log Settings
LOG_LEVEL = 'debug'
LOG_FILENAME = "logs/error.log"
LOG_BACKUP_COUNT = 10
LOG_MAX_BYTE = 1024 * 1024 * 10
LOG_FORMATTER = '%(asctime)s - %(levelname)s - %(message)s'
LOG_ENABLE_CONSOLE = True
# Flask-Mail settings
MAIL_SERVER = 'smtp.126.com'
MAIL_PORT = 25
MAIL_USE_TLS = False
MAIL_USE_SSL = False
MAIL_USERNAME = '[email protected]'
MAIL_PASSWORD = 'Newegg@123456$'
|
http_host = ''
http_port = 8080
flasky_mail_subject_prefix = '(Info)'
flasky_mail_sender = '[email protected]'
flasky_admin = '[email protected]'
secret_key = '\x02|\x86.\\êº\x89£ü\r%s\x9e\x06\x9d\x01\x9c\x84¡b+uC'
log = '/var/flasky'
wsgi_log = 'default'
log_level = 'debug'
log_filename = 'logs/error.log'
log_backup_count = 10
log_max_byte = 1024 * 1024 * 10
log_formatter = '%(asctime)s - %(levelname)s - %(message)s'
log_enable_console = True
mail_server = 'smtp.126.com'
mail_port = 25
mail_use_tls = False
mail_use_ssl = False
mail_username = '[email protected]'
mail_password = 'Newegg@123456$'
|
class Action:
def __init__(self, fun, id=None):
self._fun = fun
self._id = id
def fun(self):
return self._fun
def id(self):
return self._id
|
class Action:
def __init__(self, fun, id=None):
self._fun = fun
self._id = id
def fun(self):
return self._fun
def id(self):
return self._id
|
def encode(plaintext, key):
"""Encodes plaintext
Encode the message by shifting each character by the offset
of a character in the key.
"""
ciphertext = ""
i, j = 0, 0 # key, plaintext indices
# strip all non-alpha characters from key
key2 = ""
for x in key: key2 += x if x.isalpha() else ""
# shift each character
for x in plaintext:
if 97 <= ord(x) <= 122: # if character is alphabetic lowercase
ciphertext += chr(((ord(x) - 97) + (ord(key2[i].lower()) - 97)) % 26 + 97)
i += 1
elif 65 <= ord(x) <= 90: # if character is alphabetic uppercase
ciphertext += chr(((ord(x) - 65) + (ord(key2[i].upper()) - 65)) % 26 + 65)
i += 1
else: # non-alphabetic characters do not change
ciphertext += x
j += 1
if i == len(key2):
i = 0
return ciphertext
def decode(ciphertext, key):
"""Decode ciphertext message with a key."""
plaintext = ""
i, j = 0, 0 # key, ciphertext indices
# strip all non-alpha characters from key
key2 = ""
for x in key: key2 += x if x.isalpha() else ""
# shift each character
for x in ciphertext:
if 97 <= ord(x) <= 122: # if character is alphabetic lowercase
plaintext += chr(((ord(x) - 97) - (ord(key2[i].lower()) - 97)) % 26 + 97)
i += 1
elif 65 <= ord(x) <= 90: # if character is alphabetic uppercase
plaintext += chr(((ord(x) - 65) - (ord(key2[i].upper()) - 65)) % 26 + 65)
i += 1
else: # non-alphabetic characters do not change
plaintext += x
j += 1
if i == len(key2):
i = 0
return plaintext
|
def encode(plaintext, key):
"""Encodes plaintext
Encode the message by shifting each character by the offset
of a character in the key.
"""
ciphertext = ''
(i, j) = (0, 0)
key2 = ''
for x in key:
key2 += x if x.isalpha() else ''
for x in plaintext:
if 97 <= ord(x) <= 122:
ciphertext += chr((ord(x) - 97 + (ord(key2[i].lower()) - 97)) % 26 + 97)
i += 1
elif 65 <= ord(x) <= 90:
ciphertext += chr((ord(x) - 65 + (ord(key2[i].upper()) - 65)) % 26 + 65)
i += 1
else:
ciphertext += x
j += 1
if i == len(key2):
i = 0
return ciphertext
def decode(ciphertext, key):
"""Decode ciphertext message with a key."""
plaintext = ''
(i, j) = (0, 0)
key2 = ''
for x in key:
key2 += x if x.isalpha() else ''
for x in ciphertext:
if 97 <= ord(x) <= 122:
plaintext += chr((ord(x) - 97 - (ord(key2[i].lower()) - 97)) % 26 + 97)
i += 1
elif 65 <= ord(x) <= 90:
plaintext += chr((ord(x) - 65 - (ord(key2[i].upper()) - 65)) % 26 + 65)
i += 1
else:
plaintext += x
j += 1
if i == len(key2):
i = 0
return plaintext
|
class dotIFC2X3_Product_t(object):
# no doc
Description = None
IFC2X3_OwnerHistory = None
Name = None
ObjectType = None
|
class Dotifc2X3_Product_T(object):
description = None
ifc2_x3__owner_history = None
name = None
object_type = None
|
'''
###############################################
# ####################################### #
#### ######## Simple Calculator ########## ####
# ####################################### #
###############################################
## ##
##########################################
############ Version 2 #################
##########################################
## ##
'''
'''
The version 2 of SimpleCalc.py adds extra functionality but due to my limited
approach, has to remove to some functions as well, which hope so will be added
along with these new functions in the later version.
This version can tell total number of inputs, their summation and and average,
no matter how many inputs you give it, but as the same time this version unable
to calculate multiple and devision of the numbers.
'''
print("Type 'done' to Quit.")
sum = 0
count = 0
while True:
num = input('Input your number: ')
if num == 'done':
print('goodbye')
break
try:
fnum = float(num)
except:
print('bad input')
continue
sum = sum + fnum
count = count + 1
print('----Total Inputs:', count)
print('----Sum:', sum)
print('----Average:', sum/count)
|
"""
###############################################
# ####################################### #
#### ######## Simple Calculator ########## ####
# ####################################### #
###############################################
## ##
##########################################
############ Version 2 #################
##########################################
## ##
"""
'\nThe version 2 of SimpleCalc.py adds extra functionality but due to my limited\napproach, has to remove to some functions as well, which hope so will be added\nalong with these new functions in the later version.\nThis version can tell total number of inputs, their summation and and average,\nno matter how many inputs you give it, but as the same time this version unable\nto calculate multiple and devision of the numbers.\n'
print("Type 'done' to Quit.")
sum = 0
count = 0
while True:
num = input('Input your number: ')
if num == 'done':
print('goodbye')
break
try:
fnum = float(num)
except:
print('bad input')
continue
sum = sum + fnum
count = count + 1
print('----Total Inputs:', count)
print('----Sum:', sum)
print('----Average:', sum / count)
|
def handle_error_response(resp):
codes = {
-1: FactomAPIError,
-32008: BlockNotFound,
-32009: MissingChainHead,
-32010: ReceiptCreationError,
-32011: RepeatedCommit,
-32600: InvalidRequest,
-32601: MethodNotFound,
-32602: InvalidParams,
-32603: InternalError,
-32700: ParseError,
}
error = resp.json().get('error', {})
message = error.get('message')
code = error.get('code', -1)
data = error.get('data', {})
raise codes[code](message=message, code=code, data=data, response=resp)
class FactomAPIError(Exception):
response = None
data = {}
code = -1
message = "An unknown error occurred"
def __init__(self, message=None, code=None, data={}, response=None):
self.response = response
if message:
self.message = message
if code:
self.code = code
if data:
self.data = data
def __str__(self):
if self.code:
return '{}: {}'.format(self.code, self.message)
return self.message
class BlockNotFound(FactomAPIError):
pass
class MissingChainHead(FactomAPIError):
pass
class ReceiptCreationError(FactomAPIError):
pass
class RepeatedCommit(FactomAPIError):
pass
class InvalidRequest(FactomAPIError):
pass
class MethodNotFound(FactomAPIError):
pass
class InvalidParams(FactomAPIError):
pass
class InternalError(FactomAPIError):
pass
class ParseError(FactomAPIError):
pass
|
def handle_error_response(resp):
codes = {-1: FactomAPIError, -32008: BlockNotFound, -32009: MissingChainHead, -32010: ReceiptCreationError, -32011: RepeatedCommit, -32600: InvalidRequest, -32601: MethodNotFound, -32602: InvalidParams, -32603: InternalError, -32700: ParseError}
error = resp.json().get('error', {})
message = error.get('message')
code = error.get('code', -1)
data = error.get('data', {})
raise codes[code](message=message, code=code, data=data, response=resp)
class Factomapierror(Exception):
response = None
data = {}
code = -1
message = 'An unknown error occurred'
def __init__(self, message=None, code=None, data={}, response=None):
self.response = response
if message:
self.message = message
if code:
self.code = code
if data:
self.data = data
def __str__(self):
if self.code:
return '{}: {}'.format(self.code, self.message)
return self.message
class Blocknotfound(FactomAPIError):
pass
class Missingchainhead(FactomAPIError):
pass
class Receiptcreationerror(FactomAPIError):
pass
class Repeatedcommit(FactomAPIError):
pass
class Invalidrequest(FactomAPIError):
pass
class Methodnotfound(FactomAPIError):
pass
class Invalidparams(FactomAPIError):
pass
class Internalerror(FactomAPIError):
pass
class Parseerror(FactomAPIError):
pass
|
# Encapsulate the pairs of int multiples to related string monikers
class MultipleMoniker:
mul = 0
mon = ""
def __init__(self, multiple, moniker) -> None:
self.mul = multiple
self.mon = moniker
# Define object to contain methods
class FizzBuzz:
# Define the int to start counting at
start = 1
# Define the max number to count to
maxi = 0
# Define the multiples and the corresponding descriptor terms
mmPair = [MultipleMoniker(3, "Fizz"), MultipleMoniker(5, "Buzz")]
# Define the array that will hold the designation
array = []
def __init__(self, max_int, start = 1) -> None:
self.start = start
self.maxi = max_int
self.init_with_max()
# Generate sequence up to and including maxi
def init_with_max(self, max_i=0):
if max_i != 0 :
self.maxi = max_i
tmp_array = []
for i in range(self.start, self.maxi + 1):
tmp_str = ""
for m in range(len(self.mmPair)):
if i % self.mmPair[m].mul == 0:
tmp_str += self.mmPair[m].mon
if tmp_str == "":
tmp_str += format(i)
tmp_array.append(tmp_str)
#print(f"{i}|:{self.array[i-self.start]}")
self.array = tmp_array
# Generate class STR for printout
def __str__(self):
ret_str = f"FizzBuzz({self.maxi}):"
for i in self.array:
ret_str += i + ", "
return ret_str
def add_multiple_moniker(self, multiple, moniker):
self.mmPair.append(MultipleMoniker(multiple, moniker))
def main():
# Test FizzBuzz Class Init
x1 = 42
x2 = 15
# Calculate sequence & Print Output to terminal
print("TEST_1:")
F1 = FizzBuzz(x1)
print(F1)
print("TEST_2:")
F2 = FizzBuzz(x2)
print(F2)
# Add "Fuzz" as a designator for a multiple of 7
F1.add_multiple_moniker(7, "Fuzz")
F1.init_with_max(105)
print(F1)
if __name__ == "__main__":
main()
|
class Multiplemoniker:
mul = 0
mon = ''
def __init__(self, multiple, moniker) -> None:
self.mul = multiple
self.mon = moniker
class Fizzbuzz:
start = 1
maxi = 0
mm_pair = [multiple_moniker(3, 'Fizz'), multiple_moniker(5, 'Buzz')]
array = []
def __init__(self, max_int, start=1) -> None:
self.start = start
self.maxi = max_int
self.init_with_max()
def init_with_max(self, max_i=0):
if max_i != 0:
self.maxi = max_i
tmp_array = []
for i in range(self.start, self.maxi + 1):
tmp_str = ''
for m in range(len(self.mmPair)):
if i % self.mmPair[m].mul == 0:
tmp_str += self.mmPair[m].mon
if tmp_str == '':
tmp_str += format(i)
tmp_array.append(tmp_str)
self.array = tmp_array
def __str__(self):
ret_str = f'FizzBuzz({self.maxi}):'
for i in self.array:
ret_str += i + ', '
return ret_str
def add_multiple_moniker(self, multiple, moniker):
self.mmPair.append(multiple_moniker(multiple, moniker))
def main():
x1 = 42
x2 = 15
print('TEST_1:')
f1 = fizz_buzz(x1)
print(F1)
print('TEST_2:')
f2 = fizz_buzz(x2)
print(F2)
F1.add_multiple_moniker(7, 'Fuzz')
F1.init_with_max(105)
print(F1)
if __name__ == '__main__':
main()
|
"""
Load and Display an OBJ Shape.
The loadShape() command is used to read simple SVG (Scalable Vector Graphics)
files and OBJ (Object) files into a Processing sketch. This example loads an
OBJ file of a rocket and displays it to the screen.
"""
ry = 0
def setup():
size(640, 360, P3D)
global rocket
rocket = loadShape("rocket.obj")
def draw():
background(0)
lights()
translate(width / 2, height / 2 + 100, -200)
rotateZ(PI)
rotateY(ry)
shape(rocket)
ry += 0.02
|
"""
Load and Display an OBJ Shape.
The loadShape() command is used to read simple SVG (Scalable Vector Graphics)
files and OBJ (Object) files into a Processing sketch. This example loads an
OBJ file of a rocket and displays it to the screen.
"""
ry = 0
def setup():
size(640, 360, P3D)
global rocket
rocket = load_shape('rocket.obj')
def draw():
background(0)
lights()
translate(width / 2, height / 2 + 100, -200)
rotate_z(PI)
rotate_y(ry)
shape(rocket)
ry += 0.02
|
class ContentType:
"""AI Model content types."""
MODEL_PUBLISHING = 'application/vnd.iris.ai.model-publishing+json'
MODEL_TRAINING = 'application/vnd.iris.ai.model-training+json'
|
class Contenttype:
"""AI Model content types."""
model_publishing = 'application/vnd.iris.ai.model-publishing+json'
model_training = 'application/vnd.iris.ai.model-training+json'
|
#
# 1265. Print Immutable Linked List in Reverse
#
# Q: https://leetcode.com/problems/print-immutable-linked-list-in-reverse/
# A: https://leetcode.com/problems/print-immutable-linked-list-in-reverse/discuss/436558/Javascript-Python3-C%2B%2B-1-Liners
#
class Solution:
def printLinkedListInReverse(self, head: 'ImmutableListNode') -> None:
if head:
self.printLinkedListInReverse(head.getNext())
head.printValue()
|
class Solution:
def print_linked_list_in_reverse(self, head: 'ImmutableListNode') -> None:
if head:
self.printLinkedListInReverse(head.getNext())
head.printValue()
|
class Grid:
def __init__(self, grid: [[int]]):
self.grid = grid
self.flashes = 0
self.ticks = 0
self.height = len(grid)
self.width = len(grid[0])
self.flashed_cells: [str] = []
def tick(self):
self.ticks += 1
i = 0
for row in self.grid:
j = 0
for col in row:
self.grid[i][j] += 1
j += 1
i += 1
should_refresh_grid = True
while should_refresh_grid:
should_refresh_grid = False
i = 0
for row in self.grid:
j = 0
for col in row:
if self.grid[i][j] > 9 and not self.is_flashed(j, i):
self.flash(j, i)
should_refresh_grid = True
j += 1
i += 1
for flashed_cell in self.flashed_cells:
x = int(flashed_cell.split(';')[0])
y = int(flashed_cell.split(';')[1])
self.grid[y][x] = 0
self.flashed_cells.clear()
def flash(self, x: int, y: int):
self.flashes += 1
self.mark_flashed_cell(x, y)
for _y in range(-1, 2):
for _x in range(-1, 2):
# if not middle
if (abs(_x) + abs(_y)) != 0:
observing_point_x = x + _x
observing_point_y = y + _y
if observing_point_x >= 0 and observing_point_y >= 0 and observing_point_x < self.width and observing_point_y < self.height:
self.grid[observing_point_y][observing_point_x] += 1
def is_flashed(self, x: int, y :int):
if ';'.join([str(x), str(y)]) in self.flashed_cells:
return True
return False
def mark_flashed_cell(self, x: int, y: int):
if not self.is_flashed(x, y):
self.flashed_cells.append(';'.join([str(x), str(y)]))
@staticmethod
def create_from_lines(lines: [str]):
grid = []
for line in lines:
grid.append([int(number) for number in list(line.strip())])
return Grid(grid)
|
class Grid:
def __init__(self, grid: [[int]]):
self.grid = grid
self.flashes = 0
self.ticks = 0
self.height = len(grid)
self.width = len(grid[0])
self.flashed_cells: [str] = []
def tick(self):
self.ticks += 1
i = 0
for row in self.grid:
j = 0
for col in row:
self.grid[i][j] += 1
j += 1
i += 1
should_refresh_grid = True
while should_refresh_grid:
should_refresh_grid = False
i = 0
for row in self.grid:
j = 0
for col in row:
if self.grid[i][j] > 9 and (not self.is_flashed(j, i)):
self.flash(j, i)
should_refresh_grid = True
j += 1
i += 1
for flashed_cell in self.flashed_cells:
x = int(flashed_cell.split(';')[0])
y = int(flashed_cell.split(';')[1])
self.grid[y][x] = 0
self.flashed_cells.clear()
def flash(self, x: int, y: int):
self.flashes += 1
self.mark_flashed_cell(x, y)
for _y in range(-1, 2):
for _x in range(-1, 2):
if abs(_x) + abs(_y) != 0:
observing_point_x = x + _x
observing_point_y = y + _y
if observing_point_x >= 0 and observing_point_y >= 0 and (observing_point_x < self.width) and (observing_point_y < self.height):
self.grid[observing_point_y][observing_point_x] += 1
def is_flashed(self, x: int, y: int):
if ';'.join([str(x), str(y)]) in self.flashed_cells:
return True
return False
def mark_flashed_cell(self, x: int, y: int):
if not self.is_flashed(x, y):
self.flashed_cells.append(';'.join([str(x), str(y)]))
@staticmethod
def create_from_lines(lines: [str]):
grid = []
for line in lines:
grid.append([int(number) for number in list(line.strip())])
return grid(grid)
|
#%%
text=open('new.txt', 'r+')
text.write('Hello file')
for i in range(0, 11):
text.write(str(i))
print(text.seek(2))
#%%
#file operations Read & Write
text=open('sampletxt.txt', 'r')
text= text.read()
print(text)
text=text.split(' ')
print(text)
|
text = open('new.txt', 'r+')
text.write('Hello file')
for i in range(0, 11):
text.write(str(i))
print(text.seek(2))
text = open('sampletxt.txt', 'r')
text = text.read()
print(text)
text = text.split(' ')
print(text)
|
# AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"load_audio": "00_core.ipynb",
"AudioMono": "00_core.ipynb",
"duration": "00_core.ipynb",
"SpecImage": "00_core.ipynb",
"ArrayAudioBase": "00_core.ipynb",
"ArraySpecBase": "00_core.ipynb",
"ArrayMaskBase": "00_core.ipynb",
"TensorAudio": "00_core.ipynb",
"TensorSpec": "00_core.ipynb",
"TensorMask": "00_core.ipynb",
"Spectify": "00_core.ipynb",
"Decibelify": "00_core.ipynb",
"Mel_Binify_lib": "00_core.ipynb",
"MFCCify": "00_core.ipynb",
"create": "00_core.ipynb",
"encodes": "00_core.ipynb",
"audio2tensor": "00_core.ipynb",
"spec2tensor": "00_core.ipynb",
"Resample": "00_core.ipynb",
"Clip": "00_core.ipynb",
"Normalize": "00_core.ipynb",
"PhaseManager": "00_core.ipynb",
"ResampleSignal": "00b_core.base.ipynb",
"AudioBase": "00b_core.base.ipynb",
"SpecBase": "00b_core.base.ipynb",
"show_batch": "00b_core.base.ipynb",
"time_bins": "01_utils.ipynb",
"stft": "01_utils.ipynb",
"istft": "01_utils.ipynb",
"fill": "01_utils.ipynb",
"randomComplex": "01_utils.ipynb",
"complex2real": "01_utils.ipynb",
"real2complex": "01_utils.ipynb",
"complex_mult": "01_utils.ipynb",
"get_shape": "01_utils.ipynb",
"join_audios": "01_utils.ipynb",
"Mixer": "01_utils.ipynb",
"Unet_Trimmer": "01_utils.ipynb",
"setup_graph": "02_plot.ipynb",
"ColorMeshPlotter": "02_plot.ipynb",
"cmap_dict": "02_plot.ipynb",
"cmap": "02_plot.ipynb",
"pre_plot": "02_plot.ipynb",
"post_plot": "02_plot.ipynb",
"show_audio": "02_plot.ipynb",
"show_spec": "02_plot.ipynb",
"show_mask": "02_plot.ipynb",
"hear_audio": "02_plot.ipynb",
"get_audio_files": "03_data.ipynb",
"AudioBlock": "03_data.ipynb",
"audio_extensions": "03_data.ipynb",
"#fn": "04_Trainer.ipynb",
"fn": "04_Trainer.ipynb",
"pipe": "04_Trainer.ipynb",
"Tensorify": "04_Trainer.ipynb",
"AudioDataset": "04_Trainer.ipynb",
"loss_func": "04_Trainer.ipynb",
"bs": "04_Trainer.ipynb",
"shuffle": "04_Trainer.ipynb",
"workers": "04_Trainer.ipynb",
"seed": "04_Trainer.ipynb",
"dataset": "04_Trainer.ipynb",
"n": "04_Trainer.ipynb",
"train_dl": "04_Trainer.ipynb",
"valid_dl": "04_Trainer.ipynb",
"test_dl": "04_Trainer.ipynb",
"dataiter": "04_Trainer.ipynb",
"data": "04_Trainer.ipynb",
"model": "04_Trainer.ipynb",
"n_epochs": "04_Trainer.ipynb",
"n_samples": "04_Trainer.ipynb",
"n_iter": "04_Trainer.ipynb",
"optimizer": "04_Trainer.ipynb",
"state": "04_Trainer.ipynb",
"safe_div": "05_Masks.ipynb",
"MaskBase": "05_Masks.ipynb",
"MaskBinary": "05_Masks.ipynb",
"MaskcIRM": "05_Masks.ipynb",
"Maskify": "05_Masks.ipynb",
"SiamesePiar": "06_Pipe.ipynb",
"Group": "06_Pipe.ipynb",
"NanFinder": "06_Pipe.ipynb",
"AudioPipe": "06_Pipe.ipynb",
"init_weights": "07_Model.ipynb",
"conv_block": "07_Model.ipynb",
"up_conv": "07_Model.ipynb",
"Recurrent_block": "07_Model.ipynb",
"RRCNN_block": "07_Model.ipynb",
"single_conv": "07_Model.ipynb",
"Attention_block": "07_Model.ipynb",
"U_Net": "07_Model.ipynb"}
modules = ["core.py",
"base.py",
"utils.py",
"plot.py",
"data.py",
"training.py",
"masks.py",
"pipe.py",
"models.py"]
doc_url = "https://holyfiddlex.github.io/speechsep/"
git_url = "https://github.com/holyfiddlex/speechsep/tree/master/"
def custom_doc_links(name): return None
|
__all__ = ['index', 'modules', 'custom_doc_links', 'git_url']
index = {'load_audio': '00_core.ipynb', 'AudioMono': '00_core.ipynb', 'duration': '00_core.ipynb', 'SpecImage': '00_core.ipynb', 'ArrayAudioBase': '00_core.ipynb', 'ArraySpecBase': '00_core.ipynb', 'ArrayMaskBase': '00_core.ipynb', 'TensorAudio': '00_core.ipynb', 'TensorSpec': '00_core.ipynb', 'TensorMask': '00_core.ipynb', 'Spectify': '00_core.ipynb', 'Decibelify': '00_core.ipynb', 'Mel_Binify_lib': '00_core.ipynb', 'MFCCify': '00_core.ipynb', 'create': '00_core.ipynb', 'encodes': '00_core.ipynb', 'audio2tensor': '00_core.ipynb', 'spec2tensor': '00_core.ipynb', 'Resample': '00_core.ipynb', 'Clip': '00_core.ipynb', 'Normalize': '00_core.ipynb', 'PhaseManager': '00_core.ipynb', 'ResampleSignal': '00b_core.base.ipynb', 'AudioBase': '00b_core.base.ipynb', 'SpecBase': '00b_core.base.ipynb', 'show_batch': '00b_core.base.ipynb', 'time_bins': '01_utils.ipynb', 'stft': '01_utils.ipynb', 'istft': '01_utils.ipynb', 'fill': '01_utils.ipynb', 'randomComplex': '01_utils.ipynb', 'complex2real': '01_utils.ipynb', 'real2complex': '01_utils.ipynb', 'complex_mult': '01_utils.ipynb', 'get_shape': '01_utils.ipynb', 'join_audios': '01_utils.ipynb', 'Mixer': '01_utils.ipynb', 'Unet_Trimmer': '01_utils.ipynb', 'setup_graph': '02_plot.ipynb', 'ColorMeshPlotter': '02_plot.ipynb', 'cmap_dict': '02_plot.ipynb', 'cmap': '02_plot.ipynb', 'pre_plot': '02_plot.ipynb', 'post_plot': '02_plot.ipynb', 'show_audio': '02_plot.ipynb', 'show_spec': '02_plot.ipynb', 'show_mask': '02_plot.ipynb', 'hear_audio': '02_plot.ipynb', 'get_audio_files': '03_data.ipynb', 'AudioBlock': '03_data.ipynb', 'audio_extensions': '03_data.ipynb', '#fn': '04_Trainer.ipynb', 'fn': '04_Trainer.ipynb', 'pipe': '04_Trainer.ipynb', 'Tensorify': '04_Trainer.ipynb', 'AudioDataset': '04_Trainer.ipynb', 'loss_func': '04_Trainer.ipynb', 'bs': '04_Trainer.ipynb', 'shuffle': '04_Trainer.ipynb', 'workers': '04_Trainer.ipynb', 'seed': '04_Trainer.ipynb', 'dataset': '04_Trainer.ipynb', 'n': '04_Trainer.ipynb', 'train_dl': '04_Trainer.ipynb', 'valid_dl': '04_Trainer.ipynb', 'test_dl': '04_Trainer.ipynb', 'dataiter': '04_Trainer.ipynb', 'data': '04_Trainer.ipynb', 'model': '04_Trainer.ipynb', 'n_epochs': '04_Trainer.ipynb', 'n_samples': '04_Trainer.ipynb', 'n_iter': '04_Trainer.ipynb', 'optimizer': '04_Trainer.ipynb', 'state': '04_Trainer.ipynb', 'safe_div': '05_Masks.ipynb', 'MaskBase': '05_Masks.ipynb', 'MaskBinary': '05_Masks.ipynb', 'MaskcIRM': '05_Masks.ipynb', 'Maskify': '05_Masks.ipynb', 'SiamesePiar': '06_Pipe.ipynb', 'Group': '06_Pipe.ipynb', 'NanFinder': '06_Pipe.ipynb', 'AudioPipe': '06_Pipe.ipynb', 'init_weights': '07_Model.ipynb', 'conv_block': '07_Model.ipynb', 'up_conv': '07_Model.ipynb', 'Recurrent_block': '07_Model.ipynb', 'RRCNN_block': '07_Model.ipynb', 'single_conv': '07_Model.ipynb', 'Attention_block': '07_Model.ipynb', 'U_Net': '07_Model.ipynb'}
modules = ['core.py', 'base.py', 'utils.py', 'plot.py', 'data.py', 'training.py', 'masks.py', 'pipe.py', 'models.py']
doc_url = 'https://holyfiddlex.github.io/speechsep/'
git_url = 'https://github.com/holyfiddlex/speechsep/tree/master/'
def custom_doc_links(name):
return None
|
class ObjAlreadyExist(Exception):
"""Is used when is created multiple objects of same RestApi class."""
def __init__(self, cls=None, message=None):
if not (cls and message):
message = "RestApi object was created twice."
elif not message:
message = "{} object was created twice.".format(cls.__name__)
super().__init__(message)
class AbortException(Exception):
pass
|
class Objalreadyexist(Exception):
"""Is used when is created multiple objects of same RestApi class."""
def __init__(self, cls=None, message=None):
if not (cls and message):
message = 'RestApi object was created twice.'
elif not message:
message = '{} object was created twice.'.format(cls.__name__)
super().__init__(message)
class Abortexception(Exception):
pass
|
"""
focal_point
===========
The *focal_point* extension allows you to drag a marker on image thumbnails
while editing, thus specifying the most relevant portion of the image. You can
then use these coordinates in templates for image cropping.
- To install it, add the extension module to your ``INSTALLED_APPS`` setting::
INSTALLED_APPS = (
# ... your apps here ...
'media_tree.contrib.media_extensions.images.focal_point'
)
- If you are not using ``django.contrib.staticfiles``, copy the contents of the
``static`` folder to the static root of your project. If you are using the
``staticfiles`` app, just run the usual command to collect static files::
$ ./manage.py collectstatic
.. Note::
This extension adds the fields ``focal_x`` and ``focal_y`` to
the ``FileNode`` model. You are going to have to add these fields to
the database table yourself by modifying the ``media_tree_filenode`` table
with a database client, **unless you installed it before running**
``syncdb``).
"""
|
"""
focal_point
===========
The *focal_point* extension allows you to drag a marker on image thumbnails
while editing, thus specifying the most relevant portion of the image. You can
then use these coordinates in templates for image cropping.
- To install it, add the extension module to your ``INSTALLED_APPS`` setting::
INSTALLED_APPS = (
# ... your apps here ...
'media_tree.contrib.media_extensions.images.focal_point'
)
- If you are not using ``django.contrib.staticfiles``, copy the contents of the
``static`` folder to the static root of your project. If you are using the
``staticfiles`` app, just run the usual command to collect static files::
$ ./manage.py collectstatic
.. Note::
This extension adds the fields ``focal_x`` and ``focal_y`` to
the ``FileNode`` model. You are going to have to add these fields to
the database table yourself by modifying the ``media_tree_filenode`` table
with a database client, **unless you installed it before running**
``syncdb``).
"""
|
version = "1.0"
version_maj = 1
version_min = 0
|
version = '1.0'
version_maj = 1
version_min = 0
|
r = range(5) # Counts from 0 to 4
for i in r:
print(i)
r = range(1,6) # Counts from 1 to 5
for i in r:
print(i)
# Step Value
r = range(1,15,3) # Counts from 1 to 15 with a gap of '3', thereby, counting till '13' only as 16 is not in the range
for i in r:
print(i)
|
r = range(5)
for i in r:
print(i)
r = range(1, 6)
for i in r:
print(i)
r = range(1, 15, 3)
for i in r:
print(i)
|
# --- Day 3: Toboggan Trajectory ---
line_list = [line.rstrip("\n") for line in open("input.txt")]
def slopecheck(hori, vert):
pos = 0
found = 0
i = 0
for line in line_list:
if i % vert == 0:
if line[pos % len(line)] == "#":
found += 1
pos += hori
i += 1
return found
a = slopecheck(1, 1)
b = slopecheck(3, 1)
c = slopecheck(5, 1)
d = slopecheck(7, 1)
e = slopecheck(1, 2)
"""
print(a)
print(b)
print(c)
print(d)
print(e)
print(a*b*c*d*e)
"""
|
line_list = [line.rstrip('\n') for line in open('input.txt')]
def slopecheck(hori, vert):
pos = 0
found = 0
i = 0
for line in line_list:
if i % vert == 0:
if line[pos % len(line)] == '#':
found += 1
pos += hori
i += 1
return found
a = slopecheck(1, 1)
b = slopecheck(3, 1)
c = slopecheck(5, 1)
d = slopecheck(7, 1)
e = slopecheck(1, 2)
'\nprint(a)\nprint(b)\nprint(c)\nprint(d)\nprint(e)\nprint(a*b*c*d*e)\n'
|
# kgen_extra.py
kgen_file_header = \
"""
! KGEN-generated Fortran source file
!
! Filename : %s
! Generated at: %s
! KGEN version: %s
"""
kgen_subprograms = \
"""FUNCTION kgen_get_newunit() RESULT(new_unit)
INTEGER, PARAMETER :: UNIT_MIN=100, UNIT_MAX=1000000
LOGICAL :: is_opened
INTEGER :: nunit, new_unit, counter
new_unit = -1
DO counter=UNIT_MIN, UNIT_MAX
inquire(UNIT=counter, OPENED=is_opened)
IF (.NOT. is_opened) THEN
new_unit = counter
EXIT
END IF
END DO
END FUNCTION
SUBROUTINE kgen_error_stop( msg )
IMPLICIT NONE
CHARACTER(LEN=*), INTENT(IN) :: msg
WRITE (*,*) msg
STOP 1
END SUBROUTINE """
kgen_print_counter = \
"""SUBROUTINE kgen_print_counter(counter)
INTEGER, INTENT(IN) :: counter
PRINT *, "KGEN writes input state variables at count = ", counter
END SUBROUTINE
SUBROUTINE kgen_print_mpirank_counter(rank, counter)
INTEGER, INTENT(IN) :: rank, counter
PRINT *, "KGEN writes input state variables at count = ", counter, " on mpirank = ", rank
END SUBROUTINE"""
kgen_verify_intrinsic_checkpart = \
"""check_status%%numTotal = check_status%%numTotal + 1
IF ( var %s ref_var ) THEN
check_status%%numIdentical = check_status%%numIdentical + 1
if(kgen_verboseLevel == 3) then
WRITE(*,*)
WRITE(*,*) trim(adjustl(varname)), " is IDENTICAL( ", var, " )."
endif
ELSE
if(kgen_verboseLevel > 0) then
WRITE(*,*)
WRITE(*,*) trim(adjustl(varname)), " is NOT IDENTICAL."
if(kgen_verboseLevel == 3) then
WRITE(*,*) "KERNEL: ", var
WRITE(*,*) "REF. : ", ref_var
end if
end if
check_status%%numOutTol = check_status%%numOutTol + 1
END IF"""
kgen_verify_numeric_array = \
"""check_status%%numTotal = check_status%%numTotal + 1
IF ( ALL( var %(eqtest)s ref_var ) ) THEN
check_status%%numIdentical = check_status%%numIdentical + 1
if(kgen_verboseLevel == 3) then
WRITE(*,*)
WRITE(*,*) "All elements of ", trim(adjustl(varname)), " are IDENTICAL."
!WRITE(*,*) "KERNEL: ", var
!WRITE(*,*) "REF. : ", ref_var
IF ( ALL( var == 0 ) ) THEN
if(kgen_verboseLevel == 3) then
WRITE(*,*) "All values are zero."
end if
END IF
end if
ELSE
allocate(temp(%(allocshape)s))
allocate(temp2(%(allocshape)s))
n = count(var/=ref_var)
where(abs(ref_var) > kgen_minvalue)
temp = ((var-ref_var)/ref_var)**2
temp2 = (var-ref_var)**2
elsewhere
temp = (var-ref_var)**2
temp2 = temp
endwhere
nrmsdiff = sqrt(sum(temp)/real(n))
rmsdiff = sqrt(sum(temp2)/real(n))
if (nrmsdiff > kgen_tolerance) then
check_status%%numOutTol = check_status%%numOutTol+1
else
check_status%%numInTol = check_status%%numInTol+1
endif
deallocate(temp,temp2)
END IF"""
kgen_verify_nonreal_array = \
"""check_status%%numTotal = check_status%%numTotal + 1
IF ( ALL( var %(eqtest)s ref_var ) ) THEN
check_status%%numIdentical = check_status%%numIdentical + 1
if(kgen_verboseLevel == 3) then
WRITE(*,*)
WRITE(*,*) "All elements of ", trim(adjustl(varname)), " are IDENTICAL."
!WRITE(*,*) "KERNEL: ", var
!WRITE(*,*) "REF. : ", ref_var
IF ( ALL( var == 0 ) ) THEN
WRITE(*,*) "All values are zero."
END IF
end if
ELSE
if(kgen_verboseLevel > 0) then
WRITE(*,*)
WRITE(*,*) trim(adjustl(varname)), " is NOT IDENTICAL."
WRITE(*,*) count( var /= ref_var), " of ", size( var ), " elements are different."
end if
check_status%%numOutTol = check_status%%numOutTol+1
END IF"""
kgen_utils_file_head = \
"""
INTEGER, PARAMETER :: kgen_dp = selected_real_kind(15, 307)
INTEGER, PARAMETER :: CHECK_IDENTICAL = 1
INTEGER, PARAMETER :: CHECK_IN_TOL = 2
INTEGER, PARAMETER :: CHECK_OUT_TOL = 3
REAL(kind=kgen_dp) :: kgen_tolerance = 1.0D-15, kgen_minvalue = 1.0D-15
INTEGER :: kgen_verboselevel = 1
interface kgen_tostr
module procedure kgen_tostr_args1
module procedure kgen_tostr_args2
module procedure kgen_tostr_args3
module procedure kgen_tostr_args4
module procedure kgen_tostr_args5
module procedure kgen_tostr_args6
end interface
! PERTURB: add following interface
interface kgen_perturb_real
module procedure kgen_perturb_real4_dim1
module procedure kgen_perturb_real4_dim2
module procedure kgen_perturb_real4_dim3
module procedure kgen_perturb_real8_dim1
module procedure kgen_perturb_real8_dim2
module procedure kgen_perturb_real8_dim3
end interface
type check_t
logical :: Passed
integer :: numOutTol
integer :: numTotal
integer :: numIdentical
integer :: numInTol
integer :: rank
end type check_t
public kgen_dp, check_t, kgen_init_verify, kgen_init_check, kgen_tolerance
public kgen_minvalue, kgen_verboselevel, kgen_print_check, kgen_perturb_real
public CHECK_NOT_CHECKED, CHECK_IDENTICAL, CHECK_IN_TOL, CHECK_OUT_TOL
public kgen_get_newunit, kgen_error_stop
"""
kgen_utils_array_sumcheck = \
"""
subroutine kgen_array_sumcheck(varname, sum1, sum2, finish)
character(*), intent(in) :: varname
real(kind=8), intent(in) :: sum1, sum2
real(kind=8), parameter :: max_rel_diff = 1.E-10
real(kind=8) :: diff, rel_diff
logical, intent(in), optional :: finish
logical checkresult
if ( sum1 == sum2 ) then
checkresult = .TRUE.
else
checkresult = .FALSE.
diff = ABS(sum2 - sum1)
if ( .NOT. (sum1 == 0._8) ) then
rel_diff = ABS(diff / sum1)
if ( rel_diff > max_rel_diff ) then
print *, ''
print *, 'SUM of array, "', varname, '", is different.'
print *, 'From file : ', sum1
print *, 'From array: ', sum2
print *, 'Difference: ', diff
print *, 'Normalized difference: ', rel_diff
if ( present(finish) .AND. finish ) then
stop
end if
end if
else
print *, ''
print *, 'SUM of array, "', varname, '", is different.'
print *, 'From file : ', sum1
print *, 'From array: ', sum2
print *, 'Difference: ', diff
if ( present(finish) .AND. finish ) then
stop
end if
end if
end if
end subroutine
"""
kgen_utils_file_tostr = \
"""
function kgen_tostr_args1(idx1) result(tostr)
integer, intent(in) :: idx1
character(len=64) :: str_idx1
character(len=64) :: tostr
write(str_idx1, *) idx1
tostr = trim(adjustl(str_idx1))
end function
function kgen_tostr_args2(idx1, idx2) result(tostr)
integer, intent(in) :: idx1, idx2
character(len=64) :: str_idx1, str_idx2
character(len=128) :: tostr
write(str_idx1, *) idx1
write(str_idx2, *) idx2
tostr = trim(adjustl(str_idx1)) // ", " // trim(adjustl(str_idx2))
end function
function kgen_tostr_args3(idx1, idx2, idx3) result(tostr)
integer, intent(in) :: idx1, idx2, idx3
character(len=64) :: str_idx1, str_idx2, str_idx3
character(len=192) :: tostr
write(str_idx1, *) idx1
write(str_idx2, *) idx2
write(str_idx3, *) idx3
tostr = trim(adjustl(str_idx1)) // ", " // trim(adjustl(str_idx2)) &
// ", " // trim(adjustl(str_idx3))
end function
function kgen_tostr_args4(idx1, idx2, idx3, idx4) result(tostr)
integer, intent(in) :: idx1, idx2, idx3, idx4
character(len=64) :: str_idx1, str_idx2, str_idx3, str_idx4
character(len=256) :: tostr
write(str_idx1, *) idx1
write(str_idx2, *) idx2
write(str_idx3, *) idx3
write(str_idx4, *) idx4
tostr = trim(adjustl(str_idx1)) // ", " // trim(adjustl(str_idx2)) &
// ", " // trim(adjustl(str_idx3)) // ", " // trim(adjustl(str_idx4))
end function
function kgen_tostr_args5(idx1, idx2, idx3, idx4, idx5) result(tostr)
integer, intent(in) :: idx1, idx2, idx3, idx4, idx5
character(len=64) :: str_idx1, str_idx2, str_idx3, str_idx4, str_idx5
character(len=320) :: tostr
write(str_idx1, *) idx1
write(str_idx2, *) idx2
write(str_idx3, *) idx3
write(str_idx4, *) idx4
write(str_idx5, *) idx5
tostr = trim(adjustl(str_idx1)) // ", " // trim(adjustl(str_idx2)) &
// ", " // trim(adjustl(str_idx3)) // ", " // trim(adjustl(str_idx4)) &
// ", " // trim(adjustl(str_idx5))
end function
function kgen_tostr_args6(idx1, idx2, idx3, idx4, idx5, idx6) result(tostr)
integer, intent(in) :: idx1, idx2, idx3, idx4, idx5, idx6
character(len=64) :: str_idx1, str_idx2, str_idx3, str_idx4, str_idx5, str_idx6
character(len=384) :: tostr
write(str_idx1, *) idx1
write(str_idx2, *) idx2
write(str_idx3, *) idx3
write(str_idx4, *) idx4
write(str_idx5, *) idx5
write(str_idx6, *) idx6
tostr = trim(adjustl(str_idx1)) // ", " // trim(adjustl(str_idx2)) &
// ", " // trim(adjustl(str_idx3)) // ", " // trim(adjustl(str_idx4)) &
// ", " // trim(adjustl(str_idx5)) // ", " // trim(adjustl(str_idx6))
end function
"""
kgen_utils_file_checksubr = \
"""
subroutine kgen_perturb_real4_dim1(var, pertlim)
real*4, intent(inout), dimension(:) :: var
real*4, intent(in) :: pertlim
integer, allocatable :: rndm_seed(:)
integer :: rndm_seed_sz
real*4 :: pertval
integer :: idx1
call random_seed(size=rndm_seed_sz)
allocate(rndm_seed(rndm_seed_sz))
rndm_seed = 121869
call random_seed(put=rndm_seed)
do idx1=1,size(var, dim=1)
call random_number(pertval)
pertval = 2.0_4*pertlim*(0.5_4 - pertval)
var(idx1) = var(idx1)*(1.0_4 + pertval)
end do
deallocate(rndm_seed)
end subroutine
subroutine kgen_perturb_real4_dim2(var, pertlim)
real*4, intent(inout), dimension(:,:) :: var
real*4, intent(in) :: pertlim
integer, allocatable :: rndm_seed(:)
integer :: rndm_seed_sz
real*4 :: pertval
integer :: idx1,idx2
call random_seed(size=rndm_seed_sz)
allocate(rndm_seed(rndm_seed_sz))
rndm_seed = 121869
call random_seed(put=rndm_seed)
do idx1=1,size(var, dim=1)
do idx2=1,size(var, dim=2)
call random_number(pertval)
pertval = 2.0_4*pertlim*(0.5_4 - pertval)
var(idx1,idx2) = var(idx1,idx2)*(1.0_4 + pertval)
end do
end do
deallocate(rndm_seed)
end subroutine
subroutine kgen_perturb_real4_dim3(var, pertlim)
real*4, intent(inout), dimension(:,:,:) :: var
real*4, intent(in) :: pertlim
integer, allocatable :: rndm_seed(:)
integer :: rndm_seed_sz
real*4 :: pertval
integer :: idx1,idx2,idx3
call random_seed(size=rndm_seed_sz)
allocate(rndm_seed(rndm_seed_sz))
rndm_seed = 121869
call random_seed(put=rndm_seed)
do idx1=1,size(var, dim=1)
do idx2=1,size(var, dim=2)
do idx3=1,size(var, dim=3)
call random_number(pertval)
pertval = 2.0_4*pertlim*(0.5_4 - pertval)
var(idx1,idx2,idx3) = var(idx1,idx2,idx3)*(1.0_4 + pertval)
end do
end do
end do
deallocate(rndm_seed)
end subroutine
subroutine kgen_perturb_real8_dim1(var, pertlim)
real*8, intent(inout), dimension(:) :: var
real*8, intent(in) :: pertlim
integer, allocatable :: rndm_seed(:)
integer :: rndm_seed_sz
real*8 :: pertval
integer :: idx1
call random_seed(size=rndm_seed_sz)
allocate(rndm_seed(rndm_seed_sz))
rndm_seed = 121869
call random_seed(put=rndm_seed)
do idx1=1,size(var, dim=1)
call random_number(pertval)
pertval = 2.0_8*pertlim*(0.5_8 - pertval)
var(idx1) = var(idx1)*(1.0_8 + pertval)
end do
deallocate(rndm_seed)
end subroutine
subroutine kgen_perturb_real8_dim2(var, pertlim)
real*8, intent(inout), dimension(:,:) :: var
real*8, intent(in) :: pertlim
integer, allocatable :: rndm_seed(:)
integer :: rndm_seed_sz
real*8 :: pertval
integer :: idx1,idx2
call random_seed(size=rndm_seed_sz)
allocate(rndm_seed(rndm_seed_sz))
rndm_seed = 121869
call random_seed(put=rndm_seed)
do idx1=1,size(var, dim=1)
do idx2=1,size(var, dim=2)
call random_number(pertval)
pertval = 2.0_8*pertlim*(0.5_8 - pertval)
var(idx1,idx2) = var(idx1,idx2)*(1.0_8 + pertval)
end do
end do
deallocate(rndm_seed)
end subroutine
subroutine kgen_perturb_real8_dim3(var, pertlim)
real*8, intent(inout), dimension(:,:,:) :: var
real*8, intent(in) :: pertlim
integer, allocatable :: rndm_seed(:)
integer :: rndm_seed_sz
real*8 :: pertval
integer :: idx1,idx2,idx3
call random_seed(size=rndm_seed_sz)
allocate(rndm_seed(rndm_seed_sz))
rndm_seed = 121869
call random_seed(put=rndm_seed)
do idx1=1,size(var, dim=1)
do idx2=1,size(var, dim=2)
do idx3=1,size(var, dim=3)
call random_number(pertval)
pertval = 2.0_8*pertlim*(0.5_8 - pertval)
var(idx1,idx2,idx3) = var(idx1,idx2,idx3)*(1.0_8 + pertval)
end do
end do
end do
deallocate(rndm_seed)
end subroutine
subroutine kgen_init_verify(verboseLevel, tolerance, minValue)
integer, intent(in), optional :: verboseLevel
real(kind=kgen_dp), intent(in), optional :: tolerance
real(kind=kgen_dp), intent(in), optional :: minValue
if(present(verboseLevel)) then
kgen_verboseLevel = verboseLevel
end if
if(present(tolerance)) then
kgen_tolerance = tolerance
end if
if(present(minvalue)) then
kgen_minvalue = minvalue
end if
end subroutine kgen_init_verify
subroutine kgen_init_check(check, rank)
type(check_t), intent(inout) :: check
integer, intent(in), optional :: rank
check%Passed = .TRUE.
check%numOutTol = 0
check%numInTol = 0
check%numTotal = 0
check%numIdentical = 0
if(present(rank)) then
check%rank = rank
else
check%rank = 0
endif
end subroutine kgen_init_check
subroutine kgen_print_check(kname, check)
character(len=*) :: kname
type(check_t), intent(in) :: check
write (*,*) TRIM(kname),': Tolerance for normalized RMS: ',kgen_tolerance
!write (*,*) TRIM(kname),':',check%numFatal,'fatal errors,',check%numWarning,'warnings detected, and',check%numIdentical,'identical out of',check%numTotal,'variables checked'
write (*,*) TRIM(kname),': Number of variables checked: ',check%numTotal
write (*,*) TRIM(kname),': Number of Identical results: ',check%numIdentical
write (*,*) TRIM(kname),': Number of variables within tolerance(not identical): ',check%numInTol
write (*,*) TRIM(kname),': Number of variables out of tolerance: ', check%numOutTol
if (check%numOutTol> 0) then
write(*,*) TRIM(kname),': Verification FAILED'
else
write(*,*) TRIM(kname),': Verification PASSED'
endif
end subroutine kgen_print_check
"""
kgen_get_newunit = \
"""
FUNCTION kgen_get_newunit() RESULT ( new_unit )
INTEGER, PARAMETER :: UNIT_MIN=100, UNIT_MAX=1000000
LOGICAL :: is_opened
INTEGER :: nunit, new_unit, counter
REAL :: r
CALL RANDOM_SEED
new_unit = -1
DO counter=1, UNIT_MAX
CALL RANDOM_NUMBER(r)
nunit = INT(r*UNIT_MAX+UNIT_MIN)
INQUIRE (UNIT=nunit, OPENED=is_opened)
IF (.NOT. is_opened) THEN
new_unit = nunit
EXIT
END IF
END DO
END FUNCTION kgen_get_newunit
"""
kgen_error_stop = \
"""
SUBROUTINE kgen_error_stop( msg )
IMPLICIT NONE
CHARACTER(LEN=*), INTENT(IN) :: msg
WRITE (*,*) msg
STOP 1
END SUBROUTINE
"""
kgen_rankthread = \
"""
SUBROUTINE kgen_rankthreadinvoke( str, rank, thread, invoke )
CHARACTER(*), INTENT(IN) :: str
INTEGER, INTENT(OUT) :: rank, thread, invoke
INTEGER :: pos1, pos2, i, e
pos1 = 1
rank = -1
thread = -1
invoke = -1
DO
pos2 = INDEX(str(pos1:), ".")
IF (pos2 == 0) THEN
READ(str(pos1:),*,IOSTAT=e) i
IF ( e == 0 ) THEN
rank = thread
thread = invoke
READ(str(pos1:), *) invoke
END IF
EXIT
END IF
READ(str(pos1:pos1+pos2-2),*,IOSTAT=e) i
IF ( e == 0 ) THEN
rank = thread
thread = invoke
READ(str(pos1:pos1+pos2-2), *) invoke
END IF
pos1 = pos2+pos1
END DO
END SUBROUTINE
"""
rdtsc = \
""" .file "rdtsc.s"
.text
.globl rdtsc_
.type rdtsc_, @function
rdtsc_:
rdtsc
movl %eax,%ecx
movl %edx,%eax
shlq $32,%rax
addq %rcx,%rax
ret
.size rdtsc_, .-rdtsc_"""
|
kgen_file_header = '\n! KGEN-generated Fortran source file\n!\n! Filename : %s\n! Generated at: %s\n! KGEN version: %s\n\n'
kgen_subprograms = 'FUNCTION kgen_get_newunit() RESULT(new_unit)\n INTEGER, PARAMETER :: UNIT_MIN=100, UNIT_MAX=1000000\n LOGICAL :: is_opened\n INTEGER :: nunit, new_unit, counter\n\n new_unit = -1\n DO counter=UNIT_MIN, UNIT_MAX\n inquire(UNIT=counter, OPENED=is_opened)\n IF (.NOT. is_opened) THEN\n new_unit = counter\n EXIT\n END IF\n END DO\nEND FUNCTION\n\nSUBROUTINE kgen_error_stop( msg )\n IMPLICIT NONE\n CHARACTER(LEN=*), INTENT(IN) :: msg\n\n WRITE (*,*) msg\n STOP 1\nEND SUBROUTINE '
kgen_print_counter = 'SUBROUTINE kgen_print_counter(counter)\n INTEGER, INTENT(IN) :: counter\n PRINT *, "KGEN writes input state variables at count = ", counter\nEND SUBROUTINE\n\nSUBROUTINE kgen_print_mpirank_counter(rank, counter)\n INTEGER, INTENT(IN) :: rank, counter\n PRINT *, "KGEN writes input state variables at count = ", counter, " on mpirank = ", rank\nEND SUBROUTINE'
kgen_verify_intrinsic_checkpart = 'check_status%%numTotal = check_status%%numTotal + 1\nIF ( var %s ref_var ) THEN\n check_status%%numIdentical = check_status%%numIdentical + 1\n if(kgen_verboseLevel == 3) then\n WRITE(*,*)\n WRITE(*,*) trim(adjustl(varname)), " is IDENTICAL( ", var, " )."\n endif\nELSE\n if(kgen_verboseLevel > 0) then\n WRITE(*,*)\n WRITE(*,*) trim(adjustl(varname)), " is NOT IDENTICAL."\n if(kgen_verboseLevel == 3) then\n WRITE(*,*) "KERNEL: ", var\n WRITE(*,*) "REF. : ", ref_var\n end if\n end if\n check_status%%numOutTol = check_status%%numOutTol + 1\nEND IF'
kgen_verify_numeric_array = 'check_status%%numTotal = check_status%%numTotal + 1\nIF ( ALL( var %(eqtest)s ref_var ) ) THEN\n\n check_status%%numIdentical = check_status%%numIdentical + 1 \n if(kgen_verboseLevel == 3) then\n WRITE(*,*)\n WRITE(*,*) "All elements of ", trim(adjustl(varname)), " are IDENTICAL."\n !WRITE(*,*) "KERNEL: ", var\n !WRITE(*,*) "REF. : ", ref_var\n IF ( ALL( var == 0 ) ) THEN\n if(kgen_verboseLevel == 3) then\n WRITE(*,*) "All values are zero."\n end if\n END IF\n end if\nELSE\n allocate(temp(%(allocshape)s))\n allocate(temp2(%(allocshape)s))\n\n n = count(var/=ref_var)\n where(abs(ref_var) > kgen_minvalue)\n temp = ((var-ref_var)/ref_var)**2\n temp2 = (var-ref_var)**2\n elsewhere\n temp = (var-ref_var)**2\n temp2 = temp\n endwhere\n nrmsdiff = sqrt(sum(temp)/real(n))\n rmsdiff = sqrt(sum(temp2)/real(n))\n\n if (nrmsdiff > kgen_tolerance) then\n check_status%%numOutTol = check_status%%numOutTol+1\n else\n check_status%%numInTol = check_status%%numInTol+1\n endif\n\n deallocate(temp,temp2)\nEND IF'
kgen_verify_nonreal_array = 'check_status%%numTotal = check_status%%numTotal + 1\nIF ( ALL( var %(eqtest)s ref_var ) ) THEN\n\n check_status%%numIdentical = check_status%%numIdentical + 1 \n if(kgen_verboseLevel == 3) then\n WRITE(*,*)\n WRITE(*,*) "All elements of ", trim(adjustl(varname)), " are IDENTICAL."\n !WRITE(*,*) "KERNEL: ", var\n !WRITE(*,*) "REF. : ", ref_var\n IF ( ALL( var == 0 ) ) THEN\n WRITE(*,*) "All values are zero."\n END IF\n end if\nELSE\n if(kgen_verboseLevel > 0) then\n WRITE(*,*)\n WRITE(*,*) trim(adjustl(varname)), " is NOT IDENTICAL."\n WRITE(*,*) count( var /= ref_var), " of ", size( var ), " elements are different."\n end if\n\n check_status%%numOutTol = check_status%%numOutTol+1\nEND IF'
kgen_utils_file_head = '\nINTEGER, PARAMETER :: kgen_dp = selected_real_kind(15, 307)\nINTEGER, PARAMETER :: CHECK_IDENTICAL = 1\nINTEGER, PARAMETER :: CHECK_IN_TOL = 2\nINTEGER, PARAMETER :: CHECK_OUT_TOL = 3\n\nREAL(kind=kgen_dp) :: kgen_tolerance = 1.0D-15, kgen_minvalue = 1.0D-15\nINTEGER :: kgen_verboselevel = 1\n\ninterface kgen_tostr\n module procedure kgen_tostr_args1\n module procedure kgen_tostr_args2\n module procedure kgen_tostr_args3\n module procedure kgen_tostr_args4\n module procedure kgen_tostr_args5\n module procedure kgen_tostr_args6\nend interface\n\n! PERTURB: add following interface\ninterface kgen_perturb_real\n module procedure kgen_perturb_real4_dim1\n module procedure kgen_perturb_real4_dim2\n module procedure kgen_perturb_real4_dim3\n module procedure kgen_perturb_real8_dim1\n module procedure kgen_perturb_real8_dim2\n module procedure kgen_perturb_real8_dim3\nend interface\n\ntype check_t\n logical :: Passed\n integer :: numOutTol\n integer :: numTotal\n integer :: numIdentical\n integer :: numInTol\n integer :: rank\nend type check_t\n\npublic kgen_dp, check_t, kgen_init_verify, kgen_init_check, kgen_tolerance\npublic kgen_minvalue, kgen_verboselevel, kgen_print_check, kgen_perturb_real\npublic CHECK_NOT_CHECKED, CHECK_IDENTICAL, CHECK_IN_TOL, CHECK_OUT_TOL\npublic kgen_get_newunit, kgen_error_stop\n'
kgen_utils_array_sumcheck = '\nsubroutine kgen_array_sumcheck(varname, sum1, sum2, finish)\n character(*), intent(in) :: varname\n real(kind=8), intent(in) :: sum1, sum2\n real(kind=8), parameter :: max_rel_diff = 1.E-10\n real(kind=8) :: diff, rel_diff\n logical, intent(in), optional :: finish\n logical checkresult\n\n if ( sum1 == sum2 ) then\n checkresult = .TRUE.\n else\n checkresult = .FALSE.\n\n diff = ABS(sum2 - sum1)\n\n if ( .NOT. (sum1 == 0._8) ) then\n\n rel_diff = ABS(diff / sum1)\n if ( rel_diff > max_rel_diff ) then\n\n print *, \'\'\n print *, \'SUM of array, "\', varname, \'", is different.\'\n print *, \'From file : \', sum1\n print *, \'From array: \', sum2\n print *, \'Difference: \', diff\n print *, \'Normalized difference: \', rel_diff\n\n if ( present(finish) .AND. finish ) then\n stop\n end if\n end if\n else\n print *, \'\'\n print *, \'SUM of array, "\', varname, \'", is different.\'\n print *, \'From file : \', sum1\n print *, \'From array: \', sum2\n print *, \'Difference: \', diff\n\n if ( present(finish) .AND. finish ) then\n stop\n end if\n end if\n end if\nend subroutine\n'
kgen_utils_file_tostr = '\nfunction kgen_tostr_args1(idx1) result(tostr)\n integer, intent(in) :: idx1\n character(len=64) :: str_idx1\n character(len=64) :: tostr\n\n write(str_idx1, *) idx1\n tostr = trim(adjustl(str_idx1))\nend function\n\nfunction kgen_tostr_args2(idx1, idx2) result(tostr)\n integer, intent(in) :: idx1, idx2\n character(len=64) :: str_idx1, str_idx2\n character(len=128) :: tostr\n\n write(str_idx1, *) idx1\n write(str_idx2, *) idx2\n tostr = trim(adjustl(str_idx1)) // ", " // trim(adjustl(str_idx2))\nend function\n\nfunction kgen_tostr_args3(idx1, idx2, idx3) result(tostr)\n integer, intent(in) :: idx1, idx2, idx3\n character(len=64) :: str_idx1, str_idx2, str_idx3\n character(len=192) :: tostr\n\n write(str_idx1, *) idx1\n write(str_idx2, *) idx2\n write(str_idx3, *) idx3\n tostr = trim(adjustl(str_idx1)) // ", " // trim(adjustl(str_idx2)) &\n // ", " // trim(adjustl(str_idx3))\nend function\n\nfunction kgen_tostr_args4(idx1, idx2, idx3, idx4) result(tostr)\n integer, intent(in) :: idx1, idx2, idx3, idx4\n character(len=64) :: str_idx1, str_idx2, str_idx3, str_idx4\n character(len=256) :: tostr\n\n write(str_idx1, *) idx1\n write(str_idx2, *) idx2\n write(str_idx3, *) idx3\n write(str_idx4, *) idx4\n tostr = trim(adjustl(str_idx1)) // ", " // trim(adjustl(str_idx2)) &\n // ", " // trim(adjustl(str_idx3)) // ", " // trim(adjustl(str_idx4))\nend function\n\nfunction kgen_tostr_args5(idx1, idx2, idx3, idx4, idx5) result(tostr)\n integer, intent(in) :: idx1, idx2, idx3, idx4, idx5\n character(len=64) :: str_idx1, str_idx2, str_idx3, str_idx4, str_idx5\n character(len=320) :: tostr\n\n write(str_idx1, *) idx1\n write(str_idx2, *) idx2\n write(str_idx3, *) idx3\n write(str_idx4, *) idx4\n write(str_idx5, *) idx5\n tostr = trim(adjustl(str_idx1)) // ", " // trim(adjustl(str_idx2)) &\n // ", " // trim(adjustl(str_idx3)) // ", " // trim(adjustl(str_idx4)) &\n // ", " // trim(adjustl(str_idx5))\nend function\n\nfunction kgen_tostr_args6(idx1, idx2, idx3, idx4, idx5, idx6) result(tostr)\n integer, intent(in) :: idx1, idx2, idx3, idx4, idx5, idx6\n character(len=64) :: str_idx1, str_idx2, str_idx3, str_idx4, str_idx5, str_idx6\n character(len=384) :: tostr\n\n write(str_idx1, *) idx1\n write(str_idx2, *) idx2\n write(str_idx3, *) idx3\n write(str_idx4, *) idx4\n write(str_idx5, *) idx5\n write(str_idx6, *) idx6\n tostr = trim(adjustl(str_idx1)) // ", " // trim(adjustl(str_idx2)) &\n // ", " // trim(adjustl(str_idx3)) // ", " // trim(adjustl(str_idx4)) &\n // ", " // trim(adjustl(str_idx5)) // ", " // trim(adjustl(str_idx6))\nend function\n'
kgen_utils_file_checksubr = "\nsubroutine kgen_perturb_real4_dim1(var, pertlim)\n real*4, intent(inout), dimension(:) :: var\n real*4, intent(in) :: pertlim\n integer, allocatable :: rndm_seed(:)\n integer :: rndm_seed_sz\n real*4 :: pertval\n integer :: idx1\n\n call random_seed(size=rndm_seed_sz)\n allocate(rndm_seed(rndm_seed_sz))\n rndm_seed = 121869\n call random_seed(put=rndm_seed)\n do idx1=1,size(var, dim=1)\n call random_number(pertval)\n pertval = 2.0_4*pertlim*(0.5_4 - pertval)\n var(idx1) = var(idx1)*(1.0_4 + pertval)\n end do\n deallocate(rndm_seed)\nend subroutine\n\nsubroutine kgen_perturb_real4_dim2(var, pertlim)\n real*4, intent(inout), dimension(:,:) :: var\n real*4, intent(in) :: pertlim\n integer, allocatable :: rndm_seed(:)\n integer :: rndm_seed_sz\n real*4 :: pertval\n integer :: idx1,idx2\n\n call random_seed(size=rndm_seed_sz)\n allocate(rndm_seed(rndm_seed_sz))\n rndm_seed = 121869\n call random_seed(put=rndm_seed)\n do idx1=1,size(var, dim=1)\n do idx2=1,size(var, dim=2)\n call random_number(pertval)\n pertval = 2.0_4*pertlim*(0.5_4 - pertval)\n var(idx1,idx2) = var(idx1,idx2)*(1.0_4 + pertval)\n end do\n end do\n deallocate(rndm_seed)\nend subroutine\n\nsubroutine kgen_perturb_real4_dim3(var, pertlim)\n real*4, intent(inout), dimension(:,:,:) :: var\n real*4, intent(in) :: pertlim\n integer, allocatable :: rndm_seed(:)\n integer :: rndm_seed_sz\n real*4 :: pertval\n integer :: idx1,idx2,idx3\n\n call random_seed(size=rndm_seed_sz)\n allocate(rndm_seed(rndm_seed_sz))\n rndm_seed = 121869\n call random_seed(put=rndm_seed)\n do idx1=1,size(var, dim=1)\n do idx2=1,size(var, dim=2)\n do idx3=1,size(var, dim=3)\n call random_number(pertval)\n pertval = 2.0_4*pertlim*(0.5_4 - pertval)\n var(idx1,idx2,idx3) = var(idx1,idx2,idx3)*(1.0_4 + pertval)\n end do\n end do\n end do\n deallocate(rndm_seed)\nend subroutine\n\nsubroutine kgen_perturb_real8_dim1(var, pertlim)\n real*8, intent(inout), dimension(:) :: var\n real*8, intent(in) :: pertlim\n integer, allocatable :: rndm_seed(:)\n integer :: rndm_seed_sz\n real*8 :: pertval\n integer :: idx1\n\n call random_seed(size=rndm_seed_sz)\n allocate(rndm_seed(rndm_seed_sz))\n rndm_seed = 121869\n call random_seed(put=rndm_seed)\n do idx1=1,size(var, dim=1)\n call random_number(pertval)\n pertval = 2.0_8*pertlim*(0.5_8 - pertval)\n var(idx1) = var(idx1)*(1.0_8 + pertval)\n end do\n deallocate(rndm_seed)\nend subroutine\n\nsubroutine kgen_perturb_real8_dim2(var, pertlim)\n real*8, intent(inout), dimension(:,:) :: var\n real*8, intent(in) :: pertlim\n integer, allocatable :: rndm_seed(:)\n integer :: rndm_seed_sz\n real*8 :: pertval\n integer :: idx1,idx2\n\n call random_seed(size=rndm_seed_sz)\n allocate(rndm_seed(rndm_seed_sz))\n rndm_seed = 121869\n call random_seed(put=rndm_seed)\n do idx1=1,size(var, dim=1)\n do idx2=1,size(var, dim=2)\n call random_number(pertval)\n pertval = 2.0_8*pertlim*(0.5_8 - pertval)\n var(idx1,idx2) = var(idx1,idx2)*(1.0_8 + pertval)\n end do\n end do\n deallocate(rndm_seed)\nend subroutine\n\nsubroutine kgen_perturb_real8_dim3(var, pertlim)\n real*8, intent(inout), dimension(:,:,:) :: var\n real*8, intent(in) :: pertlim\n integer, allocatable :: rndm_seed(:)\n integer :: rndm_seed_sz\n real*8 :: pertval\n integer :: idx1,idx2,idx3\n\n call random_seed(size=rndm_seed_sz)\n allocate(rndm_seed(rndm_seed_sz))\n rndm_seed = 121869\n call random_seed(put=rndm_seed)\n do idx1=1,size(var, dim=1)\n do idx2=1,size(var, dim=2)\n do idx3=1,size(var, dim=3)\n call random_number(pertval)\n pertval = 2.0_8*pertlim*(0.5_8 - pertval)\n var(idx1,idx2,idx3) = var(idx1,idx2,idx3)*(1.0_8 + pertval)\n end do\n end do\n end do\n deallocate(rndm_seed)\nend subroutine\n\nsubroutine kgen_init_verify(verboseLevel, tolerance, minValue)\n\n integer, intent(in), optional :: verboseLevel\n real(kind=kgen_dp), intent(in), optional :: tolerance\n real(kind=kgen_dp), intent(in), optional :: minValue\n\n if(present(verboseLevel)) then\n kgen_verboseLevel = verboseLevel\n end if\n\n if(present(tolerance)) then\n kgen_tolerance = tolerance\n end if\n\n if(present(minvalue)) then\n kgen_minvalue = minvalue\n end if\n\nend subroutine kgen_init_verify\n\nsubroutine kgen_init_check(check, rank)\n\n type(check_t), intent(inout) :: check\n integer, intent(in), optional :: rank \n\n check%Passed = .TRUE.\n check%numOutTol = 0\n check%numInTol = 0\n check%numTotal = 0\n check%numIdentical = 0\n\n if(present(rank)) then \n check%rank = rank \n else \n check%rank = 0 \n endif \n\nend subroutine kgen_init_check\n\nsubroutine kgen_print_check(kname, check)\n character(len=*) :: kname\n type(check_t), intent(in) :: check\n\n write (*,*) TRIM(kname),': Tolerance for normalized RMS: ',kgen_tolerance\n !write (*,*) TRIM(kname),':',check%numFatal,'fatal errors,',check%numWarning,'warnings detected, and',check%numIdentical,'identical out of',check%numTotal,'variables checked'\n write (*,*) TRIM(kname),': Number of variables checked: ',check%numTotal\n write (*,*) TRIM(kname),': Number of Identical results: ',check%numIdentical\n write (*,*) TRIM(kname),': Number of variables within tolerance(not identical): ',check%numInTol\n write (*,*) TRIM(kname),': Number of variables out of tolerance: ', check%numOutTol\n\n if (check%numOutTol> 0) then\n write(*,*) TRIM(kname),': Verification FAILED'\n else\n write(*,*) TRIM(kname),': Verification PASSED'\n endif\nend subroutine kgen_print_check\n"
kgen_get_newunit = '\nFUNCTION kgen_get_newunit() RESULT ( new_unit )\n INTEGER, PARAMETER :: UNIT_MIN=100, UNIT_MAX=1000000\n LOGICAL :: is_opened\n INTEGER :: nunit, new_unit, counter\n REAL :: r\n\n CALL RANDOM_SEED\n new_unit = -1\n DO counter=1, UNIT_MAX\n CALL RANDOM_NUMBER(r)\n nunit = INT(r*UNIT_MAX+UNIT_MIN)\n INQUIRE (UNIT=nunit, OPENED=is_opened)\n IF (.NOT. is_opened) THEN\n new_unit = nunit\n EXIT\n END IF\n END DO\nEND FUNCTION kgen_get_newunit\n'
kgen_error_stop = '\nSUBROUTINE kgen_error_stop( msg )\n IMPLICIT NONE\n CHARACTER(LEN=*), INTENT(IN) :: msg\n\n WRITE (*,*) msg\n STOP 1\nEND SUBROUTINE\n'
kgen_rankthread = '\nSUBROUTINE kgen_rankthreadinvoke( str, rank, thread, invoke )\n CHARACTER(*), INTENT(IN) :: str\n INTEGER, INTENT(OUT) :: rank, thread, invoke\n INTEGER :: pos1, pos2, i, e\n\n pos1 = 1\n\n rank = -1\n thread = -1\n invoke = -1\n\n DO\n pos2 = INDEX(str(pos1:), ".")\n IF (pos2 == 0) THEN\n READ(str(pos1:),*,IOSTAT=e) i\n IF ( e == 0 ) THEN\n rank = thread\n thread = invoke\n READ(str(pos1:), *) invoke\n END IF\n EXIT\n END IF\n\n READ(str(pos1:pos1+pos2-2),*,IOSTAT=e) i\n IF ( e == 0 ) THEN\n rank = thread\n thread = invoke\n READ(str(pos1:pos1+pos2-2), *) invoke\n END IF \n\n pos1 = pos2+pos1\n END DO\nEND SUBROUTINE\n'
rdtsc = ' .file "rdtsc.s"\n .text\n.globl rdtsc_\n .type rdtsc_, @function\nrdtsc_:\n rdtsc\n movl %eax,%ecx\n movl %edx,%eax\n shlq $32,%rax\n addq %rcx,%rax\n ret\n .size rdtsc_, .-rdtsc_'
|
def sum(*n):
total=0
for n1 in n:
total=total+n1
print("the sum=",total)
sum()
sum(10)
sum(10,20)
sum(10,20,30,40)
|
def sum(*n):
total = 0
for n1 in n:
total = total + n1
print('the sum=', total)
sum()
sum(10)
sum(10, 20)
sum(10, 20, 30, 40)
|
"""
Django configurations for the project.
These configurations include:
* settings: Project-wide settings, which may be customized per environment.
* urls: Routes URLs to views (i.e., Python functions).
* wsgi: The default Web Server Gateway Interface.
"""
|
"""
Django configurations for the project.
These configurations include:
* settings: Project-wide settings, which may be customized per environment.
* urls: Routes URLs to views (i.e., Python functions).
* wsgi: The default Web Server Gateway Interface.
"""
|
name = 'late_binding'
version = "1.0"
@late()
def tools():
return ["util"]
def commands():
env.PATH.append("{root}/bin")
|
name = 'late_binding'
version = '1.0'
@late()
def tools():
return ['util']
def commands():
env.PATH.append('{root}/bin')
|
# functions
# i.e., len() where the () designate a function
# functions that are related to str
course = "python programming"
# here we have a kind of function called a "method" which
# comes after a str and designated by a "."
# in Py all everything is an object
# and objects have "functions"
# and "functions" have "methods"
print(course.upper())
print(course)
print(course.capitalize())
print(course.istitle())
print(course.title())
# you can make a new var/str based off of a method applied to another str/var
upper_course = course.upper()
print(upper_course)
lower_course = upper_course.lower()
print(lower_course)
# striping white space
unstriped_course = " The unstriped Python Course"
print(unstriped_course)
striped_course = unstriped_course.strip()
print(striped_course)
# there's also .lstrip and .rstrip for removing text either from l or r
# how to find the index of a character(s)
print(course.find("ra"))
# in this case, "ra" is at the 11 index within the str
# replacing
print(course.replace("python", "Our new Python"),
(course.replace("programming", "Programming Course")))
# in and not in
print(course)
print("py" in course)
# this is true because "py" is in "python"
print("meat balls" not in course)
# this is also true because "meatballs" are not in the str 'course'
|
course = 'python programming'
print(course.upper())
print(course)
print(course.capitalize())
print(course.istitle())
print(course.title())
upper_course = course.upper()
print(upper_course)
lower_course = upper_course.lower()
print(lower_course)
unstriped_course = ' The unstriped Python Course'
print(unstriped_course)
striped_course = unstriped_course.strip()
print(striped_course)
print(course.find('ra'))
print(course.replace('python', 'Our new Python'), course.replace('programming', 'Programming Course'))
print(course)
print('py' in course)
print('meat balls' not in course)
|
#!/usr/bin/python
"""
Fizz Buzz in python 3
P Campbell
February 2018
"""
for i in range(1,101):
if i % 3 == 0 or i % 5 == 0 :
if i % 3 == 0:
msg = "Fizz"
if i % 5 == 0:
msg += "Buzz"
print (msg)
msg = ""
else:
print (i)
|
"""
Fizz Buzz in python 3
P Campbell
February 2018
"""
for i in range(1, 101):
if i % 3 == 0 or i % 5 == 0:
if i % 3 == 0:
msg = 'Fizz'
if i % 5 == 0:
msg += 'Buzz'
print(msg)
msg = ''
else:
print(i)
|
class DirectoryObjectSecurity(ObjectSecurity):
""" Provides the ability to control access to directory objects without direct manipulation of Access Control Lists (ACLs). """
def AccessRuleFactory(self,identityReference,accessMask,isInherited,inheritanceFlags,propagationFlags,type,objectType=None,inheritedObjectType=None):
"""
AccessRuleFactory(self: DirectoryObjectSecurity,identityReference: IdentityReference,accessMask: int,isInherited: bool,inheritanceFlags: InheritanceFlags,propagationFlags: PropagationFlags,type: AccessControlType,objectType: Guid,inheritedObjectType: Guid) -> AccessRule
Initializes a new instance of the System.Security.AccessControl.AccessRule
class with the specified values.
identityReference: The identity to which the access rule applies. It must be an object that can
be cast as a System.Security.Principal.SecurityIdentifier.
accessMask: The access mask of this rule. The access mask is a 32-bit collection of
anonymous bits,the meaning of which is defined by the individual integrators.
isInherited: true if this rule is inherited from a parent container.
inheritanceFlags: Specifies the inheritance properties of the access rule.
propagationFlags: Specifies whether inherited access rules are automatically propagated. The
propagation flags are ignored if inheritanceFlags is set to
System.Security.AccessControl.InheritanceFlags.None.
type: Specifies the valid access control type.
objectType: The identity of the class of objects to which the new access rule applies.
inheritedObjectType: The identity of the class of child objects which can inherit the new access
rule.
Returns: The System.Security.AccessControl.AccessRule object that this method creates.
"""
pass
def AddAccessRule(self,*args):
"""
AddAccessRule(self: DirectoryObjectSecurity,rule: ObjectAccessRule)
Adds the specified access rule to the Discretionary Access Control List (DACL)
associated with this System.Security.AccessControl.DirectoryObjectSecurity
object.
rule: The access rule to add.
"""
pass
def AddAuditRule(self,*args):
"""
AddAuditRule(self: DirectoryObjectSecurity,rule: ObjectAuditRule)
Adds the specified audit rule to the System Access Control List (SACL)
associated with this System.Security.AccessControl.DirectoryObjectSecurity
object.
rule: The audit rule to add.
"""
pass
def AuditRuleFactory(self,identityReference,accessMask,isInherited,inheritanceFlags,propagationFlags,flags,objectType=None,inheritedObjectType=None):
"""
AuditRuleFactory(self: DirectoryObjectSecurity,identityReference: IdentityReference,accessMask: int,isInherited: bool,inheritanceFlags: InheritanceFlags,propagationFlags: PropagationFlags,flags: AuditFlags,objectType: Guid,inheritedObjectType: Guid) -> AuditRule
Initializes a new instance of the System.Security.AccessControl.AuditRule class
with the specified values.
identityReference: The identity to which the audit rule applies. It must be an object that can be
cast as a System.Security.Principal.SecurityIdentifier.
accessMask: The access mask of this rule. The access mask is a 32-bit collection of
anonymous bits,the meaning of which is defined by the individual integrators.
isInherited: true if this rule is inherited from a parent container.
inheritanceFlags: Specifies the inheritance properties of the audit rule.
propagationFlags: Specifies whether inherited audit rules are automatically propagated. The
propagation flags are ignored if inheritanceFlags is set to
System.Security.AccessControl.InheritanceFlags.None.
flags: Specifies the conditions for which the rule is audited.
objectType: The identity of the class of objects to which the new audit rule applies.
inheritedObjectType: The identity of the class of child objects which can inherit the new audit rule.
Returns: The System.Security.AccessControl.AuditRule object that this method creates.
"""
pass
def GetAccessRules(self,includeExplicit,includeInherited,targetType):
"""
GetAccessRules(self: DirectoryObjectSecurity,includeExplicit: bool,includeInherited: bool,targetType: Type) -> AuthorizationRuleCollection
Gets a collection of the access rules associated with the specified security
identifier.
includeExplicit: true to include access rules explicitly set for the object.
includeInherited: true to include inherited access rules.
targetType: The security identifier for which to retrieve access rules. This must be an
object that can be cast as a System.Security.Principal.SecurityIdentifier
object.
Returns: The collection of access rules associated with the specified
System.Security.Principal.SecurityIdentifier object.
"""
pass
def GetAuditRules(self,includeExplicit,includeInherited,targetType):
"""
GetAuditRules(self: DirectoryObjectSecurity,includeExplicit: bool,includeInherited: bool,targetType: Type) -> AuthorizationRuleCollection
Gets a collection of the audit rules associated with the specified security
identifier.
includeExplicit: true to include audit rules explicitly set for the object.
includeInherited: true to include inherited audit rules.
targetType: The security identifier for which to retrieve audit rules. This must be an
object that can be cast as a System.Security.Principal.SecurityIdentifier
object.
Returns: The collection of audit rules associated with the specified
System.Security.Principal.SecurityIdentifier object.
"""
pass
def RemoveAccessRule(self,*args):
"""
RemoveAccessRule(self: DirectoryObjectSecurity,rule: ObjectAccessRule) -> bool
Removes access rules that contain the same security identifier and access mask
as the specified access rule from the Discretionary Access Control List (DACL)
associated with this System.Security.AccessControl.DirectoryObjectSecurity
object.
rule: The access rule to remove.
Returns: true if the access rule was successfully removed; otherwise,false.
"""
pass
def RemoveAccessRuleAll(self,*args):
"""
RemoveAccessRuleAll(self: DirectoryObjectSecurity,rule: ObjectAccessRule)
Removes all access rules that have the same security identifier as the
specified access rule from the Discretionary Access Control List (DACL)
associated with this System.Security.AccessControl.DirectoryObjectSecurity
object.
rule: The access rule to remove.
"""
pass
def RemoveAccessRuleSpecific(self,*args):
"""
RemoveAccessRuleSpecific(self: DirectoryObjectSecurity,rule: ObjectAccessRule)
Removes all access rules that exactly match the specified access rule from the
Discretionary Access Control List (DACL) associated with this
System.Security.AccessControl.DirectoryObjectSecurity object.
rule: The access rule to remove.
"""
pass
def RemoveAuditRule(self,*args):
"""
RemoveAuditRule(self: DirectoryObjectSecurity,rule: ObjectAuditRule) -> bool
Removes audit rules that contain the same security identifier and access mask
as the specified audit rule from the System Access Control List (SACL)
associated with this System.Security.AccessControl.CommonObjectSecurity object.
rule: The audit rule to remove.
Returns: true if the audit rule was successfully removed; otherwise,false.
"""
pass
def RemoveAuditRuleAll(self,*args):
"""
RemoveAuditRuleAll(self: DirectoryObjectSecurity,rule: ObjectAuditRule)
Removes all audit rules that have the same security identifier as the specified
audit rule from the System Access Control List (SACL) associated with this
System.Security.AccessControl.DirectoryObjectSecurity object.
rule: The audit rule to remove.
"""
pass
def RemoveAuditRuleSpecific(self,*args):
"""
RemoveAuditRuleSpecific(self: DirectoryObjectSecurity,rule: ObjectAuditRule)
Removes all audit rules that exactly match the specified audit rule from the
System Access Control List (SACL) associated with this
System.Security.AccessControl.DirectoryObjectSecurity object.
rule: The audit rule to remove.
"""
pass
def ResetAccessRule(self,*args):
"""
ResetAccessRule(self: DirectoryObjectSecurity,rule: ObjectAccessRule)
Removes all access rules in the Discretionary Access Control List (DACL)
associated with this System.Security.AccessControl.DirectoryObjectSecurity
object and then adds the specified access rule.
rule: The access rule to reset.
"""
pass
def SetAccessRule(self,*args):
"""
SetAccessRule(self: DirectoryObjectSecurity,rule: ObjectAccessRule)
Removes all access rules that contain the same security identifier and
qualifier as the specified access rule in the Discretionary Access Control List
(DACL) associated with this
System.Security.AccessControl.DirectoryObjectSecurity object and then adds the
specified access rule.
rule: The access rule to set.
"""
pass
def SetAuditRule(self,*args):
"""
SetAuditRule(self: DirectoryObjectSecurity,rule: ObjectAuditRule)
Removes all audit rules that contain the same security identifier and qualifier
as the specified audit rule in the System Access Control List (SACL) associated
with this System.Security.AccessControl.DirectoryObjectSecurity object and then
adds the specified audit rule.
rule: The audit rule to set.
"""
pass
@staticmethod
def __new__(self,*args): #cannot find CLR constructor
"""
__new__(cls: type)
__new__(cls: type,securityDescriptor: CommonSecurityDescriptor)
"""
pass
AccessRulesModified=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets a Boolean value that specifies whether the access rules associated with this System.Security.AccessControl.ObjectSecurity object have been modified.
"""
AuditRulesModified=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets a Boolean value that specifies whether the audit rules associated with this System.Security.AccessControl.ObjectSecurity object have been modified.
"""
GroupModified=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets a Boolean value that specifies whether the group associated with the securable object has been modified.
"""
IsContainer=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a Boolean value that specifies whether this System.Security.AccessControl.ObjectSecurity object is a container object.
"""
IsDS=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a Boolean value that specifies whether this System.Security.AccessControl.ObjectSecurity object is a directory object.
"""
OwnerModified=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets a Boolean value that specifies whether the owner of the securable object has been modified.
"""
|
class Directoryobjectsecurity(ObjectSecurity):
""" Provides the ability to control access to directory objects without direct manipulation of Access Control Lists (ACLs). """
def access_rule_factory(self, identityReference, accessMask, isInherited, inheritanceFlags, propagationFlags, type, objectType=None, inheritedObjectType=None):
"""
AccessRuleFactory(self: DirectoryObjectSecurity,identityReference: IdentityReference,accessMask: int,isInherited: bool,inheritanceFlags: InheritanceFlags,propagationFlags: PropagationFlags,type: AccessControlType,objectType: Guid,inheritedObjectType: Guid) -> AccessRule
Initializes a new instance of the System.Security.AccessControl.AccessRule
class with the specified values.
identityReference: The identity to which the access rule applies. It must be an object that can
be cast as a System.Security.Principal.SecurityIdentifier.
accessMask: The access mask of this rule. The access mask is a 32-bit collection of
anonymous bits,the meaning of which is defined by the individual integrators.
isInherited: true if this rule is inherited from a parent container.
inheritanceFlags: Specifies the inheritance properties of the access rule.
propagationFlags: Specifies whether inherited access rules are automatically propagated. The
propagation flags are ignored if inheritanceFlags is set to
System.Security.AccessControl.InheritanceFlags.None.
type: Specifies the valid access control type.
objectType: The identity of the class of objects to which the new access rule applies.
inheritedObjectType: The identity of the class of child objects which can inherit the new access
rule.
Returns: The System.Security.AccessControl.AccessRule object that this method creates.
"""
pass
def add_access_rule(self, *args):
"""
AddAccessRule(self: DirectoryObjectSecurity,rule: ObjectAccessRule)
Adds the specified access rule to the Discretionary Access Control List (DACL)
associated with this System.Security.AccessControl.DirectoryObjectSecurity
object.
rule: The access rule to add.
"""
pass
def add_audit_rule(self, *args):
"""
AddAuditRule(self: DirectoryObjectSecurity,rule: ObjectAuditRule)
Adds the specified audit rule to the System Access Control List (SACL)
associated with this System.Security.AccessControl.DirectoryObjectSecurity
object.
rule: The audit rule to add.
"""
pass
def audit_rule_factory(self, identityReference, accessMask, isInherited, inheritanceFlags, propagationFlags, flags, objectType=None, inheritedObjectType=None):
"""
AuditRuleFactory(self: DirectoryObjectSecurity,identityReference: IdentityReference,accessMask: int,isInherited: bool,inheritanceFlags: InheritanceFlags,propagationFlags: PropagationFlags,flags: AuditFlags,objectType: Guid,inheritedObjectType: Guid) -> AuditRule
Initializes a new instance of the System.Security.AccessControl.AuditRule class
with the specified values.
identityReference: The identity to which the audit rule applies. It must be an object that can be
cast as a System.Security.Principal.SecurityIdentifier.
accessMask: The access mask of this rule. The access mask is a 32-bit collection of
anonymous bits,the meaning of which is defined by the individual integrators.
isInherited: true if this rule is inherited from a parent container.
inheritanceFlags: Specifies the inheritance properties of the audit rule.
propagationFlags: Specifies whether inherited audit rules are automatically propagated. The
propagation flags are ignored if inheritanceFlags is set to
System.Security.AccessControl.InheritanceFlags.None.
flags: Specifies the conditions for which the rule is audited.
objectType: The identity of the class of objects to which the new audit rule applies.
inheritedObjectType: The identity of the class of child objects which can inherit the new audit rule.
Returns: The System.Security.AccessControl.AuditRule object that this method creates.
"""
pass
def get_access_rules(self, includeExplicit, includeInherited, targetType):
"""
GetAccessRules(self: DirectoryObjectSecurity,includeExplicit: bool,includeInherited: bool,targetType: Type) -> AuthorizationRuleCollection
Gets a collection of the access rules associated with the specified security
identifier.
includeExplicit: true to include access rules explicitly set for the object.
includeInherited: true to include inherited access rules.
targetType: The security identifier for which to retrieve access rules. This must be an
object that can be cast as a System.Security.Principal.SecurityIdentifier
object.
Returns: The collection of access rules associated with the specified
System.Security.Principal.SecurityIdentifier object.
"""
pass
def get_audit_rules(self, includeExplicit, includeInherited, targetType):
"""
GetAuditRules(self: DirectoryObjectSecurity,includeExplicit: bool,includeInherited: bool,targetType: Type) -> AuthorizationRuleCollection
Gets a collection of the audit rules associated with the specified security
identifier.
includeExplicit: true to include audit rules explicitly set for the object.
includeInherited: true to include inherited audit rules.
targetType: The security identifier for which to retrieve audit rules. This must be an
object that can be cast as a System.Security.Principal.SecurityIdentifier
object.
Returns: The collection of audit rules associated with the specified
System.Security.Principal.SecurityIdentifier object.
"""
pass
def remove_access_rule(self, *args):
"""
RemoveAccessRule(self: DirectoryObjectSecurity,rule: ObjectAccessRule) -> bool
Removes access rules that contain the same security identifier and access mask
as the specified access rule from the Discretionary Access Control List (DACL)
associated with this System.Security.AccessControl.DirectoryObjectSecurity
object.
rule: The access rule to remove.
Returns: true if the access rule was successfully removed; otherwise,false.
"""
pass
def remove_access_rule_all(self, *args):
"""
RemoveAccessRuleAll(self: DirectoryObjectSecurity,rule: ObjectAccessRule)
Removes all access rules that have the same security identifier as the
specified access rule from the Discretionary Access Control List (DACL)
associated with this System.Security.AccessControl.DirectoryObjectSecurity
object.
rule: The access rule to remove.
"""
pass
def remove_access_rule_specific(self, *args):
"""
RemoveAccessRuleSpecific(self: DirectoryObjectSecurity,rule: ObjectAccessRule)
Removes all access rules that exactly match the specified access rule from the
Discretionary Access Control List (DACL) associated with this
System.Security.AccessControl.DirectoryObjectSecurity object.
rule: The access rule to remove.
"""
pass
def remove_audit_rule(self, *args):
"""
RemoveAuditRule(self: DirectoryObjectSecurity,rule: ObjectAuditRule) -> bool
Removes audit rules that contain the same security identifier and access mask
as the specified audit rule from the System Access Control List (SACL)
associated with this System.Security.AccessControl.CommonObjectSecurity object.
rule: The audit rule to remove.
Returns: true if the audit rule was successfully removed; otherwise,false.
"""
pass
def remove_audit_rule_all(self, *args):
"""
RemoveAuditRuleAll(self: DirectoryObjectSecurity,rule: ObjectAuditRule)
Removes all audit rules that have the same security identifier as the specified
audit rule from the System Access Control List (SACL) associated with this
System.Security.AccessControl.DirectoryObjectSecurity object.
rule: The audit rule to remove.
"""
pass
def remove_audit_rule_specific(self, *args):
"""
RemoveAuditRuleSpecific(self: DirectoryObjectSecurity,rule: ObjectAuditRule)
Removes all audit rules that exactly match the specified audit rule from the
System Access Control List (SACL) associated with this
System.Security.AccessControl.DirectoryObjectSecurity object.
rule: The audit rule to remove.
"""
pass
def reset_access_rule(self, *args):
"""
ResetAccessRule(self: DirectoryObjectSecurity,rule: ObjectAccessRule)
Removes all access rules in the Discretionary Access Control List (DACL)
associated with this System.Security.AccessControl.DirectoryObjectSecurity
object and then adds the specified access rule.
rule: The access rule to reset.
"""
pass
def set_access_rule(self, *args):
"""
SetAccessRule(self: DirectoryObjectSecurity,rule: ObjectAccessRule)
Removes all access rules that contain the same security identifier and
qualifier as the specified access rule in the Discretionary Access Control List
(DACL) associated with this
System.Security.AccessControl.DirectoryObjectSecurity object and then adds the
specified access rule.
rule: The access rule to set.
"""
pass
def set_audit_rule(self, *args):
"""
SetAuditRule(self: DirectoryObjectSecurity,rule: ObjectAuditRule)
Removes all audit rules that contain the same security identifier and qualifier
as the specified audit rule in the System Access Control List (SACL) associated
with this System.Security.AccessControl.DirectoryObjectSecurity object and then
adds the specified audit rule.
rule: The audit rule to set.
"""
pass
@staticmethod
def __new__(self, *args):
"""
__new__(cls: type)
__new__(cls: type,securityDescriptor: CommonSecurityDescriptor)
"""
pass
access_rules_modified = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets or sets a Boolean value that specifies whether the access rules associated with this System.Security.AccessControl.ObjectSecurity object have been modified.\n\n\n\n'
audit_rules_modified = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets or sets a Boolean value that specifies whether the audit rules associated with this System.Security.AccessControl.ObjectSecurity object have been modified.\n\n\n\n'
group_modified = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets or sets a Boolean value that specifies whether the group associated with the securable object has been modified.\n\n\n\n'
is_container = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets a Boolean value that specifies whether this System.Security.AccessControl.ObjectSecurity object is a container object.\n\n\n\n'
is_ds = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets a Boolean value that specifies whether this System.Security.AccessControl.ObjectSecurity object is a directory object.\n\n\n\n'
owner_modified = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets or sets a Boolean value that specifies whether the owner of the securable object has been modified.\n\n\n\n'
|
#this is to make change from dollar bills
change=float(input("Enter an amount to make change for :"))
print("Your change is..")
print(int(change//20), "twenties")
change=change % 20
print(int(change//10), "tens")
change=change % 10
print(int(change//5), "fives")
change=change % 5
print(int(change//1), "ones")
change=change % 1
print(int(change//0.25), "quarters")
change=change % 0.25
print(int(change//0.1),"dimes")
change=change % 0.1
print(int(change//0.05), "nickels")
change=change % 0.05
print(int(change//0.01), "pennies")
change=change % 0.01
|
change = float(input('Enter an amount to make change for :'))
print('Your change is..')
print(int(change // 20), 'twenties')
change = change % 20
print(int(change // 10), 'tens')
change = change % 10
print(int(change // 5), 'fives')
change = change % 5
print(int(change // 1), 'ones')
change = change % 1
print(int(change // 0.25), 'quarters')
change = change % 0.25
print(int(change // 0.1), 'dimes')
change = change % 0.1
print(int(change // 0.05), 'nickels')
change = change % 0.05
print(int(change // 0.01), 'pennies')
change = change % 0.01
|
def calc_fuel(mass):
fuel = int(mass / 3) - 2
return fuel
with open("input.txt") as infile:
fuel_sum = 0
for line in infile:
mass = int(line.strip())
fuel = calc_fuel(mass)
fuel_sum += fuel
print(fuel_sum)
|
def calc_fuel(mass):
fuel = int(mass / 3) - 2
return fuel
with open('input.txt') as infile:
fuel_sum = 0
for line in infile:
mass = int(line.strip())
fuel = calc_fuel(mass)
fuel_sum += fuel
print(fuel_sum)
|
def main() -> None:
a, b, c = map(int, input().split())
d = [a, b, c]
d.sort()
print("Yes" if d[1] == b else "No")
if __name__ == "__main__":
main()
|
def main() -> None:
(a, b, c) = map(int, input().split())
d = [a, b, c]
d.sort()
print('Yes' if d[1] == b else 'No')
if __name__ == '__main__':
main()
|
def sums(target):
ans = 0
sumlist=[]
count = 1
for num in range(target):
sumlist.append(count)
count = count + 1
ans = sum(sumlist)
print(ans)
#print(sumlist)
target = int(input(""))
sums(target)
|
def sums(target):
ans = 0
sumlist = []
count = 1
for num in range(target):
sumlist.append(count)
count = count + 1
ans = sum(sumlist)
print(ans)
target = int(input(''))
sums(target)
|
# coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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.
#
# Const Class
# this is a auto generated file generated by Cheetah
# Libre Office Version: 7.3
# Namespace: com.sun.star.drawing
class BarCodeErrorCorrection(object):
"""
Const Class
These constants identify the type of Error Correction for a Bar Code.
The Error Correction for a Bar code is a measure that helps a Bar code to recover, if it is destroyed.
Level L (Low) 7% of codewords can be restored. Level M (Medium) 15% of codewords can be restored. Level Q (Quartile) 25% of codewords can be restored. Level H (High) 30% of codewords can be restored.
More Info - here
**since**
LibreOffice 7.3
See Also:
`API BarCodeErrorCorrection <https://api.libreoffice.org/docs/idl/ref/namespacecom_1_1sun_1_1star_1_1drawing_1_1BarCodeErrorCorrection.html>`_
"""
__ooo_ns__: str = 'com.sun.star.drawing'
__ooo_full_ns__: str = 'com.sun.star.drawing.BarCodeErrorCorrection'
__ooo_type_name__: str = 'const'
LOW = 1
MEDIUM = 2
QUARTILE = 3
HIGH = 4
__all__ = ['BarCodeErrorCorrection']
|
class Barcodeerrorcorrection(object):
"""
Const Class
These constants identify the type of Error Correction for a Bar Code.
The Error Correction for a Bar code is a measure that helps a Bar code to recover, if it is destroyed.
Level L (Low) 7% of codewords can be restored. Level M (Medium) 15% of codewords can be restored. Level Q (Quartile) 25% of codewords can be restored. Level H (High) 30% of codewords can be restored.
More Info - here
**since**
LibreOffice 7.3
See Also:
`API BarCodeErrorCorrection <https://api.libreoffice.org/docs/idl/ref/namespacecom_1_1sun_1_1star_1_1drawing_1_1BarCodeErrorCorrection.html>`_
"""
__ooo_ns__: str = 'com.sun.star.drawing'
__ooo_full_ns__: str = 'com.sun.star.drawing.BarCodeErrorCorrection'
__ooo_type_name__: str = 'const'
low = 1
medium = 2
quartile = 3
high = 4
__all__ = ['BarCodeErrorCorrection']
|
# AUTOGENERATED! DO NOT EDIT! File to edit: 00_core.ipynb (unless otherwise specified).
__all__ = ['print_hello']
# Cell
def print_hello(to):
"Print hello to the user"
return f"Hello, {to}!"
|
__all__ = ['print_hello']
def print_hello(to):
"""Print hello to the user"""
return f'Hello, {to}!'
|
## @ingroup methods-mission-segments
# expand_state.py
#
# Created: Jul 2014, SUAVE Team
# Modified: Jan 2016, E. Botero
# ----------------------------------------------------------------------
# Expand State
# ----------------------------------------------------------------------
## @ingroup methods-mission-segments
def expand_state(segment):
"""Makes all vectors in the state the same size.
Assumptions:
N/A
Source:
N/A
Inputs:
state.numerics.number_control_points [Unitless]
Outputs:
N/A
Properties Used:
N/A
"""
n_points = segment.state.numerics.number_control_points
segment.state.expand_rows(n_points)
return
|
def expand_state(segment):
"""Makes all vectors in the state the same size.
Assumptions:
N/A
Source:
N/A
Inputs:
state.numerics.number_control_points [Unitless]
Outputs:
N/A
Properties Used:
N/A
"""
n_points = segment.state.numerics.number_control_points
segment.state.expand_rows(n_points)
return
|
'''
Created on Aug 4, 2012
@author: vinnie
'''
class Rotor(object):
def __init__(self, symbols, permutation):
'''
'''
self.states = []
self.inverse_states = []
self.n_symbols = len(symbols)
for i in range(self.n_symbols):
self.states.append({symbols[j]: permutation[(j + i) % self.n_symbols] for j in range(self.n_symbols)})
self.inverse_states.append(
{permutation[(j + i) % self.n_symbols]: symbols[j] for j in range(self.n_symbols)})
self.odometer = 0
return
def state(self):
'''
Get the current encryption state
'''
return self.states[self.odometer]
def inverse_state(self):
'''
Get the current decryption state
'''
return self.inverse_states[self.odometer]
def step(self):
'''
Advance the rotor by one step.
This is equivalent to shifting the offsets
'''
self.odometer = (self.odometer + 1) % self.n_symbols
return
def setOdometer(self, position):
'''
'''
self.odometer = position % self.n_symbols
def permute(self, symbol):
'''
Encrypt a symbol in the current state
'''
return self.states[self.odometer][symbol]
def invert(self, symbol):
'''
Decrypt a symbol in the current state
'''
return self.inverse_states[self.odometer][symbol]
def __str__(self, *args, **kwargs):
output = "Permute\tInvert\n"
for k in self.states[self.odometer].keys():
output += "%s => %s\t%s => %s\n" \
% (str(k), self.states[self.odometer][k],
str(k), self.inverse_states[self.odometer][k])
return output
class Enigma(object):
'''
The Enigma cipher
'''
def __init__(self, rotors, reflector):
'''
'''
self.stecker = {}
self.dec_stecker = {}
self.rotors = rotors # rotors go from left to right
self.reflector = reflector
self.dec_reflector = {reflector[s]: s for s in reflector.keys()}
self.odometer_start = []
def configure(self, stecker, odometer_start):
'''
'''
assert len(odometer_start) == len(self.rotors) - 1
self.stecker = stecker
self.dec_stecker = {stecker[s]: s for s in stecker.keys()}
self.odometer_start = odometer_start
return
def set_rotor_positions(self, rotor_positions):
'''
'''
for r, p in zip(self.rotors, rotor_positions):
r.setOdometer(p)
return
def get_rotor_positions(self):
'''
'''
return [r.odometer for r in self.rotors]
def step_to(self, P):
for i in range(P):
self.step_rotors()
return
def step_rotors(self):
'''
'''
# step the rightmost rotor
self.rotors[0].step()
# step the remaining rotors in an odometer-like fashion
for i in range(len(self.odometer_start)):
if self.rotors[i + 1].odometer == self.odometer_start[i]:
self.rotors[i + 1].step()
return
def translate_rotors(self, c):
'''
'''
for r in self.rotors:
c = r.permute(c)
c = self.reflector[c]
for r in reversed(self.rotors):
c = r.invert(c)
return c
def encrypt(self, str):
'''
'''
enc = ""
for c in str:
e = self.stecker[c]
e = self.translate_rotors(e)
e = self.stecker[e]
self.step_rotors()
enc += e
return enc
def decrypt(self, enc):
'''
The same function is used to both encrypt and decrypt.
'''
return self.encrypt(enc)
def __str__(self, *args, **kwargs):
output = ""
for s in sorted(self.reflector.keys()):
output += "%s => %s | " % (str(s), self.stecker[s])
for r in self.rotors:
output += "%s => %s " % (str(s), r.permute(s))
output += "%s => %s | " % (str(s), r.invert(s))
output += "%s => %s" % (str(s), self.reflector[s])
output += "\n"
return output
|
"""
Created on Aug 4, 2012
@author: vinnie
"""
class Rotor(object):
def __init__(self, symbols, permutation):
"""
"""
self.states = []
self.inverse_states = []
self.n_symbols = len(symbols)
for i in range(self.n_symbols):
self.states.append({symbols[j]: permutation[(j + i) % self.n_symbols] for j in range(self.n_symbols)})
self.inverse_states.append({permutation[(j + i) % self.n_symbols]: symbols[j] for j in range(self.n_symbols)})
self.odometer = 0
return
def state(self):
"""
Get the current encryption state
"""
return self.states[self.odometer]
def inverse_state(self):
"""
Get the current decryption state
"""
return self.inverse_states[self.odometer]
def step(self):
"""
Advance the rotor by one step.
This is equivalent to shifting the offsets
"""
self.odometer = (self.odometer + 1) % self.n_symbols
return
def set_odometer(self, position):
"""
"""
self.odometer = position % self.n_symbols
def permute(self, symbol):
"""
Encrypt a symbol in the current state
"""
return self.states[self.odometer][symbol]
def invert(self, symbol):
"""
Decrypt a symbol in the current state
"""
return self.inverse_states[self.odometer][symbol]
def __str__(self, *args, **kwargs):
output = 'Permute\tInvert\n'
for k in self.states[self.odometer].keys():
output += '%s => %s\t%s => %s\n' % (str(k), self.states[self.odometer][k], str(k), self.inverse_states[self.odometer][k])
return output
class Enigma(object):
"""
The Enigma cipher
"""
def __init__(self, rotors, reflector):
"""
"""
self.stecker = {}
self.dec_stecker = {}
self.rotors = rotors
self.reflector = reflector
self.dec_reflector = {reflector[s]: s for s in reflector.keys()}
self.odometer_start = []
def configure(self, stecker, odometer_start):
"""
"""
assert len(odometer_start) == len(self.rotors) - 1
self.stecker = stecker
self.dec_stecker = {stecker[s]: s for s in stecker.keys()}
self.odometer_start = odometer_start
return
def set_rotor_positions(self, rotor_positions):
"""
"""
for (r, p) in zip(self.rotors, rotor_positions):
r.setOdometer(p)
return
def get_rotor_positions(self):
"""
"""
return [r.odometer for r in self.rotors]
def step_to(self, P):
for i in range(P):
self.step_rotors()
return
def step_rotors(self):
"""
"""
self.rotors[0].step()
for i in range(len(self.odometer_start)):
if self.rotors[i + 1].odometer == self.odometer_start[i]:
self.rotors[i + 1].step()
return
def translate_rotors(self, c):
"""
"""
for r in self.rotors:
c = r.permute(c)
c = self.reflector[c]
for r in reversed(self.rotors):
c = r.invert(c)
return c
def encrypt(self, str):
"""
"""
enc = ''
for c in str:
e = self.stecker[c]
e = self.translate_rotors(e)
e = self.stecker[e]
self.step_rotors()
enc += e
return enc
def decrypt(self, enc):
"""
The same function is used to both encrypt and decrypt.
"""
return self.encrypt(enc)
def __str__(self, *args, **kwargs):
output = ''
for s in sorted(self.reflector.keys()):
output += '%s => %s | ' % (str(s), self.stecker[s])
for r in self.rotors:
output += '%s => %s ' % (str(s), r.permute(s))
output += '%s => %s | ' % (str(s), r.invert(s))
output += '%s => %s' % (str(s), self.reflector[s])
output += '\n'
return output
|
class BasePexelError(Exception):
pass
class EndpointNotExists(BasePexelError):
def __init__(self, end_point, _enum) -> None:
options = _enum.__members__.keys()
self.message = f'Endpoint "{end_point}" not exists. Valid endpoints: {", ".join(options)}'
super().__init__(self.message)
class ParamNotExists(BasePexelError):
def __init__(self, name, _enum, param) -> None:
options = _enum.__members__.keys()
self.message = f'{param} not exists in {name}. Valid params: {", ".join(options)}'
super().__init__(self.message)
class IdNotFound(BasePexelError):
def __init__(self, end_point) -> None:
self.message = f'ID is needed for "{end_point}"'
super().__init__(self.message)
|
class Basepexelerror(Exception):
pass
class Endpointnotexists(BasePexelError):
def __init__(self, end_point, _enum) -> None:
options = _enum.__members__.keys()
self.message = f'''Endpoint "{end_point}" not exists. Valid endpoints: {', '.join(options)}'''
super().__init__(self.message)
class Paramnotexists(BasePexelError):
def __init__(self, name, _enum, param) -> None:
options = _enum.__members__.keys()
self.message = f"{param} not exists in {name}. Valid params: {', '.join(options)}"
super().__init__(self.message)
class Idnotfound(BasePexelError):
def __init__(self, end_point) -> None:
self.message = f'ID is needed for "{end_point}"'
super().__init__(self.message)
|
"""Containers for DL CONTROL file MC move type descriptions
Moves are part of the DL CONTROL file input. Each type of
move gets a class here.
The classification of the available Move types is as follows:
Move
MCMove
AtomMove
MoleculeMove
... [others, some of which are untested in regression tests]
VolumeMove (aka NPT move)
VolumeVectorMove
VolumeOrthoMove
VolumeCubicMove
The dlmove.from_string(dlstr) function provides a factory method to
generate the appropriate Move from DL CONTROL style input.
"""
def parse_atom(dlstr):
"""Atoms are expected as 'Name core|shell' only"""
try:
tokens = dlstr.split()
atom = {"id": "{} {}".format(tokens[0], tokens[1])}
except IndexError:
raise ValueError("Unrecognised Atom: {!s}".format(dlstr))
return atom
def print_atom(atom):
"""Return atom record for DL CONTROL"""
return atom["id"]
def parse_molecule(dlstr):
"""Molecules are 'Name" only"""
tokens = dlstr.split()
molecule = {"id": tokens[0]}
return molecule
def print_molecule(molecule):
"""Return molecule record for DL CONTROL"""
return molecule["id"]
def parse_atom_swap(dlstr):
"""Swaps are e.g., 'atom1 core atom2 core' """
try:
tok = dlstr.split()
swap = {"id1": "{} {}".format(tok[0], tok[1]), \
"id2": "{} {}".format(tok[2], tok[3])}
except IndexError:
raise ValueError("Unrecognised atom swap: {!r}".format(dlstr))
return swap
def print_atom_swap(swap):
"""Return atom swap string for DL CONTROL"""
return "{} {}".format(swap["id1"], swap["id2"])
def parse_molecule_swap(dlstr):
"""Swap records have two tokens"""
try:
tokens = dlstr.split()
swap = {"id1": tokens[0], "id2": tokens[1]}
except IndexError:
raise ValueError("Unrecognised molecule swap: {!r}".format(dlstr))
return swap
def print_molecule_swap(swap):
"""Return a swap for DL CONTROL output"""
return "{} {}".format(swap["id1"], swap["id2"])
def parse_atom_gcmc(dlstr):
"""GCMC Atoms include a chemical potential/partial pressure"""
try:
tok = dlstr.split()
atom = {"id": "{} {}".format(tok[0], tok[1]), "molpot": float(tok[2])}
except (IndexError, TypeError):
raise ValueError("Unrecognised GCMC Atom: {!r}".format(dlstr))
return atom
def parse_molecule_gcmc(dlstr):
"""Grand Canonical MC includes chemical potential/partial pressure"""
try:
tok = dlstr.split()
molecule = {"id": tok[0], "molpot": float(tok[1])}
except (IndexError, TypeError):
raise ValueError("Unrecognised GCMC Molecule: {!r}".format(dlstr))
return molecule
def print_gcmc(gcmc):
"""Return string version of chemical potential records for DL CONTROL"""
return "{} {}".format(gcmc["id"], gcmc["molpot"])
class Move(object):
"""This classifies all moves"""
key = None
@classmethod
def from_string(cls, dlstr):
"""To be implemented by MCMove or VolumeMove"""
NotImplementedError("Should be implemented by subclass")
class MCMove(Move):
"""MC moves involve atoms or molecules"""
parse_mover = staticmethod(None)
print_mover = staticmethod(None)
def __init__(self, pfreq, movers):
"""pfreq (int): percentage probability of move per step"""
self.pfreq = pfreq
self.movers = movers
def __str__(self):
"""Return well-formed DL CONTROL block"""
strme = []
move = "move {} {} {}".format(self.key, len(self.movers), self.pfreq)
strme.append(move)
for mover in self.movers:
strme.append(self.print_mover(mover))
return "\n".join(strme)
def __repr__(self):
"""Return a readable form"""
repme = "pfreq= {!r}, movers= {!r}".format(self.pfreq, self.movers)
return "{}({})".format(type(self).__name__, repme)
@classmethod
def from_string(cls, dlstr):
"""Generate an instance from a DL CONTROL entry"""
lines = dlstr.splitlines()
line = lines.pop(0)
pfreq = MCMove._parse_move_statement(line)[2]
movers = []
for line in lines:
mover = cls.parse_mover(line)
movers.append(mover)
return cls(pfreq, movers)
@staticmethod
def _parse_move_statement(dlstr):
"""Parse move line"""
try:
tokens = dlstr.lower().split()
if tokens[0] != "move":
raise ValueError("Expected 'move' statement")
mtype, nmove, pfreq = tokens[1], int(tokens[2]), int(tokens[3])
except IndexError:
raise ValueError("Badly formed 'move' statement?")
return mtype, nmove, pfreq
class GCMove(Move):
"""Grand Canonical insertions have an extra minimum insertion
distance parameter cf standard MCMove types
"""
parse_mover = staticmethod(None)
print_mover = staticmethod(None)
def __init__(self, pfreq, rmin, movers):
"""Initalise GCMove parameters
Arguments:
pfreq (integer): percentage
rmin (float): grace distance
movers ():
"""
self.pfreq = pfreq
self.rmin = rmin
self.movers = movers
def __str__(self):
"""Return well-formed DL CONTROL block"""
strme = []
move = "move {} {} {} {}".format(self.key, len(self.movers),
self.pfreq, self.rmin)
strme.append(move)
for mover in self.movers:
strme.append(self.print_mover(mover))
return "\n".join(strme)
def __repr__(self):
"""Return a GCMove (subsclass) represetation"""
repme = "pfreq= {!r}, rmin= {!r}, movers= {!r}"\
.format(self.pfreq, self.rmin, self.movers)
return "{}({})".format(type(self).__name__, repme)
@classmethod
def from_string(cls, dlstr):
"""Generate instance form well-formed DL CONTROL string"""
lines = dlstr.splitlines()
line = lines.pop(0)
pfreq, rmin = GCMove._parse_move_statement(line)[2:]
movers = []
for line in lines:
mover = cls.parse_mover(line)
movers.append(mover)
return cls(pfreq, rmin, movers)
@staticmethod
def _parse_move_statement(dlstr):
"""Parse GC move line"""
try:
tokens = dlstr.lower().split()
if tokens[0] != "move":
raise ValueError("Expected 'move' statement")
mtype, nmove, pfreq, rmin = \
tokens[1], int(tokens[2]), int(tokens[3]), float(tokens[4])
except IndexError:
raise ValueError("Badly formed 'move' statement?")
return mtype, nmove, pfreq, rmin
class VolumeMove(Move):
"""Container for volume (NPT) moves"""
def __init__(self, pfreq, sampling=None):
"""Initialise continaer
Arguemnts:
pfreq (integer): percentage
sampling (string): description
"""
self.pfreq = pfreq
self.sampling = sampling
def __str__(self):
"""Return well-formed DL CONTROL file string"""
if self.sampling is not None:
strme = "move volume {} {} {}"\
.format(self.key, self.sampling, self.pfreq)
else:
strme = "move volume {} {}".format(self.key, self.pfreq)
return strme
def __repr__(self):
"""Return a readable string"""
repme = "pfreq= {!r}, sampling= {!r}".format(self.pfreq, self.sampling)
return "{}({})".format(type(self).__name__, repme)
@classmethod
def from_string(cls, dlstr):
"""E.g., 'move volume vector|ortho|cubic [sampling-type] pfreq' """
tokens = dlstr.split()
try:
sampling = None
pfreq = int(tokens[-1])
# sampling-type is an optional one or two (string) tokens
if len(tokens) == 5:
sampling = tokens[3]
if len(tokens) == 6:
sampling = "{} {}".format(tokens[3], tokens[4])
except (IndexError, TypeError):
raise ValueError("VolumeMove: unrecognised: {!r}".format(dlstr))
return cls(pfreq, sampling)
class AtomMove(MCMove):
"""Concrete class for atom moves"""
key = "atom"
parse_mover = staticmethod(parse_atom)
print_mover = staticmethod(print_atom)
class MoleculeMove(MCMove):
"""Concrete class for molecule moves"""
key = "molecule"
parse_mover = staticmethod(parse_molecule)
print_mover = staticmethod(print_molecule)
class RotateMoleculeMove(MCMove):
"""Concrete class for rotate molecule moves"""
key = "rotatemol"
parse_mover = staticmethod(parse_molecule)
print_mover = staticmethod(print_molecule)
class SwapAtomMove(MCMove):
"""Concrete class for swap atom moves"""
key = "swapatoms"
parse_mover = staticmethod(parse_atom_swap)
print_mover = staticmethod(print_atom_swap)
class SwapMoleculeMove(MCMove):
"""Concrete class for swap molecule moves"""
key = "swapmols"
parse_mover = staticmethod(parse_molecule_swap)
print_mover = staticmethod(print_molecule_swap)
class InsertAtomMove(GCMove):
"""Concrete class for Grand Canonical atom moves"""
key = "gcinsertatom"
parse_mover = staticmethod(parse_atom_gcmc)
print_mover = staticmethod(print_gcmc)
class InsertMoleculeMove(GCMove):
"""Concrete class for Grand Canonical molecule moves"""
key = "gcinsertmol"
parse_mover = staticmethod(parse_molecule_gcmc)
print_mover = staticmethod(print_gcmc)
class SemiWidomAtomMove(MCMove):
"""No exmaples are available"""
key = "semiwidomatoms"
# Format needs to be confirmed
class SemiGrandAtomMove(MCMove):
"""No examples are available"""
key = "semigrandatoms"
# Format needs to be confirmed
class SemiGrandMoleculeMove(MCMove):
"""NO examples are available"""
key = "semigrandmol"
# Format needs to be confirmed
class VolumeVectorMove(VolumeMove):
"""Concrete class for vector volume moves"""
key = "vector"
class VolumeOrthoMove(VolumeMove):
"""Concrete class for ortho volume moves"""
key = "ortho"
class VolumeCubicMove(VolumeMove):
"""Concrete class for cubic volume moves"""
key = "cubic"
def from_string(dlstr):
"""Factory method to return an instance from a well-formed
DL CONTROL file move statement (a block of 1 plus n lines)
Argument:
dlstr (string) move statement plus atom/molecule
descriptions
"""
moves_volume = {"vector": VolumeVectorMove,
"ortho": VolumeOrthoMove,
"cubic": VolumeCubicMove}
moves_mc = {"atom": AtomMove,
"molecule": MoleculeMove,
"rotatemol": RotateMoleculeMove,
"gcinsertatom": InsertAtomMove,
"gcinsertmol": InsertMoleculeMove}
lines = dlstr.splitlines()
tokens = lines[0].lower().split()
if tokens[0] != "move" or len(tokens) < 4:
raise ValueError("Expected: 'move key ...': got {!r}".format(lines[0]))
key = tokens[1]
# We need to allow for possible DL key abbreviations
if key.startswith("atom"):
key = "atom"
if key.startswith("molecu"):
key = "molecule"
if key.startswith("rotatemol"):
key = "rotatemol"
inst = None
if key == "volume":
subkey = tokens[2]
if subkey in moves_volume:
inst = moves_volume[subkey].from_string(dlstr)
else:
if key in moves_mc:
inst = moves_mc[key].from_string(dlstr)
if inst is None:
raise ValueError("Move unrecognised: {!r}".format(dlstr))
return inst
|
"""Containers for DL CONTROL file MC move type descriptions
Moves are part of the DL CONTROL file input. Each type of
move gets a class here.
The classification of the available Move types is as follows:
Move
MCMove
AtomMove
MoleculeMove
... [others, some of which are untested in regression tests]
VolumeMove (aka NPT move)
VolumeVectorMove
VolumeOrthoMove
VolumeCubicMove
The dlmove.from_string(dlstr) function provides a factory method to
generate the appropriate Move from DL CONTROL style input.
"""
def parse_atom(dlstr):
"""Atoms are expected as 'Name core|shell' only"""
try:
tokens = dlstr.split()
atom = {'id': '{} {}'.format(tokens[0], tokens[1])}
except IndexError:
raise value_error('Unrecognised Atom: {!s}'.format(dlstr))
return atom
def print_atom(atom):
"""Return atom record for DL CONTROL"""
return atom['id']
def parse_molecule(dlstr):
"""Molecules are 'Name" only"""
tokens = dlstr.split()
molecule = {'id': tokens[0]}
return molecule
def print_molecule(molecule):
"""Return molecule record for DL CONTROL"""
return molecule['id']
def parse_atom_swap(dlstr):
"""Swaps are e.g., 'atom1 core atom2 core' """
try:
tok = dlstr.split()
swap = {'id1': '{} {}'.format(tok[0], tok[1]), 'id2': '{} {}'.format(tok[2], tok[3])}
except IndexError:
raise value_error('Unrecognised atom swap: {!r}'.format(dlstr))
return swap
def print_atom_swap(swap):
"""Return atom swap string for DL CONTROL"""
return '{} {}'.format(swap['id1'], swap['id2'])
def parse_molecule_swap(dlstr):
"""Swap records have two tokens"""
try:
tokens = dlstr.split()
swap = {'id1': tokens[0], 'id2': tokens[1]}
except IndexError:
raise value_error('Unrecognised molecule swap: {!r}'.format(dlstr))
return swap
def print_molecule_swap(swap):
"""Return a swap for DL CONTROL output"""
return '{} {}'.format(swap['id1'], swap['id2'])
def parse_atom_gcmc(dlstr):
"""GCMC Atoms include a chemical potential/partial pressure"""
try:
tok = dlstr.split()
atom = {'id': '{} {}'.format(tok[0], tok[1]), 'molpot': float(tok[2])}
except (IndexError, TypeError):
raise value_error('Unrecognised GCMC Atom: {!r}'.format(dlstr))
return atom
def parse_molecule_gcmc(dlstr):
"""Grand Canonical MC includes chemical potential/partial pressure"""
try:
tok = dlstr.split()
molecule = {'id': tok[0], 'molpot': float(tok[1])}
except (IndexError, TypeError):
raise value_error('Unrecognised GCMC Molecule: {!r}'.format(dlstr))
return molecule
def print_gcmc(gcmc):
"""Return string version of chemical potential records for DL CONTROL"""
return '{} {}'.format(gcmc['id'], gcmc['molpot'])
class Move(object):
"""This classifies all moves"""
key = None
@classmethod
def from_string(cls, dlstr):
"""To be implemented by MCMove or VolumeMove"""
not_implemented_error('Should be implemented by subclass')
class Mcmove(Move):
"""MC moves involve atoms or molecules"""
parse_mover = staticmethod(None)
print_mover = staticmethod(None)
def __init__(self, pfreq, movers):
"""pfreq (int): percentage probability of move per step"""
self.pfreq = pfreq
self.movers = movers
def __str__(self):
"""Return well-formed DL CONTROL block"""
strme = []
move = 'move {} {} {}'.format(self.key, len(self.movers), self.pfreq)
strme.append(move)
for mover in self.movers:
strme.append(self.print_mover(mover))
return '\n'.join(strme)
def __repr__(self):
"""Return a readable form"""
repme = 'pfreq= {!r}, movers= {!r}'.format(self.pfreq, self.movers)
return '{}({})'.format(type(self).__name__, repme)
@classmethod
def from_string(cls, dlstr):
"""Generate an instance from a DL CONTROL entry"""
lines = dlstr.splitlines()
line = lines.pop(0)
pfreq = MCMove._parse_move_statement(line)[2]
movers = []
for line in lines:
mover = cls.parse_mover(line)
movers.append(mover)
return cls(pfreq, movers)
@staticmethod
def _parse_move_statement(dlstr):
"""Parse move line"""
try:
tokens = dlstr.lower().split()
if tokens[0] != 'move':
raise value_error("Expected 'move' statement")
(mtype, nmove, pfreq) = (tokens[1], int(tokens[2]), int(tokens[3]))
except IndexError:
raise value_error("Badly formed 'move' statement?")
return (mtype, nmove, pfreq)
class Gcmove(Move):
"""Grand Canonical insertions have an extra minimum insertion
distance parameter cf standard MCMove types
"""
parse_mover = staticmethod(None)
print_mover = staticmethod(None)
def __init__(self, pfreq, rmin, movers):
"""Initalise GCMove parameters
Arguments:
pfreq (integer): percentage
rmin (float): grace distance
movers ():
"""
self.pfreq = pfreq
self.rmin = rmin
self.movers = movers
def __str__(self):
"""Return well-formed DL CONTROL block"""
strme = []
move = 'move {} {} {} {}'.format(self.key, len(self.movers), self.pfreq, self.rmin)
strme.append(move)
for mover in self.movers:
strme.append(self.print_mover(mover))
return '\n'.join(strme)
def __repr__(self):
"""Return a GCMove (subsclass) represetation"""
repme = 'pfreq= {!r}, rmin= {!r}, movers= {!r}'.format(self.pfreq, self.rmin, self.movers)
return '{}({})'.format(type(self).__name__, repme)
@classmethod
def from_string(cls, dlstr):
"""Generate instance form well-formed DL CONTROL string"""
lines = dlstr.splitlines()
line = lines.pop(0)
(pfreq, rmin) = GCMove._parse_move_statement(line)[2:]
movers = []
for line in lines:
mover = cls.parse_mover(line)
movers.append(mover)
return cls(pfreq, rmin, movers)
@staticmethod
def _parse_move_statement(dlstr):
"""Parse GC move line"""
try:
tokens = dlstr.lower().split()
if tokens[0] != 'move':
raise value_error("Expected 'move' statement")
(mtype, nmove, pfreq, rmin) = (tokens[1], int(tokens[2]), int(tokens[3]), float(tokens[4]))
except IndexError:
raise value_error("Badly formed 'move' statement?")
return (mtype, nmove, pfreq, rmin)
class Volumemove(Move):
"""Container for volume (NPT) moves"""
def __init__(self, pfreq, sampling=None):
"""Initialise continaer
Arguemnts:
pfreq (integer): percentage
sampling (string): description
"""
self.pfreq = pfreq
self.sampling = sampling
def __str__(self):
"""Return well-formed DL CONTROL file string"""
if self.sampling is not None:
strme = 'move volume {} {} {}'.format(self.key, self.sampling, self.pfreq)
else:
strme = 'move volume {} {}'.format(self.key, self.pfreq)
return strme
def __repr__(self):
"""Return a readable string"""
repme = 'pfreq= {!r}, sampling= {!r}'.format(self.pfreq, self.sampling)
return '{}({})'.format(type(self).__name__, repme)
@classmethod
def from_string(cls, dlstr):
"""E.g., 'move volume vector|ortho|cubic [sampling-type] pfreq' """
tokens = dlstr.split()
try:
sampling = None
pfreq = int(tokens[-1])
if len(tokens) == 5:
sampling = tokens[3]
if len(tokens) == 6:
sampling = '{} {}'.format(tokens[3], tokens[4])
except (IndexError, TypeError):
raise value_error('VolumeMove: unrecognised: {!r}'.format(dlstr))
return cls(pfreq, sampling)
class Atommove(MCMove):
"""Concrete class for atom moves"""
key = 'atom'
parse_mover = staticmethod(parse_atom)
print_mover = staticmethod(print_atom)
class Moleculemove(MCMove):
"""Concrete class for molecule moves"""
key = 'molecule'
parse_mover = staticmethod(parse_molecule)
print_mover = staticmethod(print_molecule)
class Rotatemoleculemove(MCMove):
"""Concrete class for rotate molecule moves"""
key = 'rotatemol'
parse_mover = staticmethod(parse_molecule)
print_mover = staticmethod(print_molecule)
class Swapatommove(MCMove):
"""Concrete class for swap atom moves"""
key = 'swapatoms'
parse_mover = staticmethod(parse_atom_swap)
print_mover = staticmethod(print_atom_swap)
class Swapmoleculemove(MCMove):
"""Concrete class for swap molecule moves"""
key = 'swapmols'
parse_mover = staticmethod(parse_molecule_swap)
print_mover = staticmethod(print_molecule_swap)
class Insertatommove(GCMove):
"""Concrete class for Grand Canonical atom moves"""
key = 'gcinsertatom'
parse_mover = staticmethod(parse_atom_gcmc)
print_mover = staticmethod(print_gcmc)
class Insertmoleculemove(GCMove):
"""Concrete class for Grand Canonical molecule moves"""
key = 'gcinsertmol'
parse_mover = staticmethod(parse_molecule_gcmc)
print_mover = staticmethod(print_gcmc)
class Semiwidomatommove(MCMove):
"""No exmaples are available"""
key = 'semiwidomatoms'
class Semigrandatommove(MCMove):
"""No examples are available"""
key = 'semigrandatoms'
class Semigrandmoleculemove(MCMove):
"""NO examples are available"""
key = 'semigrandmol'
class Volumevectormove(VolumeMove):
"""Concrete class for vector volume moves"""
key = 'vector'
class Volumeorthomove(VolumeMove):
"""Concrete class for ortho volume moves"""
key = 'ortho'
class Volumecubicmove(VolumeMove):
"""Concrete class for cubic volume moves"""
key = 'cubic'
def from_string(dlstr):
"""Factory method to return an instance from a well-formed
DL CONTROL file move statement (a block of 1 plus n lines)
Argument:
dlstr (string) move statement plus atom/molecule
descriptions
"""
moves_volume = {'vector': VolumeVectorMove, 'ortho': VolumeOrthoMove, 'cubic': VolumeCubicMove}
moves_mc = {'atom': AtomMove, 'molecule': MoleculeMove, 'rotatemol': RotateMoleculeMove, 'gcinsertatom': InsertAtomMove, 'gcinsertmol': InsertMoleculeMove}
lines = dlstr.splitlines()
tokens = lines[0].lower().split()
if tokens[0] != 'move' or len(tokens) < 4:
raise value_error("Expected: 'move key ...': got {!r}".format(lines[0]))
key = tokens[1]
if key.startswith('atom'):
key = 'atom'
if key.startswith('molecu'):
key = 'molecule'
if key.startswith('rotatemol'):
key = 'rotatemol'
inst = None
if key == 'volume':
subkey = tokens[2]
if subkey in moves_volume:
inst = moves_volume[subkey].from_string(dlstr)
elif key in moves_mc:
inst = moves_mc[key].from_string(dlstr)
if inst is None:
raise value_error('Move unrecognised: {!r}'.format(dlstr))
return inst
|
#https://www.acmicpc.net/problem/1712
a, b, b2 = map(int, input().split())
if b >= b2:
print(-1)
else:
bx = b2 - b
count = a // bx + 1
print(count)
|
(a, b, b2) = map(int, input().split())
if b >= b2:
print(-1)
else:
bx = b2 - b
count = a // bx + 1
print(count)
|
grade_1 = [9.5,8.5,6.45,21]
grade_1_sum = sum(grade_1)
print(grade_1_sum)
grade_1_len = len(grade_1)
print(grade_1_len)
grade_avg = grade_1_sum/grade_1_len
print(grade_avg)
# create Function
def mean(myList):
the_mean = sum(myList) / len(myList)
return the_mean
print(mean([10,1,1,10]))
def mean_1(value):
if type(value)== dict:
the_mean = sum(value.values())/len(value)
return the_mean
else:
the_mean = sum(value) / len(value)
return the_mean
dic = {"1":10,"2":20}
LIS = [10,20]
print(mean_1(dic))
print(mean_1(LIS))
def mean_2(value):
if isinstance(value , dict):
the_mean = sum(value.values())/len(value)
return the_mean
else:
the_mean = sum(value) / len(value)
return the_mean
dic_1 = {"1":10,"2":20}
LIS_1 = [10,20]
print(mean_2(dic))
print(mean_2(LIS_1))
def foo(temperature):
if temperature > 7:
return "Warm"
else:
return "Cold"
|
grade_1 = [9.5, 8.5, 6.45, 21]
grade_1_sum = sum(grade_1)
print(grade_1_sum)
grade_1_len = len(grade_1)
print(grade_1_len)
grade_avg = grade_1_sum / grade_1_len
print(grade_avg)
def mean(myList):
the_mean = sum(myList) / len(myList)
return the_mean
print(mean([10, 1, 1, 10]))
def mean_1(value):
if type(value) == dict:
the_mean = sum(value.values()) / len(value)
return the_mean
else:
the_mean = sum(value) / len(value)
return the_mean
dic = {'1': 10, '2': 20}
lis = [10, 20]
print(mean_1(dic))
print(mean_1(LIS))
def mean_2(value):
if isinstance(value, dict):
the_mean = sum(value.values()) / len(value)
return the_mean
else:
the_mean = sum(value) / len(value)
return the_mean
dic_1 = {'1': 10, '2': 20}
lis_1 = [10, 20]
print(mean_2(dic))
print(mean_2(LIS_1))
def foo(temperature):
if temperature > 7:
return 'Warm'
else:
return 'Cold'
|
if 0:
pass
if 1:
pass
else:
pass
if 2:
pass
elif 3:
pass
if 4:
pass
elif 5:
pass
else:
1
|
if 0:
pass
if 1:
pass
else:
pass
if 2:
pass
elif 3:
pass
if 4:
pass
elif 5:
pass
else:
1
|
print("Halo")
print("This is my program in vscode ")
name = input("what your name : ")
if name == "Hero":
print("Wow your name {} ? , my name is Hero too, nice to meet you ! ".format(name))
else:
print("Halo {} , nice to meet you friend".format(name))
age = input("how old are you : ")
if age == "21":
print("wow it's same my age 21 too")
else:
print("wow that's great ~")
|
print('Halo')
print('This is my program in vscode ')
name = input('what your name : ')
if name == 'Hero':
print('Wow your name {} ? , my name is Hero too, nice to meet you ! '.format(name))
else:
print('Halo {} , nice to meet you friend'.format(name))
age = input('how old are you : ')
if age == '21':
print("wow it's same my age 21 too")
else:
print("wow that's great ~")
|
def foo(numbers, path, index, cur_val, target):
if index == len(numbers):
return cur_val, path
# No point in continuation
if cur_val > target:
return -1, ""
sol_1 = foo(numbers, path+"1", index+1, cur_val+numbers[index], target)
# Found the solution. Do not continue.
if sol_1[0] == target:
return sol_1
sol_2 = foo(numbers, path+"0", index+1, cur_val, target)
if sol_2[0] == target:
return sol_2
if sol_1[0] == -1 or sol_1[0] > target:
if sol_2[0] == -1 or sol_2[0] > target:
return -1, ""
else:
return sol_2
else:
if sol_2[0] == -1 or sol_2[0] > target or sol_1[0] > sol_2[0]:
return sol_1
else:
return sol_2
while True:
try:
line = list(map(int, input().split()))
N = line[1]
Target = line[0]
numbers = line[2:]
if sum(numbers) <= Target:
print((" ".join(map(str, numbers))) + " sum:{}".format(sum(numbers)))
else:
sol, path = foo(numbers, "", 0, 0, Target)
print(" ".join([str(p) for p, v in zip(numbers, path) if v=="1"]) + " sum:{}".format(sol))
except(EOFError):
break
|
def foo(numbers, path, index, cur_val, target):
if index == len(numbers):
return (cur_val, path)
if cur_val > target:
return (-1, '')
sol_1 = foo(numbers, path + '1', index + 1, cur_val + numbers[index], target)
if sol_1[0] == target:
return sol_1
sol_2 = foo(numbers, path + '0', index + 1, cur_val, target)
if sol_2[0] == target:
return sol_2
if sol_1[0] == -1 or sol_1[0] > target:
if sol_2[0] == -1 or sol_2[0] > target:
return (-1, '')
else:
return sol_2
elif sol_2[0] == -1 or sol_2[0] > target or sol_1[0] > sol_2[0]:
return sol_1
else:
return sol_2
while True:
try:
line = list(map(int, input().split()))
n = line[1]
target = line[0]
numbers = line[2:]
if sum(numbers) <= Target:
print(' '.join(map(str, numbers)) + ' sum:{}'.format(sum(numbers)))
else:
(sol, path) = foo(numbers, '', 0, 0, Target)
print(' '.join([str(p) for (p, v) in zip(numbers, path) if v == '1']) + ' sum:{}'.format(sol))
except EOFError:
break
|
# general_sync_utils
# similar to music_sync_utils but more general
class NameEqualityMixin():
def __eq__(self, other):
if isinstance(other, str):
return self.name == other
return self.name == other.name
def __ne__(self, other):
return not self.__eq__(other)
def __hash__(self):
return hash(self.name)
class Folder(NameEqualityMixin):
def __init__(self, name):
self.name = name
self.contents = []
# similar to contents
# but name:object pairs
self.contents_map = {}
def __str__(self):
return "{0}: {1}".format(self.name, [str(c) for c in self.contents])
class File(NameEqualityMixin):
def __init__(self, name, size):
self.name = name
self.size = size
def __str__(self):
return self.name
class SyncAssertions:
def assertFolderEquality(self, actual, expected):
for a_i in actual.contents:
if a_i not in expected.contents:
raise AssertionError("Item {0} not in folder {1}".format(a_i, expected))
if isinstance(a_i, Folder):
b_i, = [i for i in expected.contents if i.name == a_i.name]
print("Checking subfolders: ", a_i, b_i)
self.assertFolderEquality(a_i, b_i)
for b_i in expected.contents:
if b_i not in actual.contents:
raise AssertionError("Item {0} not in folder {1}".format(b_i, actual))
if isinstance(b_i, Folder):
a_i, = [i for i in actual.contents if i.name == b_i.name]
print("Checking subfolders: ", a_i, b_i)
self.assertFolderEquality(a_i, b_i)
return
|
class Nameequalitymixin:
def __eq__(self, other):
if isinstance(other, str):
return self.name == other
return self.name == other.name
def __ne__(self, other):
return not self.__eq__(other)
def __hash__(self):
return hash(self.name)
class Folder(NameEqualityMixin):
def __init__(self, name):
self.name = name
self.contents = []
self.contents_map = {}
def __str__(self):
return '{0}: {1}'.format(self.name, [str(c) for c in self.contents])
class File(NameEqualityMixin):
def __init__(self, name, size):
self.name = name
self.size = size
def __str__(self):
return self.name
class Syncassertions:
def assert_folder_equality(self, actual, expected):
for a_i in actual.contents:
if a_i not in expected.contents:
raise assertion_error('Item {0} not in folder {1}'.format(a_i, expected))
if isinstance(a_i, Folder):
(b_i,) = [i for i in expected.contents if i.name == a_i.name]
print('Checking subfolders: ', a_i, b_i)
self.assertFolderEquality(a_i, b_i)
for b_i in expected.contents:
if b_i not in actual.contents:
raise assertion_error('Item {0} not in folder {1}'.format(b_i, actual))
if isinstance(b_i, Folder):
(a_i,) = [i for i in actual.contents if i.name == b_i.name]
print('Checking subfolders: ', a_i, b_i)
self.assertFolderEquality(a_i, b_i)
return
|
LABEL_TRASH = -1
LABEL_NOISE = -2
LABEL_ALIEN = -9
LABEL_UNCLASSIFIED = -10
LABEL_NO_WAVEFORM = -11
to_name = { -1: 'Trash',
-2 : 'Noise',
-9: 'Alien',
-10: 'Unclassified',
-11: 'No waveforms',
}
|
label_trash = -1
label_noise = -2
label_alien = -9
label_unclassified = -10
label_no_waveform = -11
to_name = {-1: 'Trash', -2: 'Noise', -9: 'Alien', -10: 'Unclassified', -11: 'No waveforms'}
|
# Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( a , b , c ) :
if ( a + b <= c ) or ( a + c <= b ) or ( b + c <= a ) :
return False
else :
return True
#TOFILL
if __name__ == '__main__':
param = [
(29,19,52,),
(83,34,49,),
(48,14,65,),
(59,12,94,),
(56,39,22,),
(68,85,9,),
(63,36,41,),
(95,34,37,),
(2,90,27,),
(11,16,1,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param)))
|
def f_gold(a, b, c):
if a + b <= c or a + c <= b or b + c <= a:
return False
else:
return True
if __name__ == '__main__':
param = [(29, 19, 52), (83, 34, 49), (48, 14, 65), (59, 12, 94), (56, 39, 22), (68, 85, 9), (63, 36, 41), (95, 34, 37), (2, 90, 27), (11, 16, 1)]
n_success = 0
for (i, parameters_set) in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success += 1
print('#Results: %i, %i' % (n_success, len(param)))
|
# Enter your code here. Read input from STDIN. Print output to STDOUT
rd,rm,ry=map(int,input().split())
ed,em,ey=map(int,input().split())
if ry<ey:
print("0")
elif ry<=ey:
if rm<=em:
if rd<=ed:
print("0")
else:
print(15*(rd-ed))
else:
print(500*(rm-em))
else:
print(10000)
|
(rd, rm, ry) = map(int, input().split())
(ed, em, ey) = map(int, input().split())
if ry < ey:
print('0')
elif ry <= ey:
if rm <= em:
if rd <= ed:
print('0')
else:
print(15 * (rd - ed))
else:
print(500 * (rm - em))
else:
print(10000)
|
# card.py
# Implements the Card object.
class Card:
"""
A Card of any type.
"""
def __init__(self, title, desc, color, holder, is_equip, use):
self.title = title
self.desc = desc
self.color = color
self.holder = holder
self.is_equipment = is_equip
self.use = use
def dump(self):
return {
'title': self.title,
'desc': self.desc,
'color': self.color.name,
'is_equip': self.is_equipment
}
|
class Card:
"""
A Card of any type.
"""
def __init__(self, title, desc, color, holder, is_equip, use):
self.title = title
self.desc = desc
self.color = color
self.holder = holder
self.is_equipment = is_equip
self.use = use
def dump(self):
return {'title': self.title, 'desc': self.desc, 'color': self.color.name, 'is_equip': self.is_equipment}
|
n1 = float(input('Informe a primeira nota do Aluno: '))
n2 = float(input('informe a segunda nota: '))
m = (n1 + n2) / 2
print('Sua media foi de {}'.format(m))
|
n1 = float(input('Informe a primeira nota do Aluno: '))
n2 = float(input('informe a segunda nota: '))
m = (n1 + n2) / 2
print('Sua media foi de {}'.format(m))
|
class BaseAnalyzer(object):
def __init__(self, base_node):
self.base_node = base_node
def analyze(self):
raise NotImplementedError()
|
class Baseanalyzer(object):
def __init__(self, base_node):
self.base_node = base_node
def analyze(self):
raise not_implemented_error()
|
class Solution:
def minPathSum(self, grid: List[List[int]]) -> int:
m, n = len(grid), len(grid[0])
dp = grid[0][:]
for i in range(1, n):
dp[i] += dp[i-1]
for i in range(1, m):
for j in range(n):
if j > 0:
dp[j] = grid[i][j] + min(dp[j], dp[j-1])
else:
dp[j] = grid[i][j] + dp[j]
return dp[-1]
|
class Solution:
def min_path_sum(self, grid: List[List[int]]) -> int:
(m, n) = (len(grid), len(grid[0]))
dp = grid[0][:]
for i in range(1, n):
dp[i] += dp[i - 1]
for i in range(1, m):
for j in range(n):
if j > 0:
dp[j] = grid[i][j] + min(dp[j], dp[j - 1])
else:
dp[j] = grid[i][j] + dp[j]
return dp[-1]
|
"""simd float32vec"""
def get_data():
return [1.9, 1.8, 1.7, 0.6, 0.99,0.88,0.77,0.66]
def main():
## the translator knows this is a float32vec because there are more than 4 elements
x = y = z = w = 22/7
a = numpy.array( [1.1, 1.2, 1.3, 0.4, x,y,z,w], dtype=numpy.float32 )
## in this case the translator is not sure what the length of `u` is, so it defaults
## to using a float32vec.
u = get_data()
b = numpy.array( u, dtype=numpy.float32 )
c = a + b
print(c)
TestError( c[0]==3.0 )
TestError( c[1]==3.0 )
TestError( c[2]==3.0 )
TestError( c[3]==1.0 )
|
"""simd float32vec"""
def get_data():
return [1.9, 1.8, 1.7, 0.6, 0.99, 0.88, 0.77, 0.66]
def main():
x = y = z = w = 22 / 7
a = numpy.array([1.1, 1.2, 1.3, 0.4, x, y, z, w], dtype=numpy.float32)
u = get_data()
b = numpy.array(u, dtype=numpy.float32)
c = a + b
print(c)
test_error(c[0] == 3.0)
test_error(c[1] == 3.0)
test_error(c[2] == 3.0)
test_error(c[3] == 1.0)
|
def repetition(a,b):
count=0;
for i in range(len(a)):
if(a[i]==b):
count=count+1
return count
|
def repetition(a, b):
count = 0
for i in range(len(a)):
if a[i] == b:
count = count + 1
return count
|
n = int(input())
xy = [map(int, input().split()) for _ in range(n)]
x, y = [list(i) for i in zip(*xy)]
count = 0
buf = 0
for xi, yi in zip(x, y):
if xi == yi:
buf += 1
else:
if buf > count:
count = buf
buf = 0
if buf > count:
count = buf
if count >= 3:
print('Yes')
else:
print('No')
|
n = int(input())
xy = [map(int, input().split()) for _ in range(n)]
(x, y) = [list(i) for i in zip(*xy)]
count = 0
buf = 0
for (xi, yi) in zip(x, y):
if xi == yi:
buf += 1
else:
if buf > count:
count = buf
buf = 0
if buf > count:
count = buf
if count >= 3:
print('Yes')
else:
print('No')
|
"""
Definitions of fixtures used in acceptance mixed tests.
"""
__author__ = "Michal Stanisz"
__copyright__ = "Copyright (C) 2017 ACK CYFRONET AGH"
__license__ = "This software is released under the MIT license cited in " \
"LICENSE.txt"
pytest_plugins = "tests.gui.gui_conf"
|
"""
Definitions of fixtures used in acceptance mixed tests.
"""
__author__ = 'Michal Stanisz'
__copyright__ = 'Copyright (C) 2017 ACK CYFRONET AGH'
__license__ = 'This software is released under the MIT license cited in LICENSE.txt'
pytest_plugins = 'tests.gui.gui_conf'
|
"""
Represents tests defined in the draft_kings.output.schema module.
Most tests center around serializing / deserializing output objects using the marshmallow library
"""
|
"""
Represents tests defined in the draft_kings.output.schema module.
Most tests center around serializing / deserializing output objects using the marshmallow library
"""
|
#
# PySNMP MIB module Sentry4-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Sentry4-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:14:39 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")
ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsUnion")
ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance")
Integer32, TimeTicks, Bits, Unsigned32, MibIdentifier, iso, ModuleIdentity, Counter32, Gauge32, IpAddress, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, enterprises, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "TimeTicks", "Bits", "Unsigned32", "MibIdentifier", "iso", "ModuleIdentity", "Counter32", "Gauge32", "IpAddress", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "enterprises", "ObjectIdentity")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
sentry4 = ModuleIdentity((1, 3, 6, 1, 4, 1, 1718, 4))
sentry4.setRevisions(('2016-11-18 23:40', '2016-09-21 23:00', '2016-04-25 21:40', '2015-02-19 10:00', '2014-12-23 11:30',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: sentry4.setRevisionsDescriptions(('Added the st4UnitProductMfrDate object. Adjusted the upper limit of voltage objects to 600 Volts.', 'Fixed the st4InputCordOutOfBalanceEvent notification definition to include the correct objects.', 'Added support for the PRO1 product series. Added the st4SystemProductSeries and st4InputCordNominalPowerFactor objects. Adjusted the upper limit of cord and line current objects to 600 Amps. Adjusted the lower limit of nominal voltage objects to 0 Volts. Corrected the lower limit of several configuration objects from -1 to 0.', 'Corrected the UNITS and value range of temperature sensor threshold objects.', 'Initial release.',))
if mibBuilder.loadTexts: sentry4.setLastUpdated('201611182340Z')
if mibBuilder.loadTexts: sentry4.setOrganization('Server Technology, Inc.')
if mibBuilder.loadTexts: sentry4.setContactInfo('Server Technology, Inc. 1040 Sandhill Road Reno, NV 89521 Tel: (775) 284-2000 Fax: (775) 284-2065 Email: [email protected]')
if mibBuilder.loadTexts: sentry4.setDescription('This is the MIB module for the fourth generation of the Sentry product family. This includes the PRO1 and PRO2 series of Smart and Switched Cabinet Distribution Unit (CDU) and Power Distribution Unit (PDU) products.')
serverTech = MibIdentifier((1, 3, 6, 1, 4, 1, 1718))
class DeviceStatus(TextualConvention, Integer32):
description = 'Status returned by devices.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23))
namedValues = NamedValues(("normal", 0), ("disabled", 1), ("purged", 2), ("reading", 5), ("settle", 6), ("notFound", 7), ("lost", 8), ("readError", 9), ("noComm", 10), ("pwrError", 11), ("breakerTripped", 12), ("fuseBlown", 13), ("lowAlarm", 14), ("lowWarning", 15), ("highWarning", 16), ("highAlarm", 17), ("alarm", 18), ("underLimit", 19), ("overLimit", 20), ("nvmFail", 21), ("profileError", 22), ("conflict", 23))
class DeviceState(TextualConvention, Integer32):
description = 'On or off state of devices.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2))
namedValues = NamedValues(("unknown", 0), ("on", 1), ("off", 2))
class EventNotificationMethods(TextualConvention, Bits):
description = 'Bits to enable event notification methods.'
status = 'current'
namedValues = NamedValues(("snmpTrap", 0), ("email", 1))
st4Objects = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1))
st4System = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1))
st4SystemConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1))
st4SystemProductName = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4SystemProductName.setStatus('current')
if mibBuilder.loadTexts: st4SystemProductName.setDescription('The product name.')
st4SystemLocation = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4SystemLocation.setStatus('current')
if mibBuilder.loadTexts: st4SystemLocation.setDescription('The location of the system.')
st4SystemFirmwareVersion = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4SystemFirmwareVersion.setStatus('current')
if mibBuilder.loadTexts: st4SystemFirmwareVersion.setDescription('The firmware version.')
st4SystemFirmwareBuildInfo = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4SystemFirmwareBuildInfo.setStatus('current')
if mibBuilder.loadTexts: st4SystemFirmwareBuildInfo.setDescription('The firmware build information.')
st4SystemNICSerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4SystemNICSerialNumber.setStatus('current')
if mibBuilder.loadTexts: st4SystemNICSerialNumber.setDescription('The serial number of the network interface card.')
st4SystemNICHardwareInfo = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4SystemNICHardwareInfo.setStatus('current')
if mibBuilder.loadTexts: st4SystemNICHardwareInfo.setDescription('Hardware information about the network interface card.')
st4SystemProductSeries = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("pro1", 0), ("pro2", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4SystemProductSeries.setStatus('current')
if mibBuilder.loadTexts: st4SystemProductSeries.setDescription('The product series.')
st4SystemFeatures = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 10), Bits().clone(namedValues=NamedValues(("smartLoadShedding", 0), ("reserved", 1), ("outletControlInhibit", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4SystemFeatures.setStatus('current')
if mibBuilder.loadTexts: st4SystemFeatures.setDescription('The key-activated features enabled in the system.')
st4SystemFeatureKey = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 19))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4SystemFeatureKey.setStatus('current')
if mibBuilder.loadTexts: st4SystemFeatureKey.setDescription('A valid feature key written to this object will enable a feature in the system. A valid feature key is in the form xxxx-xxxx-xxxx-xxxx. A read of this object returns an empty string.')
st4SystemConfigModifiedCount = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4SystemConfigModifiedCount.setStatus('current')
if mibBuilder.loadTexts: st4SystemConfigModifiedCount.setDescription('The total number of times the system configuration has changed.')
st4SystemUnitCount = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4SystemUnitCount.setStatus('current')
if mibBuilder.loadTexts: st4SystemUnitCount.setDescription('The number of units in the system.')
st4Units = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2))
st4UnitCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 1))
st4UnitConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2), )
if mibBuilder.loadTexts: st4UnitConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4UnitConfigTable.setDescription('Unit configuration table.')
st4UnitConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"))
if mibBuilder.loadTexts: st4UnitConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4UnitConfigEntry.setDescription('Configuration objects for a particular unit.')
st4UnitIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6)))
if mibBuilder.loadTexts: st4UnitIndex.setStatus('current')
if mibBuilder.loadTexts: st4UnitIndex.setDescription('Unit index. A=1, B=2, C=3, D=4, E=5, F=6.')
st4UnitID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4UnitID.setStatus('current')
if mibBuilder.loadTexts: st4UnitID.setDescription('The internal ID of the unit. Format=A.')
st4UnitName = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4UnitName.setStatus('current')
if mibBuilder.loadTexts: st4UnitName.setDescription('The name of the unit.')
st4UnitProductSN = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4UnitProductSN.setStatus('current')
if mibBuilder.loadTexts: st4UnitProductSN.setDescription('The product serial number of the unit.')
st4UnitModel = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4UnitModel.setStatus('current')
if mibBuilder.loadTexts: st4UnitModel.setDescription('The model of the unit.')
st4UnitAssetTag = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4UnitAssetTag.setStatus('current')
if mibBuilder.loadTexts: st4UnitAssetTag.setDescription('The asset tag of the unit.')
st4UnitType = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("masterPdu", 0), ("linkPdu", 1), ("controller", 2), ("emcu", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4UnitType.setStatus('current')
if mibBuilder.loadTexts: st4UnitType.setDescription('The type of the unit.')
st4UnitCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 8), Bits().clone(namedValues=NamedValues(("dc", 0), ("phase3", 1), ("wye", 2), ("delta", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4UnitCapabilities.setStatus('current')
if mibBuilder.loadTexts: st4UnitCapabilities.setDescription('The capabilities of the unit.')
st4UnitProductMfrDate = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4UnitProductMfrDate.setStatus('current')
if mibBuilder.loadTexts: st4UnitProductMfrDate.setDescription('The product manufacture date in YYYY-MM-DD (ISO 8601 format).')
st4UnitDisplayOrientation = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("normal", 0), ("inverted", 1), ("auto", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4UnitDisplayOrientation.setStatus('current')
if mibBuilder.loadTexts: st4UnitDisplayOrientation.setDescription('The orientation of all displays in the unit.')
st4UnitOutletSequenceOrder = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("normal", 0), ("reversed", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4UnitOutletSequenceOrder.setStatus('current')
if mibBuilder.loadTexts: st4UnitOutletSequenceOrder.setDescription('The sequencing order of all outlets in the unit.')
st4UnitInputCordCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 30), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4UnitInputCordCount.setStatus('current')
if mibBuilder.loadTexts: st4UnitInputCordCount.setDescription('The number of power input cords into the unit.')
st4UnitTempSensorCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 31), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4UnitTempSensorCount.setStatus('current')
if mibBuilder.loadTexts: st4UnitTempSensorCount.setDescription('The number of external temperature sensors supported by the unit.')
st4UnitHumidSensorCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 32), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4UnitHumidSensorCount.setStatus('current')
if mibBuilder.loadTexts: st4UnitHumidSensorCount.setDescription('The number of external humidity sensors supported by the unit.')
st4UnitWaterSensorCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 33), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4UnitWaterSensorCount.setStatus('current')
if mibBuilder.loadTexts: st4UnitWaterSensorCount.setDescription('The number of external water sensors supported by the unit.')
st4UnitCcSensorCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 34), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4UnitCcSensorCount.setStatus('current')
if mibBuilder.loadTexts: st4UnitCcSensorCount.setDescription('The number of external contact closure sensors supported by the unit.')
st4UnitAdcSensorCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 35), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4UnitAdcSensorCount.setStatus('current')
if mibBuilder.loadTexts: st4UnitAdcSensorCount.setDescription('The number of analog-to-digital converter sensors supported by the unit.')
st4UnitMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 3), )
if mibBuilder.loadTexts: st4UnitMonitorTable.setStatus('current')
if mibBuilder.loadTexts: st4UnitMonitorTable.setDescription('Unit monitor table.')
st4UnitMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"))
if mibBuilder.loadTexts: st4UnitMonitorEntry.setStatus('current')
if mibBuilder.loadTexts: st4UnitMonitorEntry.setDescription('Objects to monitor for a particular unit.')
st4UnitStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 3, 1, 1), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4UnitStatus.setStatus('current')
if mibBuilder.loadTexts: st4UnitStatus.setDescription('The status of the unit.')
st4UnitEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 4), )
if mibBuilder.loadTexts: st4UnitEventConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4UnitEventConfigTable.setDescription('Unit event configuration table.')
st4UnitEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"))
if mibBuilder.loadTexts: st4UnitEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4UnitEventConfigEntry.setDescription('Event configuration objects for a particular unit.')
st4UnitNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4UnitNotifications.setStatus('current')
if mibBuilder.loadTexts: st4UnitNotifications.setDescription('The notification methods enabled for unit events.')
st4InputCords = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3))
st4InputCordCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 1))
st4InputCordActivePowerHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setUnits('Watts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordActivePowerHysteresis.setStatus('current')
if mibBuilder.loadTexts: st4InputCordActivePowerHysteresis.setDescription('The active power hysteresis of the input cord in Watts.')
st4InputCordApparentPowerHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setUnits('Volt-Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordApparentPowerHysteresis.setStatus('current')
if mibBuilder.loadTexts: st4InputCordApparentPowerHysteresis.setDescription('The apparent power hysteresis of the input cord in Volt-Amps.')
st4InputCordPowerFactorHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 20))).setUnits('hundredths').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordPowerFactorHysteresis.setStatus('current')
if mibBuilder.loadTexts: st4InputCordPowerFactorHysteresis.setDescription('The power factor hysteresis of the input cord in hundredths.')
st4InputCordOutOfBalanceHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10))).setUnits('percent').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordOutOfBalanceHysteresis.setStatus('current')
if mibBuilder.loadTexts: st4InputCordOutOfBalanceHysteresis.setDescription('The 3 phase out-of-balance hysteresis of the input cord in percent.')
st4InputCordConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2), )
if mibBuilder.loadTexts: st4InputCordConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4InputCordConfigTable.setDescription('Input cord configuration table.')
st4InputCordConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"))
if mibBuilder.loadTexts: st4InputCordConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4InputCordConfigEntry.setDescription('Configuration objects for a particular input cord.')
st4InputCordIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4)))
if mibBuilder.loadTexts: st4InputCordIndex.setStatus('current')
if mibBuilder.loadTexts: st4InputCordIndex.setDescription('Input cord index. A=1, B=2, C=3, D=4.')
st4InputCordID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordID.setStatus('current')
if mibBuilder.loadTexts: st4InputCordID.setDescription('The internal ID of the input cord. Format=AA.')
st4InputCordName = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordName.setStatus('current')
if mibBuilder.loadTexts: st4InputCordName.setDescription('The name of the input cord.')
st4InputCordInletType = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordInletType.setStatus('current')
if mibBuilder.loadTexts: st4InputCordInletType.setDescription('The type of plug on the input cord, or socket for the input cord.')
st4InputCordNominalVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordNominalVoltage.setStatus('current')
if mibBuilder.loadTexts: st4InputCordNominalVoltage.setDescription('The user-configured nominal voltage of the input cord in tenth Volts.')
st4InputCordNominalVoltageMin = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setUnits('Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordNominalVoltageMin.setStatus('current')
if mibBuilder.loadTexts: st4InputCordNominalVoltageMin.setDescription('The factory-set minimum allowed for the user-configured nominal voltage of the input cord in Volts.')
st4InputCordNominalVoltageMax = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setUnits('Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordNominalVoltageMax.setStatus('current')
if mibBuilder.loadTexts: st4InputCordNominalVoltageMax.setDescription('The factory-set maximum allowed for the user-configured nominal voltage of the input cord in Volts.')
st4InputCordCurrentCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setUnits('Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordCurrentCapacity.setStatus('current')
if mibBuilder.loadTexts: st4InputCordCurrentCapacity.setDescription('The user-configured current capacity of the input cord in Amps.')
st4InputCordCurrentCapacityMax = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setUnits('Amps').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordCurrentCapacityMax.setStatus('current')
if mibBuilder.loadTexts: st4InputCordCurrentCapacityMax.setDescription('The factory-set maximum allowed for the user-configured current capacity of the input cord in Amps.')
st4InputCordPowerCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Volt-Amps').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordPowerCapacity.setStatus('current')
if mibBuilder.loadTexts: st4InputCordPowerCapacity.setDescription('The power capacity of the input cord in Volt-Amps. For DC products, this is identical to power capacity in Watts.')
st4InputCordNominalPowerFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('hundredths').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordNominalPowerFactor.setStatus('current')
if mibBuilder.loadTexts: st4InputCordNominalPowerFactor.setDescription('The user-configured estimated nominal power factor of the input cord in hundredths.')
st4InputCordLineCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordLineCount.setStatus('current')
if mibBuilder.loadTexts: st4InputCordLineCount.setDescription('The number of current-carrying lines in the input cord.')
st4InputCordPhaseCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordPhaseCount.setStatus('current')
if mibBuilder.loadTexts: st4InputCordPhaseCount.setDescription('The number of active phases from the lines in the input cord.')
st4InputCordOcpCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 12))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordOcpCount.setStatus('current')
if mibBuilder.loadTexts: st4InputCordOcpCount.setDescription('The number of over-current protectors downstream from the input cord.')
st4InputCordBranchCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 12))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordBranchCount.setStatus('current')
if mibBuilder.loadTexts: st4InputCordBranchCount.setDescription('The number of branches downstream from the input cord.')
st4InputCordOutletCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordOutletCount.setStatus('current')
if mibBuilder.loadTexts: st4InputCordOutletCount.setDescription('The number of outlets powered from the input cord.')
st4InputCordMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3), )
if mibBuilder.loadTexts: st4InputCordMonitorTable.setStatus('current')
if mibBuilder.loadTexts: st4InputCordMonitorTable.setDescription('Input cord monitor table.')
st4InputCordMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"))
if mibBuilder.loadTexts: st4InputCordMonitorEntry.setStatus('current')
if mibBuilder.loadTexts: st4InputCordMonitorEntry.setDescription('Objects to monitor for a particular input cord.')
st4InputCordState = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 1), DeviceState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordState.setStatus('current')
if mibBuilder.loadTexts: st4InputCordState.setDescription('The on/off state of the input cord.')
st4InputCordStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 2), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordStatus.setStatus('current')
if mibBuilder.loadTexts: st4InputCordStatus.setDescription('The status of the input cord.')
st4InputCordActivePower = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 50000))).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordActivePower.setStatus('current')
if mibBuilder.loadTexts: st4InputCordActivePower.setDescription('The measured active power of the input cord in Watts.')
st4InputCordActivePowerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 4), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordActivePowerStatus.setStatus('current')
if mibBuilder.loadTexts: st4InputCordActivePowerStatus.setDescription('The status of the measured active power of the input cord.')
st4InputCordApparentPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 50000))).setUnits('Volt-Amps').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordApparentPower.setStatus('current')
if mibBuilder.loadTexts: st4InputCordApparentPower.setDescription('The measured apparent power of the input cord in Volt-Amps.')
st4InputCordApparentPowerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 6), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordApparentPowerStatus.setStatus('current')
if mibBuilder.loadTexts: st4InputCordApparentPowerStatus.setDescription('The status of the measured apparent power of the input cord.')
st4InputCordPowerUtilized = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 1200))).setUnits('tenth percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordPowerUtilized.setStatus('current')
if mibBuilder.loadTexts: st4InputCordPowerUtilized.setDescription('The amount of the input cord power capacity used in tenth percent. For AC products, this is the ratio of the apparent power to the power capacity. For DC products, this is the ratio of the active power to the power capacity.')
st4InputCordPowerFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 100))).setUnits('hundredths').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordPowerFactor.setStatus('current')
if mibBuilder.loadTexts: st4InputCordPowerFactor.setDescription('The measured power factor of the input cord in hundredths.')
st4InputCordPowerFactorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 9), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordPowerFactorStatus.setStatus('current')
if mibBuilder.loadTexts: st4InputCordPowerFactorStatus.setDescription('The status of the measured power factor of the input cord.')
st4InputCordEnergy = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 2147483647))).setUnits('tenth Kilowatt-Hours').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordEnergy.setStatus('current')
if mibBuilder.loadTexts: st4InputCordEnergy.setDescription('The total energy consumption of loads through the input cord in tenth Kilowatt-Hours.')
st4InputCordFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 1000))).setUnits('tenth Hertz').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordFrequency.setStatus('current')
if mibBuilder.loadTexts: st4InputCordFrequency.setDescription('The frequency of the input cord voltage in tenth Hertz.')
st4InputCordOutOfBalance = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 2000))).setUnits('tenth percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordOutOfBalance.setStatus('current')
if mibBuilder.loadTexts: st4InputCordOutOfBalance.setDescription('The current imbalance on the lines of the input cord in tenth percent.')
st4InputCordOutOfBalanceStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 13), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4InputCordOutOfBalanceStatus.setStatus('current')
if mibBuilder.loadTexts: st4InputCordOutOfBalanceStatus.setDescription('The status of the current imbalance on the lines of the input cord.')
st4InputCordEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4), )
if mibBuilder.loadTexts: st4InputCordEventConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4InputCordEventConfigTable.setDescription('Input cord event configuration table.')
st4InputCordEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"))
if mibBuilder.loadTexts: st4InputCordEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4InputCordEventConfigEntry.setDescription('Event configuration objects for a particular input cord.')
st4InputCordNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordNotifications.setStatus('current')
if mibBuilder.loadTexts: st4InputCordNotifications.setDescription('The notification methods enabled for input cord events.')
st4InputCordActivePowerLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Watts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordActivePowerLowAlarm.setStatus('current')
if mibBuilder.loadTexts: st4InputCordActivePowerLowAlarm.setDescription('The active power low alarm threshold of the input cord in Watts.')
st4InputCordActivePowerLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Watts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordActivePowerLowWarning.setStatus('current')
if mibBuilder.loadTexts: st4InputCordActivePowerLowWarning.setDescription('The active power low warning threshold of the input cord in Watts.')
st4InputCordActivePowerHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Watts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordActivePowerHighWarning.setStatus('current')
if mibBuilder.loadTexts: st4InputCordActivePowerHighWarning.setDescription('The active power high warning threshold of the input cord in Watts.')
st4InputCordActivePowerHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Watts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordActivePowerHighAlarm.setStatus('current')
if mibBuilder.loadTexts: st4InputCordActivePowerHighAlarm.setDescription('The active power high alarm threshold of the input cord in Watts.')
st4InputCordApparentPowerLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Volt-Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordApparentPowerLowAlarm.setStatus('current')
if mibBuilder.loadTexts: st4InputCordApparentPowerLowAlarm.setDescription('The apparent power low alarm threshold of the input cord in Volt-Amps.')
st4InputCordApparentPowerLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Volt-Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordApparentPowerLowWarning.setStatus('current')
if mibBuilder.loadTexts: st4InputCordApparentPowerLowWarning.setDescription('The apparent power low warning threshold of the input cord in Volt-Amps.')
st4InputCordApparentPowerHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Volt-Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordApparentPowerHighWarning.setStatus('current')
if mibBuilder.loadTexts: st4InputCordApparentPowerHighWarning.setDescription('The apparent power high warning threshold of the input cord in Volt-Amps.')
st4InputCordApparentPowerHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Volt-Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordApparentPowerHighAlarm.setStatus('current')
if mibBuilder.loadTexts: st4InputCordApparentPowerHighAlarm.setDescription('The apparent power high alarm threshold of the input cord in Volt-Amps.')
st4InputCordPowerFactorLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('hundredths').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordPowerFactorLowAlarm.setStatus('current')
if mibBuilder.loadTexts: st4InputCordPowerFactorLowAlarm.setDescription('The power factor low alarm threshold of the input cord in hundredths.')
st4InputCordPowerFactorLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('hundredths').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordPowerFactorLowWarning.setStatus('current')
if mibBuilder.loadTexts: st4InputCordPowerFactorLowWarning.setDescription('The power factor low warning threshold of the input cord in hundredths.')
st4InputCordOutOfBalanceHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordOutOfBalanceHighWarning.setStatus('current')
if mibBuilder.loadTexts: st4InputCordOutOfBalanceHighWarning.setDescription('The 3 phase out-of-balance high warning threshold of the input cord in percent.')
st4InputCordOutOfBalanceHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4InputCordOutOfBalanceHighAlarm.setStatus('current')
if mibBuilder.loadTexts: st4InputCordOutOfBalanceHighAlarm.setDescription('The 3 phase out-of-balance high alarm threshold of the input cord in percent.')
st4Lines = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4))
st4LineCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 1))
st4LineCurrentHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('tenth Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4LineCurrentHysteresis.setStatus('current')
if mibBuilder.loadTexts: st4LineCurrentHysteresis.setDescription('The current hysteresis of the line in tenth Amps.')
st4LineConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2), )
if mibBuilder.loadTexts: st4LineConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4LineConfigTable.setDescription('Line configuration table.')
st4LineConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4LineIndex"))
if mibBuilder.loadTexts: st4LineConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4LineConfigEntry.setDescription('Configuration objects for a particular line.')
st4LineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4)))
if mibBuilder.loadTexts: st4LineIndex.setStatus('current')
if mibBuilder.loadTexts: st4LineIndex.setDescription('Line index. L1=1, L2=2, L3=3, N=4.')
st4LineID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 3)).setFixedLength(3)).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4LineID.setStatus('current')
if mibBuilder.loadTexts: st4LineID.setDescription('The internal ID of the line. Format=AAN.')
st4LineLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4LineLabel.setStatus('current')
if mibBuilder.loadTexts: st4LineLabel.setDescription('The system label assigned to the line for identification.')
st4LineCurrentCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setUnits('Amps').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4LineCurrentCapacity.setStatus('current')
if mibBuilder.loadTexts: st4LineCurrentCapacity.setDescription('The current capacity of the line in Amps.')
st4LineMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3), )
if mibBuilder.loadTexts: st4LineMonitorTable.setStatus('current')
if mibBuilder.loadTexts: st4LineMonitorTable.setDescription('Line monitor table.')
st4LineMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4LineIndex"))
if mibBuilder.loadTexts: st4LineMonitorEntry.setStatus('current')
if mibBuilder.loadTexts: st4LineMonitorEntry.setDescription('Objects to monitor for a particular line.')
st4LineState = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1, 1), DeviceState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4LineState.setStatus('current')
if mibBuilder.loadTexts: st4LineState.setDescription('The on/off state of the line.')
st4LineStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1, 2), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4LineStatus.setStatus('current')
if mibBuilder.loadTexts: st4LineStatus.setDescription('The status of the line.')
st4LineCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 60000))).setUnits('hundredth Amps').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4LineCurrent.setStatus('current')
if mibBuilder.loadTexts: st4LineCurrent.setDescription('The measured current on the line in hundredth Amps.')
st4LineCurrentStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1, 4), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4LineCurrentStatus.setStatus('current')
if mibBuilder.loadTexts: st4LineCurrentStatus.setDescription('The status of the measured current on the line.')
st4LineCurrentUtilized = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 1200))).setUnits('tenth percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4LineCurrentUtilized.setStatus('current')
if mibBuilder.loadTexts: st4LineCurrentUtilized.setDescription('The amount of the line current capacity used in tenth percent.')
st4LineEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4), )
if mibBuilder.loadTexts: st4LineEventConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4LineEventConfigTable.setDescription('Line event configuration table.')
st4LineEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4LineIndex"))
if mibBuilder.loadTexts: st4LineEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4LineEventConfigEntry.setDescription('Event configuration objects for a particular line.')
st4LineNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4LineNotifications.setStatus('current')
if mibBuilder.loadTexts: st4LineNotifications.setDescription('The notification methods enabled for line events.')
st4LineCurrentLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4LineCurrentLowAlarm.setStatus('current')
if mibBuilder.loadTexts: st4LineCurrentLowAlarm.setDescription('The current low alarm threshold of the line in tenth Amps.')
st4LineCurrentLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4LineCurrentLowWarning.setStatus('current')
if mibBuilder.loadTexts: st4LineCurrentLowWarning.setDescription('The current low warning threshold of the line in tenth Amps.')
st4LineCurrentHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4LineCurrentHighWarning.setStatus('current')
if mibBuilder.loadTexts: st4LineCurrentHighWarning.setDescription('The current high warning threshold of the line in tenth Amps.')
st4LineCurrentHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4LineCurrentHighAlarm.setStatus('current')
if mibBuilder.loadTexts: st4LineCurrentHighAlarm.setDescription('The current high alarm threshold of the line in tenth Amps.')
st4Phases = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5))
st4PhaseCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 1))
st4PhaseVoltageHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setUnits('tenth Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4PhaseVoltageHysteresis.setStatus('current')
if mibBuilder.loadTexts: st4PhaseVoltageHysteresis.setDescription('The voltage hysteresis of the phase in tenth Volts.')
st4PhasePowerFactorHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 20))).setUnits('hundredths').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4PhasePowerFactorHysteresis.setStatus('current')
if mibBuilder.loadTexts: st4PhasePowerFactorHysteresis.setDescription('The power factor hysteresis of the phase in hundredths.')
st4PhaseConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2), )
if mibBuilder.loadTexts: st4PhaseConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4PhaseConfigTable.setDescription('Phase configuration table.')
st4PhaseConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4PhaseIndex"))
if mibBuilder.loadTexts: st4PhaseConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4PhaseConfigEntry.setDescription('Configuration objects for a particular phase.')
st4PhaseIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6)))
if mibBuilder.loadTexts: st4PhaseIndex.setStatus('current')
if mibBuilder.loadTexts: st4PhaseIndex.setDescription('Phase index. Three-phase AC Wye: L1-N=1, L2-N=2, L3-N=3; Three-phase AC Delta: L1-L2=1, L2-L3=2, L3-L1=3; Single Phase: L1-R=1; DC: L1-R=1; Three-phase AC Wye & Delta: L1-N=1, L2-N=2, L3-N=3, L1-L2=4, L2-L3=5; L3-L1=6.')
st4PhaseID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 3)).setFixedLength(3)).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhaseID.setStatus('current')
if mibBuilder.loadTexts: st4PhaseID.setDescription('The internal ID of the phase. Format=AAN.')
st4PhaseLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhaseLabel.setStatus('current')
if mibBuilder.loadTexts: st4PhaseLabel.setDescription('The system label assigned to the phase for identification.')
st4PhaseNominalVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhaseNominalVoltage.setStatus('current')
if mibBuilder.loadTexts: st4PhaseNominalVoltage.setDescription('The nominal voltage of the phase in tenth Volts.')
st4PhaseBranchCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 12))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhaseBranchCount.setStatus('current')
if mibBuilder.loadTexts: st4PhaseBranchCount.setDescription('The number of branches downstream from the phase.')
st4PhaseOutletCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhaseOutletCount.setStatus('current')
if mibBuilder.loadTexts: st4PhaseOutletCount.setDescription('The number of outlets powered from the phase.')
st4PhaseMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3), )
if mibBuilder.loadTexts: st4PhaseMonitorTable.setStatus('current')
if mibBuilder.loadTexts: st4PhaseMonitorTable.setDescription('Phase monitor table.')
st4PhaseMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4PhaseIndex"))
if mibBuilder.loadTexts: st4PhaseMonitorEntry.setStatus('current')
if mibBuilder.loadTexts: st4PhaseMonitorEntry.setDescription('Objects to monitor for a particular phase.')
st4PhaseState = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 1), DeviceState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhaseState.setStatus('current')
if mibBuilder.loadTexts: st4PhaseState.setDescription('The on/off state of the phase.')
st4PhaseStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 2), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhaseStatus.setStatus('current')
if mibBuilder.loadTexts: st4PhaseStatus.setDescription('The status of the phase.')
st4PhaseVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 6000))).setUnits('tenth Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhaseVoltage.setStatus('current')
if mibBuilder.loadTexts: st4PhaseVoltage.setDescription('The measured voltage on the phase in tenth Volts.')
st4PhaseVoltageStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 4), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhaseVoltageStatus.setStatus('current')
if mibBuilder.loadTexts: st4PhaseVoltageStatus.setDescription('The status of the measured voltage on the phase.')
st4PhaseVoltageDeviation = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1000, 1000))).setUnits('tenth percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhaseVoltageDeviation.setStatus('current')
if mibBuilder.loadTexts: st4PhaseVoltageDeviation.setDescription('The deviation from the nominal voltage on the phase in tenth percent.')
st4PhaseCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 30000))).setUnits('hundredth Amps').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhaseCurrent.setStatus('current')
if mibBuilder.loadTexts: st4PhaseCurrent.setDescription('The measured current on the phase in hundredth Amps.')
st4PhaseCurrentCrestFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 250))).setUnits('tenths').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhaseCurrentCrestFactor.setStatus('current')
if mibBuilder.loadTexts: st4PhaseCurrentCrestFactor.setDescription('The measured crest factor of the current waveform on the phase in tenths.')
st4PhaseActivePower = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 25000))).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhaseActivePower.setStatus('current')
if mibBuilder.loadTexts: st4PhaseActivePower.setDescription('The measured active power on the phase in Watts.')
st4PhaseApparentPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 25000))).setUnits('Volt-Amps').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhaseApparentPower.setStatus('current')
if mibBuilder.loadTexts: st4PhaseApparentPower.setDescription('The measured apparent power on the phase in Volt-Amps.')
st4PhasePowerFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 100))).setUnits('hundredths').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhasePowerFactor.setStatus('current')
if mibBuilder.loadTexts: st4PhasePowerFactor.setDescription('The measured power factor on the phase in hundredths.')
st4PhasePowerFactorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 11), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhasePowerFactorStatus.setStatus('current')
if mibBuilder.loadTexts: st4PhasePowerFactorStatus.setDescription('The status of the measured power factor on the phase.')
st4PhaseReactance = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("unknown", 0), ("capacitive", 1), ("inductive", 2), ("resistive", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhaseReactance.setStatus('current')
if mibBuilder.loadTexts: st4PhaseReactance.setDescription('The status of the measured reactance of the phase.')
st4PhaseEnergy = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 2147483647))).setUnits('tenth Kilowatt-Hours').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4PhaseEnergy.setStatus('current')
if mibBuilder.loadTexts: st4PhaseEnergy.setDescription('The total energy consumption of loads through the phase in tenth Kilowatt-Hours.')
st4PhaseEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4), )
if mibBuilder.loadTexts: st4PhaseEventConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4PhaseEventConfigTable.setDescription('Phase event configuration table.')
st4PhaseEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4PhaseIndex"))
if mibBuilder.loadTexts: st4PhaseEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4PhaseEventConfigEntry.setDescription('Event configuration objects for a particular phase.')
st4PhaseNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4PhaseNotifications.setStatus('current')
if mibBuilder.loadTexts: st4PhaseNotifications.setDescription('The notification methods enabled for phase events.')
st4PhaseVoltageLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4PhaseVoltageLowAlarm.setStatus('current')
if mibBuilder.loadTexts: st4PhaseVoltageLowAlarm.setDescription('The current low alarm threshold of the phase in tenth Volts.')
st4PhaseVoltageLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4PhaseVoltageLowWarning.setStatus('current')
if mibBuilder.loadTexts: st4PhaseVoltageLowWarning.setDescription('The current low warning threshold of the phase in tenth Volts.')
st4PhaseVoltageHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4PhaseVoltageHighWarning.setStatus('current')
if mibBuilder.loadTexts: st4PhaseVoltageHighWarning.setDescription('The current high warning threshold of the phase in tenth Volts.')
st4PhaseVoltageHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4PhaseVoltageHighAlarm.setStatus('current')
if mibBuilder.loadTexts: st4PhaseVoltageHighAlarm.setDescription('The current high alarm threshold of the phase in tenth Volts.')
st4PhasePowerFactorLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('hundredths').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4PhasePowerFactorLowAlarm.setStatus('current')
if mibBuilder.loadTexts: st4PhasePowerFactorLowAlarm.setDescription('The low power factor alarm threshold of the phase in hundredths.')
st4PhasePowerFactorLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('hundredths').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4PhasePowerFactorLowWarning.setStatus('current')
if mibBuilder.loadTexts: st4PhasePowerFactorLowWarning.setDescription('The low power factor warning threshold of the phase in hundredths.')
st4OverCurrentProtectors = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6))
st4OcpCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 1))
st4OcpConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2), )
if mibBuilder.loadTexts: st4OcpConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4OcpConfigTable.setDescription('Over-current protector configuration table.')
st4OcpConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4OcpIndex"))
if mibBuilder.loadTexts: st4OcpConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4OcpConfigEntry.setDescription('Configuration objects for a particular over-current protector.')
st4OcpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64)))
if mibBuilder.loadTexts: st4OcpIndex.setStatus('current')
if mibBuilder.loadTexts: st4OcpIndex.setDescription('Over-current protector index.')
st4OcpID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 4))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OcpID.setStatus('current')
if mibBuilder.loadTexts: st4OcpID.setDescription('The internal ID of the over-current protector. Format=AAN[N].')
st4OcpLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OcpLabel.setStatus('current')
if mibBuilder.loadTexts: st4OcpLabel.setDescription('The system label assigned to the over-current protector for identification.')
st4OcpType = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("fuse", 0), ("breaker", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OcpType.setStatus('current')
if mibBuilder.loadTexts: st4OcpType.setDescription('The type of over-current protector.')
st4OcpCurrentCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 125))).setUnits('Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OcpCurrentCapacity.setStatus('current')
if mibBuilder.loadTexts: st4OcpCurrentCapacity.setDescription('The user-configured current capacity of the over-current protector in Amps.')
st4OcpCurrentCapacityMax = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 125))).setUnits('Amps').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OcpCurrentCapacityMax.setStatus('current')
if mibBuilder.loadTexts: st4OcpCurrentCapacityMax.setDescription('The factory-set maximum allowed for the user-configured current capacity of the over-current protector in Amps.')
st4OcpBranchCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 12))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OcpBranchCount.setStatus('current')
if mibBuilder.loadTexts: st4OcpBranchCount.setDescription('The number of branches downstream from the over-current protector.')
st4OcpOutletCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OcpOutletCount.setStatus('current')
if mibBuilder.loadTexts: st4OcpOutletCount.setDescription('The number of outlets powered from the over-current protector.')
st4OcpMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 3), )
if mibBuilder.loadTexts: st4OcpMonitorTable.setStatus('current')
if mibBuilder.loadTexts: st4OcpMonitorTable.setDescription('Over-current protector monitor table.')
st4OcpMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4OcpIndex"))
if mibBuilder.loadTexts: st4OcpMonitorEntry.setStatus('current')
if mibBuilder.loadTexts: st4OcpMonitorEntry.setDescription('Objects to monitor for a particular over-current protector.')
st4OcpStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 3, 1, 1), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OcpStatus.setStatus('current')
if mibBuilder.loadTexts: st4OcpStatus.setDescription('The status of the over-current protector.')
st4OcpEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 4), )
if mibBuilder.loadTexts: st4OcpEventConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4OcpEventConfigTable.setDescription('Over-current protector event configuration table.')
st4OcpEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4OcpIndex"))
if mibBuilder.loadTexts: st4OcpEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4OcpEventConfigEntry.setDescription('Event configuration objects for a particular over-current protector.')
st4OcpNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OcpNotifications.setStatus('current')
if mibBuilder.loadTexts: st4OcpNotifications.setDescription('The notification methods enabled for over-current protector events.')
st4Branches = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7))
st4BranchCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 1))
st4BranchCurrentHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('tenth Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4BranchCurrentHysteresis.setStatus('current')
if mibBuilder.loadTexts: st4BranchCurrentHysteresis.setDescription('The current hysteresis of the branch in tenth Amps.')
st4BranchConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2), )
if mibBuilder.loadTexts: st4BranchConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4BranchConfigTable.setDescription('Branch configuration table.')
st4BranchConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4BranchIndex"))
if mibBuilder.loadTexts: st4BranchConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4BranchConfigEntry.setDescription('Configuration objects for a particular branch.')
st4BranchIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64)))
if mibBuilder.loadTexts: st4BranchIndex.setStatus('current')
if mibBuilder.loadTexts: st4BranchIndex.setDescription('Branch index.')
st4BranchID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 4))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4BranchID.setStatus('current')
if mibBuilder.loadTexts: st4BranchID.setDescription('The internal ID of the branch. Format=AAN[N].')
st4BranchLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4BranchLabel.setStatus('current')
if mibBuilder.loadTexts: st4BranchLabel.setDescription('The system label assigned to the branch for identification.')
st4BranchCurrentCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 125))).setUnits('Amps').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4BranchCurrentCapacity.setStatus('current')
if mibBuilder.loadTexts: st4BranchCurrentCapacity.setDescription('The current capacity of the branch in Amps.')
st4BranchPhaseID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 3)).setFixedLength(3)).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4BranchPhaseID.setStatus('current')
if mibBuilder.loadTexts: st4BranchPhaseID.setDescription('The internal ID of the phase powering this branch. Format=AAN.')
st4BranchOcpID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 21), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 4))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4BranchOcpID.setStatus('current')
if mibBuilder.loadTexts: st4BranchOcpID.setDescription('The internal ID of the over-current protector powering this outlet. Format=AAN[N].')
st4BranchOutletCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 30), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4BranchOutletCount.setStatus('current')
if mibBuilder.loadTexts: st4BranchOutletCount.setDescription('The number of outlets powered from the branch.')
st4BranchMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3), )
if mibBuilder.loadTexts: st4BranchMonitorTable.setStatus('current')
if mibBuilder.loadTexts: st4BranchMonitorTable.setDescription('Branch monitor table.')
st4BranchMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4BranchIndex"))
if mibBuilder.loadTexts: st4BranchMonitorEntry.setStatus('current')
if mibBuilder.loadTexts: st4BranchMonitorEntry.setDescription('Objects to monitor for a particular branch.')
st4BranchState = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1, 1), DeviceState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4BranchState.setStatus('current')
if mibBuilder.loadTexts: st4BranchState.setDescription('The on/off state of the branch.')
st4BranchStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1, 2), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4BranchStatus.setStatus('current')
if mibBuilder.loadTexts: st4BranchStatus.setDescription('The status of the branch.')
st4BranchCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 12500))).setUnits('hundredth Amps').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4BranchCurrent.setStatus('current')
if mibBuilder.loadTexts: st4BranchCurrent.setDescription('The measured current on the branch in hundredth Amps.')
st4BranchCurrentStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1, 4), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4BranchCurrentStatus.setStatus('current')
if mibBuilder.loadTexts: st4BranchCurrentStatus.setDescription('The status of the measured current on the branch.')
st4BranchCurrentUtilized = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 1200))).setUnits('tenth percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4BranchCurrentUtilized.setStatus('current')
if mibBuilder.loadTexts: st4BranchCurrentUtilized.setDescription('The amount of the branch current capacity used in tenth percent.')
st4BranchEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4), )
if mibBuilder.loadTexts: st4BranchEventConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4BranchEventConfigTable.setDescription('Branch event configuration table.')
st4BranchEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4BranchIndex"))
if mibBuilder.loadTexts: st4BranchEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4BranchEventConfigEntry.setDescription('Event configuration objects for a particular branch.')
st4BranchNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4BranchNotifications.setStatus('current')
if mibBuilder.loadTexts: st4BranchNotifications.setDescription('The notification methods enabled for branch events.')
st4BranchCurrentLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1250))).setUnits('tenth Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4BranchCurrentLowAlarm.setStatus('current')
if mibBuilder.loadTexts: st4BranchCurrentLowAlarm.setDescription('The current low alarm threshold of the branch in tenth Amps.')
st4BranchCurrentLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1250))).setUnits('tenth Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4BranchCurrentLowWarning.setStatus('current')
if mibBuilder.loadTexts: st4BranchCurrentLowWarning.setDescription('The current low warning threshold of the branch in tenth Amps.')
st4BranchCurrentHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1250))).setUnits('tenth Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4BranchCurrentHighWarning.setStatus('current')
if mibBuilder.loadTexts: st4BranchCurrentHighWarning.setDescription('The current high warning threshold of the branch in tenth Amps.')
st4BranchCurrentHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1250))).setUnits('tenth Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4BranchCurrentHighAlarm.setStatus('current')
if mibBuilder.loadTexts: st4BranchCurrentHighAlarm.setDescription('The current high alarm threshold of the branch in tenth Amps.')
st4Outlets = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8))
st4OutletCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1))
st4OutletCurrentHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('tenth Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletCurrentHysteresis.setStatus('current')
if mibBuilder.loadTexts: st4OutletCurrentHysteresis.setDescription('The current hysteresis of the outlet in tenth Amps.')
st4OutletActivePowerHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setUnits('Watts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletActivePowerHysteresis.setStatus('current')
if mibBuilder.loadTexts: st4OutletActivePowerHysteresis.setDescription('The power hysteresis of the outlet in Watts.')
st4OutletPowerFactorHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 20))).setUnits('hundredths').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletPowerFactorHysteresis.setStatus('current')
if mibBuilder.loadTexts: st4OutletPowerFactorHysteresis.setDescription('The power factor hysteresis of the outlet in hundredths.')
st4OutletSequenceInterval = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletSequenceInterval.setStatus('current')
if mibBuilder.loadTexts: st4OutletSequenceInterval.setDescription('The power-on sequencing interval for all outlets in seconds.')
st4OutletRebootDelay = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 600))).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletRebootDelay.setStatus('current')
if mibBuilder.loadTexts: st4OutletRebootDelay.setDescription('The reboot delay for all outlets in seconds.')
st4OutletStateChangeLogging = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletStateChangeLogging.setStatus('current')
if mibBuilder.loadTexts: st4OutletStateChangeLogging.setDescription('Enables or disables informational Outlet State Change event logging.')
st4OutletConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2), )
if mibBuilder.loadTexts: st4OutletConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4OutletConfigTable.setDescription('Outlet configuration table.')
st4OutletConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4OutletIndex"))
if mibBuilder.loadTexts: st4OutletConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4OutletConfigEntry.setDescription('Configuration objects for a particular outlet.')
st4OutletIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 128)))
if mibBuilder.loadTexts: st4OutletIndex.setStatus('current')
if mibBuilder.loadTexts: st4OutletIndex.setDescription('Outlet index.')
st4OutletID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 5))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletID.setStatus('current')
if mibBuilder.loadTexts: st4OutletID.setDescription('The internal ID of the outlet. Format=AAN[N[N]].')
st4OutletName = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletName.setStatus('current')
if mibBuilder.loadTexts: st4OutletName.setDescription('The name of the outlet.')
st4OutletCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 5), Bits().clone(namedValues=NamedValues(("switched", 0), ("pops", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletCapabilities.setStatus('current')
if mibBuilder.loadTexts: st4OutletCapabilities.setDescription('The capabilities of the outlet.')
st4OutletSocketType = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletSocketType.setStatus('current')
if mibBuilder.loadTexts: st4OutletSocketType.setDescription('The socket type of the outlet.')
st4OutletCurrentCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 125))).setUnits('Amps').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletCurrentCapacity.setStatus('current')
if mibBuilder.loadTexts: st4OutletCurrentCapacity.setDescription('The current capacity of the outlet in Amps.')
st4OutletPowerCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10000))).setUnits('Volt-Amps').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletPowerCapacity.setStatus('current')
if mibBuilder.loadTexts: st4OutletPowerCapacity.setDescription('The power capacity of the outlet in Volt-Amps. For DC products, this is identical to power capacity in Watts.')
st4OutletWakeupState = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("on", 0), ("off", 1), ("last", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletWakeupState.setStatus('current')
if mibBuilder.loadTexts: st4OutletWakeupState.setDescription('The wakeup state of the outlet.')
st4OutletPostOnDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 900))).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletPostOnDelay.setStatus('current')
if mibBuilder.loadTexts: st4OutletPostOnDelay.setDescription('The post-on delay of the outlet in seconds.')
st4OutletPhaseID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 30), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 3)).setFixedLength(3)).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletPhaseID.setStatus('current')
if mibBuilder.loadTexts: st4OutletPhaseID.setDescription('The internal ID of the phase powering this outlet. Format=AAN.')
st4OutletOcpID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 31), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 4))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletOcpID.setStatus('current')
if mibBuilder.loadTexts: st4OutletOcpID.setDescription('The internal ID of the over-current protector powering this outlet. Format=AAN[N].')
st4OutletBranchID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 32), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 4))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletBranchID.setStatus('current')
if mibBuilder.loadTexts: st4OutletBranchID.setDescription('The internal ID of the branch powering this outlet. Format=AAN[N].')
st4OutletMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3), )
if mibBuilder.loadTexts: st4OutletMonitorTable.setStatus('current')
if mibBuilder.loadTexts: st4OutletMonitorTable.setDescription('Outlet monitor table.')
st4OutletMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4OutletIndex"))
if mibBuilder.loadTexts: st4OutletMonitorEntry.setStatus('current')
if mibBuilder.loadTexts: st4OutletMonitorEntry.setDescription('Objects to monitor for a particular outlet.')
st4OutletState = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 1), DeviceState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletState.setStatus('current')
if mibBuilder.loadTexts: st4OutletState.setDescription('The on/off state of the outlet.')
st4OutletStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 2), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletStatus.setStatus('current')
if mibBuilder.loadTexts: st4OutletStatus.setDescription('The status of the outlet.')
st4OutletCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 12500))).setUnits('hundredth Amps').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletCurrent.setStatus('current')
if mibBuilder.loadTexts: st4OutletCurrent.setDescription('The measured current on the outlet in hundredth Amps.')
st4OutletCurrentStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 4), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletCurrentStatus.setStatus('current')
if mibBuilder.loadTexts: st4OutletCurrentStatus.setDescription('The status of the measured current on the outlet.')
st4OutletCurrentUtilized = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 1200))).setUnits('tenth percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletCurrentUtilized.setStatus('current')
if mibBuilder.loadTexts: st4OutletCurrentUtilized.setDescription('The amount of the outlet current capacity used in tenth percent.')
st4OutletVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 6000))).setUnits('tenth Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletVoltage.setStatus('current')
if mibBuilder.loadTexts: st4OutletVoltage.setDescription('The measured voltage of the outlet in tenth Volts.')
st4OutletActivePower = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 10000))).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletActivePower.setStatus('current')
if mibBuilder.loadTexts: st4OutletActivePower.setDescription('The measured active power of the outlet in Watts.')
st4OutletActivePowerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 8), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletActivePowerStatus.setStatus('current')
if mibBuilder.loadTexts: st4OutletActivePowerStatus.setDescription('The status of the measured active power of the outlet.')
st4OutletApparentPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 10000))).setUnits('Volt-Amps').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletApparentPower.setStatus('current')
if mibBuilder.loadTexts: st4OutletApparentPower.setDescription('The measured apparent power of the outlet in Volt-Amps.')
st4OutletPowerFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 100))).setUnits('hundredths').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletPowerFactor.setStatus('current')
if mibBuilder.loadTexts: st4OutletPowerFactor.setDescription('The measured power factor of the outlet in hundredths.')
st4OutletPowerFactorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 11), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletPowerFactorStatus.setStatus('current')
if mibBuilder.loadTexts: st4OutletPowerFactorStatus.setDescription('The status of the measured power factor of the outlet.')
st4OutletCurrentCrestFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 250))).setUnits('tenths').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletCurrentCrestFactor.setStatus('current')
if mibBuilder.loadTexts: st4OutletCurrentCrestFactor.setDescription('The measured crest factor of the outlet in tenths.')
st4OutletReactance = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("unknown", 0), ("capacitive", 1), ("inductive", 2), ("resistive", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletReactance.setStatus('current')
if mibBuilder.loadTexts: st4OutletReactance.setDescription('The status of the measured reactance of the outlet.')
st4OutletEnergy = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 2147483647))).setUnits('Watt-Hours').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletEnergy.setStatus('current')
if mibBuilder.loadTexts: st4OutletEnergy.setDescription('The total energy consumption of the device plugged into the outlet in Watt-Hours.')
st4OutletEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4), )
if mibBuilder.loadTexts: st4OutletEventConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4OutletEventConfigTable.setDescription('Outlet event configuration table.')
st4OutletEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4OutletIndex"))
if mibBuilder.loadTexts: st4OutletEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4OutletEventConfigEntry.setDescription('Event configuration objects for a particular outlet.')
st4OutletNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletNotifications.setStatus('current')
if mibBuilder.loadTexts: st4OutletNotifications.setDescription('The notification methods enabled for outlet events.')
st4OutletCurrentLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1250))).setUnits('tenth Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletCurrentLowAlarm.setStatus('current')
if mibBuilder.loadTexts: st4OutletCurrentLowAlarm.setDescription('The current low alarm threshold of the outlet in tenth Amps.')
st4OutletCurrentLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1250))).setUnits('tenth Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletCurrentLowWarning.setStatus('current')
if mibBuilder.loadTexts: st4OutletCurrentLowWarning.setDescription('The current low warning threshold of the outlet in tenth Amps.')
st4OutletCurrentHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1250))).setUnits('tenth Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletCurrentHighWarning.setStatus('current')
if mibBuilder.loadTexts: st4OutletCurrentHighWarning.setDescription('The current high warning threshold of the outlet in tenth Amps.')
st4OutletCurrentHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1250))).setUnits('tenth Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletCurrentHighAlarm.setStatus('current')
if mibBuilder.loadTexts: st4OutletCurrentHighAlarm.setDescription('The current high alarm threshold of the outlet in tenth Amps.')
st4OutletActivePowerLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10000))).setUnits('Watts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletActivePowerLowAlarm.setStatus('current')
if mibBuilder.loadTexts: st4OutletActivePowerLowAlarm.setDescription('The active power low alarm threshold of the outlet in Watts.')
st4OutletActivePowerLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10000))).setUnits('Watts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletActivePowerLowWarning.setStatus('current')
if mibBuilder.loadTexts: st4OutletActivePowerLowWarning.setDescription('The active power low warning threshold of the outlet in Watts.')
st4OutletActivePowerHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10000))).setUnits('Watts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletActivePowerHighWarning.setStatus('current')
if mibBuilder.loadTexts: st4OutletActivePowerHighWarning.setDescription('The active power high warning threshold of the outlet in Watts.')
st4OutletActivePowerHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10000))).setUnits('Watts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletActivePowerHighAlarm.setStatus('current')
if mibBuilder.loadTexts: st4OutletActivePowerHighAlarm.setDescription('The active power high alarm threshold of the outlet in Watts.')
st4OutletPowerFactorLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('hundredths').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletPowerFactorLowAlarm.setStatus('current')
if mibBuilder.loadTexts: st4OutletPowerFactorLowAlarm.setDescription('The low power factor alarm threshold of the outlet in hundredths.')
st4OutletPowerFactorLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('hundredths').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletPowerFactorLowWarning.setStatus('current')
if mibBuilder.loadTexts: st4OutletPowerFactorLowWarning.setDescription('The low power factor warning threshold of the outlet in hundredths.')
st4OutletControlTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 5), )
if mibBuilder.loadTexts: st4OutletControlTable.setStatus('current')
if mibBuilder.loadTexts: st4OutletControlTable.setDescription('Outlet control table.')
st4OutletControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 5, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4OutletIndex"))
if mibBuilder.loadTexts: st4OutletControlEntry.setStatus('current')
if mibBuilder.loadTexts: st4OutletControlEntry.setDescription('Objects for control of a particular outlet.')
st4OutletControlState = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 5, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=NamedValues(("notSet", 0), ("fixedOn", 1), ("idleOff", 2), ("idleOn", 3), ("wakeOff", 4), ("wakeOn", 5), ("ocpOff", 6), ("ocpOn", 7), ("pendOn", 8), ("pendOff", 9), ("off", 10), ("on", 11), ("reboot", 12), ("shutdown", 13), ("lockedOff", 14), ("lockedOn", 15), ("eventOff", 16), ("eventOn", 17), ("eventReboot", 18), ("eventShutdown", 19)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4OutletControlState.setStatus('current')
if mibBuilder.loadTexts: st4OutletControlState.setDescription('The control state of the outlet.')
st4OutletControlAction = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("none", 0), ("on", 1), ("off", 2), ("reboot", 3), ("queueOn", 4), ("queueOff", 5), ("queueReboot", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletControlAction.setStatus('current')
if mibBuilder.loadTexts: st4OutletControlAction.setDescription('An action to change the control state of the outlet, or to queue an action.')
st4OutletCommonControl = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 6))
st4OutletQueueControl = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 6, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("clear", 0), ("commit", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4OutletQueueControl.setStatus('current')
if mibBuilder.loadTexts: st4OutletQueueControl.setDescription('An action to clear or commit queued outlet control actions. A read of this object returns clear(0) if queue is empty, and commit(1) if the queue is not empty.')
st4TemperatureSensors = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9))
st4TempSensorCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 1))
st4TempSensorHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 54))).setUnits('degrees').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4TempSensorHysteresis.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorHysteresis.setDescription('The temperature hysteresis of the sensor in degrees, using the scale selected by st4TempSensorScale.')
st4TempSensorScale = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("celsius", 0), ("fahrenheit", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4TempSensorScale.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorScale.setDescription('The current scale used for all temperature values.')
st4TempSensorConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2), )
if mibBuilder.loadTexts: st4TempSensorConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorConfigTable.setDescription('Temperature sensor configuration table.')
st4TempSensorConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4TempSensorIndex"))
if mibBuilder.loadTexts: st4TempSensorConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorConfigEntry.setDescription('Configuration objects for a particular temperature sensor.')
st4TempSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2)))
if mibBuilder.loadTexts: st4TempSensorIndex.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorIndex.setDescription('Temperature sensor index.')
st4TempSensorID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4TempSensorID.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorID.setDescription('The internal ID of the temperature sensor. Format=AN.')
st4TempSensorName = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4TempSensorName.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorName.setDescription('The name of the temperature sensor.')
st4TempSensorValueMin = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-40, 253))).setUnits('degrees').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4TempSensorValueMin.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorValueMin.setDescription('The minimum temperature limit of the sensor in degrees, using the scale selected by st4TempSensorScale.')
st4TempSensorValueMax = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-40, 253))).setUnits('degrees').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4TempSensorValueMax.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorValueMax.setDescription('The maximum temperature limit of the sensor in degrees, using the scale selected by st4TempSensorScale.')
st4TempSensorMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 3), )
if mibBuilder.loadTexts: st4TempSensorMonitorTable.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorMonitorTable.setDescription('Temperature sensor monitor table.')
st4TempSensorMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4TempSensorIndex"))
if mibBuilder.loadTexts: st4TempSensorMonitorEntry.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorMonitorEntry.setDescription('Objects to monitor for a particular temperature sensor.')
st4TempSensorValue = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-410, 2540))).setUnits('tenth degrees').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4TempSensorValue.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorValue.setDescription('The measured temperature on the sensor in tenth degrees using the scale selected by st4TempSensorScale. -410 means the temperature reading is invalid.')
st4TempSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 3, 1, 2), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4TempSensorStatus.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorStatus.setDescription('The status of the temperature sensor.')
st4TempSensorEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4), )
if mibBuilder.loadTexts: st4TempSensorEventConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorEventConfigTable.setDescription('Temperature sensor event configuration table.')
st4TempSensorEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4TempSensorIndex"))
if mibBuilder.loadTexts: st4TempSensorEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorEventConfigEntry.setDescription('Event configuration objects for a particular temperature sensor.')
st4TempSensorNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4TempSensorNotifications.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorNotifications.setDescription('The notification methods enabled for temperature sensor events.')
st4TempSensorLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-40, 253))).setUnits('degrees').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4TempSensorLowAlarm.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorLowAlarm.setDescription('The low alarm threshold of the temperature sensor in degrees.')
st4TempSensorLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-40, 253))).setUnits('degrees').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4TempSensorLowWarning.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorLowWarning.setDescription('The low warning threshold of the temperature sensor in degrees.')
st4TempSensorHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-40, 253))).setUnits('degrees').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4TempSensorHighWarning.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorHighWarning.setDescription('The high warning threshold of the temperature sensor in degrees.')
st4TempSensorHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-40, 253))).setUnits('degrees').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4TempSensorHighAlarm.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorHighAlarm.setDescription('The high alarm threshold of the temperature sensor in degrees.')
st4HumiditySensors = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10))
st4HumidSensorCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 1))
st4HumidSensorHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 20))).setUnits('percentage relative humidity').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4HumidSensorHysteresis.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorHysteresis.setDescription('The humidity hysteresis of the sensor in percent relative humidity.')
st4HumidSensorConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 2), )
if mibBuilder.loadTexts: st4HumidSensorConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorConfigTable.setDescription('Humidity sensor configuration table.')
st4HumidSensorConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4HumidSensorIndex"))
if mibBuilder.loadTexts: st4HumidSensorConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorConfigEntry.setDescription('Configuration objects for a particular humidity sensor.')
st4HumidSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2)))
if mibBuilder.loadTexts: st4HumidSensorIndex.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorIndex.setDescription('Humidity sensor index.')
st4HumidSensorID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4HumidSensorID.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorID.setDescription('The internal ID of the humidity sensor. Format=AN.')
st4HumidSensorName = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4HumidSensorName.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorName.setDescription('The name of the humidity sensor.')
st4HumidSensorMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 3), )
if mibBuilder.loadTexts: st4HumidSensorMonitorTable.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorMonitorTable.setDescription('Humidity sensor monitor table.')
st4HumidSensorMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4HumidSensorIndex"))
if mibBuilder.loadTexts: st4HumidSensorMonitorEntry.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorMonitorEntry.setDescription('Objects to monitor for a particular humidity sensor.')
st4HumidSensorValue = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 100))).setUnits('percentage relative humidity').setMaxAccess("readonly")
if mibBuilder.loadTexts: st4HumidSensorValue.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorValue.setDescription('The measured humidity on the sensor in percentage relative humidity.')
st4HumidSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 3, 1, 2), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4HumidSensorStatus.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorStatus.setDescription('The status of the humidity sensor.')
st4HumidSensorEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4), )
if mibBuilder.loadTexts: st4HumidSensorEventConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorEventConfigTable.setDescription('Humidity sensor event configuration table.')
st4HumidSensorEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4HumidSensorIndex"))
if mibBuilder.loadTexts: st4HumidSensorEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorEventConfigEntry.setDescription('Event configuration objects for a particular humidity sensor.')
st4HumidSensorNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4HumidSensorNotifications.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorNotifications.setDescription('The notification methods enabled for humidity sensor events.')
st4HumidSensorLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percentage relative humidity').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4HumidSensorLowAlarm.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorLowAlarm.setDescription('The low alarm threshold of the humidity sensor in percentage relative humidity.')
st4HumidSensorLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percentage relative humidity').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4HumidSensorLowWarning.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorLowWarning.setDescription('The low warning threshold of the humidity sensor in percentage relative humidity.')
st4HumidSensorHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percentage relative humidity').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4HumidSensorHighWarning.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorHighWarning.setDescription('The high warning threshold of the humidity sensor in percentage relative humidity.')
st4HumidSensorHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percentage relative humidity').setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4HumidSensorHighAlarm.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorHighAlarm.setDescription('The high alarm threshold of the humidity sensor in percentage relative humidity.')
st4WaterSensors = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11))
st4WaterSensorCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 1))
st4WaterSensorConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 2), )
if mibBuilder.loadTexts: st4WaterSensorConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4WaterSensorConfigTable.setDescription('Water sensor configuration table.')
st4WaterSensorConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4WaterSensorIndex"))
if mibBuilder.loadTexts: st4WaterSensorConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4WaterSensorConfigEntry.setDescription('Configuration objects for a particular water sensor.')
st4WaterSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1)))
if mibBuilder.loadTexts: st4WaterSensorIndex.setStatus('current')
if mibBuilder.loadTexts: st4WaterSensorIndex.setDescription('Water sensor index.')
st4WaterSensorID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4WaterSensorID.setStatus('current')
if mibBuilder.loadTexts: st4WaterSensorID.setDescription('The internal ID of the water sensor. Format=AN.')
st4WaterSensorName = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4WaterSensorName.setStatus('current')
if mibBuilder.loadTexts: st4WaterSensorName.setDescription('The name of the water sensor.')
st4WaterSensorMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 3), )
if mibBuilder.loadTexts: st4WaterSensorMonitorTable.setStatus('current')
if mibBuilder.loadTexts: st4WaterSensorMonitorTable.setDescription('Water sensor monitor table.')
st4WaterSensorMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4WaterSensorIndex"))
if mibBuilder.loadTexts: st4WaterSensorMonitorEntry.setStatus('current')
if mibBuilder.loadTexts: st4WaterSensorMonitorEntry.setDescription('Objects to monitor for a particular water sensor.')
st4WaterSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 3, 1, 1), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4WaterSensorStatus.setStatus('current')
if mibBuilder.loadTexts: st4WaterSensorStatus.setDescription('The status of the water sensor.')
st4WaterSensorEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 4), )
if mibBuilder.loadTexts: st4WaterSensorEventConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4WaterSensorEventConfigTable.setDescription('Water sensor event configuration table.')
st4WaterSensorEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4WaterSensorIndex"))
if mibBuilder.loadTexts: st4WaterSensorEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4WaterSensorEventConfigEntry.setDescription('Event configuration objects for a particular water sensor.')
st4WaterSensorNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4WaterSensorNotifications.setStatus('current')
if mibBuilder.loadTexts: st4WaterSensorNotifications.setDescription('The notification methods enabled for water sensor events.')
st4ContactClosureSensors = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12))
st4CcSensorCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 1))
st4CcSensorConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 2), )
if mibBuilder.loadTexts: st4CcSensorConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4CcSensorConfigTable.setDescription('Contact closure sensor configuration table.')
st4CcSensorConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4CcSensorIndex"))
if mibBuilder.loadTexts: st4CcSensorConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4CcSensorConfigEntry.setDescription('Configuration objects for a particular contact closure sensor.')
st4CcSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4)))
if mibBuilder.loadTexts: st4CcSensorIndex.setStatus('current')
if mibBuilder.loadTexts: st4CcSensorIndex.setDescription('Contact closure sensor index.')
st4CcSensorID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4CcSensorID.setStatus('current')
if mibBuilder.loadTexts: st4CcSensorID.setDescription('The internal ID of the contact closure sensor. Format=AN.')
st4CcSensorName = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4CcSensorName.setStatus('current')
if mibBuilder.loadTexts: st4CcSensorName.setDescription('The name of the contact closure sensor.')
st4CcSensorMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 3), )
if mibBuilder.loadTexts: st4CcSensorMonitorTable.setStatus('current')
if mibBuilder.loadTexts: st4CcSensorMonitorTable.setDescription('Contact closure sensor monitor table.')
st4CcSensorMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4CcSensorIndex"))
if mibBuilder.loadTexts: st4CcSensorMonitorEntry.setStatus('current')
if mibBuilder.loadTexts: st4CcSensorMonitorEntry.setDescription('Objects to monitor for a particular contact closure sensor.')
st4CcSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 3, 1, 1), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4CcSensorStatus.setStatus('current')
if mibBuilder.loadTexts: st4CcSensorStatus.setDescription('The status of the contact closure.')
st4CcSensorEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 4), )
if mibBuilder.loadTexts: st4CcSensorEventConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4CcSensorEventConfigTable.setDescription('Contact closure sensor event configuration table.')
st4CcSensorEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4CcSensorIndex"))
if mibBuilder.loadTexts: st4CcSensorEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4CcSensorEventConfigEntry.setDescription('Event configuration objects for a particular contact closure sensor.')
st4CcSensorNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4CcSensorNotifications.setStatus('current')
if mibBuilder.loadTexts: st4CcSensorNotifications.setDescription('The notification methods enabled for contact closure sensor events.')
st4AnalogToDigitalConvSensors = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13))
st4AdcSensorCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 1))
st4AdcSensorHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 20))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4AdcSensorHysteresis.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorHysteresis.setDescription('The 8-bit count hysteresis of the analog-to-digital converter sensor.')
st4AdcSensorConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 2), )
if mibBuilder.loadTexts: st4AdcSensorConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorConfigTable.setDescription('Analog-to-digital converter sensor configuration table.')
st4AdcSensorConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4AdcSensorIndex"))
if mibBuilder.loadTexts: st4AdcSensorConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorConfigEntry.setDescription('Configuration objects for a particular analog-to-digital converter sensor.')
st4AdcSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1)))
if mibBuilder.loadTexts: st4AdcSensorIndex.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorIndex.setDescription('Analog-to-digital converter sensor index.')
st4AdcSensorID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4AdcSensorID.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorID.setDescription('The internal ID of the analog-to-digital converter sensor. Format=AN.')
st4AdcSensorName = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4AdcSensorName.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorName.setDescription('The name of the analog-to-digital converter sensor.')
st4AdcSensorMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 3), )
if mibBuilder.loadTexts: st4AdcSensorMonitorTable.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorMonitorTable.setDescription('Analog-to-digital converter sensor monitor table.')
st4AdcSensorMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4AdcSensorIndex"))
if mibBuilder.loadTexts: st4AdcSensorMonitorEntry.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorMonitorEntry.setDescription('Objects to monitor for a particular analog-to-digital converter sensor.')
st4AdcSensorValue = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4AdcSensorValue.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorValue.setDescription('The 8-bit value from the analog-to-digital converter sensor.')
st4AdcSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 3, 1, 2), DeviceStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4AdcSensorStatus.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorStatus.setDescription('The status of the analog-to-digital converter sensor.')
st4AdcSensorEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4), )
if mibBuilder.loadTexts: st4AdcSensorEventConfigTable.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorEventConfigTable.setDescription('Analog-to-digital converter sensor event configuration table.')
st4AdcSensorEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4AdcSensorIndex"))
if mibBuilder.loadTexts: st4AdcSensorEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorEventConfigEntry.setDescription('Event configuration objects for a particular analog-to-digital converter sensor.')
st4AdcSensorNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4AdcSensorNotifications.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorNotifications.setDescription('The notification methods enabled for analog-to-digital converter sensor events.')
st4AdcSensorLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4AdcSensorLowAlarm.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorLowAlarm.setDescription('The 8-bit value for the low alarm threshold of the analog-to-digital converter sensor.')
st4AdcSensorLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4AdcSensorLowWarning.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorLowWarning.setDescription('The 8-bit value for the low warning threshold of the analog-to-digital converter sensor.')
st4AdcSensorHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4AdcSensorHighWarning.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorHighWarning.setDescription('The 8-bit value for the high warning threshold of the analog-to-digital converter sensor.')
st4AdcSensorHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: st4AdcSensorHighAlarm.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorHighAlarm.setDescription('The 8-bit value for the high alarm threshold of the analog-to-digital converter sensor.')
st4EventInformation = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 99))
st4EventStatusText = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 99, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4EventStatusText.setStatus('current')
if mibBuilder.loadTexts: st4EventStatusText.setDescription('The text representation of the enumerated integer value of the most-relevant status or state object included in a trap. The value of this object is set only when sent with a trap. A read of this object will return a NULL string.')
st4EventStatusCondition = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 99, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("nonError", 0), ("error", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: st4EventStatusCondition.setStatus('current')
if mibBuilder.loadTexts: st4EventStatusCondition.setDescription('The condition of the enumerated integer value of the status object included in a trap. The value of this object is set only when sent with a trap. A read of this object will return zero.')
st4Notifications = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 100))
st4Events = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0))
st4UnitStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 1)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4UnitID"), ("Sentry4-MIB", "st4UnitName"), ("Sentry4-MIB", "st4UnitStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4UnitStatusEvent.setStatus('current')
if mibBuilder.loadTexts: st4UnitStatusEvent.setDescription('Unit status event.')
st4InputCordStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 2)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4InputCordID"), ("Sentry4-MIB", "st4InputCordName"), ("Sentry4-MIB", "st4InputCordState"), ("Sentry4-MIB", "st4InputCordStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4InputCordStatusEvent.setStatus('current')
if mibBuilder.loadTexts: st4InputCordStatusEvent.setDescription('Input cord status event.')
st4InputCordActivePowerEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 3)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4InputCordID"), ("Sentry4-MIB", "st4InputCordName"), ("Sentry4-MIB", "st4InputCordActivePower"), ("Sentry4-MIB", "st4InputCordActivePowerStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4InputCordActivePowerEvent.setStatus('current')
if mibBuilder.loadTexts: st4InputCordActivePowerEvent.setDescription('Input cord active power event.')
st4InputCordApparentPowerEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 4)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4InputCordID"), ("Sentry4-MIB", "st4InputCordName"), ("Sentry4-MIB", "st4InputCordApparentPower"), ("Sentry4-MIB", "st4InputCordApparentPowerStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4InputCordApparentPowerEvent.setStatus('current')
if mibBuilder.loadTexts: st4InputCordApparentPowerEvent.setDescription('Input cord apparent power event.')
st4InputCordPowerFactorEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 5)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4InputCordID"), ("Sentry4-MIB", "st4InputCordName"), ("Sentry4-MIB", "st4InputCordPowerFactor"), ("Sentry4-MIB", "st4InputCordPowerFactorStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4InputCordPowerFactorEvent.setStatus('current')
if mibBuilder.loadTexts: st4InputCordPowerFactorEvent.setDescription('Input cord power factor event.')
st4InputCordOutOfBalanceEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 6)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4InputCordID"), ("Sentry4-MIB", "st4InputCordName"), ("Sentry4-MIB", "st4InputCordOutOfBalance"), ("Sentry4-MIB", "st4InputCordOutOfBalanceStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4InputCordOutOfBalanceEvent.setStatus('current')
if mibBuilder.loadTexts: st4InputCordOutOfBalanceEvent.setDescription('Input cord out-of-balance event.')
st4LineStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 7)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4LineID"), ("Sentry4-MIB", "st4LineLabel"), ("Sentry4-MIB", "st4LineState"), ("Sentry4-MIB", "st4LineStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4LineStatusEvent.setStatus('current')
if mibBuilder.loadTexts: st4LineStatusEvent.setDescription('Line status event.')
st4LineCurrentEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 8)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4LineID"), ("Sentry4-MIB", "st4LineLabel"), ("Sentry4-MIB", "st4LineCurrent"), ("Sentry4-MIB", "st4LineCurrentStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4LineCurrentEvent.setStatus('current')
if mibBuilder.loadTexts: st4LineCurrentEvent.setDescription('Line current event.')
st4PhaseStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 9)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4PhaseID"), ("Sentry4-MIB", "st4PhaseLabel"), ("Sentry4-MIB", "st4PhaseState"), ("Sentry4-MIB", "st4PhaseStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4PhaseStatusEvent.setStatus('current')
if mibBuilder.loadTexts: st4PhaseStatusEvent.setDescription('Phase status event.')
st4PhaseVoltageEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 10)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4PhaseID"), ("Sentry4-MIB", "st4PhaseLabel"), ("Sentry4-MIB", "st4PhaseVoltage"), ("Sentry4-MIB", "st4PhaseVoltageStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4PhaseVoltageEvent.setStatus('current')
if mibBuilder.loadTexts: st4PhaseVoltageEvent.setDescription('Phase voltage event.')
st4PhasePowerFactorEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 11)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4PhaseID"), ("Sentry4-MIB", "st4PhaseLabel"), ("Sentry4-MIB", "st4PhasePowerFactor"), ("Sentry4-MIB", "st4PhasePowerFactorStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4PhasePowerFactorEvent.setStatus('current')
if mibBuilder.loadTexts: st4PhasePowerFactorEvent.setDescription('Phase voltage event.')
st4OcpStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 12)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4OcpID"), ("Sentry4-MIB", "st4OcpLabel"), ("Sentry4-MIB", "st4OcpStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4OcpStatusEvent.setStatus('current')
if mibBuilder.loadTexts: st4OcpStatusEvent.setDescription('Over-current protector status event.')
st4BranchStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 13)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4BranchID"), ("Sentry4-MIB", "st4BranchLabel"), ("Sentry4-MIB", "st4BranchState"), ("Sentry4-MIB", "st4BranchStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4BranchStatusEvent.setStatus('current')
if mibBuilder.loadTexts: st4BranchStatusEvent.setDescription('Branch status event.')
st4BranchCurrentEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 14)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4BranchID"), ("Sentry4-MIB", "st4BranchLabel"), ("Sentry4-MIB", "st4BranchCurrent"), ("Sentry4-MIB", "st4BranchCurrentStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4BranchCurrentEvent.setStatus('current')
if mibBuilder.loadTexts: st4BranchCurrentEvent.setDescription('Branch current event.')
st4OutletStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 15)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4OutletID"), ("Sentry4-MIB", "st4OutletName"), ("Sentry4-MIB", "st4OutletState"), ("Sentry4-MIB", "st4OutletStatus"), ("Sentry4-MIB", "st4OutletControlState"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4OutletStatusEvent.setStatus('current')
if mibBuilder.loadTexts: st4OutletStatusEvent.setDescription('Outlet status event.')
st4OutletStateChangeEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 16)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4OutletID"), ("Sentry4-MIB", "st4OutletName"), ("Sentry4-MIB", "st4OutletState"), ("Sentry4-MIB", "st4OutletStatus"), ("Sentry4-MIB", "st4OutletControlState"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4OutletStateChangeEvent.setStatus('current')
if mibBuilder.loadTexts: st4OutletStateChangeEvent.setDescription('Outlet state change event.')
st4OutletCurrentEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 17)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4OutletID"), ("Sentry4-MIB", "st4OutletName"), ("Sentry4-MIB", "st4OutletCurrent"), ("Sentry4-MIB", "st4OutletCurrentStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4OutletCurrentEvent.setStatus('current')
if mibBuilder.loadTexts: st4OutletCurrentEvent.setDescription('Outlet current event.')
st4OutletActivePowerEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 18)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4OutletID"), ("Sentry4-MIB", "st4OutletName"), ("Sentry4-MIB", "st4OutletActivePower"), ("Sentry4-MIB", "st4OutletActivePowerStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4OutletActivePowerEvent.setStatus('current')
if mibBuilder.loadTexts: st4OutletActivePowerEvent.setDescription('Outlet active power event.')
st4OutletPowerFactorEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 19)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4OutletID"), ("Sentry4-MIB", "st4OutletName"), ("Sentry4-MIB", "st4OutletPowerFactor"), ("Sentry4-MIB", "st4OutletPowerFactorStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4OutletPowerFactorEvent.setStatus('current')
if mibBuilder.loadTexts: st4OutletPowerFactorEvent.setDescription('Outlet power factor event.')
st4TempSensorEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 20)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4TempSensorID"), ("Sentry4-MIB", "st4TempSensorName"), ("Sentry4-MIB", "st4TempSensorValue"), ("Sentry4-MIB", "st4TempSensorStatus"), ("Sentry4-MIB", "st4TempSensorScale"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4TempSensorEvent.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorEvent.setDescription('Temperature sensor event.')
st4HumidSensorEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 21)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4HumidSensorID"), ("Sentry4-MIB", "st4HumidSensorName"), ("Sentry4-MIB", "st4HumidSensorValue"), ("Sentry4-MIB", "st4HumidSensorStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4HumidSensorEvent.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorEvent.setDescription('Humidity sensor event.')
st4WaterSensorStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 22)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4WaterSensorID"), ("Sentry4-MIB", "st4WaterSensorName"), ("Sentry4-MIB", "st4WaterSensorStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4WaterSensorStatusEvent.setStatus('current')
if mibBuilder.loadTexts: st4WaterSensorStatusEvent.setDescription('Water sensor status event.')
st4CcSensorStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 23)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4CcSensorID"), ("Sentry4-MIB", "st4CcSensorName"), ("Sentry4-MIB", "st4CcSensorStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4CcSensorStatusEvent.setStatus('current')
if mibBuilder.loadTexts: st4CcSensorStatusEvent.setDescription('Contact closure sensor status event.')
st4AdcSensorEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 24)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4AdcSensorID"), ("Sentry4-MIB", "st4AdcSensorName"), ("Sentry4-MIB", "st4AdcSensorValue"), ("Sentry4-MIB", "st4AdcSensorStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if mibBuilder.loadTexts: st4AdcSensorEvent.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorEvent.setDescription('Analog-to-digital converter sensor event.')
st4Conformance = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 200))
st4Groups = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1))
st4SystemObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 1)).setObjects(("Sentry4-MIB", "st4SystemProductName"), ("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4SystemFirmwareVersion"), ("Sentry4-MIB", "st4SystemFirmwareBuildInfo"), ("Sentry4-MIB", "st4SystemNICSerialNumber"), ("Sentry4-MIB", "st4SystemNICHardwareInfo"), ("Sentry4-MIB", "st4SystemProductSeries"), ("Sentry4-MIB", "st4SystemFeatures"), ("Sentry4-MIB", "st4SystemFeatureKey"), ("Sentry4-MIB", "st4SystemConfigModifiedCount"), ("Sentry4-MIB", "st4SystemUnitCount"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4SystemObjectsGroup = st4SystemObjectsGroup.setStatus('current')
if mibBuilder.loadTexts: st4SystemObjectsGroup.setDescription('System objects group.')
st4UnitObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 2)).setObjects(("Sentry4-MIB", "st4UnitID"), ("Sentry4-MIB", "st4UnitName"), ("Sentry4-MIB", "st4UnitProductSN"), ("Sentry4-MIB", "st4UnitModel"), ("Sentry4-MIB", "st4UnitAssetTag"), ("Sentry4-MIB", "st4UnitType"), ("Sentry4-MIB", "st4UnitCapabilities"), ("Sentry4-MIB", "st4UnitProductMfrDate"), ("Sentry4-MIB", "st4UnitDisplayOrientation"), ("Sentry4-MIB", "st4UnitOutletSequenceOrder"), ("Sentry4-MIB", "st4UnitInputCordCount"), ("Sentry4-MIB", "st4UnitTempSensorCount"), ("Sentry4-MIB", "st4UnitHumidSensorCount"), ("Sentry4-MIB", "st4UnitWaterSensorCount"), ("Sentry4-MIB", "st4UnitCcSensorCount"), ("Sentry4-MIB", "st4UnitAdcSensorCount"), ("Sentry4-MIB", "st4UnitStatus"), ("Sentry4-MIB", "st4UnitNotifications"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4UnitObjectsGroup = st4UnitObjectsGroup.setStatus('current')
if mibBuilder.loadTexts: st4UnitObjectsGroup.setDescription('Unit objects group.')
st4InputCordObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 3)).setObjects(("Sentry4-MIB", "st4InputCordActivePowerHysteresis"), ("Sentry4-MIB", "st4InputCordApparentPowerHysteresis"), ("Sentry4-MIB", "st4InputCordPowerFactorHysteresis"), ("Sentry4-MIB", "st4InputCordOutOfBalanceHysteresis"), ("Sentry4-MIB", "st4InputCordID"), ("Sentry4-MIB", "st4InputCordName"), ("Sentry4-MIB", "st4InputCordInletType"), ("Sentry4-MIB", "st4InputCordNominalVoltage"), ("Sentry4-MIB", "st4InputCordNominalVoltageMin"), ("Sentry4-MIB", "st4InputCordNominalVoltageMax"), ("Sentry4-MIB", "st4InputCordCurrentCapacity"), ("Sentry4-MIB", "st4InputCordCurrentCapacityMax"), ("Sentry4-MIB", "st4InputCordPowerCapacity"), ("Sentry4-MIB", "st4InputCordNominalPowerFactor"), ("Sentry4-MIB", "st4InputCordLineCount"), ("Sentry4-MIB", "st4InputCordPhaseCount"), ("Sentry4-MIB", "st4InputCordOcpCount"), ("Sentry4-MIB", "st4InputCordBranchCount"), ("Sentry4-MIB", "st4InputCordOutletCount"), ("Sentry4-MIB", "st4InputCordState"), ("Sentry4-MIB", "st4InputCordStatus"), ("Sentry4-MIB", "st4InputCordActivePower"), ("Sentry4-MIB", "st4InputCordActivePowerStatus"), ("Sentry4-MIB", "st4InputCordApparentPower"), ("Sentry4-MIB", "st4InputCordApparentPowerStatus"), ("Sentry4-MIB", "st4InputCordPowerUtilized"), ("Sentry4-MIB", "st4InputCordPowerFactor"), ("Sentry4-MIB", "st4InputCordPowerFactorStatus"), ("Sentry4-MIB", "st4InputCordEnergy"), ("Sentry4-MIB", "st4InputCordFrequency"), ("Sentry4-MIB", "st4InputCordOutOfBalance"), ("Sentry4-MIB", "st4InputCordOutOfBalanceStatus"), ("Sentry4-MIB", "st4InputCordNotifications"), ("Sentry4-MIB", "st4InputCordActivePowerLowAlarm"), ("Sentry4-MIB", "st4InputCordActivePowerLowWarning"), ("Sentry4-MIB", "st4InputCordActivePowerHighWarning"), ("Sentry4-MIB", "st4InputCordActivePowerHighAlarm"), ("Sentry4-MIB", "st4InputCordApparentPowerLowAlarm"), ("Sentry4-MIB", "st4InputCordApparentPowerLowWarning"), ("Sentry4-MIB", "st4InputCordApparentPowerHighWarning"), ("Sentry4-MIB", "st4InputCordApparentPowerHighAlarm"), ("Sentry4-MIB", "st4InputCordPowerFactorLowAlarm"), ("Sentry4-MIB", "st4InputCordPowerFactorLowWarning"), ("Sentry4-MIB", "st4InputCordOutOfBalanceHighWarning"), ("Sentry4-MIB", "st4InputCordOutOfBalanceHighAlarm"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4InputCordObjectsGroup = st4InputCordObjectsGroup.setStatus('current')
if mibBuilder.loadTexts: st4InputCordObjectsGroup.setDescription('Input cord objects group.')
st4LineObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 4)).setObjects(("Sentry4-MIB", "st4LineCurrentHysteresis"), ("Sentry4-MIB", "st4LineID"), ("Sentry4-MIB", "st4LineLabel"), ("Sentry4-MIB", "st4LineCurrentCapacity"), ("Sentry4-MIB", "st4LineState"), ("Sentry4-MIB", "st4LineStatus"), ("Sentry4-MIB", "st4LineCurrent"), ("Sentry4-MIB", "st4LineCurrentStatus"), ("Sentry4-MIB", "st4LineCurrentUtilized"), ("Sentry4-MIB", "st4LineNotifications"), ("Sentry4-MIB", "st4LineCurrentLowAlarm"), ("Sentry4-MIB", "st4LineCurrentLowWarning"), ("Sentry4-MIB", "st4LineCurrentHighWarning"), ("Sentry4-MIB", "st4LineCurrentHighAlarm"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4LineObjectsGroup = st4LineObjectsGroup.setStatus('current')
if mibBuilder.loadTexts: st4LineObjectsGroup.setDescription('Line objects group.')
st4PhaseObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 5)).setObjects(("Sentry4-MIB", "st4PhaseVoltageHysteresis"), ("Sentry4-MIB", "st4PhasePowerFactorHysteresis"), ("Sentry4-MIB", "st4PhaseID"), ("Sentry4-MIB", "st4PhaseLabel"), ("Sentry4-MIB", "st4PhaseNominalVoltage"), ("Sentry4-MIB", "st4PhaseBranchCount"), ("Sentry4-MIB", "st4PhaseOutletCount"), ("Sentry4-MIB", "st4PhaseState"), ("Sentry4-MIB", "st4PhaseStatus"), ("Sentry4-MIB", "st4PhaseVoltage"), ("Sentry4-MIB", "st4PhaseVoltageStatus"), ("Sentry4-MIB", "st4PhaseVoltageDeviation"), ("Sentry4-MIB", "st4PhaseCurrent"), ("Sentry4-MIB", "st4PhaseCurrentCrestFactor"), ("Sentry4-MIB", "st4PhaseActivePower"), ("Sentry4-MIB", "st4PhaseApparentPower"), ("Sentry4-MIB", "st4PhasePowerFactor"), ("Sentry4-MIB", "st4PhasePowerFactorStatus"), ("Sentry4-MIB", "st4PhaseReactance"), ("Sentry4-MIB", "st4PhaseEnergy"), ("Sentry4-MIB", "st4PhaseNotifications"), ("Sentry4-MIB", "st4PhaseVoltageLowAlarm"), ("Sentry4-MIB", "st4PhaseVoltageLowWarning"), ("Sentry4-MIB", "st4PhaseVoltageHighWarning"), ("Sentry4-MIB", "st4PhaseVoltageHighAlarm"), ("Sentry4-MIB", "st4PhasePowerFactorLowAlarm"), ("Sentry4-MIB", "st4PhasePowerFactorLowWarning"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4PhaseObjectsGroup = st4PhaseObjectsGroup.setStatus('current')
if mibBuilder.loadTexts: st4PhaseObjectsGroup.setDescription('Phase objects group.')
st4OcpObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 6)).setObjects(("Sentry4-MIB", "st4OcpID"), ("Sentry4-MIB", "st4OcpLabel"), ("Sentry4-MIB", "st4OcpType"), ("Sentry4-MIB", "st4OcpCurrentCapacity"), ("Sentry4-MIB", "st4OcpCurrentCapacityMax"), ("Sentry4-MIB", "st4OcpBranchCount"), ("Sentry4-MIB", "st4OcpOutletCount"), ("Sentry4-MIB", "st4OcpStatus"), ("Sentry4-MIB", "st4OcpNotifications"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4OcpObjectsGroup = st4OcpObjectsGroup.setStatus('current')
if mibBuilder.loadTexts: st4OcpObjectsGroup.setDescription('Over-current protector objects group.')
st4BranchObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 7)).setObjects(("Sentry4-MIB", "st4BranchCurrentHysteresis"), ("Sentry4-MIB", "st4BranchID"), ("Sentry4-MIB", "st4BranchLabel"), ("Sentry4-MIB", "st4BranchCurrentCapacity"), ("Sentry4-MIB", "st4BranchPhaseID"), ("Sentry4-MIB", "st4BranchOcpID"), ("Sentry4-MIB", "st4BranchOutletCount"), ("Sentry4-MIB", "st4BranchState"), ("Sentry4-MIB", "st4BranchStatus"), ("Sentry4-MIB", "st4BranchCurrent"), ("Sentry4-MIB", "st4BranchCurrentStatus"), ("Sentry4-MIB", "st4BranchCurrentUtilized"), ("Sentry4-MIB", "st4BranchNotifications"), ("Sentry4-MIB", "st4BranchCurrentLowAlarm"), ("Sentry4-MIB", "st4BranchCurrentLowWarning"), ("Sentry4-MIB", "st4BranchCurrentHighWarning"), ("Sentry4-MIB", "st4BranchCurrentHighAlarm"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4BranchObjectsGroup = st4BranchObjectsGroup.setStatus('current')
if mibBuilder.loadTexts: st4BranchObjectsGroup.setDescription('Branch objects group.')
st4OutletObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 8)).setObjects(("Sentry4-MIB", "st4OutletCurrentHysteresis"), ("Sentry4-MIB", "st4OutletActivePowerHysteresis"), ("Sentry4-MIB", "st4OutletPowerFactorHysteresis"), ("Sentry4-MIB", "st4OutletSequenceInterval"), ("Sentry4-MIB", "st4OutletRebootDelay"), ("Sentry4-MIB", "st4OutletStateChangeLogging"), ("Sentry4-MIB", "st4OutletID"), ("Sentry4-MIB", "st4OutletName"), ("Sentry4-MIB", "st4OutletCapabilities"), ("Sentry4-MIB", "st4OutletSocketType"), ("Sentry4-MIB", "st4OutletCurrentCapacity"), ("Sentry4-MIB", "st4OutletPowerCapacity"), ("Sentry4-MIB", "st4OutletWakeupState"), ("Sentry4-MIB", "st4OutletPostOnDelay"), ("Sentry4-MIB", "st4OutletPhaseID"), ("Sentry4-MIB", "st4OutletOcpID"), ("Sentry4-MIB", "st4OutletBranchID"), ("Sentry4-MIB", "st4OutletState"), ("Sentry4-MIB", "st4OutletStatus"), ("Sentry4-MIB", "st4OutletCurrent"), ("Sentry4-MIB", "st4OutletCurrentStatus"), ("Sentry4-MIB", "st4OutletCurrentUtilized"), ("Sentry4-MIB", "st4OutletVoltage"), ("Sentry4-MIB", "st4OutletActivePower"), ("Sentry4-MIB", "st4OutletActivePowerStatus"), ("Sentry4-MIB", "st4OutletApparentPower"), ("Sentry4-MIB", "st4OutletPowerFactor"), ("Sentry4-MIB", "st4OutletPowerFactorStatus"), ("Sentry4-MIB", "st4OutletCurrentCrestFactor"), ("Sentry4-MIB", "st4OutletReactance"), ("Sentry4-MIB", "st4OutletEnergy"), ("Sentry4-MIB", "st4OutletNotifications"), ("Sentry4-MIB", "st4OutletCurrentLowAlarm"), ("Sentry4-MIB", "st4OutletCurrentLowWarning"), ("Sentry4-MIB", "st4OutletCurrentHighWarning"), ("Sentry4-MIB", "st4OutletCurrentHighAlarm"), ("Sentry4-MIB", "st4OutletActivePowerLowAlarm"), ("Sentry4-MIB", "st4OutletActivePowerLowWarning"), ("Sentry4-MIB", "st4OutletActivePowerHighWarning"), ("Sentry4-MIB", "st4OutletActivePowerHighAlarm"), ("Sentry4-MIB", "st4OutletPowerFactorLowAlarm"), ("Sentry4-MIB", "st4OutletPowerFactorLowWarning"), ("Sentry4-MIB", "st4OutletControlState"), ("Sentry4-MIB", "st4OutletControlAction"), ("Sentry4-MIB", "st4OutletQueueControl"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4OutletObjectsGroup = st4OutletObjectsGroup.setStatus('current')
if mibBuilder.loadTexts: st4OutletObjectsGroup.setDescription('Outlet objects group.')
st4TempSensorObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 9)).setObjects(("Sentry4-MIB", "st4TempSensorHysteresis"), ("Sentry4-MIB", "st4TempSensorScale"), ("Sentry4-MIB", "st4TempSensorID"), ("Sentry4-MIB", "st4TempSensorName"), ("Sentry4-MIB", "st4TempSensorValueMin"), ("Sentry4-MIB", "st4TempSensorValueMax"), ("Sentry4-MIB", "st4TempSensorValue"), ("Sentry4-MIB", "st4TempSensorStatus"), ("Sentry4-MIB", "st4TempSensorNotifications"), ("Sentry4-MIB", "st4TempSensorLowAlarm"), ("Sentry4-MIB", "st4TempSensorLowWarning"), ("Sentry4-MIB", "st4TempSensorHighWarning"), ("Sentry4-MIB", "st4TempSensorHighAlarm"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4TempSensorObjectsGroup = st4TempSensorObjectsGroup.setStatus('current')
if mibBuilder.loadTexts: st4TempSensorObjectsGroup.setDescription('Temperature sensor objects group.')
st4HumidSensorObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 10)).setObjects(("Sentry4-MIB", "st4HumidSensorHysteresis"), ("Sentry4-MIB", "st4HumidSensorID"), ("Sentry4-MIB", "st4HumidSensorName"), ("Sentry4-MIB", "st4HumidSensorValue"), ("Sentry4-MIB", "st4HumidSensorStatus"), ("Sentry4-MIB", "st4HumidSensorNotifications"), ("Sentry4-MIB", "st4HumidSensorLowAlarm"), ("Sentry4-MIB", "st4HumidSensorLowWarning"), ("Sentry4-MIB", "st4HumidSensorHighWarning"), ("Sentry4-MIB", "st4HumidSensorHighAlarm"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4HumidSensorObjectsGroup = st4HumidSensorObjectsGroup.setStatus('current')
if mibBuilder.loadTexts: st4HumidSensorObjectsGroup.setDescription('Humidity sensor objects group.')
st4WaterSensorObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 11)).setObjects(("Sentry4-MIB", "st4WaterSensorID"), ("Sentry4-MIB", "st4WaterSensorName"), ("Sentry4-MIB", "st4WaterSensorStatus"), ("Sentry4-MIB", "st4WaterSensorNotifications"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4WaterSensorObjectsGroup = st4WaterSensorObjectsGroup.setStatus('current')
if mibBuilder.loadTexts: st4WaterSensorObjectsGroup.setDescription('Water sensor objects group.')
st4CcSensorObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 12)).setObjects(("Sentry4-MIB", "st4CcSensorID"), ("Sentry4-MIB", "st4CcSensorName"), ("Sentry4-MIB", "st4CcSensorStatus"), ("Sentry4-MIB", "st4CcSensorNotifications"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4CcSensorObjectsGroup = st4CcSensorObjectsGroup.setStatus('current')
if mibBuilder.loadTexts: st4CcSensorObjectsGroup.setDescription('Contact closure sensor objects group.')
st4AdcSensorObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 13)).setObjects(("Sentry4-MIB", "st4AdcSensorHysteresis"), ("Sentry4-MIB", "st4AdcSensorID"), ("Sentry4-MIB", "st4AdcSensorName"), ("Sentry4-MIB", "st4AdcSensorValue"), ("Sentry4-MIB", "st4AdcSensorStatus"), ("Sentry4-MIB", "st4AdcSensorNotifications"), ("Sentry4-MIB", "st4AdcSensorLowAlarm"), ("Sentry4-MIB", "st4AdcSensorLowWarning"), ("Sentry4-MIB", "st4AdcSensorHighWarning"), ("Sentry4-MIB", "st4AdcSensorHighAlarm"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4AdcSensorObjectsGroup = st4AdcSensorObjectsGroup.setStatus('current')
if mibBuilder.loadTexts: st4AdcSensorObjectsGroup.setDescription('Analog-to-digital converter sensor objects group.')
st4EventInfoObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 99)).setObjects(("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4EventInfoObjectsGroup = st4EventInfoObjectsGroup.setStatus('current')
if mibBuilder.loadTexts: st4EventInfoObjectsGroup.setDescription('Event information objects group.')
st4EventNotificationsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 100)).setObjects(("Sentry4-MIB", "st4UnitStatusEvent"), ("Sentry4-MIB", "st4InputCordStatusEvent"), ("Sentry4-MIB", "st4InputCordActivePowerEvent"), ("Sentry4-MIB", "st4InputCordApparentPowerEvent"), ("Sentry4-MIB", "st4InputCordPowerFactorEvent"), ("Sentry4-MIB", "st4InputCordOutOfBalanceEvent"), ("Sentry4-MIB", "st4LineStatusEvent"), ("Sentry4-MIB", "st4LineCurrentEvent"), ("Sentry4-MIB", "st4PhaseStatusEvent"), ("Sentry4-MIB", "st4PhaseVoltageEvent"), ("Sentry4-MIB", "st4PhasePowerFactorEvent"), ("Sentry4-MIB", "st4OcpStatusEvent"), ("Sentry4-MIB", "st4BranchStatusEvent"), ("Sentry4-MIB", "st4BranchCurrentEvent"), ("Sentry4-MIB", "st4OutletStatusEvent"), ("Sentry4-MIB", "st4OutletStateChangeEvent"), ("Sentry4-MIB", "st4OutletCurrentEvent"), ("Sentry4-MIB", "st4OutletActivePowerEvent"), ("Sentry4-MIB", "st4OutletPowerFactorEvent"), ("Sentry4-MIB", "st4TempSensorEvent"), ("Sentry4-MIB", "st4HumidSensorEvent"), ("Sentry4-MIB", "st4WaterSensorStatusEvent"), ("Sentry4-MIB", "st4CcSensorStatusEvent"), ("Sentry4-MIB", "st4AdcSensorEvent"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4EventNotificationsGroup = st4EventNotificationsGroup.setStatus('current')
if mibBuilder.loadTexts: st4EventNotificationsGroup.setDescription('Event notifications group.')
st4Compliances = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 200, 2))
st4ModuleCompliances = ModuleCompliance((1, 3, 6, 1, 4, 1, 1718, 4, 200, 2, 1)).setObjects(("Sentry4-MIB", "st4SystemObjectsGroup"), ("Sentry4-MIB", "st4UnitObjectsGroup"), ("Sentry4-MIB", "st4InputCordObjectsGroup"), ("Sentry4-MIB", "st4LineObjectsGroup"), ("Sentry4-MIB", "st4PhaseObjectsGroup"), ("Sentry4-MIB", "st4OcpObjectsGroup"), ("Sentry4-MIB", "st4BranchObjectsGroup"), ("Sentry4-MIB", "st4OutletObjectsGroup"), ("Sentry4-MIB", "st4TempSensorObjectsGroup"), ("Sentry4-MIB", "st4HumidSensorObjectsGroup"), ("Sentry4-MIB", "st4WaterSensorObjectsGroup"), ("Sentry4-MIB", "st4CcSensorObjectsGroup"), ("Sentry4-MIB", "st4AdcSensorObjectsGroup"), ("Sentry4-MIB", "st4EventInfoObjectsGroup"), ("Sentry4-MIB", "st4EventNotificationsGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4ModuleCompliances = st4ModuleCompliances.setStatus('current')
if mibBuilder.loadTexts: st4ModuleCompliances.setDescription('The requirements for conformance to the Sentry4-MIB.')
mibBuilder.exportSymbols("Sentry4-MIB", st4WaterSensorStatus=st4WaterSensorStatus, st4LineConfigEntry=st4LineConfigEntry, st4InputCordMonitorTable=st4InputCordMonitorTable, st4BranchLabel=st4BranchLabel, st4InputCordActivePowerLowAlarm=st4InputCordActivePowerLowAlarm, st4OcpStatus=st4OcpStatus, st4OcpCommonConfig=st4OcpCommonConfig, st4BranchConfigTable=st4BranchConfigTable, st4CcSensorEventConfigTable=st4CcSensorEventConfigTable, st4PhaseReactance=st4PhaseReactance, st4AdcSensorEventConfigTable=st4AdcSensorEventConfigTable, st4PhasePowerFactorEvent=st4PhasePowerFactorEvent, st4HumiditySensors=st4HumiditySensors, st4BranchCurrent=st4BranchCurrent, st4OutletCurrentHysteresis=st4OutletCurrentHysteresis, st4TempSensorConfigTable=st4TempSensorConfigTable, st4OcpEventConfigEntry=st4OcpEventConfigEntry, st4UnitConfigEntry=st4UnitConfigEntry, st4System=st4System, st4PhaseState=st4PhaseState, st4OutletConfigEntry=st4OutletConfigEntry, st4TempSensorObjectsGroup=st4TempSensorObjectsGroup, st4InputCordActivePowerHighAlarm=st4InputCordActivePowerHighAlarm, st4UnitEventConfigEntry=st4UnitEventConfigEntry, st4OutletIndex=st4OutletIndex, st4HumidSensorMonitorTable=st4HumidSensorMonitorTable, st4InputCordConfigTable=st4InputCordConfigTable, st4HumidSensorEventConfigTable=st4HumidSensorEventConfigTable, st4LineState=st4LineState, st4PhaseNominalVoltage=st4PhaseNominalVoltage, st4AdcSensorEvent=st4AdcSensorEvent, st4InputCordActivePowerHysteresis=st4InputCordActivePowerHysteresis, st4UnitCommonConfig=st4UnitCommonConfig, st4InputCordActivePowerHighWarning=st4InputCordActivePowerHighWarning, st4InputCordApparentPowerHighWarning=st4InputCordApparentPowerHighWarning, st4OcpBranchCount=st4OcpBranchCount, st4OutletPostOnDelay=st4OutletPostOnDelay, st4InputCordPowerUtilized=st4InputCordPowerUtilized, st4UnitOutletSequenceOrder=st4UnitOutletSequenceOrder, st4SystemFeatures=st4SystemFeatures, st4LineCurrent=st4LineCurrent, st4HumidSensorValue=st4HumidSensorValue, st4ModuleCompliances=st4ModuleCompliances, st4PhaseVoltageLowAlarm=st4PhaseVoltageLowAlarm, st4OutletCurrentLowAlarm=st4OutletCurrentLowAlarm, st4OcpType=st4OcpType, st4InputCordOutOfBalance=st4InputCordOutOfBalance, st4BranchCommonConfig=st4BranchCommonConfig, st4UnitConfigTable=st4UnitConfigTable, st4UnitModel=st4UnitModel, st4TempSensorConfigEntry=st4TempSensorConfigEntry, st4PhaseVoltageStatus=st4PhaseVoltageStatus, st4AdcSensorStatus=st4AdcSensorStatus, EventNotificationMethods=EventNotificationMethods, st4UnitNotifications=st4UnitNotifications, st4OutletPowerFactorEvent=st4OutletPowerFactorEvent, st4WaterSensorMonitorEntry=st4WaterSensorMonitorEntry, st4LineCurrentLowAlarm=st4LineCurrentLowAlarm, st4InputCordPowerCapacity=st4InputCordPowerCapacity, st4PhaseBranchCount=st4PhaseBranchCount, st4InputCordState=st4InputCordState, st4OutletPhaseID=st4OutletPhaseID, st4OcpEventConfigTable=st4OcpEventConfigTable, st4OutletBranchID=st4OutletBranchID, st4LineEventConfigEntry=st4LineEventConfigEntry, st4CcSensorName=st4CcSensorName, st4OutletCurrentLowWarning=st4OutletCurrentLowWarning, st4BranchCurrentCapacity=st4BranchCurrentCapacity, st4WaterSensorCommonConfig=st4WaterSensorCommonConfig, st4InputCordNotifications=st4InputCordNotifications, st4WaterSensorConfigTable=st4WaterSensorConfigTable, st4OutletCurrentStatus=st4OutletCurrentStatus, st4OutletCommonConfig=st4OutletCommonConfig, st4TempSensorNotifications=st4TempSensorNotifications, st4OutletActivePowerHighWarning=st4OutletActivePowerHighWarning, st4OverCurrentProtectors=st4OverCurrentProtectors, st4OutletPowerFactor=st4OutletPowerFactor, st4BranchOutletCount=st4BranchOutletCount, st4EventNotificationsGroup=st4EventNotificationsGroup, sentry4=sentry4, st4WaterSensorIndex=st4WaterSensorIndex, st4UnitStatus=st4UnitStatus, st4InputCordOcpCount=st4InputCordOcpCount, st4LineCurrentStatus=st4LineCurrentStatus, st4LineCurrentHighWarning=st4LineCurrentHighWarning, st4InputCordNominalVoltage=st4InputCordNominalVoltage, st4Compliances=st4Compliances, st4PhaseActivePower=st4PhaseActivePower, st4BranchCurrentEvent=st4BranchCurrentEvent, st4InputCordIndex=st4InputCordIndex, st4OcpNotifications=st4OcpNotifications, DeviceState=DeviceState, st4AdcSensorMonitorTable=st4AdcSensorMonitorTable, st4PhasePowerFactorStatus=st4PhasePowerFactorStatus, st4SystemProductSeries=st4SystemProductSeries, st4OutletCurrentHighWarning=st4OutletCurrentHighWarning, st4WaterSensorConfigEntry=st4WaterSensorConfigEntry, st4PhaseConfigEntry=st4PhaseConfigEntry, st4HumidSensorCommonConfig=st4HumidSensorCommonConfig, st4CcSensorConfigTable=st4CcSensorConfigTable, st4LineNotifications=st4LineNotifications, st4BranchConfigEntry=st4BranchConfigEntry, st4OutletActivePowerLowAlarm=st4OutletActivePowerLowAlarm, st4PhaseCurrent=st4PhaseCurrent, st4OutletConfigTable=st4OutletConfigTable, st4InputCordPowerFactor=st4InputCordPowerFactor, st4LineCommonConfig=st4LineCommonConfig, st4OutletVoltage=st4OutletVoltage, st4OutletStateChangeLogging=st4OutletStateChangeLogging, st4PhaseCommonConfig=st4PhaseCommonConfig, st4InputCordOutOfBalanceEvent=st4InputCordOutOfBalanceEvent, st4OcpConfigTable=st4OcpConfigTable, st4BranchMonitorTable=st4BranchMonitorTable, st4OutletCurrentEvent=st4OutletCurrentEvent, st4OutletPowerFactorLowAlarm=st4OutletPowerFactorLowAlarm, st4SystemNICSerialNumber=st4SystemNICSerialNumber, st4InputCordPowerFactorLowWarning=st4InputCordPowerFactorLowWarning, st4WaterSensorName=st4WaterSensorName, st4OutletCapabilities=st4OutletCapabilities, st4UnitAdcSensorCount=st4UnitAdcSensorCount, st4BranchStatus=st4BranchStatus, st4InputCords=st4InputCords, st4UnitWaterSensorCount=st4UnitWaterSensorCount, st4TempSensorHighWarning=st4TempSensorHighWarning, st4PhaseCurrentCrestFactor=st4PhaseCurrentCrestFactor, st4LineCurrentHighAlarm=st4LineCurrentHighAlarm, st4HumidSensorIndex=st4HumidSensorIndex, st4SystemObjectsGroup=st4SystemObjectsGroup, st4CcSensorIndex=st4CcSensorIndex, st4InputCordConfigEntry=st4InputCordConfigEntry, st4BranchCurrentStatus=st4BranchCurrentStatus, st4InputCordCurrentCapacity=st4InputCordCurrentCapacity, st4PhaseVoltageDeviation=st4PhaseVoltageDeviation, st4PhaseID=st4PhaseID, st4OcpCurrentCapacityMax=st4OcpCurrentCapacityMax, st4AdcSensorLowWarning=st4AdcSensorLowWarning, st4LineMonitorTable=st4LineMonitorTable, st4InputCordBranchCount=st4InputCordBranchCount, st4AnalogToDigitalConvSensors=st4AnalogToDigitalConvSensors, DeviceStatus=DeviceStatus, st4InputCordPowerFactorEvent=st4InputCordPowerFactorEvent, st4OutletEventConfigTable=st4OutletEventConfigTable, st4InputCordStatusEvent=st4InputCordStatusEvent, st4UnitEventConfigTable=st4UnitEventConfigTable, st4OcpID=st4OcpID, st4TempSensorHysteresis=st4TempSensorHysteresis, st4PhaseMonitorEntry=st4PhaseMonitorEntry, st4InputCordApparentPowerHysteresis=st4InputCordApparentPowerHysteresis, st4OutletPowerCapacity=st4OutletPowerCapacity, st4OutletActivePowerHysteresis=st4OutletActivePowerHysteresis, st4LineCurrentCapacity=st4LineCurrentCapacity, st4SystemConfig=st4SystemConfig, st4AdcSensorIndex=st4AdcSensorIndex, st4LineCurrentLowWarning=st4LineCurrentLowWarning, st4TempSensorMonitorTable=st4TempSensorMonitorTable, st4InputCordNominalPowerFactor=st4InputCordNominalPowerFactor, st4UnitDisplayOrientation=st4UnitDisplayOrientation, st4PhaseVoltageLowWarning=st4PhaseVoltageLowWarning, st4HumidSensorHighWarning=st4HumidSensorHighWarning, st4BranchCurrentHighWarning=st4BranchCurrentHighWarning, st4TempSensorStatus=st4TempSensorStatus, st4AdcSensorHighWarning=st4AdcSensorHighWarning, st4OcpMonitorEntry=st4OcpMonitorEntry, st4SystemNICHardwareInfo=st4SystemNICHardwareInfo, st4InputCordOutOfBalanceHighAlarm=st4InputCordOutOfBalanceHighAlarm, st4HumidSensorEventConfigEntry=st4HumidSensorEventConfigEntry, st4BranchID=st4BranchID, st4InputCordActivePowerEvent=st4InputCordActivePowerEvent, st4CcSensorConfigEntry=st4CcSensorConfigEntry, st4OutletRebootDelay=st4OutletRebootDelay, st4OcpLabel=st4OcpLabel, st4Outlets=st4Outlets, st4OutletActivePower=st4OutletActivePower, st4PhaseOutletCount=st4PhaseOutletCount, st4CcSensorMonitorTable=st4CcSensorMonitorTable, st4UnitType=st4UnitType, st4InputCordNominalVoltageMax=st4InputCordNominalVoltageMax, st4BranchObjectsGroup=st4BranchObjectsGroup, st4UnitIndex=st4UnitIndex, st4TempSensorValueMax=st4TempSensorValueMax, st4UnitMonitorTable=st4UnitMonitorTable, st4Units=st4Units, st4HumidSensorConfigTable=st4HumidSensorConfigTable, st4UnitProductSN=st4UnitProductSN, st4TemperatureSensors=st4TemperatureSensors, st4AdcSensorLowAlarm=st4AdcSensorLowAlarm, st4SystemConfigModifiedCount=st4SystemConfigModifiedCount, st4UnitID=st4UnitID, st4LineCurrentUtilized=st4LineCurrentUtilized, st4OcpObjectsGroup=st4OcpObjectsGroup, st4SystemFeatureKey=st4SystemFeatureKey, st4TempSensorLowAlarm=st4TempSensorLowAlarm, st4WaterSensorID=st4WaterSensorID, st4OutletControlState=st4OutletControlState, st4AdcSensorConfigEntry=st4AdcSensorConfigEntry, st4WaterSensorNotifications=st4WaterSensorNotifications, st4Lines=st4Lines, st4WaterSensorStatusEvent=st4WaterSensorStatusEvent, st4BranchPhaseID=st4BranchPhaseID, st4OcpIndex=st4OcpIndex, st4OutletSequenceInterval=st4OutletSequenceInterval, st4InputCordOutOfBalanceStatus=st4InputCordOutOfBalanceStatus, st4OutletPowerFactorLowWarning=st4OutletPowerFactorLowWarning, st4TempSensorValueMin=st4TempSensorValueMin, st4AdcSensorCommonConfig=st4AdcSensorCommonConfig, st4PhaseVoltage=st4PhaseVoltage, st4OutletQueueControl=st4OutletQueueControl, st4InputCordPowerFactorHysteresis=st4InputCordPowerFactorHysteresis, st4InputCordCommonConfig=st4InputCordCommonConfig, st4OutletState=st4OutletState, st4SystemLocation=st4SystemLocation, st4HumidSensorMonitorEntry=st4HumidSensorMonitorEntry, st4OutletCurrent=st4OutletCurrent, st4PhaseVoltageHighAlarm=st4PhaseVoltageHighAlarm, st4PhaseStatusEvent=st4PhaseStatusEvent, st4LineConfigTable=st4LineConfigTable, st4CcSensorEventConfigEntry=st4CcSensorEventConfigEntry, st4AdcSensorMonitorEntry=st4AdcSensorMonitorEntry, st4InputCordNominalVoltageMin=st4InputCordNominalVoltageMin, st4OcpConfigEntry=st4OcpConfigEntry, st4TempSensorEventConfigTable=st4TempSensorEventConfigTable, st4OutletMonitorTable=st4OutletMonitorTable, st4InputCordObjectsGroup=st4InputCordObjectsGroup, st4OutletStateChangeEvent=st4OutletStateChangeEvent, st4AdcSensorConfigTable=st4AdcSensorConfigTable, st4OutletControlAction=st4OutletControlAction, st4TempSensorLowWarning=st4TempSensorLowWarning, st4InputCordStatus=st4InputCordStatus, st4BranchCurrentUtilized=st4BranchCurrentUtilized, st4UnitInputCordCount=st4UnitInputCordCount, st4InputCordApparentPowerHighAlarm=st4InputCordApparentPowerHighAlarm, st4OutletEnergy=st4OutletEnergy, st4InputCordEventConfigEntry=st4InputCordEventConfigEntry, st4PhasePowerFactorLowWarning=st4PhasePowerFactorLowWarning, st4BranchStatusEvent=st4BranchStatusEvent, st4PhaseEnergy=st4PhaseEnergy, st4UnitTempSensorCount=st4UnitTempSensorCount, st4LineIndex=st4LineIndex, st4OutletStatusEvent=st4OutletStatusEvent, st4OutletActivePowerEvent=st4OutletActivePowerEvent, st4InputCordActivePower=st4InputCordActivePower, st4OcpStatusEvent=st4OcpStatusEvent, st4OutletControlTable=st4OutletControlTable, st4LineCurrentEvent=st4LineCurrentEvent, st4Branches=st4Branches, st4PhaseStatus=st4PhaseStatus, st4OutletEventConfigEntry=st4OutletEventConfigEntry, st4PhaseLabel=st4PhaseLabel, st4LineMonitorEntry=st4LineMonitorEntry, st4AdcSensorName=st4AdcSensorName, st4TempSensorMonitorEntry=st4TempSensorMonitorEntry, st4PhaseEventConfigTable=st4PhaseEventConfigTable, st4OutletApparentPower=st4OutletApparentPower, st4UnitName=st4UnitName)
mibBuilder.exportSymbols("Sentry4-MIB", st4LineEventConfigTable=st4LineEventConfigTable, st4InputCordPowerFactorStatus=st4InputCordPowerFactorStatus, st4OutletCurrentCrestFactor=st4OutletCurrentCrestFactor, st4AdcSensorObjectsGroup=st4AdcSensorObjectsGroup, st4HumidSensorLowWarning=st4HumidSensorLowWarning, st4PhaseVoltageHighWarning=st4PhaseVoltageHighWarning, st4HumidSensorName=st4HumidSensorName, st4BranchIndex=st4BranchIndex, st4HumidSensorEvent=st4HumidSensorEvent, st4LineCurrentHysteresis=st4LineCurrentHysteresis, st4CcSensorCommonConfig=st4CcSensorCommonConfig, st4OutletObjectsGroup=st4OutletObjectsGroup, st4OutletActivePowerHighAlarm=st4OutletActivePowerHighAlarm, st4UnitCcSensorCount=st4UnitCcSensorCount, st4BranchMonitorEntry=st4BranchMonitorEntry, st4InputCordApparentPowerStatus=st4InputCordApparentPowerStatus, st4InputCordFrequency=st4InputCordFrequency, st4WaterSensors=st4WaterSensors, st4TempSensorIndex=st4TempSensorIndex, st4OutletID=st4OutletID, st4OutletActivePowerLowWarning=st4OutletActivePowerLowWarning, st4PhasePowerFactorLowAlarm=st4PhasePowerFactorLowAlarm, st4AdcSensorValue=st4AdcSensorValue, st4BranchCurrentLowWarning=st4BranchCurrentLowWarning, st4PhaseEventConfigEntry=st4PhaseEventConfigEntry, st4PhaseNotifications=st4PhaseNotifications, st4WaterSensorMonitorTable=st4WaterSensorMonitorTable, st4LineObjectsGroup=st4LineObjectsGroup, st4Phases=st4Phases, st4UnitHumidSensorCount=st4UnitHumidSensorCount, st4OutletPowerFactorHysteresis=st4OutletPowerFactorHysteresis, st4CcSensorStatus=st4CcSensorStatus, st4AdcSensorHighAlarm=st4AdcSensorHighAlarm, st4OutletStatus=st4OutletStatus, st4LineLabel=st4LineLabel, st4SystemFirmwareBuildInfo=st4SystemFirmwareBuildInfo, st4SystemProductName=st4SystemProductName, st4InputCordEnergy=st4InputCordEnergy, st4HumidSensorStatus=st4HumidSensorStatus, st4TempSensorName=st4TempSensorName, st4InputCordPowerFactorLowAlarm=st4InputCordPowerFactorLowAlarm, st4PhaseIndex=st4PhaseIndex, st4InputCordActivePowerLowWarning=st4InputCordActivePowerLowWarning, st4InputCordApparentPower=st4InputCordApparentPower, serverTech=serverTech, st4LineID=st4LineID, st4PhaseVoltageEvent=st4PhaseVoltageEvent, st4WaterSensorEventConfigTable=st4WaterSensorEventConfigTable, st4InputCordEventConfigTable=st4InputCordEventConfigTable, st4InputCordMonitorEntry=st4InputCordMonitorEntry, st4InputCordApparentPowerLowAlarm=st4InputCordApparentPowerLowAlarm, st4Objects=st4Objects, st4TempSensorScale=st4TempSensorScale, st4OutletCurrentCapacity=st4OutletCurrentCapacity, st4TempSensorCommonConfig=st4TempSensorCommonConfig, st4Events=st4Events, st4Conformance=st4Conformance, st4BranchCurrentHighAlarm=st4BranchCurrentHighAlarm, st4OutletOcpID=st4OutletOcpID, st4TempSensorEventConfigEntry=st4TempSensorEventConfigEntry, st4BranchOcpID=st4BranchOcpID, st4HumidSensorHysteresis=st4HumidSensorHysteresis, st4TempSensorValue=st4TempSensorValue, st4Notifications=st4Notifications, st4HumidSensorConfigEntry=st4HumidSensorConfigEntry, st4HumidSensorNotifications=st4HumidSensorNotifications, st4InputCordOutletCount=st4InputCordOutletCount, st4InputCordInletType=st4InputCordInletType, st4CcSensorStatusEvent=st4CcSensorStatusEvent, st4AdcSensorHysteresis=st4AdcSensorHysteresis, st4LineStatusEvent=st4LineStatusEvent, st4OutletPowerFactorStatus=st4OutletPowerFactorStatus, st4BranchEventConfigEntry=st4BranchEventConfigEntry, st4TempSensorEvent=st4TempSensorEvent, st4AdcSensorNotifications=st4AdcSensorNotifications, st4HumidSensorID=st4HumidSensorID, st4Groups=st4Groups, st4UnitStatusEvent=st4UnitStatusEvent, st4BranchCurrentHysteresis=st4BranchCurrentHysteresis, st4BranchNotifications=st4BranchNotifications, st4UnitAssetTag=st4UnitAssetTag, st4OutletSocketType=st4OutletSocketType, st4ContactClosureSensors=st4ContactClosureSensors, st4UnitProductMfrDate=st4UnitProductMfrDate, st4TempSensorID=st4TempSensorID, st4OutletNotifications=st4OutletNotifications, st4CcSensorNotifications=st4CcSensorNotifications, st4UnitCapabilities=st4UnitCapabilities, st4InputCordPhaseCount=st4InputCordPhaseCount, st4SystemFirmwareVersion=st4SystemFirmwareVersion, st4OutletReactance=st4OutletReactance, st4EventInfoObjectsGroup=st4EventInfoObjectsGroup, st4OutletControlEntry=st4OutletControlEntry, st4CcSensorMonitorEntry=st4CcSensorMonitorEntry, st4BranchEventConfigTable=st4BranchEventConfigTable, st4LineStatus=st4LineStatus, st4PhaseApparentPower=st4PhaseApparentPower, st4EventStatusCondition=st4EventStatusCondition, st4AdcSensorEventConfigEntry=st4AdcSensorEventConfigEntry, st4AdcSensorID=st4AdcSensorID, st4OcpOutletCount=st4OcpOutletCount, st4InputCordActivePowerStatus=st4InputCordActivePowerStatus, st4UnitObjectsGroup=st4UnitObjectsGroup, st4HumidSensorHighAlarm=st4HumidSensorHighAlarm, st4PhaseConfigTable=st4PhaseConfigTable, st4PhasePowerFactor=st4PhasePowerFactor, st4BranchCurrentLowAlarm=st4BranchCurrentLowAlarm, st4WaterSensorObjectsGroup=st4WaterSensorObjectsGroup, st4InputCordApparentPowerLowWarning=st4InputCordApparentPowerLowWarning, st4InputCordLineCount=st4InputCordLineCount, st4InputCordID=st4InputCordID, st4InputCordCurrentCapacityMax=st4InputCordCurrentCapacityMax, st4OcpMonitorTable=st4OcpMonitorTable, st4CcSensorID=st4CcSensorID, st4PhasePowerFactorHysteresis=st4PhasePowerFactorHysteresis, st4OcpCurrentCapacity=st4OcpCurrentCapacity, st4InputCordApparentPowerEvent=st4InputCordApparentPowerEvent, st4TempSensorHighAlarm=st4TempSensorHighAlarm, st4WaterSensorEventConfigEntry=st4WaterSensorEventConfigEntry, st4HumidSensorObjectsGroup=st4HumidSensorObjectsGroup, st4InputCordOutOfBalanceHysteresis=st4InputCordOutOfBalanceHysteresis, st4PhaseVoltageHysteresis=st4PhaseVoltageHysteresis, st4HumidSensorLowAlarm=st4HumidSensorLowAlarm, st4CcSensorObjectsGroup=st4CcSensorObjectsGroup, st4OutletMonitorEntry=st4OutletMonitorEntry, st4OutletCurrentUtilized=st4OutletCurrentUtilized, st4OutletCurrentHighAlarm=st4OutletCurrentHighAlarm, st4OutletName=st4OutletName, st4OutletActivePowerStatus=st4OutletActivePowerStatus, st4PhaseObjectsGroup=st4PhaseObjectsGroup, st4OutletWakeupState=st4OutletWakeupState, st4OutletCommonControl=st4OutletCommonControl, st4EventInformation=st4EventInformation, st4InputCordOutOfBalanceHighWarning=st4InputCordOutOfBalanceHighWarning, st4BranchState=st4BranchState, st4SystemUnitCount=st4SystemUnitCount, st4PhaseMonitorTable=st4PhaseMonitorTable, st4UnitMonitorEntry=st4UnitMonitorEntry, st4EventStatusText=st4EventStatusText, PYSNMP_MODULE_ID=sentry4, st4InputCordName=st4InputCordName)
|
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, value_size_constraint, value_range_constraint, single_value_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsUnion')
(object_group, notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'NotificationGroup', 'ModuleCompliance')
(integer32, time_ticks, bits, unsigned32, mib_identifier, iso, module_identity, counter32, gauge32, ip_address, counter64, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, enterprises, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'TimeTicks', 'Bits', 'Unsigned32', 'MibIdentifier', 'iso', 'ModuleIdentity', 'Counter32', 'Gauge32', 'IpAddress', 'Counter64', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'enterprises', 'ObjectIdentity')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
sentry4 = module_identity((1, 3, 6, 1, 4, 1, 1718, 4))
sentry4.setRevisions(('2016-11-18 23:40', '2016-09-21 23:00', '2016-04-25 21:40', '2015-02-19 10:00', '2014-12-23 11:30'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
sentry4.setRevisionsDescriptions(('Added the st4UnitProductMfrDate object. Adjusted the upper limit of voltage objects to 600 Volts.', 'Fixed the st4InputCordOutOfBalanceEvent notification definition to include the correct objects.', 'Added support for the PRO1 product series. Added the st4SystemProductSeries and st4InputCordNominalPowerFactor objects. Adjusted the upper limit of cord and line current objects to 600 Amps. Adjusted the lower limit of nominal voltage objects to 0 Volts. Corrected the lower limit of several configuration objects from -1 to 0.', 'Corrected the UNITS and value range of temperature sensor threshold objects.', 'Initial release.'))
if mibBuilder.loadTexts:
sentry4.setLastUpdated('201611182340Z')
if mibBuilder.loadTexts:
sentry4.setOrganization('Server Technology, Inc.')
if mibBuilder.loadTexts:
sentry4.setContactInfo('Server Technology, Inc. 1040 Sandhill Road Reno, NV 89521 Tel: (775) 284-2000 Fax: (775) 284-2065 Email: [email protected]')
if mibBuilder.loadTexts:
sentry4.setDescription('This is the MIB module for the fourth generation of the Sentry product family. This includes the PRO1 and PRO2 series of Smart and Switched Cabinet Distribution Unit (CDU) and Power Distribution Unit (PDU) products.')
server_tech = mib_identifier((1, 3, 6, 1, 4, 1, 1718))
class Devicestatus(TextualConvention, Integer32):
description = 'Status returned by devices.'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23))
named_values = named_values(('normal', 0), ('disabled', 1), ('purged', 2), ('reading', 5), ('settle', 6), ('notFound', 7), ('lost', 8), ('readError', 9), ('noComm', 10), ('pwrError', 11), ('breakerTripped', 12), ('fuseBlown', 13), ('lowAlarm', 14), ('lowWarning', 15), ('highWarning', 16), ('highAlarm', 17), ('alarm', 18), ('underLimit', 19), ('overLimit', 20), ('nvmFail', 21), ('profileError', 22), ('conflict', 23))
class Devicestate(TextualConvention, Integer32):
description = 'On or off state of devices.'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2))
named_values = named_values(('unknown', 0), ('on', 1), ('off', 2))
class Eventnotificationmethods(TextualConvention, Bits):
description = 'Bits to enable event notification methods.'
status = 'current'
named_values = named_values(('snmpTrap', 0), ('email', 1))
st4_objects = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1))
st4_system = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1))
st4_system_config = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1))
st4_system_product_name = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4SystemProductName.setStatus('current')
if mibBuilder.loadTexts:
st4SystemProductName.setDescription('The product name.')
st4_system_location = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4SystemLocation.setStatus('current')
if mibBuilder.loadTexts:
st4SystemLocation.setDescription('The location of the system.')
st4_system_firmware_version = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4SystemFirmwareVersion.setStatus('current')
if mibBuilder.loadTexts:
st4SystemFirmwareVersion.setDescription('The firmware version.')
st4_system_firmware_build_info = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4SystemFirmwareBuildInfo.setStatus('current')
if mibBuilder.loadTexts:
st4SystemFirmwareBuildInfo.setDescription('The firmware build information.')
st4_system_nic_serial_number = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 8))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4SystemNICSerialNumber.setStatus('current')
if mibBuilder.loadTexts:
st4SystemNICSerialNumber.setDescription('The serial number of the network interface card.')
st4_system_nic_hardware_info = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4SystemNICHardwareInfo.setStatus('current')
if mibBuilder.loadTexts:
st4SystemNICHardwareInfo.setDescription('Hardware information about the network interface card.')
st4_system_product_series = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('pro1', 0), ('pro2', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4SystemProductSeries.setStatus('current')
if mibBuilder.loadTexts:
st4SystemProductSeries.setDescription('The product series.')
st4_system_features = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 10), bits().clone(namedValues=named_values(('smartLoadShedding', 0), ('reserved', 1), ('outletControlInhibit', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4SystemFeatures.setStatus('current')
if mibBuilder.loadTexts:
st4SystemFeatures.setDescription('The key-activated features enabled in the system.')
st4_system_feature_key = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 19))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4SystemFeatureKey.setStatus('current')
if mibBuilder.loadTexts:
st4SystemFeatureKey.setDescription('A valid feature key written to this object will enable a feature in the system. A valid feature key is in the form xxxx-xxxx-xxxx-xxxx. A read of this object returns an empty string.')
st4_system_config_modified_count = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4SystemConfigModifiedCount.setStatus('current')
if mibBuilder.loadTexts:
st4SystemConfigModifiedCount.setDescription('The total number of times the system configuration has changed.')
st4_system_unit_count = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(0, 8))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4SystemUnitCount.setStatus('current')
if mibBuilder.loadTexts:
st4SystemUnitCount.setDescription('The number of units in the system.')
st4_units = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2))
st4_unit_common_config = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 1))
st4_unit_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2))
if mibBuilder.loadTexts:
st4UnitConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4UnitConfigTable.setDescription('Unit configuration table.')
st4_unit_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'))
if mibBuilder.loadTexts:
st4UnitConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4UnitConfigEntry.setDescription('Configuration objects for a particular unit.')
st4_unit_index = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6)))
if mibBuilder.loadTexts:
st4UnitIndex.setStatus('current')
if mibBuilder.loadTexts:
st4UnitIndex.setDescription('Unit index. A=1, B=2, C=3, D=4, E=5, F=6.')
st4_unit_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4UnitID.setStatus('current')
if mibBuilder.loadTexts:
st4UnitID.setDescription('The internal ID of the unit. Format=A.')
st4_unit_name = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4UnitName.setStatus('current')
if mibBuilder.loadTexts:
st4UnitName.setDescription('The name of the unit.')
st4_unit_product_sn = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4UnitProductSN.setStatus('current')
if mibBuilder.loadTexts:
st4UnitProductSN.setDescription('The product serial number of the unit.')
st4_unit_model = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4UnitModel.setStatus('current')
if mibBuilder.loadTexts:
st4UnitModel.setDescription('The model of the unit.')
st4_unit_asset_tag = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4UnitAssetTag.setStatus('current')
if mibBuilder.loadTexts:
st4UnitAssetTag.setDescription('The asset tag of the unit.')
st4_unit_type = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('masterPdu', 0), ('linkPdu', 1), ('controller', 2), ('emcu', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4UnitType.setStatus('current')
if mibBuilder.loadTexts:
st4UnitType.setDescription('The type of the unit.')
st4_unit_capabilities = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 8), bits().clone(namedValues=named_values(('dc', 0), ('phase3', 1), ('wye', 2), ('delta', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4UnitCapabilities.setStatus('current')
if mibBuilder.loadTexts:
st4UnitCapabilities.setDescription('The capabilities of the unit.')
st4_unit_product_mfr_date = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 10))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4UnitProductMfrDate.setStatus('current')
if mibBuilder.loadTexts:
st4UnitProductMfrDate.setDescription('The product manufacture date in YYYY-MM-DD (ISO 8601 format).')
st4_unit_display_orientation = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('normal', 0), ('inverted', 1), ('auto', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4UnitDisplayOrientation.setStatus('current')
if mibBuilder.loadTexts:
st4UnitDisplayOrientation.setDescription('The orientation of all displays in the unit.')
st4_unit_outlet_sequence_order = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('normal', 0), ('reversed', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4UnitOutletSequenceOrder.setStatus('current')
if mibBuilder.loadTexts:
st4UnitOutletSequenceOrder.setDescription('The sequencing order of all outlets in the unit.')
st4_unit_input_cord_count = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 30), integer32().subtype(subtypeSpec=value_range_constraint(0, 4))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4UnitInputCordCount.setStatus('current')
if mibBuilder.loadTexts:
st4UnitInputCordCount.setDescription('The number of power input cords into the unit.')
st4_unit_temp_sensor_count = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 31), integer32().subtype(subtypeSpec=value_range_constraint(0, 2))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4UnitTempSensorCount.setStatus('current')
if mibBuilder.loadTexts:
st4UnitTempSensorCount.setDescription('The number of external temperature sensors supported by the unit.')
st4_unit_humid_sensor_count = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 32), integer32().subtype(subtypeSpec=value_range_constraint(0, 2))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4UnitHumidSensorCount.setStatus('current')
if mibBuilder.loadTexts:
st4UnitHumidSensorCount.setDescription('The number of external humidity sensors supported by the unit.')
st4_unit_water_sensor_count = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 33), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4UnitWaterSensorCount.setStatus('current')
if mibBuilder.loadTexts:
st4UnitWaterSensorCount.setDescription('The number of external water sensors supported by the unit.')
st4_unit_cc_sensor_count = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 34), integer32().subtype(subtypeSpec=value_range_constraint(0, 4))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4UnitCcSensorCount.setStatus('current')
if mibBuilder.loadTexts:
st4UnitCcSensorCount.setDescription('The number of external contact closure sensors supported by the unit.')
st4_unit_adc_sensor_count = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 35), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4UnitAdcSensorCount.setStatus('current')
if mibBuilder.loadTexts:
st4UnitAdcSensorCount.setDescription('The number of analog-to-digital converter sensors supported by the unit.')
st4_unit_monitor_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 3))
if mibBuilder.loadTexts:
st4UnitMonitorTable.setStatus('current')
if mibBuilder.loadTexts:
st4UnitMonitorTable.setDescription('Unit monitor table.')
st4_unit_monitor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 3, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'))
if mibBuilder.loadTexts:
st4UnitMonitorEntry.setStatus('current')
if mibBuilder.loadTexts:
st4UnitMonitorEntry.setDescription('Objects to monitor for a particular unit.')
st4_unit_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 3, 1, 1), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4UnitStatus.setStatus('current')
if mibBuilder.loadTexts:
st4UnitStatus.setDescription('The status of the unit.')
st4_unit_event_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 4))
if mibBuilder.loadTexts:
st4UnitEventConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4UnitEventConfigTable.setDescription('Unit event configuration table.')
st4_unit_event_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 4, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'))
if mibBuilder.loadTexts:
st4UnitEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4UnitEventConfigEntry.setDescription('Event configuration objects for a particular unit.')
st4_unit_notifications = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 4, 1, 1), event_notification_methods()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4UnitNotifications.setStatus('current')
if mibBuilder.loadTexts:
st4UnitNotifications.setDescription('The notification methods enabled for unit events.')
st4_input_cords = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3))
st4_input_cord_common_config = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 1))
st4_input_cord_active_power_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000))).setUnits('Watts').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordActivePowerHysteresis.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordActivePowerHysteresis.setDescription('The active power hysteresis of the input cord in Watts.')
st4_input_cord_apparent_power_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000))).setUnits('Volt-Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordApparentPowerHysteresis.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordApparentPowerHysteresis.setDescription('The apparent power hysteresis of the input cord in Volt-Amps.')
st4_input_cord_power_factor_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 20))).setUnits('hundredths').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordPowerFactorHysteresis.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordPowerFactorHysteresis.setDescription('The power factor hysteresis of the input cord in hundredths.')
st4_input_cord_out_of_balance_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 10))).setUnits('percent').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordOutOfBalanceHysteresis.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordOutOfBalanceHysteresis.setDescription('The 3 phase out-of-balance hysteresis of the input cord in percent.')
st4_input_cord_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2))
if mibBuilder.loadTexts:
st4InputCordConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordConfigTable.setDescription('Input cord configuration table.')
st4_input_cord_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'))
if mibBuilder.loadTexts:
st4InputCordConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordConfigEntry.setDescription('Configuration objects for a particular input cord.')
st4_input_cord_index = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4)))
if mibBuilder.loadTexts:
st4InputCordIndex.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordIndex.setDescription('Input cord index. A=1, B=2, C=3, D=4.')
st4_input_cord_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordID.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordID.setDescription('The internal ID of the input cord. Format=AA.')
st4_input_cord_name = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordName.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordName.setDescription('The name of the input cord.')
st4_input_cord_inlet_type = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordInletType.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordInletType.setDescription('The type of plug on the input cord, or socket for the input cord.')
st4_input_cord_nominal_voltage = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 6000))).setUnits('tenth Volts').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordNominalVoltage.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordNominalVoltage.setDescription('The user-configured nominal voltage of the input cord in tenth Volts.')
st4_input_cord_nominal_voltage_min = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setUnits('Volts').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordNominalVoltageMin.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordNominalVoltageMin.setDescription('The factory-set minimum allowed for the user-configured nominal voltage of the input cord in Volts.')
st4_input_cord_nominal_voltage_max = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setUnits('Volts').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordNominalVoltageMax.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordNominalVoltageMax.setDescription('The factory-set maximum allowed for the user-configured nominal voltage of the input cord in Volts.')
st4_input_cord_current_capacity = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setUnits('Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordCurrentCapacity.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordCurrentCapacity.setDescription('The user-configured current capacity of the input cord in Amps.')
st4_input_cord_current_capacity_max = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setUnits('Amps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordCurrentCapacityMax.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordCurrentCapacityMax.setDescription('The factory-set maximum allowed for the user-configured current capacity of the input cord in Amps.')
st4_input_cord_power_capacity = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 50000))).setUnits('Volt-Amps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordPowerCapacity.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordPowerCapacity.setDescription('The power capacity of the input cord in Volt-Amps. For DC products, this is identical to power capacity in Watts.')
st4_input_cord_nominal_power_factor = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('hundredths').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordNominalPowerFactor.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordNominalPowerFactor.setDescription('The user-configured estimated nominal power factor of the input cord in hundredths.')
st4_input_cord_line_count = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(0, 4))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordLineCount.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordLineCount.setDescription('The number of current-carrying lines in the input cord.')
st4_input_cord_phase_count = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(0, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordPhaseCount.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordPhaseCount.setDescription('The number of active phases from the lines in the input cord.')
st4_input_cord_ocp_count = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 22), integer32().subtype(subtypeSpec=value_range_constraint(0, 12))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordOcpCount.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordOcpCount.setDescription('The number of over-current protectors downstream from the input cord.')
st4_input_cord_branch_count = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 23), integer32().subtype(subtypeSpec=value_range_constraint(0, 12))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordBranchCount.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordBranchCount.setDescription('The number of branches downstream from the input cord.')
st4_input_cord_outlet_count = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 24), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordOutletCount.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordOutletCount.setDescription('The number of outlets powered from the input cord.')
st4_input_cord_monitor_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3))
if mibBuilder.loadTexts:
st4InputCordMonitorTable.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordMonitorTable.setDescription('Input cord monitor table.')
st4_input_cord_monitor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'))
if mibBuilder.loadTexts:
st4InputCordMonitorEntry.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordMonitorEntry.setDescription('Objects to monitor for a particular input cord.')
st4_input_cord_state = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 1), device_state()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordState.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordState.setDescription('The on/off state of the input cord.')
st4_input_cord_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 2), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordStatus.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordStatus.setDescription('The status of the input cord.')
st4_input_cord_active_power = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(-1, 50000))).setUnits('Watts').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordActivePower.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordActivePower.setDescription('The measured active power of the input cord in Watts.')
st4_input_cord_active_power_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 4), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordActivePowerStatus.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordActivePowerStatus.setDescription('The status of the measured active power of the input cord.')
st4_input_cord_apparent_power = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(-1, 50000))).setUnits('Volt-Amps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordApparentPower.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordApparentPower.setDescription('The measured apparent power of the input cord in Volt-Amps.')
st4_input_cord_apparent_power_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 6), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordApparentPowerStatus.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordApparentPowerStatus.setDescription('The status of the measured apparent power of the input cord.')
st4_input_cord_power_utilized = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(-1, 1200))).setUnits('tenth percent').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordPowerUtilized.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordPowerUtilized.setDescription('The amount of the input cord power capacity used in tenth percent. For AC products, this is the ratio of the apparent power to the power capacity. For DC products, this is the ratio of the active power to the power capacity.')
st4_input_cord_power_factor = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(-1, 100))).setUnits('hundredths').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordPowerFactor.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordPowerFactor.setDescription('The measured power factor of the input cord in hundredths.')
st4_input_cord_power_factor_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 9), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordPowerFactorStatus.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordPowerFactorStatus.setDescription('The status of the measured power factor of the input cord.')
st4_input_cord_energy = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(-1, 2147483647))).setUnits('tenth Kilowatt-Hours').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordEnergy.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordEnergy.setDescription('The total energy consumption of loads through the input cord in tenth Kilowatt-Hours.')
st4_input_cord_frequency = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(-1, 1000))).setUnits('tenth Hertz').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordFrequency.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordFrequency.setDescription('The frequency of the input cord voltage in tenth Hertz.')
st4_input_cord_out_of_balance = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(-1, 2000))).setUnits('tenth percent').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordOutOfBalance.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordOutOfBalance.setDescription('The current imbalance on the lines of the input cord in tenth percent.')
st4_input_cord_out_of_balance_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 13), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4InputCordOutOfBalanceStatus.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordOutOfBalanceStatus.setDescription('The status of the current imbalance on the lines of the input cord.')
st4_input_cord_event_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4))
if mibBuilder.loadTexts:
st4InputCordEventConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordEventConfigTable.setDescription('Input cord event configuration table.')
st4_input_cord_event_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'))
if mibBuilder.loadTexts:
st4InputCordEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordEventConfigEntry.setDescription('Event configuration objects for a particular input cord.')
st4_input_cord_notifications = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 1), event_notification_methods()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordNotifications.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordNotifications.setDescription('The notification methods enabled for input cord events.')
st4_input_cord_active_power_low_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 50000))).setUnits('Watts').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordActivePowerLowAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordActivePowerLowAlarm.setDescription('The active power low alarm threshold of the input cord in Watts.')
st4_input_cord_active_power_low_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 50000))).setUnits('Watts').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordActivePowerLowWarning.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordActivePowerLowWarning.setDescription('The active power low warning threshold of the input cord in Watts.')
st4_input_cord_active_power_high_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 50000))).setUnits('Watts').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordActivePowerHighWarning.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordActivePowerHighWarning.setDescription('The active power high warning threshold of the input cord in Watts.')
st4_input_cord_active_power_high_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 50000))).setUnits('Watts').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordActivePowerHighAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordActivePowerHighAlarm.setDescription('The active power high alarm threshold of the input cord in Watts.')
st4_input_cord_apparent_power_low_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 50000))).setUnits('Volt-Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordApparentPowerLowAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordApparentPowerLowAlarm.setDescription('The apparent power low alarm threshold of the input cord in Volt-Amps.')
st4_input_cord_apparent_power_low_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 50000))).setUnits('Volt-Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordApparentPowerLowWarning.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordApparentPowerLowWarning.setDescription('The apparent power low warning threshold of the input cord in Volt-Amps.')
st4_input_cord_apparent_power_high_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 50000))).setUnits('Volt-Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordApparentPowerHighWarning.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordApparentPowerHighWarning.setDescription('The apparent power high warning threshold of the input cord in Volt-Amps.')
st4_input_cord_apparent_power_high_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 50000))).setUnits('Volt-Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordApparentPowerHighAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordApparentPowerHighAlarm.setDescription('The apparent power high alarm threshold of the input cord in Volt-Amps.')
st4_input_cord_power_factor_low_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('hundredths').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordPowerFactorLowAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordPowerFactorLowAlarm.setDescription('The power factor low alarm threshold of the input cord in hundredths.')
st4_input_cord_power_factor_low_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('hundredths').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordPowerFactorLowWarning.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordPowerFactorLowWarning.setDescription('The power factor low warning threshold of the input cord in hundredths.')
st4_input_cord_out_of_balance_high_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordOutOfBalanceHighWarning.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordOutOfBalanceHighWarning.setDescription('The 3 phase out-of-balance high warning threshold of the input cord in percent.')
st4_input_cord_out_of_balance_high_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4InputCordOutOfBalanceHighAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordOutOfBalanceHighAlarm.setDescription('The 3 phase out-of-balance high alarm threshold of the input cord in percent.')
st4_lines = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4))
st4_line_common_config = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 1))
st4_line_current_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('tenth Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4LineCurrentHysteresis.setStatus('current')
if mibBuilder.loadTexts:
st4LineCurrentHysteresis.setDescription('The current hysteresis of the line in tenth Amps.')
st4_line_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2))
if mibBuilder.loadTexts:
st4LineConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4LineConfigTable.setDescription('Line configuration table.')
st4_line_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'), (0, 'Sentry4-MIB', 'st4LineIndex'))
if mibBuilder.loadTexts:
st4LineConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4LineConfigEntry.setDescription('Configuration objects for a particular line.')
st4_line_index = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4)))
if mibBuilder.loadTexts:
st4LineIndex.setStatus('current')
if mibBuilder.loadTexts:
st4LineIndex.setDescription('Line index. L1=1, L2=2, L3=3, N=4.')
st4_line_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(3, 3)).setFixedLength(3)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4LineID.setStatus('current')
if mibBuilder.loadTexts:
st4LineID.setDescription('The internal ID of the line. Format=AAN.')
st4_line_label = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4LineLabel.setStatus('current')
if mibBuilder.loadTexts:
st4LineLabel.setDescription('The system label assigned to the line for identification.')
st4_line_current_capacity = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setUnits('Amps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4LineCurrentCapacity.setStatus('current')
if mibBuilder.loadTexts:
st4LineCurrentCapacity.setDescription('The current capacity of the line in Amps.')
st4_line_monitor_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3))
if mibBuilder.loadTexts:
st4LineMonitorTable.setStatus('current')
if mibBuilder.loadTexts:
st4LineMonitorTable.setDescription('Line monitor table.')
st4_line_monitor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'), (0, 'Sentry4-MIB', 'st4LineIndex'))
if mibBuilder.loadTexts:
st4LineMonitorEntry.setStatus('current')
if mibBuilder.loadTexts:
st4LineMonitorEntry.setDescription('Objects to monitor for a particular line.')
st4_line_state = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1, 1), device_state()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4LineState.setStatus('current')
if mibBuilder.loadTexts:
st4LineState.setDescription('The on/off state of the line.')
st4_line_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1, 2), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4LineStatus.setStatus('current')
if mibBuilder.loadTexts:
st4LineStatus.setDescription('The status of the line.')
st4_line_current = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(-1, 60000))).setUnits('hundredth Amps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4LineCurrent.setStatus('current')
if mibBuilder.loadTexts:
st4LineCurrent.setDescription('The measured current on the line in hundredth Amps.')
st4_line_current_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1, 4), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4LineCurrentStatus.setStatus('current')
if mibBuilder.loadTexts:
st4LineCurrentStatus.setDescription('The status of the measured current on the line.')
st4_line_current_utilized = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(-1, 1200))).setUnits('tenth percent').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4LineCurrentUtilized.setStatus('current')
if mibBuilder.loadTexts:
st4LineCurrentUtilized.setDescription('The amount of the line current capacity used in tenth percent.')
st4_line_event_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4))
if mibBuilder.loadTexts:
st4LineEventConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4LineEventConfigTable.setDescription('Line event configuration table.')
st4_line_event_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'), (0, 'Sentry4-MIB', 'st4LineIndex'))
if mibBuilder.loadTexts:
st4LineEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4LineEventConfigEntry.setDescription('Event configuration objects for a particular line.')
st4_line_notifications = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1, 1), event_notification_methods()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4LineNotifications.setStatus('current')
if mibBuilder.loadTexts:
st4LineNotifications.setDescription('The notification methods enabled for line events.')
st4_line_current_low_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 6000))).setUnits('tenth Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4LineCurrentLowAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4LineCurrentLowAlarm.setDescription('The current low alarm threshold of the line in tenth Amps.')
st4_line_current_low_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 6000))).setUnits('tenth Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4LineCurrentLowWarning.setStatus('current')
if mibBuilder.loadTexts:
st4LineCurrentLowWarning.setDescription('The current low warning threshold of the line in tenth Amps.')
st4_line_current_high_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 6000))).setUnits('tenth Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4LineCurrentHighWarning.setStatus('current')
if mibBuilder.loadTexts:
st4LineCurrentHighWarning.setDescription('The current high warning threshold of the line in tenth Amps.')
st4_line_current_high_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 6000))).setUnits('tenth Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4LineCurrentHighAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4LineCurrentHighAlarm.setDescription('The current high alarm threshold of the line in tenth Amps.')
st4_phases = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5))
st4_phase_common_config = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 1))
st4_phase_voltage_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 200))).setUnits('tenth Volts').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4PhaseVoltageHysteresis.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseVoltageHysteresis.setDescription('The voltage hysteresis of the phase in tenth Volts.')
st4_phase_power_factor_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 20))).setUnits('hundredths').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4PhasePowerFactorHysteresis.setStatus('current')
if mibBuilder.loadTexts:
st4PhasePowerFactorHysteresis.setDescription('The power factor hysteresis of the phase in hundredths.')
st4_phase_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2))
if mibBuilder.loadTexts:
st4PhaseConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseConfigTable.setDescription('Phase configuration table.')
st4_phase_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'), (0, 'Sentry4-MIB', 'st4PhaseIndex'))
if mibBuilder.loadTexts:
st4PhaseConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseConfigEntry.setDescription('Configuration objects for a particular phase.')
st4_phase_index = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6)))
if mibBuilder.loadTexts:
st4PhaseIndex.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseIndex.setDescription('Phase index. Three-phase AC Wye: L1-N=1, L2-N=2, L3-N=3; Three-phase AC Delta: L1-L2=1, L2-L3=2, L3-L1=3; Single Phase: L1-R=1; DC: L1-R=1; Three-phase AC Wye & Delta: L1-N=1, L2-N=2, L3-N=3, L1-L2=4, L2-L3=5; L3-L1=6.')
st4_phase_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(3, 3)).setFixedLength(3)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhaseID.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseID.setDescription('The internal ID of the phase. Format=AAN.')
st4_phase_label = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhaseLabel.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseLabel.setDescription('The system label assigned to the phase for identification.')
st4_phase_nominal_voltage = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 6000))).setUnits('tenth Volts').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhaseNominalVoltage.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseNominalVoltage.setDescription('The nominal voltage of the phase in tenth Volts.')
st4_phase_branch_count = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(0, 12))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhaseBranchCount.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseBranchCount.setDescription('The number of branches downstream from the phase.')
st4_phase_outlet_count = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhaseOutletCount.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseOutletCount.setDescription('The number of outlets powered from the phase.')
st4_phase_monitor_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3))
if mibBuilder.loadTexts:
st4PhaseMonitorTable.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseMonitorTable.setDescription('Phase monitor table.')
st4_phase_monitor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'), (0, 'Sentry4-MIB', 'st4PhaseIndex'))
if mibBuilder.loadTexts:
st4PhaseMonitorEntry.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseMonitorEntry.setDescription('Objects to monitor for a particular phase.')
st4_phase_state = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 1), device_state()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhaseState.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseState.setDescription('The on/off state of the phase.')
st4_phase_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 2), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhaseStatus.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseStatus.setDescription('The status of the phase.')
st4_phase_voltage = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(-1, 6000))).setUnits('tenth Volts').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhaseVoltage.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseVoltage.setDescription('The measured voltage on the phase in tenth Volts.')
st4_phase_voltage_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 4), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhaseVoltageStatus.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseVoltageStatus.setDescription('The status of the measured voltage on the phase.')
st4_phase_voltage_deviation = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(-1000, 1000))).setUnits('tenth percent').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhaseVoltageDeviation.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseVoltageDeviation.setDescription('The deviation from the nominal voltage on the phase in tenth percent.')
st4_phase_current = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(-1, 30000))).setUnits('hundredth Amps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhaseCurrent.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseCurrent.setDescription('The measured current on the phase in hundredth Amps.')
st4_phase_current_crest_factor = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(-1, 250))).setUnits('tenths').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhaseCurrentCrestFactor.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseCurrentCrestFactor.setDescription('The measured crest factor of the current waveform on the phase in tenths.')
st4_phase_active_power = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(-1, 25000))).setUnits('Watts').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhaseActivePower.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseActivePower.setDescription('The measured active power on the phase in Watts.')
st4_phase_apparent_power = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(-1, 25000))).setUnits('Volt-Amps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhaseApparentPower.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseApparentPower.setDescription('The measured apparent power on the phase in Volt-Amps.')
st4_phase_power_factor = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(-1, 100))).setUnits('hundredths').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhasePowerFactor.setStatus('current')
if mibBuilder.loadTexts:
st4PhasePowerFactor.setDescription('The measured power factor on the phase in hundredths.')
st4_phase_power_factor_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 11), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhasePowerFactorStatus.setStatus('current')
if mibBuilder.loadTexts:
st4PhasePowerFactorStatus.setDescription('The status of the measured power factor on the phase.')
st4_phase_reactance = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('unknown', 0), ('capacitive', 1), ('inductive', 2), ('resistive', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhaseReactance.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseReactance.setDescription('The status of the measured reactance of the phase.')
st4_phase_energy = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(-1, 2147483647))).setUnits('tenth Kilowatt-Hours').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4PhaseEnergy.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseEnergy.setDescription('The total energy consumption of loads through the phase in tenth Kilowatt-Hours.')
st4_phase_event_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4))
if mibBuilder.loadTexts:
st4PhaseEventConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseEventConfigTable.setDescription('Phase event configuration table.')
st4_phase_event_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'), (0, 'Sentry4-MIB', 'st4PhaseIndex'))
if mibBuilder.loadTexts:
st4PhaseEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseEventConfigEntry.setDescription('Event configuration objects for a particular phase.')
st4_phase_notifications = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 1), event_notification_methods()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4PhaseNotifications.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseNotifications.setDescription('The notification methods enabled for phase events.')
st4_phase_voltage_low_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 6000))).setUnits('tenth Volts').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4PhaseVoltageLowAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseVoltageLowAlarm.setDescription('The current low alarm threshold of the phase in tenth Volts.')
st4_phase_voltage_low_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 6000))).setUnits('tenth Volts').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4PhaseVoltageLowWarning.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseVoltageLowWarning.setDescription('The current low warning threshold of the phase in tenth Volts.')
st4_phase_voltage_high_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 6000))).setUnits('tenth Volts').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4PhaseVoltageHighWarning.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseVoltageHighWarning.setDescription('The current high warning threshold of the phase in tenth Volts.')
st4_phase_voltage_high_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 6000))).setUnits('tenth Volts').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4PhaseVoltageHighAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseVoltageHighAlarm.setDescription('The current high alarm threshold of the phase in tenth Volts.')
st4_phase_power_factor_low_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('hundredths').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4PhasePowerFactorLowAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4PhasePowerFactorLowAlarm.setDescription('The low power factor alarm threshold of the phase in hundredths.')
st4_phase_power_factor_low_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('hundredths').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4PhasePowerFactorLowWarning.setStatus('current')
if mibBuilder.loadTexts:
st4PhasePowerFactorLowWarning.setDescription('The low power factor warning threshold of the phase in hundredths.')
st4_over_current_protectors = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6))
st4_ocp_common_config = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 1))
st4_ocp_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2))
if mibBuilder.loadTexts:
st4OcpConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4OcpConfigTable.setDescription('Over-current protector configuration table.')
st4_ocp_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'), (0, 'Sentry4-MIB', 'st4OcpIndex'))
if mibBuilder.loadTexts:
st4OcpConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4OcpConfigEntry.setDescription('Configuration objects for a particular over-current protector.')
st4_ocp_index = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64)))
if mibBuilder.loadTexts:
st4OcpIndex.setStatus('current')
if mibBuilder.loadTexts:
st4OcpIndex.setDescription('Over-current protector index.')
st4_ocp_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(3, 4))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OcpID.setStatus('current')
if mibBuilder.loadTexts:
st4OcpID.setDescription('The internal ID of the over-current protector. Format=AAN[N].')
st4_ocp_label = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OcpLabel.setStatus('current')
if mibBuilder.loadTexts:
st4OcpLabel.setDescription('The system label assigned to the over-current protector for identification.')
st4_ocp_type = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('fuse', 0), ('breaker', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OcpType.setStatus('current')
if mibBuilder.loadTexts:
st4OcpType.setDescription('The type of over-current protector.')
st4_ocp_current_capacity = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 125))).setUnits('Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OcpCurrentCapacity.setStatus('current')
if mibBuilder.loadTexts:
st4OcpCurrentCapacity.setDescription('The user-configured current capacity of the over-current protector in Amps.')
st4_ocp_current_capacity_max = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 125))).setUnits('Amps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OcpCurrentCapacityMax.setStatus('current')
if mibBuilder.loadTexts:
st4OcpCurrentCapacityMax.setDescription('The factory-set maximum allowed for the user-configured current capacity of the over-current protector in Amps.')
st4_ocp_branch_count = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(0, 12))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OcpBranchCount.setStatus('current')
if mibBuilder.loadTexts:
st4OcpBranchCount.setDescription('The number of branches downstream from the over-current protector.')
st4_ocp_outlet_count = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OcpOutletCount.setStatus('current')
if mibBuilder.loadTexts:
st4OcpOutletCount.setDescription('The number of outlets powered from the over-current protector.')
st4_ocp_monitor_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 3))
if mibBuilder.loadTexts:
st4OcpMonitorTable.setStatus('current')
if mibBuilder.loadTexts:
st4OcpMonitorTable.setDescription('Over-current protector monitor table.')
st4_ocp_monitor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 3, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'), (0, 'Sentry4-MIB', 'st4OcpIndex'))
if mibBuilder.loadTexts:
st4OcpMonitorEntry.setStatus('current')
if mibBuilder.loadTexts:
st4OcpMonitorEntry.setDescription('Objects to monitor for a particular over-current protector.')
st4_ocp_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 3, 1, 1), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OcpStatus.setStatus('current')
if mibBuilder.loadTexts:
st4OcpStatus.setDescription('The status of the over-current protector.')
st4_ocp_event_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 4))
if mibBuilder.loadTexts:
st4OcpEventConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4OcpEventConfigTable.setDescription('Over-current protector event configuration table.')
st4_ocp_event_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 4, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'), (0, 'Sentry4-MIB', 'st4OcpIndex'))
if mibBuilder.loadTexts:
st4OcpEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4OcpEventConfigEntry.setDescription('Event configuration objects for a particular over-current protector.')
st4_ocp_notifications = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 4, 1, 1), event_notification_methods()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OcpNotifications.setStatus('current')
if mibBuilder.loadTexts:
st4OcpNotifications.setDescription('The notification methods enabled for over-current protector events.')
st4_branches = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7))
st4_branch_common_config = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 1))
st4_branch_current_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('tenth Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4BranchCurrentHysteresis.setStatus('current')
if mibBuilder.loadTexts:
st4BranchCurrentHysteresis.setDescription('The current hysteresis of the branch in tenth Amps.')
st4_branch_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2))
if mibBuilder.loadTexts:
st4BranchConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4BranchConfigTable.setDescription('Branch configuration table.')
st4_branch_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'), (0, 'Sentry4-MIB', 'st4BranchIndex'))
if mibBuilder.loadTexts:
st4BranchConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4BranchConfigEntry.setDescription('Configuration objects for a particular branch.')
st4_branch_index = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64)))
if mibBuilder.loadTexts:
st4BranchIndex.setStatus('current')
if mibBuilder.loadTexts:
st4BranchIndex.setDescription('Branch index.')
st4_branch_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(3, 4))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4BranchID.setStatus('current')
if mibBuilder.loadTexts:
st4BranchID.setDescription('The internal ID of the branch. Format=AAN[N].')
st4_branch_label = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4BranchLabel.setStatus('current')
if mibBuilder.loadTexts:
st4BranchLabel.setDescription('The system label assigned to the branch for identification.')
st4_branch_current_capacity = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 125))).setUnits('Amps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4BranchCurrentCapacity.setStatus('current')
if mibBuilder.loadTexts:
st4BranchCurrentCapacity.setDescription('The current capacity of the branch in Amps.')
st4_branch_phase_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 20), display_string().subtype(subtypeSpec=value_size_constraint(3, 3)).setFixedLength(3)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4BranchPhaseID.setStatus('current')
if mibBuilder.loadTexts:
st4BranchPhaseID.setDescription('The internal ID of the phase powering this branch. Format=AAN.')
st4_branch_ocp_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 21), display_string().subtype(subtypeSpec=value_size_constraint(3, 4))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4BranchOcpID.setStatus('current')
if mibBuilder.loadTexts:
st4BranchOcpID.setDescription('The internal ID of the over-current protector powering this outlet. Format=AAN[N].')
st4_branch_outlet_count = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 30), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4BranchOutletCount.setStatus('current')
if mibBuilder.loadTexts:
st4BranchOutletCount.setDescription('The number of outlets powered from the branch.')
st4_branch_monitor_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3))
if mibBuilder.loadTexts:
st4BranchMonitorTable.setStatus('current')
if mibBuilder.loadTexts:
st4BranchMonitorTable.setDescription('Branch monitor table.')
st4_branch_monitor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'), (0, 'Sentry4-MIB', 'st4BranchIndex'))
if mibBuilder.loadTexts:
st4BranchMonitorEntry.setStatus('current')
if mibBuilder.loadTexts:
st4BranchMonitorEntry.setDescription('Objects to monitor for a particular branch.')
st4_branch_state = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1, 1), device_state()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4BranchState.setStatus('current')
if mibBuilder.loadTexts:
st4BranchState.setDescription('The on/off state of the branch.')
st4_branch_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1, 2), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4BranchStatus.setStatus('current')
if mibBuilder.loadTexts:
st4BranchStatus.setDescription('The status of the branch.')
st4_branch_current = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(-1, 12500))).setUnits('hundredth Amps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4BranchCurrent.setStatus('current')
if mibBuilder.loadTexts:
st4BranchCurrent.setDescription('The measured current on the branch in hundredth Amps.')
st4_branch_current_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1, 4), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4BranchCurrentStatus.setStatus('current')
if mibBuilder.loadTexts:
st4BranchCurrentStatus.setDescription('The status of the measured current on the branch.')
st4_branch_current_utilized = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(-1, 1200))).setUnits('tenth percent').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4BranchCurrentUtilized.setStatus('current')
if mibBuilder.loadTexts:
st4BranchCurrentUtilized.setDescription('The amount of the branch current capacity used in tenth percent.')
st4_branch_event_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4))
if mibBuilder.loadTexts:
st4BranchEventConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4BranchEventConfigTable.setDescription('Branch event configuration table.')
st4_branch_event_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'), (0, 'Sentry4-MIB', 'st4BranchIndex'))
if mibBuilder.loadTexts:
st4BranchEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4BranchEventConfigEntry.setDescription('Event configuration objects for a particular branch.')
st4_branch_notifications = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1, 1), event_notification_methods()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4BranchNotifications.setStatus('current')
if mibBuilder.loadTexts:
st4BranchNotifications.setDescription('The notification methods enabled for branch events.')
st4_branch_current_low_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1250))).setUnits('tenth Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4BranchCurrentLowAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4BranchCurrentLowAlarm.setDescription('The current low alarm threshold of the branch in tenth Amps.')
st4_branch_current_low_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 1250))).setUnits('tenth Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4BranchCurrentLowWarning.setStatus('current')
if mibBuilder.loadTexts:
st4BranchCurrentLowWarning.setDescription('The current low warning threshold of the branch in tenth Amps.')
st4_branch_current_high_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 1250))).setUnits('tenth Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4BranchCurrentHighWarning.setStatus('current')
if mibBuilder.loadTexts:
st4BranchCurrentHighWarning.setDescription('The current high warning threshold of the branch in tenth Amps.')
st4_branch_current_high_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 1250))).setUnits('tenth Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4BranchCurrentHighAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4BranchCurrentHighAlarm.setDescription('The current high alarm threshold of the branch in tenth Amps.')
st4_outlets = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8))
st4_outlet_common_config = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1))
st4_outlet_current_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('tenth Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletCurrentHysteresis.setStatus('current')
if mibBuilder.loadTexts:
st4OutletCurrentHysteresis.setDescription('The current hysteresis of the outlet in tenth Amps.')
st4_outlet_active_power_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000))).setUnits('Watts').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletActivePowerHysteresis.setStatus('current')
if mibBuilder.loadTexts:
st4OutletActivePowerHysteresis.setDescription('The power hysteresis of the outlet in Watts.')
st4_outlet_power_factor_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 20))).setUnits('hundredths').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletPowerFactorHysteresis.setStatus('current')
if mibBuilder.loadTexts:
st4OutletPowerFactorHysteresis.setDescription('The power factor hysteresis of the outlet in hundredths.')
st4_outlet_sequence_interval = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 15))).setUnits('seconds').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletSequenceInterval.setStatus('current')
if mibBuilder.loadTexts:
st4OutletSequenceInterval.setDescription('The power-on sequencing interval for all outlets in seconds.')
st4_outlet_reboot_delay = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(5, 600))).setUnits('seconds').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletRebootDelay.setStatus('current')
if mibBuilder.loadTexts:
st4OutletRebootDelay.setDescription('The reboot delay for all outlets in seconds.')
st4_outlet_state_change_logging = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletStateChangeLogging.setStatus('current')
if mibBuilder.loadTexts:
st4OutletStateChangeLogging.setDescription('Enables or disables informational Outlet State Change event logging.')
st4_outlet_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2))
if mibBuilder.loadTexts:
st4OutletConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4OutletConfigTable.setDescription('Outlet configuration table.')
st4_outlet_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'), (0, 'Sentry4-MIB', 'st4OutletIndex'))
if mibBuilder.loadTexts:
st4OutletConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4OutletConfigEntry.setDescription('Configuration objects for a particular outlet.')
st4_outlet_index = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 128)))
if mibBuilder.loadTexts:
st4OutletIndex.setStatus('current')
if mibBuilder.loadTexts:
st4OutletIndex.setDescription('Outlet index.')
st4_outlet_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(3, 5))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletID.setStatus('current')
if mibBuilder.loadTexts:
st4OutletID.setDescription('The internal ID of the outlet. Format=AAN[N[N]].')
st4_outlet_name = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletName.setStatus('current')
if mibBuilder.loadTexts:
st4OutletName.setDescription('The name of the outlet.')
st4_outlet_capabilities = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 5), bits().clone(namedValues=named_values(('switched', 0), ('pops', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletCapabilities.setStatus('current')
if mibBuilder.loadTexts:
st4OutletCapabilities.setDescription('The capabilities of the outlet.')
st4_outlet_socket_type = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletSocketType.setStatus('current')
if mibBuilder.loadTexts:
st4OutletSocketType.setDescription('The socket type of the outlet.')
st4_outlet_current_capacity = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 125))).setUnits('Amps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletCurrentCapacity.setStatus('current')
if mibBuilder.loadTexts:
st4OutletCurrentCapacity.setDescription('The current capacity of the outlet in Amps.')
st4_outlet_power_capacity = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 10000))).setUnits('Volt-Amps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletPowerCapacity.setStatus('current')
if mibBuilder.loadTexts:
st4OutletPowerCapacity.setDescription('The power capacity of the outlet in Volt-Amps. For DC products, this is identical to power capacity in Watts.')
st4_outlet_wakeup_state = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('on', 0), ('off', 1), ('last', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletWakeupState.setStatus('current')
if mibBuilder.loadTexts:
st4OutletWakeupState.setDescription('The wakeup state of the outlet.')
st4_outlet_post_on_delay = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(0, 900))).setUnits('seconds').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletPostOnDelay.setStatus('current')
if mibBuilder.loadTexts:
st4OutletPostOnDelay.setDescription('The post-on delay of the outlet in seconds.')
st4_outlet_phase_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 30), display_string().subtype(subtypeSpec=value_size_constraint(3, 3)).setFixedLength(3)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletPhaseID.setStatus('current')
if mibBuilder.loadTexts:
st4OutletPhaseID.setDescription('The internal ID of the phase powering this outlet. Format=AAN.')
st4_outlet_ocp_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 31), display_string().subtype(subtypeSpec=value_size_constraint(3, 4))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletOcpID.setStatus('current')
if mibBuilder.loadTexts:
st4OutletOcpID.setDescription('The internal ID of the over-current protector powering this outlet. Format=AAN[N].')
st4_outlet_branch_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 32), display_string().subtype(subtypeSpec=value_size_constraint(3, 4))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletBranchID.setStatus('current')
if mibBuilder.loadTexts:
st4OutletBranchID.setDescription('The internal ID of the branch powering this outlet. Format=AAN[N].')
st4_outlet_monitor_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3))
if mibBuilder.loadTexts:
st4OutletMonitorTable.setStatus('current')
if mibBuilder.loadTexts:
st4OutletMonitorTable.setDescription('Outlet monitor table.')
st4_outlet_monitor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'), (0, 'Sentry4-MIB', 'st4OutletIndex'))
if mibBuilder.loadTexts:
st4OutletMonitorEntry.setStatus('current')
if mibBuilder.loadTexts:
st4OutletMonitorEntry.setDescription('Objects to monitor for a particular outlet.')
st4_outlet_state = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 1), device_state()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletState.setStatus('current')
if mibBuilder.loadTexts:
st4OutletState.setDescription('The on/off state of the outlet.')
st4_outlet_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 2), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletStatus.setStatus('current')
if mibBuilder.loadTexts:
st4OutletStatus.setDescription('The status of the outlet.')
st4_outlet_current = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(-1, 12500))).setUnits('hundredth Amps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletCurrent.setStatus('current')
if mibBuilder.loadTexts:
st4OutletCurrent.setDescription('The measured current on the outlet in hundredth Amps.')
st4_outlet_current_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 4), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletCurrentStatus.setStatus('current')
if mibBuilder.loadTexts:
st4OutletCurrentStatus.setDescription('The status of the measured current on the outlet.')
st4_outlet_current_utilized = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(-1, 1200))).setUnits('tenth percent').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletCurrentUtilized.setStatus('current')
if mibBuilder.loadTexts:
st4OutletCurrentUtilized.setDescription('The amount of the outlet current capacity used in tenth percent.')
st4_outlet_voltage = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(-1, 6000))).setUnits('tenth Volts').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletVoltage.setStatus('current')
if mibBuilder.loadTexts:
st4OutletVoltage.setDescription('The measured voltage of the outlet in tenth Volts.')
st4_outlet_active_power = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(-1, 10000))).setUnits('Watts').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletActivePower.setStatus('current')
if mibBuilder.loadTexts:
st4OutletActivePower.setDescription('The measured active power of the outlet in Watts.')
st4_outlet_active_power_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 8), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletActivePowerStatus.setStatus('current')
if mibBuilder.loadTexts:
st4OutletActivePowerStatus.setDescription('The status of the measured active power of the outlet.')
st4_outlet_apparent_power = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(-1, 10000))).setUnits('Volt-Amps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletApparentPower.setStatus('current')
if mibBuilder.loadTexts:
st4OutletApparentPower.setDescription('The measured apparent power of the outlet in Volt-Amps.')
st4_outlet_power_factor = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(-1, 100))).setUnits('hundredths').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletPowerFactor.setStatus('current')
if mibBuilder.loadTexts:
st4OutletPowerFactor.setDescription('The measured power factor of the outlet in hundredths.')
st4_outlet_power_factor_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 11), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletPowerFactorStatus.setStatus('current')
if mibBuilder.loadTexts:
st4OutletPowerFactorStatus.setDescription('The status of the measured power factor of the outlet.')
st4_outlet_current_crest_factor = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(-1, 250))).setUnits('tenths').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletCurrentCrestFactor.setStatus('current')
if mibBuilder.loadTexts:
st4OutletCurrentCrestFactor.setDescription('The measured crest factor of the outlet in tenths.')
st4_outlet_reactance = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('unknown', 0), ('capacitive', 1), ('inductive', 2), ('resistive', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletReactance.setStatus('current')
if mibBuilder.loadTexts:
st4OutletReactance.setDescription('The status of the measured reactance of the outlet.')
st4_outlet_energy = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(-1, 2147483647))).setUnits('Watt-Hours').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletEnergy.setStatus('current')
if mibBuilder.loadTexts:
st4OutletEnergy.setDescription('The total energy consumption of the device plugged into the outlet in Watt-Hours.')
st4_outlet_event_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4))
if mibBuilder.loadTexts:
st4OutletEventConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4OutletEventConfigTable.setDescription('Outlet event configuration table.')
st4_outlet_event_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'), (0, 'Sentry4-MIB', 'st4OutletIndex'))
if mibBuilder.loadTexts:
st4OutletEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4OutletEventConfigEntry.setDescription('Event configuration objects for a particular outlet.')
st4_outlet_notifications = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 1), event_notification_methods()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletNotifications.setStatus('current')
if mibBuilder.loadTexts:
st4OutletNotifications.setDescription('The notification methods enabled for outlet events.')
st4_outlet_current_low_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1250))).setUnits('tenth Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletCurrentLowAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4OutletCurrentLowAlarm.setDescription('The current low alarm threshold of the outlet in tenth Amps.')
st4_outlet_current_low_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 1250))).setUnits('tenth Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletCurrentLowWarning.setStatus('current')
if mibBuilder.loadTexts:
st4OutletCurrentLowWarning.setDescription('The current low warning threshold of the outlet in tenth Amps.')
st4_outlet_current_high_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 1250))).setUnits('tenth Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletCurrentHighWarning.setStatus('current')
if mibBuilder.loadTexts:
st4OutletCurrentHighWarning.setDescription('The current high warning threshold of the outlet in tenth Amps.')
st4_outlet_current_high_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 1250))).setUnits('tenth Amps').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletCurrentHighAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4OutletCurrentHighAlarm.setDescription('The current high alarm threshold of the outlet in tenth Amps.')
st4_outlet_active_power_low_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 10000))).setUnits('Watts').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletActivePowerLowAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4OutletActivePowerLowAlarm.setDescription('The active power low alarm threshold of the outlet in Watts.')
st4_outlet_active_power_low_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 10000))).setUnits('Watts').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletActivePowerLowWarning.setStatus('current')
if mibBuilder.loadTexts:
st4OutletActivePowerLowWarning.setDescription('The active power low warning threshold of the outlet in Watts.')
st4_outlet_active_power_high_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 10000))).setUnits('Watts').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletActivePowerHighWarning.setStatus('current')
if mibBuilder.loadTexts:
st4OutletActivePowerHighWarning.setDescription('The active power high warning threshold of the outlet in Watts.')
st4_outlet_active_power_high_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 10000))).setUnits('Watts').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletActivePowerHighAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4OutletActivePowerHighAlarm.setDescription('The active power high alarm threshold of the outlet in Watts.')
st4_outlet_power_factor_low_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('hundredths').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletPowerFactorLowAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4OutletPowerFactorLowAlarm.setDescription('The low power factor alarm threshold of the outlet in hundredths.')
st4_outlet_power_factor_low_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('hundredths').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletPowerFactorLowWarning.setStatus('current')
if mibBuilder.loadTexts:
st4OutletPowerFactorLowWarning.setDescription('The low power factor warning threshold of the outlet in hundredths.')
st4_outlet_control_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 5))
if mibBuilder.loadTexts:
st4OutletControlTable.setStatus('current')
if mibBuilder.loadTexts:
st4OutletControlTable.setDescription('Outlet control table.')
st4_outlet_control_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 5, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4InputCordIndex'), (0, 'Sentry4-MIB', 'st4OutletIndex'))
if mibBuilder.loadTexts:
st4OutletControlEntry.setStatus('current')
if mibBuilder.loadTexts:
st4OutletControlEntry.setDescription('Objects for control of a particular outlet.')
st4_outlet_control_state = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 5, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=named_values(('notSet', 0), ('fixedOn', 1), ('idleOff', 2), ('idleOn', 3), ('wakeOff', 4), ('wakeOn', 5), ('ocpOff', 6), ('ocpOn', 7), ('pendOn', 8), ('pendOff', 9), ('off', 10), ('on', 11), ('reboot', 12), ('shutdown', 13), ('lockedOff', 14), ('lockedOn', 15), ('eventOff', 16), ('eventOn', 17), ('eventReboot', 18), ('eventShutdown', 19)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4OutletControlState.setStatus('current')
if mibBuilder.loadTexts:
st4OutletControlState.setDescription('The control state of the outlet.')
st4_outlet_control_action = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 5, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('none', 0), ('on', 1), ('off', 2), ('reboot', 3), ('queueOn', 4), ('queueOff', 5), ('queueReboot', 6)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletControlAction.setStatus('current')
if mibBuilder.loadTexts:
st4OutletControlAction.setDescription('An action to change the control state of the outlet, or to queue an action.')
st4_outlet_common_control = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 6))
st4_outlet_queue_control = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 6, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('clear', 0), ('commit', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4OutletQueueControl.setStatus('current')
if mibBuilder.loadTexts:
st4OutletQueueControl.setDescription('An action to clear or commit queued outlet control actions. A read of this object returns clear(0) if queue is empty, and commit(1) if the queue is not empty.')
st4_temperature_sensors = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9))
st4_temp_sensor_common_config = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 1))
st4_temp_sensor_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 54))).setUnits('degrees').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4TempSensorHysteresis.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorHysteresis.setDescription('The temperature hysteresis of the sensor in degrees, using the scale selected by st4TempSensorScale.')
st4_temp_sensor_scale = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('celsius', 0), ('fahrenheit', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4TempSensorScale.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorScale.setDescription('The current scale used for all temperature values.')
st4_temp_sensor_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2))
if mibBuilder.loadTexts:
st4TempSensorConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorConfigTable.setDescription('Temperature sensor configuration table.')
st4_temp_sensor_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4TempSensorIndex'))
if mibBuilder.loadTexts:
st4TempSensorConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorConfigEntry.setDescription('Configuration objects for a particular temperature sensor.')
st4_temp_sensor_index = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2)))
if mibBuilder.loadTexts:
st4TempSensorIndex.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorIndex.setDescription('Temperature sensor index.')
st4_temp_sensor_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4TempSensorID.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorID.setDescription('The internal ID of the temperature sensor. Format=AN.')
st4_temp_sensor_name = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4TempSensorName.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorName.setDescription('The name of the temperature sensor.')
st4_temp_sensor_value_min = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(-40, 253))).setUnits('degrees').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4TempSensorValueMin.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorValueMin.setDescription('The minimum temperature limit of the sensor in degrees, using the scale selected by st4TempSensorScale.')
st4_temp_sensor_value_max = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(-40, 253))).setUnits('degrees').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4TempSensorValueMax.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorValueMax.setDescription('The maximum temperature limit of the sensor in degrees, using the scale selected by st4TempSensorScale.')
st4_temp_sensor_monitor_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 3))
if mibBuilder.loadTexts:
st4TempSensorMonitorTable.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorMonitorTable.setDescription('Temperature sensor monitor table.')
st4_temp_sensor_monitor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 3, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4TempSensorIndex'))
if mibBuilder.loadTexts:
st4TempSensorMonitorEntry.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorMonitorEntry.setDescription('Objects to monitor for a particular temperature sensor.')
st4_temp_sensor_value = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(-410, 2540))).setUnits('tenth degrees').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4TempSensorValue.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorValue.setDescription('The measured temperature on the sensor in tenth degrees using the scale selected by st4TempSensorScale. -410 means the temperature reading is invalid.')
st4_temp_sensor_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 3, 1, 2), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4TempSensorStatus.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorStatus.setDescription('The status of the temperature sensor.')
st4_temp_sensor_event_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4))
if mibBuilder.loadTexts:
st4TempSensorEventConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorEventConfigTable.setDescription('Temperature sensor event configuration table.')
st4_temp_sensor_event_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4TempSensorIndex'))
if mibBuilder.loadTexts:
st4TempSensorEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorEventConfigEntry.setDescription('Event configuration objects for a particular temperature sensor.')
st4_temp_sensor_notifications = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1, 1), event_notification_methods()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4TempSensorNotifications.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorNotifications.setDescription('The notification methods enabled for temperature sensor events.')
st4_temp_sensor_low_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(-40, 253))).setUnits('degrees').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4TempSensorLowAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorLowAlarm.setDescription('The low alarm threshold of the temperature sensor in degrees.')
st4_temp_sensor_low_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(-40, 253))).setUnits('degrees').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4TempSensorLowWarning.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorLowWarning.setDescription('The low warning threshold of the temperature sensor in degrees.')
st4_temp_sensor_high_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(-40, 253))).setUnits('degrees').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4TempSensorHighWarning.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorHighWarning.setDescription('The high warning threshold of the temperature sensor in degrees.')
st4_temp_sensor_high_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(-40, 253))).setUnits('degrees').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4TempSensorHighAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorHighAlarm.setDescription('The high alarm threshold of the temperature sensor in degrees.')
st4_humidity_sensors = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10))
st4_humid_sensor_common_config = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 1))
st4_humid_sensor_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 20))).setUnits('percentage relative humidity').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4HumidSensorHysteresis.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorHysteresis.setDescription('The humidity hysteresis of the sensor in percent relative humidity.')
st4_humid_sensor_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 2))
if mibBuilder.loadTexts:
st4HumidSensorConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorConfigTable.setDescription('Humidity sensor configuration table.')
st4_humid_sensor_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 2, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4HumidSensorIndex'))
if mibBuilder.loadTexts:
st4HumidSensorConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorConfigEntry.setDescription('Configuration objects for a particular humidity sensor.')
st4_humid_sensor_index = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2)))
if mibBuilder.loadTexts:
st4HumidSensorIndex.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorIndex.setDescription('Humidity sensor index.')
st4_humid_sensor_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4HumidSensorID.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorID.setDescription('The internal ID of the humidity sensor. Format=AN.')
st4_humid_sensor_name = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4HumidSensorName.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorName.setDescription('The name of the humidity sensor.')
st4_humid_sensor_monitor_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 3))
if mibBuilder.loadTexts:
st4HumidSensorMonitorTable.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorMonitorTable.setDescription('Humidity sensor monitor table.')
st4_humid_sensor_monitor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 3, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4HumidSensorIndex'))
if mibBuilder.loadTexts:
st4HumidSensorMonitorEntry.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorMonitorEntry.setDescription('Objects to monitor for a particular humidity sensor.')
st4_humid_sensor_value = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(-1, 100))).setUnits('percentage relative humidity').setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4HumidSensorValue.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorValue.setDescription('The measured humidity on the sensor in percentage relative humidity.')
st4_humid_sensor_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 3, 1, 2), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4HumidSensorStatus.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorStatus.setDescription('The status of the humidity sensor.')
st4_humid_sensor_event_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4))
if mibBuilder.loadTexts:
st4HumidSensorEventConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorEventConfigTable.setDescription('Humidity sensor event configuration table.')
st4_humid_sensor_event_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4HumidSensorIndex'))
if mibBuilder.loadTexts:
st4HumidSensorEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorEventConfigEntry.setDescription('Event configuration objects for a particular humidity sensor.')
st4_humid_sensor_notifications = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1, 1), event_notification_methods()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4HumidSensorNotifications.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorNotifications.setDescription('The notification methods enabled for humidity sensor events.')
st4_humid_sensor_low_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percentage relative humidity').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4HumidSensorLowAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorLowAlarm.setDescription('The low alarm threshold of the humidity sensor in percentage relative humidity.')
st4_humid_sensor_low_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percentage relative humidity').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4HumidSensorLowWarning.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorLowWarning.setDescription('The low warning threshold of the humidity sensor in percentage relative humidity.')
st4_humid_sensor_high_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percentage relative humidity').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4HumidSensorHighWarning.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorHighWarning.setDescription('The high warning threshold of the humidity sensor in percentage relative humidity.')
st4_humid_sensor_high_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percentage relative humidity').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4HumidSensorHighAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorHighAlarm.setDescription('The high alarm threshold of the humidity sensor in percentage relative humidity.')
st4_water_sensors = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11))
st4_water_sensor_common_config = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 1))
st4_water_sensor_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 2))
if mibBuilder.loadTexts:
st4WaterSensorConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4WaterSensorConfigTable.setDescription('Water sensor configuration table.')
st4_water_sensor_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 2, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4WaterSensorIndex'))
if mibBuilder.loadTexts:
st4WaterSensorConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4WaterSensorConfigEntry.setDescription('Configuration objects for a particular water sensor.')
st4_water_sensor_index = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 1)))
if mibBuilder.loadTexts:
st4WaterSensorIndex.setStatus('current')
if mibBuilder.loadTexts:
st4WaterSensorIndex.setDescription('Water sensor index.')
st4_water_sensor_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4WaterSensorID.setStatus('current')
if mibBuilder.loadTexts:
st4WaterSensorID.setDescription('The internal ID of the water sensor. Format=AN.')
st4_water_sensor_name = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4WaterSensorName.setStatus('current')
if mibBuilder.loadTexts:
st4WaterSensorName.setDescription('The name of the water sensor.')
st4_water_sensor_monitor_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 3))
if mibBuilder.loadTexts:
st4WaterSensorMonitorTable.setStatus('current')
if mibBuilder.loadTexts:
st4WaterSensorMonitorTable.setDescription('Water sensor monitor table.')
st4_water_sensor_monitor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 3, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4WaterSensorIndex'))
if mibBuilder.loadTexts:
st4WaterSensorMonitorEntry.setStatus('current')
if mibBuilder.loadTexts:
st4WaterSensorMonitorEntry.setDescription('Objects to monitor for a particular water sensor.')
st4_water_sensor_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 3, 1, 1), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4WaterSensorStatus.setStatus('current')
if mibBuilder.loadTexts:
st4WaterSensorStatus.setDescription('The status of the water sensor.')
st4_water_sensor_event_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 4))
if mibBuilder.loadTexts:
st4WaterSensorEventConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4WaterSensorEventConfigTable.setDescription('Water sensor event configuration table.')
st4_water_sensor_event_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 4, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4WaterSensorIndex'))
if mibBuilder.loadTexts:
st4WaterSensorEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4WaterSensorEventConfigEntry.setDescription('Event configuration objects for a particular water sensor.')
st4_water_sensor_notifications = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 4, 1, 1), event_notification_methods()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4WaterSensorNotifications.setStatus('current')
if mibBuilder.loadTexts:
st4WaterSensorNotifications.setDescription('The notification methods enabled for water sensor events.')
st4_contact_closure_sensors = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12))
st4_cc_sensor_common_config = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 1))
st4_cc_sensor_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 2))
if mibBuilder.loadTexts:
st4CcSensorConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4CcSensorConfigTable.setDescription('Contact closure sensor configuration table.')
st4_cc_sensor_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 2, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4CcSensorIndex'))
if mibBuilder.loadTexts:
st4CcSensorConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4CcSensorConfigEntry.setDescription('Configuration objects for a particular contact closure sensor.')
st4_cc_sensor_index = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 4)))
if mibBuilder.loadTexts:
st4CcSensorIndex.setStatus('current')
if mibBuilder.loadTexts:
st4CcSensorIndex.setDescription('Contact closure sensor index.')
st4_cc_sensor_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4CcSensorID.setStatus('current')
if mibBuilder.loadTexts:
st4CcSensorID.setDescription('The internal ID of the contact closure sensor. Format=AN.')
st4_cc_sensor_name = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4CcSensorName.setStatus('current')
if mibBuilder.loadTexts:
st4CcSensorName.setDescription('The name of the contact closure sensor.')
st4_cc_sensor_monitor_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 3))
if mibBuilder.loadTexts:
st4CcSensorMonitorTable.setStatus('current')
if mibBuilder.loadTexts:
st4CcSensorMonitorTable.setDescription('Contact closure sensor monitor table.')
st4_cc_sensor_monitor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 3, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4CcSensorIndex'))
if mibBuilder.loadTexts:
st4CcSensorMonitorEntry.setStatus('current')
if mibBuilder.loadTexts:
st4CcSensorMonitorEntry.setDescription('Objects to monitor for a particular contact closure sensor.')
st4_cc_sensor_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 3, 1, 1), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4CcSensorStatus.setStatus('current')
if mibBuilder.loadTexts:
st4CcSensorStatus.setDescription('The status of the contact closure.')
st4_cc_sensor_event_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 4))
if mibBuilder.loadTexts:
st4CcSensorEventConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4CcSensorEventConfigTable.setDescription('Contact closure sensor event configuration table.')
st4_cc_sensor_event_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 4, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4CcSensorIndex'))
if mibBuilder.loadTexts:
st4CcSensorEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4CcSensorEventConfigEntry.setDescription('Event configuration objects for a particular contact closure sensor.')
st4_cc_sensor_notifications = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 4, 1, 1), event_notification_methods()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4CcSensorNotifications.setStatus('current')
if mibBuilder.loadTexts:
st4CcSensorNotifications.setDescription('The notification methods enabled for contact closure sensor events.')
st4_analog_to_digital_conv_sensors = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13))
st4_adc_sensor_common_config = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 1))
st4_adc_sensor_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 20))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4AdcSensorHysteresis.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorHysteresis.setDescription('The 8-bit count hysteresis of the analog-to-digital converter sensor.')
st4_adc_sensor_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 2))
if mibBuilder.loadTexts:
st4AdcSensorConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorConfigTable.setDescription('Analog-to-digital converter sensor configuration table.')
st4_adc_sensor_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 2, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4AdcSensorIndex'))
if mibBuilder.loadTexts:
st4AdcSensorConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorConfigEntry.setDescription('Configuration objects for a particular analog-to-digital converter sensor.')
st4_adc_sensor_index = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 1)))
if mibBuilder.loadTexts:
st4AdcSensorIndex.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorIndex.setDescription('Analog-to-digital converter sensor index.')
st4_adc_sensor_id = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4AdcSensorID.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorID.setDescription('The internal ID of the analog-to-digital converter sensor. Format=AN.')
st4_adc_sensor_name = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4AdcSensorName.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorName.setDescription('The name of the analog-to-digital converter sensor.')
st4_adc_sensor_monitor_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 3))
if mibBuilder.loadTexts:
st4AdcSensorMonitorTable.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorMonitorTable.setDescription('Analog-to-digital converter sensor monitor table.')
st4_adc_sensor_monitor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 3, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4AdcSensorIndex'))
if mibBuilder.loadTexts:
st4AdcSensorMonitorEntry.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorMonitorEntry.setDescription('Objects to monitor for a particular analog-to-digital converter sensor.')
st4_adc_sensor_value = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(-1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4AdcSensorValue.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorValue.setDescription('The 8-bit value from the analog-to-digital converter sensor.')
st4_adc_sensor_status = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 3, 1, 2), device_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4AdcSensorStatus.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorStatus.setDescription('The status of the analog-to-digital converter sensor.')
st4_adc_sensor_event_config_table = mib_table((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4))
if mibBuilder.loadTexts:
st4AdcSensorEventConfigTable.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorEventConfigTable.setDescription('Analog-to-digital converter sensor event configuration table.')
st4_adc_sensor_event_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1)).setIndexNames((0, 'Sentry4-MIB', 'st4UnitIndex'), (0, 'Sentry4-MIB', 'st4AdcSensorIndex'))
if mibBuilder.loadTexts:
st4AdcSensorEventConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorEventConfigEntry.setDescription('Event configuration objects for a particular analog-to-digital converter sensor.')
st4_adc_sensor_notifications = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1, 1), event_notification_methods()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4AdcSensorNotifications.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorNotifications.setDescription('The notification methods enabled for analog-to-digital converter sensor events.')
st4_adc_sensor_low_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4AdcSensorLowAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorLowAlarm.setDescription('The 8-bit value for the low alarm threshold of the analog-to-digital converter sensor.')
st4_adc_sensor_low_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4AdcSensorLowWarning.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorLowWarning.setDescription('The 8-bit value for the low warning threshold of the analog-to-digital converter sensor.')
st4_adc_sensor_high_warning = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4AdcSensorHighWarning.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorHighWarning.setDescription('The 8-bit value for the high warning threshold of the analog-to-digital converter sensor.')
st4_adc_sensor_high_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
st4AdcSensorHighAlarm.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorHighAlarm.setDescription('The 8-bit value for the high alarm threshold of the analog-to-digital converter sensor.')
st4_event_information = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 99))
st4_event_status_text = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 99, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4EventStatusText.setStatus('current')
if mibBuilder.loadTexts:
st4EventStatusText.setDescription('The text representation of the enumerated integer value of the most-relevant status or state object included in a trap. The value of this object is set only when sent with a trap. A read of this object will return a NULL string.')
st4_event_status_condition = mib_scalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 99, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('nonError', 0), ('error', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
st4EventStatusCondition.setStatus('current')
if mibBuilder.loadTexts:
st4EventStatusCondition.setDescription('The condition of the enumerated integer value of the status object included in a trap. The value of this object is set only when sent with a trap. A read of this object will return zero.')
st4_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 100))
st4_events = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0))
st4_unit_status_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 1)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4UnitID'), ('Sentry4-MIB', 'st4UnitName'), ('Sentry4-MIB', 'st4UnitStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4UnitStatusEvent.setStatus('current')
if mibBuilder.loadTexts:
st4UnitStatusEvent.setDescription('Unit status event.')
st4_input_cord_status_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 2)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4InputCordID'), ('Sentry4-MIB', 'st4InputCordName'), ('Sentry4-MIB', 'st4InputCordState'), ('Sentry4-MIB', 'st4InputCordStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4InputCordStatusEvent.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordStatusEvent.setDescription('Input cord status event.')
st4_input_cord_active_power_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 3)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4InputCordID'), ('Sentry4-MIB', 'st4InputCordName'), ('Sentry4-MIB', 'st4InputCordActivePower'), ('Sentry4-MIB', 'st4InputCordActivePowerStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4InputCordActivePowerEvent.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordActivePowerEvent.setDescription('Input cord active power event.')
st4_input_cord_apparent_power_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 4)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4InputCordID'), ('Sentry4-MIB', 'st4InputCordName'), ('Sentry4-MIB', 'st4InputCordApparentPower'), ('Sentry4-MIB', 'st4InputCordApparentPowerStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4InputCordApparentPowerEvent.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordApparentPowerEvent.setDescription('Input cord apparent power event.')
st4_input_cord_power_factor_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 5)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4InputCordID'), ('Sentry4-MIB', 'st4InputCordName'), ('Sentry4-MIB', 'st4InputCordPowerFactor'), ('Sentry4-MIB', 'st4InputCordPowerFactorStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4InputCordPowerFactorEvent.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordPowerFactorEvent.setDescription('Input cord power factor event.')
st4_input_cord_out_of_balance_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 6)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4InputCordID'), ('Sentry4-MIB', 'st4InputCordName'), ('Sentry4-MIB', 'st4InputCordOutOfBalance'), ('Sentry4-MIB', 'st4InputCordOutOfBalanceStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4InputCordOutOfBalanceEvent.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordOutOfBalanceEvent.setDescription('Input cord out-of-balance event.')
st4_line_status_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 7)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4LineID'), ('Sentry4-MIB', 'st4LineLabel'), ('Sentry4-MIB', 'st4LineState'), ('Sentry4-MIB', 'st4LineStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4LineStatusEvent.setStatus('current')
if mibBuilder.loadTexts:
st4LineStatusEvent.setDescription('Line status event.')
st4_line_current_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 8)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4LineID'), ('Sentry4-MIB', 'st4LineLabel'), ('Sentry4-MIB', 'st4LineCurrent'), ('Sentry4-MIB', 'st4LineCurrentStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4LineCurrentEvent.setStatus('current')
if mibBuilder.loadTexts:
st4LineCurrentEvent.setDescription('Line current event.')
st4_phase_status_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 9)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4PhaseID'), ('Sentry4-MIB', 'st4PhaseLabel'), ('Sentry4-MIB', 'st4PhaseState'), ('Sentry4-MIB', 'st4PhaseStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4PhaseStatusEvent.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseStatusEvent.setDescription('Phase status event.')
st4_phase_voltage_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 10)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4PhaseID'), ('Sentry4-MIB', 'st4PhaseLabel'), ('Sentry4-MIB', 'st4PhaseVoltage'), ('Sentry4-MIB', 'st4PhaseVoltageStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4PhaseVoltageEvent.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseVoltageEvent.setDescription('Phase voltage event.')
st4_phase_power_factor_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 11)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4PhaseID'), ('Sentry4-MIB', 'st4PhaseLabel'), ('Sentry4-MIB', 'st4PhasePowerFactor'), ('Sentry4-MIB', 'st4PhasePowerFactorStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4PhasePowerFactorEvent.setStatus('current')
if mibBuilder.loadTexts:
st4PhasePowerFactorEvent.setDescription('Phase voltage event.')
st4_ocp_status_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 12)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4OcpID'), ('Sentry4-MIB', 'st4OcpLabel'), ('Sentry4-MIB', 'st4OcpStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4OcpStatusEvent.setStatus('current')
if mibBuilder.loadTexts:
st4OcpStatusEvent.setDescription('Over-current protector status event.')
st4_branch_status_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 13)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4BranchID'), ('Sentry4-MIB', 'st4BranchLabel'), ('Sentry4-MIB', 'st4BranchState'), ('Sentry4-MIB', 'st4BranchStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4BranchStatusEvent.setStatus('current')
if mibBuilder.loadTexts:
st4BranchStatusEvent.setDescription('Branch status event.')
st4_branch_current_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 14)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4BranchID'), ('Sentry4-MIB', 'st4BranchLabel'), ('Sentry4-MIB', 'st4BranchCurrent'), ('Sentry4-MIB', 'st4BranchCurrentStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4BranchCurrentEvent.setStatus('current')
if mibBuilder.loadTexts:
st4BranchCurrentEvent.setDescription('Branch current event.')
st4_outlet_status_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 15)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4OutletID'), ('Sentry4-MIB', 'st4OutletName'), ('Sentry4-MIB', 'st4OutletState'), ('Sentry4-MIB', 'st4OutletStatus'), ('Sentry4-MIB', 'st4OutletControlState'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4OutletStatusEvent.setStatus('current')
if mibBuilder.loadTexts:
st4OutletStatusEvent.setDescription('Outlet status event.')
st4_outlet_state_change_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 16)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4OutletID'), ('Sentry4-MIB', 'st4OutletName'), ('Sentry4-MIB', 'st4OutletState'), ('Sentry4-MIB', 'st4OutletStatus'), ('Sentry4-MIB', 'st4OutletControlState'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4OutletStateChangeEvent.setStatus('current')
if mibBuilder.loadTexts:
st4OutletStateChangeEvent.setDescription('Outlet state change event.')
st4_outlet_current_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 17)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4OutletID'), ('Sentry4-MIB', 'st4OutletName'), ('Sentry4-MIB', 'st4OutletCurrent'), ('Sentry4-MIB', 'st4OutletCurrentStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4OutletCurrentEvent.setStatus('current')
if mibBuilder.loadTexts:
st4OutletCurrentEvent.setDescription('Outlet current event.')
st4_outlet_active_power_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 18)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4OutletID'), ('Sentry4-MIB', 'st4OutletName'), ('Sentry4-MIB', 'st4OutletActivePower'), ('Sentry4-MIB', 'st4OutletActivePowerStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4OutletActivePowerEvent.setStatus('current')
if mibBuilder.loadTexts:
st4OutletActivePowerEvent.setDescription('Outlet active power event.')
st4_outlet_power_factor_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 19)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4OutletID'), ('Sentry4-MIB', 'st4OutletName'), ('Sentry4-MIB', 'st4OutletPowerFactor'), ('Sentry4-MIB', 'st4OutletPowerFactorStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4OutletPowerFactorEvent.setStatus('current')
if mibBuilder.loadTexts:
st4OutletPowerFactorEvent.setDescription('Outlet power factor event.')
st4_temp_sensor_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 20)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4TempSensorID'), ('Sentry4-MIB', 'st4TempSensorName'), ('Sentry4-MIB', 'st4TempSensorValue'), ('Sentry4-MIB', 'st4TempSensorStatus'), ('Sentry4-MIB', 'st4TempSensorScale'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4TempSensorEvent.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorEvent.setDescription('Temperature sensor event.')
st4_humid_sensor_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 21)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4HumidSensorID'), ('Sentry4-MIB', 'st4HumidSensorName'), ('Sentry4-MIB', 'st4HumidSensorValue'), ('Sentry4-MIB', 'st4HumidSensorStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4HumidSensorEvent.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorEvent.setDescription('Humidity sensor event.')
st4_water_sensor_status_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 22)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4WaterSensorID'), ('Sentry4-MIB', 'st4WaterSensorName'), ('Sentry4-MIB', 'st4WaterSensorStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4WaterSensorStatusEvent.setStatus('current')
if mibBuilder.loadTexts:
st4WaterSensorStatusEvent.setDescription('Water sensor status event.')
st4_cc_sensor_status_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 23)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4CcSensorID'), ('Sentry4-MIB', 'st4CcSensorName'), ('Sentry4-MIB', 'st4CcSensorStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4CcSensorStatusEvent.setStatus('current')
if mibBuilder.loadTexts:
st4CcSensorStatusEvent.setDescription('Contact closure sensor status event.')
st4_adc_sensor_event = notification_type((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 24)).setObjects(('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4AdcSensorID'), ('Sentry4-MIB', 'st4AdcSensorName'), ('Sentry4-MIB', 'st4AdcSensorValue'), ('Sentry4-MIB', 'st4AdcSensorStatus'), ('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if mibBuilder.loadTexts:
st4AdcSensorEvent.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorEvent.setDescription('Analog-to-digital converter sensor event.')
st4_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 200))
st4_groups = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1))
st4_system_objects_group = object_group((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 1)).setObjects(('Sentry4-MIB', 'st4SystemProductName'), ('Sentry4-MIB', 'st4SystemLocation'), ('Sentry4-MIB', 'st4SystemFirmwareVersion'), ('Sentry4-MIB', 'st4SystemFirmwareBuildInfo'), ('Sentry4-MIB', 'st4SystemNICSerialNumber'), ('Sentry4-MIB', 'st4SystemNICHardwareInfo'), ('Sentry4-MIB', 'st4SystemProductSeries'), ('Sentry4-MIB', 'st4SystemFeatures'), ('Sentry4-MIB', 'st4SystemFeatureKey'), ('Sentry4-MIB', 'st4SystemConfigModifiedCount'), ('Sentry4-MIB', 'st4SystemUnitCount'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4_system_objects_group = st4SystemObjectsGroup.setStatus('current')
if mibBuilder.loadTexts:
st4SystemObjectsGroup.setDescription('System objects group.')
st4_unit_objects_group = object_group((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 2)).setObjects(('Sentry4-MIB', 'st4UnitID'), ('Sentry4-MIB', 'st4UnitName'), ('Sentry4-MIB', 'st4UnitProductSN'), ('Sentry4-MIB', 'st4UnitModel'), ('Sentry4-MIB', 'st4UnitAssetTag'), ('Sentry4-MIB', 'st4UnitType'), ('Sentry4-MIB', 'st4UnitCapabilities'), ('Sentry4-MIB', 'st4UnitProductMfrDate'), ('Sentry4-MIB', 'st4UnitDisplayOrientation'), ('Sentry4-MIB', 'st4UnitOutletSequenceOrder'), ('Sentry4-MIB', 'st4UnitInputCordCount'), ('Sentry4-MIB', 'st4UnitTempSensorCount'), ('Sentry4-MIB', 'st4UnitHumidSensorCount'), ('Sentry4-MIB', 'st4UnitWaterSensorCount'), ('Sentry4-MIB', 'st4UnitCcSensorCount'), ('Sentry4-MIB', 'st4UnitAdcSensorCount'), ('Sentry4-MIB', 'st4UnitStatus'), ('Sentry4-MIB', 'st4UnitNotifications'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4_unit_objects_group = st4UnitObjectsGroup.setStatus('current')
if mibBuilder.loadTexts:
st4UnitObjectsGroup.setDescription('Unit objects group.')
st4_input_cord_objects_group = object_group((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 3)).setObjects(('Sentry4-MIB', 'st4InputCordActivePowerHysteresis'), ('Sentry4-MIB', 'st4InputCordApparentPowerHysteresis'), ('Sentry4-MIB', 'st4InputCordPowerFactorHysteresis'), ('Sentry4-MIB', 'st4InputCordOutOfBalanceHysteresis'), ('Sentry4-MIB', 'st4InputCordID'), ('Sentry4-MIB', 'st4InputCordName'), ('Sentry4-MIB', 'st4InputCordInletType'), ('Sentry4-MIB', 'st4InputCordNominalVoltage'), ('Sentry4-MIB', 'st4InputCordNominalVoltageMin'), ('Sentry4-MIB', 'st4InputCordNominalVoltageMax'), ('Sentry4-MIB', 'st4InputCordCurrentCapacity'), ('Sentry4-MIB', 'st4InputCordCurrentCapacityMax'), ('Sentry4-MIB', 'st4InputCordPowerCapacity'), ('Sentry4-MIB', 'st4InputCordNominalPowerFactor'), ('Sentry4-MIB', 'st4InputCordLineCount'), ('Sentry4-MIB', 'st4InputCordPhaseCount'), ('Sentry4-MIB', 'st4InputCordOcpCount'), ('Sentry4-MIB', 'st4InputCordBranchCount'), ('Sentry4-MIB', 'st4InputCordOutletCount'), ('Sentry4-MIB', 'st4InputCordState'), ('Sentry4-MIB', 'st4InputCordStatus'), ('Sentry4-MIB', 'st4InputCordActivePower'), ('Sentry4-MIB', 'st4InputCordActivePowerStatus'), ('Sentry4-MIB', 'st4InputCordApparentPower'), ('Sentry4-MIB', 'st4InputCordApparentPowerStatus'), ('Sentry4-MIB', 'st4InputCordPowerUtilized'), ('Sentry4-MIB', 'st4InputCordPowerFactor'), ('Sentry4-MIB', 'st4InputCordPowerFactorStatus'), ('Sentry4-MIB', 'st4InputCordEnergy'), ('Sentry4-MIB', 'st4InputCordFrequency'), ('Sentry4-MIB', 'st4InputCordOutOfBalance'), ('Sentry4-MIB', 'st4InputCordOutOfBalanceStatus'), ('Sentry4-MIB', 'st4InputCordNotifications'), ('Sentry4-MIB', 'st4InputCordActivePowerLowAlarm'), ('Sentry4-MIB', 'st4InputCordActivePowerLowWarning'), ('Sentry4-MIB', 'st4InputCordActivePowerHighWarning'), ('Sentry4-MIB', 'st4InputCordActivePowerHighAlarm'), ('Sentry4-MIB', 'st4InputCordApparentPowerLowAlarm'), ('Sentry4-MIB', 'st4InputCordApparentPowerLowWarning'), ('Sentry4-MIB', 'st4InputCordApparentPowerHighWarning'), ('Sentry4-MIB', 'st4InputCordApparentPowerHighAlarm'), ('Sentry4-MIB', 'st4InputCordPowerFactorLowAlarm'), ('Sentry4-MIB', 'st4InputCordPowerFactorLowWarning'), ('Sentry4-MIB', 'st4InputCordOutOfBalanceHighWarning'), ('Sentry4-MIB', 'st4InputCordOutOfBalanceHighAlarm'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4_input_cord_objects_group = st4InputCordObjectsGroup.setStatus('current')
if mibBuilder.loadTexts:
st4InputCordObjectsGroup.setDescription('Input cord objects group.')
st4_line_objects_group = object_group((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 4)).setObjects(('Sentry4-MIB', 'st4LineCurrentHysteresis'), ('Sentry4-MIB', 'st4LineID'), ('Sentry4-MIB', 'st4LineLabel'), ('Sentry4-MIB', 'st4LineCurrentCapacity'), ('Sentry4-MIB', 'st4LineState'), ('Sentry4-MIB', 'st4LineStatus'), ('Sentry4-MIB', 'st4LineCurrent'), ('Sentry4-MIB', 'st4LineCurrentStatus'), ('Sentry4-MIB', 'st4LineCurrentUtilized'), ('Sentry4-MIB', 'st4LineNotifications'), ('Sentry4-MIB', 'st4LineCurrentLowAlarm'), ('Sentry4-MIB', 'st4LineCurrentLowWarning'), ('Sentry4-MIB', 'st4LineCurrentHighWarning'), ('Sentry4-MIB', 'st4LineCurrentHighAlarm'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4_line_objects_group = st4LineObjectsGroup.setStatus('current')
if mibBuilder.loadTexts:
st4LineObjectsGroup.setDescription('Line objects group.')
st4_phase_objects_group = object_group((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 5)).setObjects(('Sentry4-MIB', 'st4PhaseVoltageHysteresis'), ('Sentry4-MIB', 'st4PhasePowerFactorHysteresis'), ('Sentry4-MIB', 'st4PhaseID'), ('Sentry4-MIB', 'st4PhaseLabel'), ('Sentry4-MIB', 'st4PhaseNominalVoltage'), ('Sentry4-MIB', 'st4PhaseBranchCount'), ('Sentry4-MIB', 'st4PhaseOutletCount'), ('Sentry4-MIB', 'st4PhaseState'), ('Sentry4-MIB', 'st4PhaseStatus'), ('Sentry4-MIB', 'st4PhaseVoltage'), ('Sentry4-MIB', 'st4PhaseVoltageStatus'), ('Sentry4-MIB', 'st4PhaseVoltageDeviation'), ('Sentry4-MIB', 'st4PhaseCurrent'), ('Sentry4-MIB', 'st4PhaseCurrentCrestFactor'), ('Sentry4-MIB', 'st4PhaseActivePower'), ('Sentry4-MIB', 'st4PhaseApparentPower'), ('Sentry4-MIB', 'st4PhasePowerFactor'), ('Sentry4-MIB', 'st4PhasePowerFactorStatus'), ('Sentry4-MIB', 'st4PhaseReactance'), ('Sentry4-MIB', 'st4PhaseEnergy'), ('Sentry4-MIB', 'st4PhaseNotifications'), ('Sentry4-MIB', 'st4PhaseVoltageLowAlarm'), ('Sentry4-MIB', 'st4PhaseVoltageLowWarning'), ('Sentry4-MIB', 'st4PhaseVoltageHighWarning'), ('Sentry4-MIB', 'st4PhaseVoltageHighAlarm'), ('Sentry4-MIB', 'st4PhasePowerFactorLowAlarm'), ('Sentry4-MIB', 'st4PhasePowerFactorLowWarning'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4_phase_objects_group = st4PhaseObjectsGroup.setStatus('current')
if mibBuilder.loadTexts:
st4PhaseObjectsGroup.setDescription('Phase objects group.')
st4_ocp_objects_group = object_group((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 6)).setObjects(('Sentry4-MIB', 'st4OcpID'), ('Sentry4-MIB', 'st4OcpLabel'), ('Sentry4-MIB', 'st4OcpType'), ('Sentry4-MIB', 'st4OcpCurrentCapacity'), ('Sentry4-MIB', 'st4OcpCurrentCapacityMax'), ('Sentry4-MIB', 'st4OcpBranchCount'), ('Sentry4-MIB', 'st4OcpOutletCount'), ('Sentry4-MIB', 'st4OcpStatus'), ('Sentry4-MIB', 'st4OcpNotifications'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4_ocp_objects_group = st4OcpObjectsGroup.setStatus('current')
if mibBuilder.loadTexts:
st4OcpObjectsGroup.setDescription('Over-current protector objects group.')
st4_branch_objects_group = object_group((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 7)).setObjects(('Sentry4-MIB', 'st4BranchCurrentHysteresis'), ('Sentry4-MIB', 'st4BranchID'), ('Sentry4-MIB', 'st4BranchLabel'), ('Sentry4-MIB', 'st4BranchCurrentCapacity'), ('Sentry4-MIB', 'st4BranchPhaseID'), ('Sentry4-MIB', 'st4BranchOcpID'), ('Sentry4-MIB', 'st4BranchOutletCount'), ('Sentry4-MIB', 'st4BranchState'), ('Sentry4-MIB', 'st4BranchStatus'), ('Sentry4-MIB', 'st4BranchCurrent'), ('Sentry4-MIB', 'st4BranchCurrentStatus'), ('Sentry4-MIB', 'st4BranchCurrentUtilized'), ('Sentry4-MIB', 'st4BranchNotifications'), ('Sentry4-MIB', 'st4BranchCurrentLowAlarm'), ('Sentry4-MIB', 'st4BranchCurrentLowWarning'), ('Sentry4-MIB', 'st4BranchCurrentHighWarning'), ('Sentry4-MIB', 'st4BranchCurrentHighAlarm'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4_branch_objects_group = st4BranchObjectsGroup.setStatus('current')
if mibBuilder.loadTexts:
st4BranchObjectsGroup.setDescription('Branch objects group.')
st4_outlet_objects_group = object_group((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 8)).setObjects(('Sentry4-MIB', 'st4OutletCurrentHysteresis'), ('Sentry4-MIB', 'st4OutletActivePowerHysteresis'), ('Sentry4-MIB', 'st4OutletPowerFactorHysteresis'), ('Sentry4-MIB', 'st4OutletSequenceInterval'), ('Sentry4-MIB', 'st4OutletRebootDelay'), ('Sentry4-MIB', 'st4OutletStateChangeLogging'), ('Sentry4-MIB', 'st4OutletID'), ('Sentry4-MIB', 'st4OutletName'), ('Sentry4-MIB', 'st4OutletCapabilities'), ('Sentry4-MIB', 'st4OutletSocketType'), ('Sentry4-MIB', 'st4OutletCurrentCapacity'), ('Sentry4-MIB', 'st4OutletPowerCapacity'), ('Sentry4-MIB', 'st4OutletWakeupState'), ('Sentry4-MIB', 'st4OutletPostOnDelay'), ('Sentry4-MIB', 'st4OutletPhaseID'), ('Sentry4-MIB', 'st4OutletOcpID'), ('Sentry4-MIB', 'st4OutletBranchID'), ('Sentry4-MIB', 'st4OutletState'), ('Sentry4-MIB', 'st4OutletStatus'), ('Sentry4-MIB', 'st4OutletCurrent'), ('Sentry4-MIB', 'st4OutletCurrentStatus'), ('Sentry4-MIB', 'st4OutletCurrentUtilized'), ('Sentry4-MIB', 'st4OutletVoltage'), ('Sentry4-MIB', 'st4OutletActivePower'), ('Sentry4-MIB', 'st4OutletActivePowerStatus'), ('Sentry4-MIB', 'st4OutletApparentPower'), ('Sentry4-MIB', 'st4OutletPowerFactor'), ('Sentry4-MIB', 'st4OutletPowerFactorStatus'), ('Sentry4-MIB', 'st4OutletCurrentCrestFactor'), ('Sentry4-MIB', 'st4OutletReactance'), ('Sentry4-MIB', 'st4OutletEnergy'), ('Sentry4-MIB', 'st4OutletNotifications'), ('Sentry4-MIB', 'st4OutletCurrentLowAlarm'), ('Sentry4-MIB', 'st4OutletCurrentLowWarning'), ('Sentry4-MIB', 'st4OutletCurrentHighWarning'), ('Sentry4-MIB', 'st4OutletCurrentHighAlarm'), ('Sentry4-MIB', 'st4OutletActivePowerLowAlarm'), ('Sentry4-MIB', 'st4OutletActivePowerLowWarning'), ('Sentry4-MIB', 'st4OutletActivePowerHighWarning'), ('Sentry4-MIB', 'st4OutletActivePowerHighAlarm'), ('Sentry4-MIB', 'st4OutletPowerFactorLowAlarm'), ('Sentry4-MIB', 'st4OutletPowerFactorLowWarning'), ('Sentry4-MIB', 'st4OutletControlState'), ('Sentry4-MIB', 'st4OutletControlAction'), ('Sentry4-MIB', 'st4OutletQueueControl'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4_outlet_objects_group = st4OutletObjectsGroup.setStatus('current')
if mibBuilder.loadTexts:
st4OutletObjectsGroup.setDescription('Outlet objects group.')
st4_temp_sensor_objects_group = object_group((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 9)).setObjects(('Sentry4-MIB', 'st4TempSensorHysteresis'), ('Sentry4-MIB', 'st4TempSensorScale'), ('Sentry4-MIB', 'st4TempSensorID'), ('Sentry4-MIB', 'st4TempSensorName'), ('Sentry4-MIB', 'st4TempSensorValueMin'), ('Sentry4-MIB', 'st4TempSensorValueMax'), ('Sentry4-MIB', 'st4TempSensorValue'), ('Sentry4-MIB', 'st4TempSensorStatus'), ('Sentry4-MIB', 'st4TempSensorNotifications'), ('Sentry4-MIB', 'st4TempSensorLowAlarm'), ('Sentry4-MIB', 'st4TempSensorLowWarning'), ('Sentry4-MIB', 'st4TempSensorHighWarning'), ('Sentry4-MIB', 'st4TempSensorHighAlarm'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4_temp_sensor_objects_group = st4TempSensorObjectsGroup.setStatus('current')
if mibBuilder.loadTexts:
st4TempSensorObjectsGroup.setDescription('Temperature sensor objects group.')
st4_humid_sensor_objects_group = object_group((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 10)).setObjects(('Sentry4-MIB', 'st4HumidSensorHysteresis'), ('Sentry4-MIB', 'st4HumidSensorID'), ('Sentry4-MIB', 'st4HumidSensorName'), ('Sentry4-MIB', 'st4HumidSensorValue'), ('Sentry4-MIB', 'st4HumidSensorStatus'), ('Sentry4-MIB', 'st4HumidSensorNotifications'), ('Sentry4-MIB', 'st4HumidSensorLowAlarm'), ('Sentry4-MIB', 'st4HumidSensorLowWarning'), ('Sentry4-MIB', 'st4HumidSensorHighWarning'), ('Sentry4-MIB', 'st4HumidSensorHighAlarm'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4_humid_sensor_objects_group = st4HumidSensorObjectsGroup.setStatus('current')
if mibBuilder.loadTexts:
st4HumidSensorObjectsGroup.setDescription('Humidity sensor objects group.')
st4_water_sensor_objects_group = object_group((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 11)).setObjects(('Sentry4-MIB', 'st4WaterSensorID'), ('Sentry4-MIB', 'st4WaterSensorName'), ('Sentry4-MIB', 'st4WaterSensorStatus'), ('Sentry4-MIB', 'st4WaterSensorNotifications'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4_water_sensor_objects_group = st4WaterSensorObjectsGroup.setStatus('current')
if mibBuilder.loadTexts:
st4WaterSensorObjectsGroup.setDescription('Water sensor objects group.')
st4_cc_sensor_objects_group = object_group((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 12)).setObjects(('Sentry4-MIB', 'st4CcSensorID'), ('Sentry4-MIB', 'st4CcSensorName'), ('Sentry4-MIB', 'st4CcSensorStatus'), ('Sentry4-MIB', 'st4CcSensorNotifications'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4_cc_sensor_objects_group = st4CcSensorObjectsGroup.setStatus('current')
if mibBuilder.loadTexts:
st4CcSensorObjectsGroup.setDescription('Contact closure sensor objects group.')
st4_adc_sensor_objects_group = object_group((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 13)).setObjects(('Sentry4-MIB', 'st4AdcSensorHysteresis'), ('Sentry4-MIB', 'st4AdcSensorID'), ('Sentry4-MIB', 'st4AdcSensorName'), ('Sentry4-MIB', 'st4AdcSensorValue'), ('Sentry4-MIB', 'st4AdcSensorStatus'), ('Sentry4-MIB', 'st4AdcSensorNotifications'), ('Sentry4-MIB', 'st4AdcSensorLowAlarm'), ('Sentry4-MIB', 'st4AdcSensorLowWarning'), ('Sentry4-MIB', 'st4AdcSensorHighWarning'), ('Sentry4-MIB', 'st4AdcSensorHighAlarm'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4_adc_sensor_objects_group = st4AdcSensorObjectsGroup.setStatus('current')
if mibBuilder.loadTexts:
st4AdcSensorObjectsGroup.setDescription('Analog-to-digital converter sensor objects group.')
st4_event_info_objects_group = object_group((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 99)).setObjects(('Sentry4-MIB', 'st4EventStatusText'), ('Sentry4-MIB', 'st4EventStatusCondition'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4_event_info_objects_group = st4EventInfoObjectsGroup.setStatus('current')
if mibBuilder.loadTexts:
st4EventInfoObjectsGroup.setDescription('Event information objects group.')
st4_event_notifications_group = notification_group((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 100)).setObjects(('Sentry4-MIB', 'st4UnitStatusEvent'), ('Sentry4-MIB', 'st4InputCordStatusEvent'), ('Sentry4-MIB', 'st4InputCordActivePowerEvent'), ('Sentry4-MIB', 'st4InputCordApparentPowerEvent'), ('Sentry4-MIB', 'st4InputCordPowerFactorEvent'), ('Sentry4-MIB', 'st4InputCordOutOfBalanceEvent'), ('Sentry4-MIB', 'st4LineStatusEvent'), ('Sentry4-MIB', 'st4LineCurrentEvent'), ('Sentry4-MIB', 'st4PhaseStatusEvent'), ('Sentry4-MIB', 'st4PhaseVoltageEvent'), ('Sentry4-MIB', 'st4PhasePowerFactorEvent'), ('Sentry4-MIB', 'st4OcpStatusEvent'), ('Sentry4-MIB', 'st4BranchStatusEvent'), ('Sentry4-MIB', 'st4BranchCurrentEvent'), ('Sentry4-MIB', 'st4OutletStatusEvent'), ('Sentry4-MIB', 'st4OutletStateChangeEvent'), ('Sentry4-MIB', 'st4OutletCurrentEvent'), ('Sentry4-MIB', 'st4OutletActivePowerEvent'), ('Sentry4-MIB', 'st4OutletPowerFactorEvent'), ('Sentry4-MIB', 'st4TempSensorEvent'), ('Sentry4-MIB', 'st4HumidSensorEvent'), ('Sentry4-MIB', 'st4WaterSensorStatusEvent'), ('Sentry4-MIB', 'st4CcSensorStatusEvent'), ('Sentry4-MIB', 'st4AdcSensorEvent'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4_event_notifications_group = st4EventNotificationsGroup.setStatus('current')
if mibBuilder.loadTexts:
st4EventNotificationsGroup.setDescription('Event notifications group.')
st4_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 1718, 4, 200, 2))
st4_module_compliances = module_compliance((1, 3, 6, 1, 4, 1, 1718, 4, 200, 2, 1)).setObjects(('Sentry4-MIB', 'st4SystemObjectsGroup'), ('Sentry4-MIB', 'st4UnitObjectsGroup'), ('Sentry4-MIB', 'st4InputCordObjectsGroup'), ('Sentry4-MIB', 'st4LineObjectsGroup'), ('Sentry4-MIB', 'st4PhaseObjectsGroup'), ('Sentry4-MIB', 'st4OcpObjectsGroup'), ('Sentry4-MIB', 'st4BranchObjectsGroup'), ('Sentry4-MIB', 'st4OutletObjectsGroup'), ('Sentry4-MIB', 'st4TempSensorObjectsGroup'), ('Sentry4-MIB', 'st4HumidSensorObjectsGroup'), ('Sentry4-MIB', 'st4WaterSensorObjectsGroup'), ('Sentry4-MIB', 'st4CcSensorObjectsGroup'), ('Sentry4-MIB', 'st4AdcSensorObjectsGroup'), ('Sentry4-MIB', 'st4EventInfoObjectsGroup'), ('Sentry4-MIB', 'st4EventNotificationsGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
st4_module_compliances = st4ModuleCompliances.setStatus('current')
if mibBuilder.loadTexts:
st4ModuleCompliances.setDescription('The requirements for conformance to the Sentry4-MIB.')
mibBuilder.exportSymbols('Sentry4-MIB', st4WaterSensorStatus=st4WaterSensorStatus, st4LineConfigEntry=st4LineConfigEntry, st4InputCordMonitorTable=st4InputCordMonitorTable, st4BranchLabel=st4BranchLabel, st4InputCordActivePowerLowAlarm=st4InputCordActivePowerLowAlarm, st4OcpStatus=st4OcpStatus, st4OcpCommonConfig=st4OcpCommonConfig, st4BranchConfigTable=st4BranchConfigTable, st4CcSensorEventConfigTable=st4CcSensorEventConfigTable, st4PhaseReactance=st4PhaseReactance, st4AdcSensorEventConfigTable=st4AdcSensorEventConfigTable, st4PhasePowerFactorEvent=st4PhasePowerFactorEvent, st4HumiditySensors=st4HumiditySensors, st4BranchCurrent=st4BranchCurrent, st4OutletCurrentHysteresis=st4OutletCurrentHysteresis, st4TempSensorConfigTable=st4TempSensorConfigTable, st4OcpEventConfigEntry=st4OcpEventConfigEntry, st4UnitConfigEntry=st4UnitConfigEntry, st4System=st4System, st4PhaseState=st4PhaseState, st4OutletConfigEntry=st4OutletConfigEntry, st4TempSensorObjectsGroup=st4TempSensorObjectsGroup, st4InputCordActivePowerHighAlarm=st4InputCordActivePowerHighAlarm, st4UnitEventConfigEntry=st4UnitEventConfigEntry, st4OutletIndex=st4OutletIndex, st4HumidSensorMonitorTable=st4HumidSensorMonitorTable, st4InputCordConfigTable=st4InputCordConfigTable, st4HumidSensorEventConfigTable=st4HumidSensorEventConfigTable, st4LineState=st4LineState, st4PhaseNominalVoltage=st4PhaseNominalVoltage, st4AdcSensorEvent=st4AdcSensorEvent, st4InputCordActivePowerHysteresis=st4InputCordActivePowerHysteresis, st4UnitCommonConfig=st4UnitCommonConfig, st4InputCordActivePowerHighWarning=st4InputCordActivePowerHighWarning, st4InputCordApparentPowerHighWarning=st4InputCordApparentPowerHighWarning, st4OcpBranchCount=st4OcpBranchCount, st4OutletPostOnDelay=st4OutletPostOnDelay, st4InputCordPowerUtilized=st4InputCordPowerUtilized, st4UnitOutletSequenceOrder=st4UnitOutletSequenceOrder, st4SystemFeatures=st4SystemFeatures, st4LineCurrent=st4LineCurrent, st4HumidSensorValue=st4HumidSensorValue, st4ModuleCompliances=st4ModuleCompliances, st4PhaseVoltageLowAlarm=st4PhaseVoltageLowAlarm, st4OutletCurrentLowAlarm=st4OutletCurrentLowAlarm, st4OcpType=st4OcpType, st4InputCordOutOfBalance=st4InputCordOutOfBalance, st4BranchCommonConfig=st4BranchCommonConfig, st4UnitConfigTable=st4UnitConfigTable, st4UnitModel=st4UnitModel, st4TempSensorConfigEntry=st4TempSensorConfigEntry, st4PhaseVoltageStatus=st4PhaseVoltageStatus, st4AdcSensorStatus=st4AdcSensorStatus, EventNotificationMethods=EventNotificationMethods, st4UnitNotifications=st4UnitNotifications, st4OutletPowerFactorEvent=st4OutletPowerFactorEvent, st4WaterSensorMonitorEntry=st4WaterSensorMonitorEntry, st4LineCurrentLowAlarm=st4LineCurrentLowAlarm, st4InputCordPowerCapacity=st4InputCordPowerCapacity, st4PhaseBranchCount=st4PhaseBranchCount, st4InputCordState=st4InputCordState, st4OutletPhaseID=st4OutletPhaseID, st4OcpEventConfigTable=st4OcpEventConfigTable, st4OutletBranchID=st4OutletBranchID, st4LineEventConfigEntry=st4LineEventConfigEntry, st4CcSensorName=st4CcSensorName, st4OutletCurrentLowWarning=st4OutletCurrentLowWarning, st4BranchCurrentCapacity=st4BranchCurrentCapacity, st4WaterSensorCommonConfig=st4WaterSensorCommonConfig, st4InputCordNotifications=st4InputCordNotifications, st4WaterSensorConfigTable=st4WaterSensorConfigTable, st4OutletCurrentStatus=st4OutletCurrentStatus, st4OutletCommonConfig=st4OutletCommonConfig, st4TempSensorNotifications=st4TempSensorNotifications, st4OutletActivePowerHighWarning=st4OutletActivePowerHighWarning, st4OverCurrentProtectors=st4OverCurrentProtectors, st4OutletPowerFactor=st4OutletPowerFactor, st4BranchOutletCount=st4BranchOutletCount, st4EventNotificationsGroup=st4EventNotificationsGroup, sentry4=sentry4, st4WaterSensorIndex=st4WaterSensorIndex, st4UnitStatus=st4UnitStatus, st4InputCordOcpCount=st4InputCordOcpCount, st4LineCurrentStatus=st4LineCurrentStatus, st4LineCurrentHighWarning=st4LineCurrentHighWarning, st4InputCordNominalVoltage=st4InputCordNominalVoltage, st4Compliances=st4Compliances, st4PhaseActivePower=st4PhaseActivePower, st4BranchCurrentEvent=st4BranchCurrentEvent, st4InputCordIndex=st4InputCordIndex, st4OcpNotifications=st4OcpNotifications, DeviceState=DeviceState, st4AdcSensorMonitorTable=st4AdcSensorMonitorTable, st4PhasePowerFactorStatus=st4PhasePowerFactorStatus, st4SystemProductSeries=st4SystemProductSeries, st4OutletCurrentHighWarning=st4OutletCurrentHighWarning, st4WaterSensorConfigEntry=st4WaterSensorConfigEntry, st4PhaseConfigEntry=st4PhaseConfigEntry, st4HumidSensorCommonConfig=st4HumidSensorCommonConfig, st4CcSensorConfigTable=st4CcSensorConfigTable, st4LineNotifications=st4LineNotifications, st4BranchConfigEntry=st4BranchConfigEntry, st4OutletActivePowerLowAlarm=st4OutletActivePowerLowAlarm, st4PhaseCurrent=st4PhaseCurrent, st4OutletConfigTable=st4OutletConfigTable, st4InputCordPowerFactor=st4InputCordPowerFactor, st4LineCommonConfig=st4LineCommonConfig, st4OutletVoltage=st4OutletVoltage, st4OutletStateChangeLogging=st4OutletStateChangeLogging, st4PhaseCommonConfig=st4PhaseCommonConfig, st4InputCordOutOfBalanceEvent=st4InputCordOutOfBalanceEvent, st4OcpConfigTable=st4OcpConfigTable, st4BranchMonitorTable=st4BranchMonitorTable, st4OutletCurrentEvent=st4OutletCurrentEvent, st4OutletPowerFactorLowAlarm=st4OutletPowerFactorLowAlarm, st4SystemNICSerialNumber=st4SystemNICSerialNumber, st4InputCordPowerFactorLowWarning=st4InputCordPowerFactorLowWarning, st4WaterSensorName=st4WaterSensorName, st4OutletCapabilities=st4OutletCapabilities, st4UnitAdcSensorCount=st4UnitAdcSensorCount, st4BranchStatus=st4BranchStatus, st4InputCords=st4InputCords, st4UnitWaterSensorCount=st4UnitWaterSensorCount, st4TempSensorHighWarning=st4TempSensorHighWarning, st4PhaseCurrentCrestFactor=st4PhaseCurrentCrestFactor, st4LineCurrentHighAlarm=st4LineCurrentHighAlarm, st4HumidSensorIndex=st4HumidSensorIndex, st4SystemObjectsGroup=st4SystemObjectsGroup, st4CcSensorIndex=st4CcSensorIndex, st4InputCordConfigEntry=st4InputCordConfigEntry, st4BranchCurrentStatus=st4BranchCurrentStatus, st4InputCordCurrentCapacity=st4InputCordCurrentCapacity, st4PhaseVoltageDeviation=st4PhaseVoltageDeviation, st4PhaseID=st4PhaseID, st4OcpCurrentCapacityMax=st4OcpCurrentCapacityMax, st4AdcSensorLowWarning=st4AdcSensorLowWarning, st4LineMonitorTable=st4LineMonitorTable, st4InputCordBranchCount=st4InputCordBranchCount, st4AnalogToDigitalConvSensors=st4AnalogToDigitalConvSensors, DeviceStatus=DeviceStatus, st4InputCordPowerFactorEvent=st4InputCordPowerFactorEvent, st4OutletEventConfigTable=st4OutletEventConfigTable, st4InputCordStatusEvent=st4InputCordStatusEvent, st4UnitEventConfigTable=st4UnitEventConfigTable, st4OcpID=st4OcpID, st4TempSensorHysteresis=st4TempSensorHysteresis, st4PhaseMonitorEntry=st4PhaseMonitorEntry, st4InputCordApparentPowerHysteresis=st4InputCordApparentPowerHysteresis, st4OutletPowerCapacity=st4OutletPowerCapacity, st4OutletActivePowerHysteresis=st4OutletActivePowerHysteresis, st4LineCurrentCapacity=st4LineCurrentCapacity, st4SystemConfig=st4SystemConfig, st4AdcSensorIndex=st4AdcSensorIndex, st4LineCurrentLowWarning=st4LineCurrentLowWarning, st4TempSensorMonitorTable=st4TempSensorMonitorTable, st4InputCordNominalPowerFactor=st4InputCordNominalPowerFactor, st4UnitDisplayOrientation=st4UnitDisplayOrientation, st4PhaseVoltageLowWarning=st4PhaseVoltageLowWarning, st4HumidSensorHighWarning=st4HumidSensorHighWarning, st4BranchCurrentHighWarning=st4BranchCurrentHighWarning, st4TempSensorStatus=st4TempSensorStatus, st4AdcSensorHighWarning=st4AdcSensorHighWarning, st4OcpMonitorEntry=st4OcpMonitorEntry, st4SystemNICHardwareInfo=st4SystemNICHardwareInfo, st4InputCordOutOfBalanceHighAlarm=st4InputCordOutOfBalanceHighAlarm, st4HumidSensorEventConfigEntry=st4HumidSensorEventConfigEntry, st4BranchID=st4BranchID, st4InputCordActivePowerEvent=st4InputCordActivePowerEvent, st4CcSensorConfigEntry=st4CcSensorConfigEntry, st4OutletRebootDelay=st4OutletRebootDelay, st4OcpLabel=st4OcpLabel, st4Outlets=st4Outlets, st4OutletActivePower=st4OutletActivePower, st4PhaseOutletCount=st4PhaseOutletCount, st4CcSensorMonitorTable=st4CcSensorMonitorTable, st4UnitType=st4UnitType, st4InputCordNominalVoltageMax=st4InputCordNominalVoltageMax, st4BranchObjectsGroup=st4BranchObjectsGroup, st4UnitIndex=st4UnitIndex, st4TempSensorValueMax=st4TempSensorValueMax, st4UnitMonitorTable=st4UnitMonitorTable, st4Units=st4Units, st4HumidSensorConfigTable=st4HumidSensorConfigTable, st4UnitProductSN=st4UnitProductSN, st4TemperatureSensors=st4TemperatureSensors, st4AdcSensorLowAlarm=st4AdcSensorLowAlarm, st4SystemConfigModifiedCount=st4SystemConfigModifiedCount, st4UnitID=st4UnitID, st4LineCurrentUtilized=st4LineCurrentUtilized, st4OcpObjectsGroup=st4OcpObjectsGroup, st4SystemFeatureKey=st4SystemFeatureKey, st4TempSensorLowAlarm=st4TempSensorLowAlarm, st4WaterSensorID=st4WaterSensorID, st4OutletControlState=st4OutletControlState, st4AdcSensorConfigEntry=st4AdcSensorConfigEntry, st4WaterSensorNotifications=st4WaterSensorNotifications, st4Lines=st4Lines, st4WaterSensorStatusEvent=st4WaterSensorStatusEvent, st4BranchPhaseID=st4BranchPhaseID, st4OcpIndex=st4OcpIndex, st4OutletSequenceInterval=st4OutletSequenceInterval, st4InputCordOutOfBalanceStatus=st4InputCordOutOfBalanceStatus, st4OutletPowerFactorLowWarning=st4OutletPowerFactorLowWarning, st4TempSensorValueMin=st4TempSensorValueMin, st4AdcSensorCommonConfig=st4AdcSensorCommonConfig, st4PhaseVoltage=st4PhaseVoltage, st4OutletQueueControl=st4OutletQueueControl, st4InputCordPowerFactorHysteresis=st4InputCordPowerFactorHysteresis, st4InputCordCommonConfig=st4InputCordCommonConfig, st4OutletState=st4OutletState, st4SystemLocation=st4SystemLocation, st4HumidSensorMonitorEntry=st4HumidSensorMonitorEntry, st4OutletCurrent=st4OutletCurrent, st4PhaseVoltageHighAlarm=st4PhaseVoltageHighAlarm, st4PhaseStatusEvent=st4PhaseStatusEvent, st4LineConfigTable=st4LineConfigTable, st4CcSensorEventConfigEntry=st4CcSensorEventConfigEntry, st4AdcSensorMonitorEntry=st4AdcSensorMonitorEntry, st4InputCordNominalVoltageMin=st4InputCordNominalVoltageMin, st4OcpConfigEntry=st4OcpConfigEntry, st4TempSensorEventConfigTable=st4TempSensorEventConfigTable, st4OutletMonitorTable=st4OutletMonitorTable, st4InputCordObjectsGroup=st4InputCordObjectsGroup, st4OutletStateChangeEvent=st4OutletStateChangeEvent, st4AdcSensorConfigTable=st4AdcSensorConfigTable, st4OutletControlAction=st4OutletControlAction, st4TempSensorLowWarning=st4TempSensorLowWarning, st4InputCordStatus=st4InputCordStatus, st4BranchCurrentUtilized=st4BranchCurrentUtilized, st4UnitInputCordCount=st4UnitInputCordCount, st4InputCordApparentPowerHighAlarm=st4InputCordApparentPowerHighAlarm, st4OutletEnergy=st4OutletEnergy, st4InputCordEventConfigEntry=st4InputCordEventConfigEntry, st4PhasePowerFactorLowWarning=st4PhasePowerFactorLowWarning, st4BranchStatusEvent=st4BranchStatusEvent, st4PhaseEnergy=st4PhaseEnergy, st4UnitTempSensorCount=st4UnitTempSensorCount, st4LineIndex=st4LineIndex, st4OutletStatusEvent=st4OutletStatusEvent, st4OutletActivePowerEvent=st4OutletActivePowerEvent, st4InputCordActivePower=st4InputCordActivePower, st4OcpStatusEvent=st4OcpStatusEvent, st4OutletControlTable=st4OutletControlTable, st4LineCurrentEvent=st4LineCurrentEvent, st4Branches=st4Branches, st4PhaseStatus=st4PhaseStatus, st4OutletEventConfigEntry=st4OutletEventConfigEntry, st4PhaseLabel=st4PhaseLabel, st4LineMonitorEntry=st4LineMonitorEntry, st4AdcSensorName=st4AdcSensorName, st4TempSensorMonitorEntry=st4TempSensorMonitorEntry, st4PhaseEventConfigTable=st4PhaseEventConfigTable, st4OutletApparentPower=st4OutletApparentPower, st4UnitName=st4UnitName)
mibBuilder.exportSymbols('Sentry4-MIB', st4LineEventConfigTable=st4LineEventConfigTable, st4InputCordPowerFactorStatus=st4InputCordPowerFactorStatus, st4OutletCurrentCrestFactor=st4OutletCurrentCrestFactor, st4AdcSensorObjectsGroup=st4AdcSensorObjectsGroup, st4HumidSensorLowWarning=st4HumidSensorLowWarning, st4PhaseVoltageHighWarning=st4PhaseVoltageHighWarning, st4HumidSensorName=st4HumidSensorName, st4BranchIndex=st4BranchIndex, st4HumidSensorEvent=st4HumidSensorEvent, st4LineCurrentHysteresis=st4LineCurrentHysteresis, st4CcSensorCommonConfig=st4CcSensorCommonConfig, st4OutletObjectsGroup=st4OutletObjectsGroup, st4OutletActivePowerHighAlarm=st4OutletActivePowerHighAlarm, st4UnitCcSensorCount=st4UnitCcSensorCount, st4BranchMonitorEntry=st4BranchMonitorEntry, st4InputCordApparentPowerStatus=st4InputCordApparentPowerStatus, st4InputCordFrequency=st4InputCordFrequency, st4WaterSensors=st4WaterSensors, st4TempSensorIndex=st4TempSensorIndex, st4OutletID=st4OutletID, st4OutletActivePowerLowWarning=st4OutletActivePowerLowWarning, st4PhasePowerFactorLowAlarm=st4PhasePowerFactorLowAlarm, st4AdcSensorValue=st4AdcSensorValue, st4BranchCurrentLowWarning=st4BranchCurrentLowWarning, st4PhaseEventConfigEntry=st4PhaseEventConfigEntry, st4PhaseNotifications=st4PhaseNotifications, st4WaterSensorMonitorTable=st4WaterSensorMonitorTable, st4LineObjectsGroup=st4LineObjectsGroup, st4Phases=st4Phases, st4UnitHumidSensorCount=st4UnitHumidSensorCount, st4OutletPowerFactorHysteresis=st4OutletPowerFactorHysteresis, st4CcSensorStatus=st4CcSensorStatus, st4AdcSensorHighAlarm=st4AdcSensorHighAlarm, st4OutletStatus=st4OutletStatus, st4LineLabel=st4LineLabel, st4SystemFirmwareBuildInfo=st4SystemFirmwareBuildInfo, st4SystemProductName=st4SystemProductName, st4InputCordEnergy=st4InputCordEnergy, st4HumidSensorStatus=st4HumidSensorStatus, st4TempSensorName=st4TempSensorName, st4InputCordPowerFactorLowAlarm=st4InputCordPowerFactorLowAlarm, st4PhaseIndex=st4PhaseIndex, st4InputCordActivePowerLowWarning=st4InputCordActivePowerLowWarning, st4InputCordApparentPower=st4InputCordApparentPower, serverTech=serverTech, st4LineID=st4LineID, st4PhaseVoltageEvent=st4PhaseVoltageEvent, st4WaterSensorEventConfigTable=st4WaterSensorEventConfigTable, st4InputCordEventConfigTable=st4InputCordEventConfigTable, st4InputCordMonitorEntry=st4InputCordMonitorEntry, st4InputCordApparentPowerLowAlarm=st4InputCordApparentPowerLowAlarm, st4Objects=st4Objects, st4TempSensorScale=st4TempSensorScale, st4OutletCurrentCapacity=st4OutletCurrentCapacity, st4TempSensorCommonConfig=st4TempSensorCommonConfig, st4Events=st4Events, st4Conformance=st4Conformance, st4BranchCurrentHighAlarm=st4BranchCurrentHighAlarm, st4OutletOcpID=st4OutletOcpID, st4TempSensorEventConfigEntry=st4TempSensorEventConfigEntry, st4BranchOcpID=st4BranchOcpID, st4HumidSensorHysteresis=st4HumidSensorHysteresis, st4TempSensorValue=st4TempSensorValue, st4Notifications=st4Notifications, st4HumidSensorConfigEntry=st4HumidSensorConfigEntry, st4HumidSensorNotifications=st4HumidSensorNotifications, st4InputCordOutletCount=st4InputCordOutletCount, st4InputCordInletType=st4InputCordInletType, st4CcSensorStatusEvent=st4CcSensorStatusEvent, st4AdcSensorHysteresis=st4AdcSensorHysteresis, st4LineStatusEvent=st4LineStatusEvent, st4OutletPowerFactorStatus=st4OutletPowerFactorStatus, st4BranchEventConfigEntry=st4BranchEventConfigEntry, st4TempSensorEvent=st4TempSensorEvent, st4AdcSensorNotifications=st4AdcSensorNotifications, st4HumidSensorID=st4HumidSensorID, st4Groups=st4Groups, st4UnitStatusEvent=st4UnitStatusEvent, st4BranchCurrentHysteresis=st4BranchCurrentHysteresis, st4BranchNotifications=st4BranchNotifications, st4UnitAssetTag=st4UnitAssetTag, st4OutletSocketType=st4OutletSocketType, st4ContactClosureSensors=st4ContactClosureSensors, st4UnitProductMfrDate=st4UnitProductMfrDate, st4TempSensorID=st4TempSensorID, st4OutletNotifications=st4OutletNotifications, st4CcSensorNotifications=st4CcSensorNotifications, st4UnitCapabilities=st4UnitCapabilities, st4InputCordPhaseCount=st4InputCordPhaseCount, st4SystemFirmwareVersion=st4SystemFirmwareVersion, st4OutletReactance=st4OutletReactance, st4EventInfoObjectsGroup=st4EventInfoObjectsGroup, st4OutletControlEntry=st4OutletControlEntry, st4CcSensorMonitorEntry=st4CcSensorMonitorEntry, st4BranchEventConfigTable=st4BranchEventConfigTable, st4LineStatus=st4LineStatus, st4PhaseApparentPower=st4PhaseApparentPower, st4EventStatusCondition=st4EventStatusCondition, st4AdcSensorEventConfigEntry=st4AdcSensorEventConfigEntry, st4AdcSensorID=st4AdcSensorID, st4OcpOutletCount=st4OcpOutletCount, st4InputCordActivePowerStatus=st4InputCordActivePowerStatus, st4UnitObjectsGroup=st4UnitObjectsGroup, st4HumidSensorHighAlarm=st4HumidSensorHighAlarm, st4PhaseConfigTable=st4PhaseConfigTable, st4PhasePowerFactor=st4PhasePowerFactor, st4BranchCurrentLowAlarm=st4BranchCurrentLowAlarm, st4WaterSensorObjectsGroup=st4WaterSensorObjectsGroup, st4InputCordApparentPowerLowWarning=st4InputCordApparentPowerLowWarning, st4InputCordLineCount=st4InputCordLineCount, st4InputCordID=st4InputCordID, st4InputCordCurrentCapacityMax=st4InputCordCurrentCapacityMax, st4OcpMonitorTable=st4OcpMonitorTable, st4CcSensorID=st4CcSensorID, st4PhasePowerFactorHysteresis=st4PhasePowerFactorHysteresis, st4OcpCurrentCapacity=st4OcpCurrentCapacity, st4InputCordApparentPowerEvent=st4InputCordApparentPowerEvent, st4TempSensorHighAlarm=st4TempSensorHighAlarm, st4WaterSensorEventConfigEntry=st4WaterSensorEventConfigEntry, st4HumidSensorObjectsGroup=st4HumidSensorObjectsGroup, st4InputCordOutOfBalanceHysteresis=st4InputCordOutOfBalanceHysteresis, st4PhaseVoltageHysteresis=st4PhaseVoltageHysteresis, st4HumidSensorLowAlarm=st4HumidSensorLowAlarm, st4CcSensorObjectsGroup=st4CcSensorObjectsGroup, st4OutletMonitorEntry=st4OutletMonitorEntry, st4OutletCurrentUtilized=st4OutletCurrentUtilized, st4OutletCurrentHighAlarm=st4OutletCurrentHighAlarm, st4OutletName=st4OutletName, st4OutletActivePowerStatus=st4OutletActivePowerStatus, st4PhaseObjectsGroup=st4PhaseObjectsGroup, st4OutletWakeupState=st4OutletWakeupState, st4OutletCommonControl=st4OutletCommonControl, st4EventInformation=st4EventInformation, st4InputCordOutOfBalanceHighWarning=st4InputCordOutOfBalanceHighWarning, st4BranchState=st4BranchState, st4SystemUnitCount=st4SystemUnitCount, st4PhaseMonitorTable=st4PhaseMonitorTable, st4UnitMonitorEntry=st4UnitMonitorEntry, st4EventStatusText=st4EventStatusText, PYSNMP_MODULE_ID=sentry4, st4InputCordName=st4InputCordName)
|
DEBUG = True
ALLOWED_HOSTS = ['*']
SECRET_KEY = 'secret'
SOCIAL_AUTH_TWITTER_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxx'
SOCIAL_AUTH_TWITTER_SECRET = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
SOCIAL_AUTH_ORCID_KEY = ''
SOCIAL_AUTH_ORCID_SECRET = ''
|
debug = True
allowed_hosts = ['*']
secret_key = 'secret'
social_auth_twitter_key = 'xxxxxxxxxxxxxxxxxxxxxxxxx'
social_auth_twitter_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
social_auth_orcid_key = ''
social_auth_orcid_secret = ''
|
# reverse generator
def reverse(data):
current = len(data)
while current >= 1:
current -= 1
yield data[current]
for c in reverse("string"):
print(c)
for i in reverse([1, 2, 3]):
print(i)
# reverse iterator
class Reverse(object):
def __init__(self, data):
self.data = data
self.index = len(data)
def __iter__(self):
return self
def __next__(self):
if self.index == 0:
raise StopIteration
self.index -= 1
return self.data[self.index]
for c in Reverse("string"):
print(c)
for i in Reverse([1, 2, 3]):
print(i)
# simple generator
def counter(low, high, step):
current = low
while current <= high:
yield current
current += step
for c in counter(3, 9, 2):
print(c)
# simple iterator
class Counter(object):
def __init__(self, low, high, step):
self.current = low
self.high = high
self.step = step
def __iter__(self):
return self
def __next__(self):
if self.current > self.high:
raise StopIteration
else:
result = self.current
self.current += self.step
return result
for c in Counter(3, 9, 2):
print(c)
|
def reverse(data):
current = len(data)
while current >= 1:
current -= 1
yield data[current]
for c in reverse('string'):
print(c)
for i in reverse([1, 2, 3]):
print(i)
class Reverse(object):
def __init__(self, data):
self.data = data
self.index = len(data)
def __iter__(self):
return self
def __next__(self):
if self.index == 0:
raise StopIteration
self.index -= 1
return self.data[self.index]
for c in reverse('string'):
print(c)
for i in reverse([1, 2, 3]):
print(i)
def counter(low, high, step):
current = low
while current <= high:
yield current
current += step
for c in counter(3, 9, 2):
print(c)
class Counter(object):
def __init__(self, low, high, step):
self.current = low
self.high = high
self.step = step
def __iter__(self):
return self
def __next__(self):
if self.current > self.high:
raise StopIteration
else:
result = self.current
self.current += self.step
return result
for c in counter(3, 9, 2):
print(c)
|
### Model data
class catboost_model(object):
float_features_index = [
0, 1, 2, 4, 5, 6, 8, 12, 13, 14, 15, 16, 17, 18, 20, 22, 23, 24, 27, 28, 31, 33, 35, 37, 38, 39, 46, 47, 48,
]
float_feature_count = 50
cat_feature_count = 0
binary_feature_count = 29
tree_count = 40
float_feature_borders = [
[0.000758085982, 0.178914994, 0.1888735, 0.194539994, 0.34700349, 0.44264698, 0.780139983, 0.813149452],
[0.00132575491, 0.0216720998, 0.0395833515, 0.0403138474, 0.102008, 0.156479999, 0.213277996, 0.281994998, 0.312178016, 0.384054512, 0.474032521, 0.585997999, 0.681437016, 0.815984011],
[0.00109145499, 0.00861673057, 0.0365923494, 0.0686140954, 0.419130981, 0.428588986, 0.879231513, 0.937812984],
[0.5],
[0.5],
[0.5],
[0.5],
[0.5],
[0.5],
[0.358823478, 0.421568513, 0.433333516, 0.52352953, 0.554902017, 0.558823466, 0.621568501, 0.7156865],
[0.148551002, 0.183333501, 0.384469509, 0.436507493, 0.506097496, 0.578900516, 0.587584972, 0.674775004, 0.748417497, 0.76047051, 0.800989985, 0.866219521, 0.867108464, 0.908883512, 0.950919986],
[0.0207247995, 0.0343967006, 0.0504557006, 0.158435494, 0.216674, 0.247377992, 0.269448996, 0.318728, 0.333916008, 0.37875849, 0.39003402, 0.422357976, 0.594812512, 0.795647502],
[0.0398375988, 0.0653211027, 0.115491495, 0.120285496, 0.124523498, 0.133076996, 0.136280507, 0.140028998, 0.142480001, 0.14288801, 0.155889004, 0.199276, 0.2121225, 0.240777999, 0.260086477, 0.276386499, 0.280552983, 0.297052979, 0.355903506],
[0.5],
[0.252941012, 0.276470482, 0.331372499, 0.335294008, 0.413725495, 0.437254995, 0.496078491, 0.694117486, 0.699999988, 0.750980496, 0.852941036, 0.929412007, 0.968627512],
[0.5],
[0.0416666493],
[0.0225447994, 0.0226299986, 0.0261416994, 0.0633649006, 0.182705492, 0.187063992, 0.211840004, 0.213952005, 0.241398007, 0.29707399, 0.937534451, 0.939258993, 0.93988049, 0.946740508],
[0.5],
[0.5],
[0.0867389515, 0.16316551, 0.693239987],
[0.185759991, 0.297058523, 0.363489985, 0.402247012, 0.793442488, 0.84256053],
[-0.0383633971, 0.00895375013, 0.193027496, 0.220256999, 0.342289001, 0.423586994, 0.434064507, 0.476337016, 0.623547494, 0.957795024],
[0.000421158999, 0.000926548964, 0.00227425992, 0.00513814017, 0.0282176994, 0.0325976983, 0.0403470509],
[0.283847004, 0.650285006, 0.6519925, 0.654693007, 0.661086977, 0.682412982, 0.726830006, 0.784554005, 0.821318984, 0.950830996],
[4.17586998e-05, 8.0244994e-05, 0.000137109499, 0.00141531997, 0.00250496017, 0.00326151494, 0.00393318012, 0.005463365, 0.00693041505, 0.00947646052, 0.0113535002, 0.0157128982, 0.01822575, 0.0689947009, 0.0747110993],
[0.0761536956, 0.103404, 0.148530498, 0.164992496, 0.214888006, 0.404017985, 0.451396525, 0.535629511, 0.665955007, 0.811691999],
[0.60571146, 0.711432993, 0.981393516],
[0.1105005, 0.175806999, 0.340994507, 0.346906006, 0.458132505, 0.504471004, 0.544902503, 0.547486544, 0.569079995, 0.670499027, 0.726330996, 0.774749517, 0.776835024, 0.787591517, 0.870769978, 0.911834955],
]
tree_depth = [6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6]
tree_split_border = [1, 6, 8, 9, 4, 6, 8, 5, 7, 9, 3, 1, 2, 13, 5, 1, 5, 7, 16, 1, 1, 7, 10, 6, 14, 11, 7, 8, 14, 12, 2, 5, 4, 7, 6, 14, 6, 7, 19, 8, 5, 1, 2, 1, 6, 13, 2, 5, 13, 10, 8, 1, 15, 10, 5, 8, 10, 2, 2, 9, 1, 9, 2, 3, 9, 7, 1, 1, 8, 7, 8, 8, 1, 15, 1, 8, 15, 7, 1, 8, 4, 4, 10, 4, 13, 3, 1, 4, 5, 1, 14, 1, 6, 4, 14, 10, 4, 8, 8, 2, 1, 7, 12, 16, 5, 3, 7, 9, 4, 3, 11, 8, 18, 8, 14, 14, 5, 1, 4, 9, 1, 3, 3, 4, 1, 11, 12, 10, 13, 9, 13, 13, 1, 3, 13, 6, 3, 3, 8, 3, 1, 1, 13, 8, 2, 3, 3, 4, 2, 12, 15, 6, 11, 9, 14, 7, 14, 12, 1, 10, 2, 1, 6, 3, 5, 3, 4, 5, 7, 10, 4, 1, 1, 1, 2, 7, 10, 2, 12, 11, 14, 12, 6, 1, 6, 9, 10, 12, 2, 9, 1, 6, 15, 5, 17, 10, 6, 1, 11, 9, 8, 2, 1, 2, 15, 2, 1, 1, 3, 3, 13, 12, 1, 6, 12, 5, 6, 3, 1, 5, 4, 6, 11, 6, 1, 9, 7, 4, 2, 10, 11, 14, 12, 5, 2, 16, 7, 3, 11, 4]
tree_split_feature_index = [20, 1, 25, 10, 23, 22, 2, 22, 14, 22, 11, 21, 27, 11, 28, 18, 14, 23, 28, 4, 24, 2, 12, 12, 11, 17, 10, 0, 12, 25, 25, 12, 21, 24, 11, 17, 17, 25, 12, 11, 9, 27, 17, 13, 2, 12, 21, 17, 14, 24, 2, 26, 28, 25, 21, 2, 24, 22, 9, 25, 15, 11, 2, 9, 28, 26, 8, 1, 12, 12, 28, 9, 15, 10, 2, 22, 12, 9, 0, 17, 25, 24, 11, 9, 14, 17, 28, 24, 10, 19, 1, 8, 21, 14, 11, 26, 12, 1, 24, 28, 4, 25, 14, 28, 23, 10, 0, 24, 0, 24, 10, 26, 12, 10, 10, 11, 25, 15, 26, 17, 18, 26, 25, 2, 23, 28, 14, 14, 17, 26, 1, 25, 10, 12, 10, 14, 23, 21, 2, 20, 22, 25, 28, 14, 1, 27, 22, 22, 11, 10, 28, 23, 12, 14, 28, 22, 1, 1, 3, 1, 20, 5, 28, 28, 24, 2, 17, 0, 17, 17, 10, 13, 9, 18, 0, 28, 10, 12, 11, 11, 25, 28, 0, 14, 12, 12, 22, 17, 24, 12, 6, 12, 25, 1, 12, 28, 25, 6, 12, 12, 12, 9, 17, 14, 25, 26, 12, 11, 14, 1, 14, 1, 3, 10, 12, 2, 24, 26, 16, 26, 1, 9, 14, 26, 7, 1, 11, 11, 23, 26, 1, 17, 17, 11, 10, 12, 1, 0, 25, 28]
tree_split_xor_mask = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
cat_features_index = []
one_hot_cat_feature_index = []
one_hot_hash_values = [
]
ctr_feature_borders = [
]
## Aggregated array of leaf values for trees. Each tree is represented by a separate line:
leaf_values = [
-0.01452223061650176, 0.003220391872338723, -0.005535119676446759, -0.01465273981215404, -0.00855547415566176, 0.002037667919068398, 0.0001120632868695247, 0.03840825802757053, -0.01533940293562541, 0.007951286482469178, 0.02893911799022985, 0, 0.02292931274542596, 0.02265389319360762, 0.02038603740012057, 0.01812879496613256, -0.00714521746238457, 0.001950130990137022, -0.007326369906077018, 0.002300279908813374, 0.008621431815437664, 0.03554284328040242, 0.03512996404078633, 0.01981997355782309, -0.0179565158733794, 0.01325214413744863, 0.01360229305612498, 0.009626649814890392, 0.01925329962978078, 0.02543763356059014, 0.01559011467674228, 0.03281872682860205, -0.009945571873778352, -0.001362905044225135, -0.01304254387598467, 0, -0.006594462653496712, -0.01190226843647107, 0.007182689275421724, 0.01535789817241634, -0.00410502282758085, 0.007472611244634545, 0.04089836809158642, 0, 0.006062759240253598, 0.03643488793168285, 0.003512268152670903, 0.007951286482469178, -0.00983941490470884, 0.07047121835364896, 0, 0, 0, 0.02766033534093435, 0, 0.05719577328378828, -0.0149153515011613, -0.007326369906077018, 0, 0, 0, 0.03080527940764925, 0.001150139954406687, -0.004940983961336265,
-0.004290491016358114, 0, -0.005142491159808076, 0, -0.01631414563094668, 0, -0.01583305362655595, 0, 0, 0, -0.004223387993378917, 0, 0, 0, -0.009901576725822188, 0, 0.001550563113605264, 0.001390731497052868, 0.00226873941224347, 0.005896346192859286, -0.007258726327461003, 0, 0.003358357795086376, 0, 0, 0, 0.00837589032594164, 0, 0, 0, -0.01059649838552386, 0, -0.009781645896798577, -0.007562517113173503, 0.02214271375734489, 0.05394157562038105, -0.0002138456496420421, 0.008021907958099189, -0.005188739401065129, 0, 0, 0, 0.04905615915828059, 0, 0, 0, -0.005303802232773693, 0, 0.0117081010746993, 0.03062085933581888, 0.02235340547823699, 0.1227133227722861, 0.007862897175603121, 0, 0.001608888337109428, 0, 0, 0, 0.007699061410369978, 0.00687759070158362, 0, 0, -0.01342322142795995, 0,
-0.0008628659065023804, 0.009204875414304065, -0.01426102453631723, 0, 0.001937670583401637, 0.0156650165407804, 0.003739955634906077, -0.01011840625499374, -0.006940214177145987, 0, 0.0880356242859759, 0, 0.004817009991483832, -0.01025097578144819, 0.01005740748032615, 0, -0.007628195609257056, 0.01666370432348902, -0.005875549236929858, 0, -0.005698779283673799, 0.02285690403407965, 0.007392561165114673, -0.0003019701652545931, -0.007486785321659697, 0, 0.02840589257042851, 0, 0.02333489281990855, -0.01496735226052822, 0.02076800095251007, 0, -0.001649031678139777, 0, 0, 0, -0.008155449138096203, 0.004641872952715348, 0, 0, -0.001232876227576032, 0, 0, 0, 0, 0.05206643187070074, 0, 0, -0.006966526173996213, 0, 0, 0, 0.006788599608527733, 0.03295161256656724, 0, 0, -0.004321213678543653, 0, 0, 0, 0, 0, 0, 0,
-0.0006316326352561491, 0, 0.002209029311105294, 0, -0.003906258731861617, 0.01822784905785241, -0.007781793914963634, 0.00369127410676005, 0, 0, 0, 0, 0, 0, 0.01084750316615975, 0.003076691807563753, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.007433185431032323, 0, 0.09732001192850437, 0, 0, -0.006489873411550759, -0.000821510986801417, 0, 0.0009016305409923756, 0, 0, 0, 0, 0, 0, 0, -0.003277781054332973, 0, -0.005230433240534993, 0, -2.334684902255853e-05, 0, 0.01667959184008616, 0.030891978624975, -0.009702818552789287, -0.003268921953000008, 0.07275386856216502, 0, 0.005896393694908028, 0.09662770584410534, 0.006870360776745228, 0,
-0.006516009201959305, 0, -3.323295954872068e-05, 0, 0.0004376897450590875, -0.016185990647663, 0.005314203577559586, 0, 0, 0, 0.04228330137429515, 0, 0, 0, 0.002856957752237062, 0, -0.006992031300023761, 0, -0.007689462879424449, 0, -0.004894108778840038, 0.04066674455775433, -0.006377224181098736, 0.06636328184817226, 0, 0, 0, 0, 0, 0, -0.002448863010868009, 0, -0.001599676199583939, 0, -0.001839682430886059, 0, 0.008702810373211153, 0.008430332565516271, 0.01224326320954283, -0.001859631967022486, 0, 0, 0.006273614761263048, 0, 0, 0, 0.004420039017319769, 0, 0.001293534889321958, 0, 0.02950345370374422, -0.009660460245099391, 0.02369356196464931, -0.001158431984081868, 0.009349389068681473, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-0.01033229094404197, -0.007187343747184476, -0.007599668941868871, 0.001046029595139935, 0, -0.002073750565693754, 0, 0.01099245434817203, 0, -0.004632214597172815, -0.00297160298904751, -0.001383886818924526, 0, -0.002361190901371866, 0, 0.005535010356095894, 0, -0.01322741423698182, -0.002775568834658869, 0.01131382384954872, 0, -0.007914126374622217, 0, -0.008210417918465872, 0, 0.001797586256526629, 0, -0.01802573556610242, 0, -0.005298017858824775, 0, -0.008726335545986813, -0.008859381936163979, 0.005372641593092777, 0.01071385500662267, -0.007928226701768163, 0, 0, 0, 0, 0, 0.004516165657551504, -0.006049952764731165, 0.0192234950573283, 0, -0.005696520755513532, 0.02659826875262265, 0.003420263338752106, 0, 0, 0, 0.02422158610017956, 0, 0, 0, 0, 0, 0.00126692067246405, 0, 0, 0, 0.0007217026943314586, 0, -0.002266889663467931,
0.000527517366002036, -0.002534949671624169, -0.003795174528153681, 0.004302276548359646, 0.00417587126416725, -0.01268481637109885, -0.005280610360802796, -0.01140100317411678, 0.01675387938496236, 0.04086789025096867, -0.008145068052945906, 0.006114168871778969, 0.00077910935731664, 0.01117549245296063, 0.0005327828844887133, -0.01676369662343859, 0.001517021075247556, -0.001040003671238676, -0.007437525517506317, -0.003805970678087701, -0.00677088288691832, -0.008383823598800712, -0.005926407144474803, 0.002916388412913377, -0.007793611684618585, -0.01499687262349923, -0.00837170672752739, 0.005644736538996646, 0, -0.007805469452170886, 0.04114703210503323, -0.009413073655501647, 0.00264157826850697, 0.006811901388331594, -0.007850015890872459, 0.006267517621904849, 0, 0, 0, 0, 0, -0.01002221384787358, -0.001878559000076426, -0.001571213557730054, 0, 0, 0, 0, -0.002083858638354818, 0.001275122653329691, -0.00298423046224213, 0.007948801114930267, 0, 0, 0, 0, 0, 0, 0.001703906597396959, 0.01259645896916223, 0, 0, 0, 0,
0.03371445805168941, -0.001185444138199443, -0.005124136415977224, -0.002269766091428051, 0, -0.003115138555538167, 0, 0.0002734064426249876, 0.004451898118968756, -0.006610624869245027, 0.01146197259215778, 0.008207522836697762, 0, -0.01252261687479132, 0, 0, 0.02224446463457334, -0.007450223305193149, 0, -0.002956108328539124, 0, 0.005493097638456914, 0, 0, -0.01117800929023734, -0.005940270996419188, 0, -0.009309274010778306, 0, -0.01121189428501243, 0, 0.007270105812932515, 0, 0.001794995781352121, 0, -0.002881837710680872, 0, -0.00175626470189178, 0, 0.02789932855041816, 0, -0.001254060475956491, 0, 0.0003838824129692717, 0, 0.002700351630090569, 0, -0.004932940466300367, 0, 0.002454226355227466, 0, -0.006817443839065618, 0, 0.01105467749302552, 0, 0.01258289305241422, 0, 0.005684877145427304, 0, 0.004658453264072202, 0, -0.02276857481217035, 0, 0.004522300012710081,
0.0008425763829553446, 0, 0.002408208215270238, 0, 0.003974681148615804, 0, 0, 0, -0.00124829809341042, 0.02601956538434454, -0.01009978674854628, 0, -0.01518993399347249, 0, -0.0005417341493214053, 0, 0.02703082630014987, 0, -0.005929548050357011, 0, 0.01170565302244698, 0, 0, 0, 0.009499910399089498, 0, 0.003443180560358982, 0, 0.03899070964790601, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.001177194100092369, 0.002197621475938342, -0.003738951144040578, 0, 0.06761161842455489, 0, -0.001413081831667368, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.004615713640272379, 0, 0.004864661537091734, 0, -0.002598625338326503, 0, -0.004341071208617991, 0,
0.0007082202227046739, -0.01417198056324468, 0, 0, 0, 0, 0, 0, -0.002233204528853981, -0.0004139872216927391, 0.01979641445754554, 0, 0, 0, 0, 0, -0.002178288671951388, 0, -0.00360473464751448, 0, 0.005053944700215062, 0, 0, 0, 0.002122122180820853, -0.007506233446806798, -0.01335053935450701, 0, -0.005379359259597945, 0, -0.0004761339373366446, 0, 0.003036568089877086, 0, -0.002159168798767843, 0, -0.006397598535431919, 0.002462250454737061, 0, 0, -0.0007918339682017969, -0.00747074017029643, 0.03613803344024129, 0, 0.00141681661514044, -0.0005350297286611192, 0, -0.001184656097336426, 0.0007980781893843416, -0.01629166360527857, -0.0002549510143050871, 0, -0.002119026697857936, 0.0007696998857344751, -0.003092788850768577, -0.001970819641649676, 0.00198267359326956, -0.006528310010020534, 0.05276177036643386, 0, -0.0003863112444145576, 0.002799631501597771, -0.0004585310810119515, 0,
-0.003436931006256012, -0.001880055642781857, 0.03931679760609862, 0.00207680679730032, -0.01608453850866252, 0.006177269964816359, 0, 0.004155976758090527, -0.008203301672499668, 7.89624474734734e-05, -0.009091765287648202, 0.009506992461471344, -0.008745540885302742, 0.003336443982337911, 0, 0.004891915602822441, 0, 0, 0, 0, -0.02901723113755253, 0.01377392164587125, 0, 0, 0, 0, 0, 0, 0.004189553403655831, -0.0009198607687909613, 0, -0.008800524472416962, 0.0007477070656349182, 0.0138133903052463, -0.005912442929395006, -0.005368369746916586, -0.0008132228493616045, -0.01170808838238346, -0.001728136193868294, 0, -0.002738385514239566, 0.002586904335229321, 0.005527382910955883, -0.003968764892065669, -0.008492087951499474, -0.002880444593632151, -0.008360550051275346, -0.0009289996874247378, 0.004891720359176894, 0.004942331617833064, -0.009186322270972859, 0.01193260467970703, -0.01284207922655834, -0.002735258252103402, 0, -0.002480936486017504, 0.006092020715453159, -0.009081414635937958, -0.01483079523810853, 0.00322573154796649, -0.01337992039046931, -0.0008211533919189933, 0.009915519969014479, 0.004262051857374169,
-0.006519586679048669, 0, -0.001127439979654628, -0.002417485798184351, 0, 0, 0, 0, 0.004765260126636051, 0, 0.03932018670902827, 0.04753753344254798, -0.0005372979603245312, -0.005862006702254967, -0.0005733088667826958, 0.003664515811356012, -0.008420020702699777, 0, -0.003859880487842085, 0.003816000064491417, 0, 0, 0, 0, -0.0006419674658671908, 0, -0.02011266763831634, 0.03841717796147258, 0.02145587480367529, 0, 0.001925676050311349, -0.007280202882629585, 0, 0, -0.0006407812599111966, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.002655541373673015, -0.003236077560222469, -0.001415994749800743, 0.01414876397674743, 0, 0, -0.003357723086404019, 0.003451453831730515, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.004834488764318794, 0,
-0.000649587430288665, 0.001077810862839724, 0.005798390928744019, -0.003420055346174706, -0.00977233842052971, 0.0009085490175898029, 0, 0.001268016052802764, -0.01005377673547363, -0.001856233393903322, 0.03246167031016051, -0.0058344375144712, -0.002341716809590147, 0.003562496750569594, 0, 0.01261561634395496, -0.006365779933418836, -0.0003390004264884097, -0.001645150670912731, -0.003596299577269803, -0.01418453604877385, 0.005461785519242847, 0, 0, -0.0007057914691763191, 0.0007260677058429372, 0, -0.009896463286649984, -0.008367117275452961, -0.005707163502343657, 0, 0.01979329622098861, -0.001778446722347536, 0.001576838212596189, 0, -0.01190640980002457, -0.0004514969114598992, 0.001800839165156762, 0, 0.002327598870655146, -0.005076946147572659, 0.00582526834986082, 0, 0, 0.003340497563803794, -0.002860466736855253, 0, 0.007086956874265312, 0.02583719934066403, 0.00254818672368436, 0, -2.785195404866421e-05, 0, 0.01713202940723876, 0, 0.003595286904269788, -0.001680688760924203, -0.005253073562903502, 0, -0.01081673412265356, -0.006149780945842423, -0.01189845578887982, 0, 0,
0, 0.00144580774246254, -0.006888315703386255, -0.002036765507886379, 0, -0.001717011677129853, -0.002416602298772847, -0.0007846538918684904, 0, 0.01802989916708417, -0.002267182912939588, -0.0007106579902153677, 0, -0.001608776183287672, 0.01324732702175739, 0.006722458027226863, 0, -0.005711035880326279, 0, 0.01101753622188988, 0, 0.01008548666656309, -0.01875901981605288, 0.008680745365905417, 0, 0, 0, 0, 0, -0.0113679978126718, -0.0007958558244987248, -0.01031906953379618, -0.001981992694753275, 0.002226838976410632, -0.005259296160203421, -4.108337312730977e-05, 0.01110704169108917, -0.005510461213624759, -0.004599803442791042, 0.005564226391006013, 0, 0.01477565262190105, -0.008758703119366424, 0.004090543373581325, 0, -0.001946440683938637, -0.004179704633185196, -0.001019196740294627, 0, -0.006620610622624007, -0.003885535891225653, -0.008092744687167423, 0, -0.005365153750766971, -0.00270999863953204, 0.02358261062736248, 0, 0, 0, 0, 0, -0.002285192751038402, -0.007117575670051689, -0.01232766448342375,
-0.0003341775321481666, 0, 0.002356934022451013, 0, 0.002627904063348906, 0, -0.001614027693938054, 0, 0, 0, 0, 0, 0.002034389801264993, 0, 0.001773630831705176, 0, -0.002472580780816105, 0, -0.0006188588949580134, 0, 0.008418005933349243, 0.004516321830814956, -0.0006466613588203758, 0.01567428295178522, 0, 0, 0.008423149535952622, 0, -0.005537896997797264, -0.0001469527459028007, 0.00128345360039673, 0, 0, 0, 0, 0, -0.0007313399641059645, 0, -0.003587022157459245, 0, 0, 0, 0, 0, -0.003942508888188949, 0, -0.00671756904680176, 0, 0, 0, -0.001198313839797913, 0, 0.03313639836171998, 0, 0.002525281174674087, 0.007225695226896136, 0, 0, 0.02085168500556788, 0, -0.001725133937376072, 0, -0.003710163156462239, 0,
-2.882306979392905e-05, -0.008840340185999234, 0.01024219447979495, -0.004930401259347526, -0.006336257367863711, 0, 0.001363241283987496, 0, -0.0001362738648771099, -0.01257142901958388, -0.001552308801101539, 0, -0.008898668970800964, 0, 0, 0, 0.0287313036792823, -0.00715429047871884, 0, 0, 0, 0, 0, 0, 0.001686325181308503, -0.00914341470329577, 0.002158413856034538, 0, 0, 0, 0, 0, -0.01356606425328256, 0, 0, 0, 0, 0, 0, 0, 0.03497281238054101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.001750091035647119, 0, 0, 0, 0, 0, 0, 0,
-0.00833899733874174, 0.0003597655116193077, 0.007016154531836198, -0.00123643255121268, 0, 0.01903116048937517, 0, 0, 0.001437478765078566, -0.001400042597859968, 0.01088785520414561, -0.0002887918868625145, 0, -0.002488949628264815, 0, 0, -0.002569265729330937, -0.002666947570060249, 0, 0, 0, 0, 0, 0, -0.00726840434383713, 0.0241659502052364, 0, 0, -0.00332110542221703, -0.003921528142455406, 0, 0, 0, -0.004270025268621891, 0.006357136520265612, -0.006259558610432504, 0, 0, 0, 0, -0.004337383344948695, 0.001448668683583064, 0.009064191660367545, 0.002898151765618375, 0, 0.003881684061312062, 0, -0.01294678778151941, 0, -0.008359143556347395, 0, 0.0009808235090056872, 0.04419026938925198, 0, 0, 0, -0.0127668756252063, 0.005044528643021176, 0, -0.004078874836433299, -0.001189739358603529, 0.00330880756771256, 0, -0.007698494217423413,
-0.001725111427812541, 0, 0, 0, 0, 0, -0.00954446058119998, 0, 5.049130832362155e-05, 0.01266973371588525, 0, 0, -0.0008610824848622114, 0, -0.0005105988414078843, 0, 0, 0, 0, 0, 0.002432831430493304, 0, 0.02130681477465009, 0, -0.01468038158756479, 0, 0, 0, -0.001430667328265194, 0, -0.004419700040505479, 0.009483546732933994, 0.01978173759029336, 0, -0.002015094255606966, 0, 0, 0, 0, 0, 6.366680547170786e-05, -0.0004112288299529529, 0.04185219872909039, 0, -0.001839165935000485, 0, -0.007108198494370649, 0, 0, 0, 0, 0, 0, 0, 0.0128909098423757, 0, 0, 0, 0, 0, -0.001614524668354511, 0, -0.001010272969642779, 0,
0.001413719447510995, 0.004751833843638695, 0.001313793010005915, 0.0002773174819771473, 0, 0, 0, 0, -0.01538215993244164, -0.001811808821310886, 0.001564441477073216, -0.00073417920675308, 0, 0, 0, 0, -0.004267364424007767, 0.003066742239883457, 0.005759722493614132, -0.003034823224738566, 0, 0, 0, 0, -0.0166641368118317, 0.05179552019099695, -0.007232574699234405, 0.0007212122993372308, 0, 0, 0, 0, -0.006304942411102714, -0.0009205927880105677, -0.005573628773923337, -0.002819479638492943, -1.928710344308788e-05, -0.0006618894988711732, 0.01133539923226573, 0.00458174729249652, 0.009051748594843353, -0.0004143779508366861, -0.001799954669535612, 0.002688707844776018, 0.01215331560054345, -0.01363113126007854, 0.03577091990467188, -0.004616038270617801, -0.004548332188562191, 0.005800679496140143, -0.004336825215151915, 0.001375792889004648, -0.003232260899274965, 0.007215689750060041, 0.003765752462791202, -0.01374873478244614, 0.0283693508400993, 0.007790534392359536, -0.004176866207106717, 0, 0, -0.003590814535215166, 0, 0,
0.007712177561303588, 0.004658813867975723, 0, 0, 0.003557399374690188, 0, 0, 0, 0.007130442330222466, -0.007895219243215307, 0, 0, 0.03289739152535191, 0, 0, -0.007204186454902795, 0.004782292775409107, -0.001155831056293473, 0, 0, -0.005270111378991518, 0.02805235351119512, 0, -0.008387982736450469, 0.0004314053372997581, -0.009707191312727615, 0.02362033205035392, 0, -0.0002384965866926278, -0.00939000113265419, -0.0007410785044227704, -0.01218842555308583, 0.003992714503420977, -0.004304508514187587, 0, 0, 0.002849145933975315, 0, 0, 0, -3.611069715285153e-05, -0.001111251685001905, 0, 0, 0.00547271371868726, -0.001195237635243299, 0, 0, -0.00331778380644569, -0.001341608886442737, 0, 0, -0.009315421546020202, 0, 0, 0.001879442002142324, -0.004942635778845518, 0.00171882168861144, 0.0203156934154258, 0.009121080072022385, 0.002246847443140535, -0.0005361572000861885, 0.01155669165606157, -0.009626795354304836,
-0.0002601353391901144, -0.008032177731987391, 0.005539670950967394, -0.004143159973277316, -0.002967544462277945, 0.02861031790043842, 0.0001945131651728269, -9.269367257699312e-05, -0.0007553570617151146, 0, -0.001613740462189984, 0, 0.009964433228540247, 0, -0.0047107579508887, -0.002541340061554663, -0.005599930095332994, -0.007501060498578672, -0.008025313202598611, 0, -0.003026589957880636, 0.005698437314104208, 0.002041607267156333, 0.002585827738774831, 0.00684362169127563, 0, 0.001909902942932213, -0.007630891383431389, 0.003850190264516804, 0, -0.00245138110677884, 0.01593767824059439, 0, 0, 0, 0, 0, 0, -0.00354065071434987, 0.01566065512421712, 0, 0, 0, 0, 0, 0, 0.002199701640094146, -0.002188107635406581, 0, 0, 0, 0, 0, 0, 0.03451007331324229, 0, -0.00490689580914813, 0.01766780513554095, 0, 0, 0.001512439046726563, -0.001825098653789209, -0.0005931838293132388, -0.005157040072186576,
6.426277619093477e-05, 0, -0.001053295396698586, 0.00791380502922337, 0.0005572520806985627, 0, -0.01346640850622293, 0.008101327343203509, -0.004004243877249658, 0, 0.00306316892786278, 0, 0.02130978596680305, 0, -0.005771656277276187, 0, -0.0138094111776746, 0, 0, 0, 0.02403559749070115, 0, 0, 0, -0.007439958927368553, 0, 0, 0, 0, 0, 0, 0, -3.498454990553957e-05, 0, -0.006298561674139992, 0, -0.0001156497182768396, 0, 0, 0, 0.008960153715300803, 0, 0.003232462183187687, 0, 0, 0, 0, 0, 0.007003649553629167, 0, -0.006388788944325855, 0, 0.0003260134544410754, 0, 0, 0, -0.004401136908448783, 0, 0, 0, 0, 0, 0, 0,
0, -0.007468746764876354, 0, 0.0003351050199188818, 0, -0.00638944493732296, 0, 0.002130180133394121, 0, -0.003794535013882342, 0, 0.001253569330085425, 0, 0.01821343246937834, 0, -0.007538205084731804, 0, -0.001752637503362958, -0.004604875481238277, 0.0008674830719780078, 0, 0.002092116041797376, 0, -0.003707124202399564, 0, -0.0001439664007336834, 0, 0.01778113443047632, 0, 0.002342171332183897, 0, 0.002379560561952122, 0, -0.01116478430331294, 0, -0.001968226746205869, 0, 0, 0, 0.02518558177547209, 0, -0.002362237310972251, 0, 0.001091567784160315, 0, 0.004140784782122374, 0, -4.71196184252804e-07, 0, -0.0008175801365521834, 0, -0.01134486964097154, 0, -0.01079323652592306, 0, -0.007469012940402369, 0, -0.0110228441565101, 0.01182741387367938, 0.004025666667684384, 0, 0, 0, 0.0002276349551944205,
-0.008732362933184646, 0, 0, 0, 0.0002902448270457388, 0, 0, 0, -0.001593958931154713, 0, 7.458892425533448e-05, 0, 0.0001624390686383372, 0.02212232631464971, -0.008817154382776077, -0.01228384459161924, 0, 0, 0, -0.007059238623060285, -0.007518528175023706, 0, 0.01010691468931285, 0.01039519687514465, -0.002362882837612092, -0.000806647433439807, 0.0005699612407259796, -0.00475481231183098, -0.002400173914475628, 0.03130885710814432, 0.001126294158892378, 0.0009203706966530442, 0, 0, 0, 0, -4.833650121306244e-05, 0, 0, 0, -0.007707060184955791, 0.001536347829489788, 0, 0, -0.001195263603377008, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.02124656744689655, 0, 0, 0,
0.001005199683833882, 0.002378035702359351, 0, 0, -0.006957336822733496, 0.005907671209316037, 0, 0, 0, 0, 0, 0, 0.0008477092446434622, -0.004237509980262018, 0.0186146935465747, 5.991270146717054e-05, -0.0007863149970890873, -0.00010593576188641, 0, -0.000485384063887367, 0, 0.0289568863966818, 0, 0.0009868884078362058, 0, 0, 0, 0, -0.01257588799119105, 0.0007205764878100086, 0, -0.001012432400738649, -0.002305237155792446, 0.004169314076856803, 0, 0, 0.003008650588714366, 0, 0, 0, 0, 0, 0, 0, -0.004487513651467192, 0.02312311134611146, 0, 0, 0.0004508549730984344, -0.001715035859191854, 0, 3.731125807723225e-05, 0, 0, 0, 0, 0, 0, 0, 0, -0.005998714136472598, 0.003153553926814504, 0, 0.000971000752150799,
0.0001257730234203951, 0, -0.005998997894691992, 0, 0.0004567970005242645, 0, -0.000194201407038784, 0, -0.006492881338481158, 0, 0, 0, 0.004107529069339337, 0, 0, 0, 0.001356326521594529, 0.007035516014978383, 0.004838611624248375, 0.0004452612152863048, -0.01139214943932402, 0.02254760811869375, -0.009721221545397113, -0.004409346286175638, 0, 0, 0, 0, 0.01893099953866985, 0, 0, 0, 0.001430804090144947, 0, -0.001724440856717321, 0, -0.000980358423217427, 0, -0.0115672759223646, 0, -0.008127120238271569, 0, 0, 0, 0.005049390172673433, 0, 0.005692238305356361, 0, -0.01149617972157024, 0, 0.00151810000007299, -0.0009953135724501347, -0.006209248133282681, 0, 0, 0.01500811908427421, 0, 0, 0, 0.002307075159195328, 0, 0, 0, 0,
6.806071117309631e-05, 0, 0, 0, -0.001016047567698612, 0, 0, 0, -0.01701526858562624, 0, 0.02558693385867629, 0.003846804176346546, 0.008020553450149095, 0, -0.001802907781160725, -0.01079246059061763, -0.01390630575442788, 0, 0, 0, 0.006837121810751317, 0, 0, 0, -0.01086009736563739, 0, 0.01433663526237206, 0, 0, 0, 0, 0, 0.01291057394889696, 0, 0, 0, 0.0006180469986989157, 0, 0, 0, 0, 0, 0, 0, -0.0007738011510673988, 0, 0.004031051215267387, -0.004896749197145166, -0.001489287449101218, 0, 0, 0, 0.001551170557854442, 0, 0, 0, 0, 0, 0, 0, -0.01141970879160927, 0, 0.008628092591820808, 0,
0.001126218605304539, 0, 0.02016498070162265, -0.003092008597246964, 0, 0, -0.000517003713890498, -0.0003914335697334931, -0.0001440370248138673, 0, -0.013670168916573, 0.001556309664740588, -0.007568652105128563, 0, -0.004421682735892658, 0.004639149742664597, -0.001590854437451202, 0, 0.0043745244952328, -0.001935581372121101, 0.010299902966338, 0, 0.003148613022866638, -0.004740457672219808, -0.007972785612895172, 0, 0.002336000234194641, 0.00293227564110007, -0.003211738660437819, 0, -0.00794765274044616, -0.00222639422820582, 0.003245669470591114, 0, -0.005975529440151903, -0.0068626921097712, -0.003132569355364862, 0, 0.00272824717145368, 0.0002246468471952025, -0.008010754082007819, 0, -0.009866340280826219, -0.0002562873797048795, -0.002834980615258248, 0, 0.001467874914260032, 0.003067304539378215, -0.004744704208284056, 0, 0.004149746880943716, -0.006271130333408623, 0.01738582596173823, 0, -1.164045429277443e-05, 0.004675097165856939, 0.006557644974532456, 0, 0.008713262618591138, -0.002070787156176882, 0.001507251848941074, 0, -0.000237952794471403, -0.0001236747799720155,
0.006434111949914737, -0.004622922407263938, 0, 0.001190019379212154, -0.007512841085398453, 0.003784805331020962, 0, -0.006120610757383083, 0, -0.002383583685779329, 0, -0.00329688893431917, -0.005694900759515568, -0.003914956197215805, 0, -0.000326405797146243, -0.008082791056511746, -0.003837763995919439, 0, 0.001323099560808065, 0.0006020809422659129, 0.009778649045643857, 0, -0.0007933097001797593, 0.01711201503420096, -0.001436035332414139, 0, 0.01026069237299034, -0.00370245860304249, -0.003283917338843471, 0, -0.001796595689620441, 0, -0.002900690968876481, 0, 0.01178948264817988, 0.009207173079810473, -0.0006611422564243819, 0, -0.004909509630911322, -0.004947893703929581, 0.01797809682195921, 0, 0.008663223665884399, -0.006438895448720918, 0.01491436872249691, 0, 0.009982633756021472, -0.0084738981186407, -0.006444518003298808, 0, 0.003613325673000373, -0.003609795348444116, 0.009488600341575266, 0, -0.0006037221500529269, -0.005146833413561202, -0.004123072030895489, 0, -0.002502878021072579, 0.007102521924209803, -0.006137331387839083, 0, 0.003000423291863974,
-0.0003716806318731357, -0.009147213741804511, 0.003393429600422219, -0.00159855758954746, -0.003230952235450017, 0.02363482282849876, 0, -0.001876286655321569, -0.00307003544747985, 0.001581491262596342, 0.001554300540215755, -0.0005991541455636257, -0.0005064617499824666, -0.0001458050098129941, 0.01389328363834484, 0.001131416464432976, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.00269437525770383, 0.000955212410004915, 0.005388523946922758, -0.007222489623611219, 0.01521856695344321, 0.02862999331260521, 0.0007507232452434407, -0.0003721496971993855, 0, 0, 0, 0, 0, 0, 0, 0, -0.0006581258952861653, -0.003898566164443519, -0.005504645488404245, 0.004016475995727442, -0.006932143371149152, -0.002706394840185011, 0.02603807786094646, -0.006457077278412474,
0.0008333858112814772, 0, 0.003322231215794787, 0, 0.007030691782148221, 0, 0.0006674628364834567, 0, -0.0009490579320315346, 0, -0.005866820130288414, 0, -0.003222285416630529, 0, 0.002669135285761115, 0, 0.009601590900597482, 0, 0, 0, -0.01467775069959415, 0, -0.0005163565926599732, 0, 0.01765851383475853, -0.0004673994813533929, -0.01244352977112377, 0.005867672282405119, 0.007443411055672763, 0, -0.002986700525482147, 0.004661429040999812, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0003729558140413504, 0.001159843574114646, -0.001206682903343299, 0.0142159845489957, -0.00555105580993312, 0, -0.006716175441539823, 0, -0.0002366130338200353, 0.001491461841280922, -0.01188605580053989, 0, -0.003550940561238971, 0, 0.01740745201716997, 0,
-0.0005206229533172776, -0.007389787726235744, 0.00571174439246964, -0.001413902148439728, -0.001540908561638005, -0.004050829196045627, -0.0007900817585849532, -0.004096596225019023, 0, 0, 0, 0, 0, 0, 0, 0, 0.007808117309308044, -0.002389152434264638, -0.003126186787337136, 0, -0.002369428520866114, -0.001151142525467415, -0.002727314198337178, 0.003494877300399567, 0, 0, 0, 0, 0, 0, 0, 0, -0.002605894910530867, 0.01426748309209886, -0.003833921355499409, 0.01906455445173979, 0, 0, -0.007073242335998765, -0.003412146996453673, 0.0003580713315009965, -0.006366007085742838, -0.003542709926184133, 0.008908452508420485, 0.0006275045869376188, -0.0005916902853405298, 0.006850665927795104, -0.002363867292964954, 0.02717027862956679, -0.01324778956019031, 0.02393728647898445, 0.01184217416546364, -0.0009349039834501818, -0.007081358508085917, 0.002628411433231996, 0, -0.006274938056162171, -0.001843618347049134, 0.01642945355608477, 0, -0.000438734069903705, 0.0003669912116903268, 0.001584737256219857, 0,
0.0009035942318894242, 0, -0.007731411378679106, 0, -0.0009420968597672351, 0, 0.00716997484554133, 0, -0.004468927511204036, 0, -0.001578808799589982, 0, 0, 0, 0, 0, 0.006509804567358965, 0, -0.001524354104739426, 0.0009434082277321563, -0.008668971860839989, 0, -0.001565944129273947, 0, -0.002331377573980632, 0, -0.00156206282546401, 0, 0, 0, 0.0278606177866006, 0, -0.005650582956621558, 0, 0.03120680087019912, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.005717228746906962, 0, -0.002885205776921137, -0.000516937712554633, 0, 0, 0.002738605394545225, 0.00633501787859803, 0.00321645116213338, 0, -0.0004008998629149539, 0.006900077270706165, 0, 0, 0.01050503658941557, 0,
0, 0, 0, 0, 0, 0, 0, 0.01212698195395298, 0.01694183428317643, 0, 0, 0, 0, 0, 0.003033543381740902, -0.008051167983832336, -0.002148721568378247, 0, 0, 0, 0, 0, -0.01348866553208747, 0.002383715398289006, 0.002023657883634585, 0, 0, 0, 0, 0, -0.004694187903310705, 0.0005309122258515087, 0, 0, 0, 0, 0, 0, 0, 0, 0.00584344319988623, 0, 0, 0, 0, 0, -0.01316397428112242, 0.002732271895744454, 0.0004121489571974119, 0, 0, 0, 0, 0, -0.007599238608812724, -0.0001604977494409007, -0.0004288108966699379, 0, 0, 0, 0.0251605207750177, 0, -0.006301350685921673, 5.285876568801811e-05,
0, 0, -0.005781391942185314, 0, -0.003303524206408698, 0, -0.009584093460265739, 0, 0, 0, 0.005151337751185255, 0, 0.008766051554230282, 0, 0.003059388820613836, 0, 0.02005053204515015, 0, 0, 0, 0.004240594506279695, 0, -0.006809769055794543, 0, 0, 0, 0, 0, -0.0003037153551994478, 0, -0.003167208954064623, 0, 0, 0, -0.008662060686102606, 0, 0.003451393935389406, 0, 0.005570804897147878, 0, 0, 0, -0.002854141286807793, 0, 0.007478329689000058, 0, -0.0001157983845928881, 8.448946638262499e-05, 0, 0, 0, 0, 0.003603790406370605, 0, 0.0009097880107919778, 0, 0, 0, -0.003047353645013298, 0, -2.886701326251023e-05, 0, 9.541927321861329e-05, 0.00774898944331678,
0.01630901693668716, 0, 0, 0, 0.0008493408967284018, 0, 0.008007254966244541, 0, 0.00638947239058216, 0, 0, 0, 0.0004086289046566216, 0.005915396695794608, -0.007644844709016225, 0, -0.0020483493037432, 0, 0.02334623039528641, 0, -0.002963312755350968, 0, 0.001334662399364233, 0, -0.0007896565870777275, 0, 0.003567698530639925, 0, 0.0004419253061240559, 0.002020884061689238, -0.003405090476810642, 0, -3.107400690391909e-05, 0, 0, 0, -0.008848577783466793, 0, 0.002430605805834032, 0, -0.008162389198315927, 0, 0, 0, 0.001834579472200669, 0, 0, 0, -0.009079916491195942, 0, 0.01171764004582317, 0, 0.002040818335766045, 0, -0.001483609434343343, 0, -0.007521377282591571, 0, -0.001424617639326989, 0, -0.004473173043090052, 0, 0.005795257952119029, 0,
-3.091180632599988e-05, 0.000283968794228894, 0.003580140541915714, -0.005130787961160182, -0.003589514318363054, 0.01757307091957987, 0.001911740236477573, -0.003084485554528056, 0, 0, -0.001558274565991026, -0.004388733782783085, 0, 0, 0.009090347942013861, -0.008538533820557781, 0.001315161538127572, 0.006204452785369888, -0.004397227854226076, -0.01495705269674054, 0, 0, 0.01721502888426632, 0.005916958189823338, 0, 0, 0.002229895700517362, -0.003759709622810227, 0, 0, -0.008808490208197874, 0.0008552410189744743, 0.00154580629232903, -0.001700593197007501, -0.001842745983030029, 0.003994462857484092, -0.002264180657569243, 0.01304125979042078, 0, -0.006652139724974812, 0, 0, 0.001095193671274753, -0.0002493820967402591, 0, 0, -0.009383861319603965, -0.0004357794930232231, -0.00597716028509146, 0.0008705095891339598, -0.004192470155566111, -0.0008853220262082244, 0, 0.002057423181567856, 0, 0.001671880774940797, 0, 0, -0.0009776117403414166, -0.001759638538139495, 0, 0, 0.008938850209649813, 0.001634556590349951,
-0.0004698049349426934, 0.01153696629503784, 9.038149644943767e-05, -0.005949048129154037, 0.01703580578494586, 0, 0, 0, 0.005408925424404415, 6.409388394209269e-06, 0.0008933812203781565, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.008272974278283532, 0.002067779125116028, 0.004295358760507847, 0.0001066198706846939, 0.0001019123460597512, 0, -0.006014875229771914, 0, -0.003547874232213407, 0, -5.296988096453445e-06, 0.0009276201883237631, 0, 0, -0.009634101962925776, 0, 0.000235389479181564, 0, -0.0002866474767635955, 0, 0, 0, 0.001835090715255629, 0, 0.01757390831741953, 0, -0.001069657800969774, 0, 0, 0, -0.002339334448906032, 0,
-0.0004839894924010943, -0.001867532366196057, 0, 0, 0.001738643444075898, 0.005377487266275471, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.002748272755798261, 0.002595239780007262, 0, 0, -0.0001418462882295295, 0.02229442230453981, 0, 0, -0.001995540941819327, 0.000445743324936112, 0, 0, 0, -0.008830282191130729, 0, 0, 0.0001564274714546383, 0.006102919775881276, -0.005676531345791757, 0, -0.0006993343315798668, 0.005076547134070009, 0.005989930194543225, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.004068345711333085, -0.006948242587641357, 0, 0, -0.01017012505841051, 0.01010449312627406, 0, 0, -0.006196028033325935, -0.00099568292557525, 0, 0.01562187972351308, 0, 0.001418969537149321, 0, 0,
0, -0.0007031474788144405, 0, 0.0005447611253861456, 0, -0.00314880788541437, 0, -0.002255281158319075, -0.005541068280287664, 0.00107959792698606, -1.579335866601879e-05, -0.001629093559384154, 0, -0.001839189970067733, 0, 0.004206100141319774, 0, -0.0048079435507011, 0, -0.005490863460335312, 0, -0.005501361744136286, 0, 0.002927194013940577, 0, 0.00190880459565371, 0, -0.008980166468561158, -0.005105365057309028, -0.008767530934527685, 0, 0.01937541126211955, 0, 0.001390124860092424, 0.001924338259124036, -0.002530326311729387, 0, -0.003640942735772867, 0, -0.007902581862801567, -0.007984121476397429, 0.0002658338340561725, -0.003193877285811589, 0.001371176911079293, 0, 0.0007700019506418588, 0, 0.01193419567179719, 0, -0.003857117752852003, 0, 0.01461267569869293, 0, 0.003554378068678606, 0, -0.0006163488209701966, 0, 0.001194383006065124, 0, -0.00928588435454002, 0, -0.004737440862932004, 0.007471919429696474, 0.007080388378003371
]
scale = 1
bias = 0.06050201133
cat_features_hashes = {
}
def hash_uint64(string):
return cat_features_hashes.get(str(string), 0x7fFFffFF)
### Applicator for the CatBoost model
def apply_catboost_model(float_features, cat_features=[], ntree_start=0, ntree_end=catboost_model.tree_count):
"""
Applies the model built by CatBoost.
Parameters
----------
float_features : list of float features
cat_features : list of categorical features
You need to pass float and categorical features separately in the same order they appeared in train dataset.
For example if you had features f1,f2,f3,f4, where f2 and f4 were considered categorical, you need to pass here float_features=f1,f3, cat_features=f2,f4
Returns
-------
prediction : formula value for the model and the features
"""
if ntree_end == 0:
ntree_end = catboost_model.tree_count
else:
ntree_end = min(ntree_end, catboost_model.tree_count)
model = catboost_model
assert len(float_features) >= model.float_feature_count
assert len(cat_features) >= model.cat_feature_count
# Binarise features
binary_features = [0] * model.binary_feature_count
binary_feature_index = 0
for i in range(len(model.float_feature_borders)):
for border in model.float_feature_borders[i]:
binary_features[binary_feature_index] += 1 if (float_features[model.float_features_index[i]] > border) else 0
binary_feature_index += 1
transposed_hash = [0] * model.cat_feature_count
for i in range(model.cat_feature_count):
transposed_hash[i] = hash_uint64(cat_features[i])
if len(model.one_hot_cat_feature_index) > 0:
cat_feature_packed_indexes = {}
for i in range(model.cat_feature_count):
cat_feature_packed_indexes[model.cat_features_index[i]] = i
for i in range(len(model.one_hot_cat_feature_index)):
cat_idx = cat_feature_packed_indexes[model.one_hot_cat_feature_index[i]]
hash = transposed_hash[cat_idx]
for border_idx in range(len(model.one_hot_hash_values[i])):
binary_features[binary_feature_index] |= (1 if hash == model.one_hot_hash_values[i][border_idx] else 0) * (border_idx + 1)
binary_feature_index += 1
if hasattr(model, 'model_ctrs') and model.model_ctrs.used_model_ctrs_count > 0:
ctrs = [0.] * model.model_ctrs.used_model_ctrs_count;
calc_ctrs(model.model_ctrs, binary_features, transposed_hash, ctrs)
for i in range(len(model.ctr_feature_borders)):
for border in model.ctr_feature_borders[i]:
binary_features[binary_feature_index] += 1 if ctrs[i] > border else 0
binary_feature_index += 1
# Extract and sum values from trees
result = 0.
tree_splits_index = 0
current_tree_leaf_values_index = 0
for tree_id in range(ntree_start, ntree_end):
current_tree_depth = model.tree_depth[tree_id]
index = 0
for depth in range(current_tree_depth):
border_val = model.tree_split_border[tree_splits_index + depth]
feature_index = model.tree_split_feature_index[tree_splits_index + depth]
xor_mask = model.tree_split_xor_mask[tree_splits_index + depth]
index |= ((binary_features[feature_index] ^ xor_mask) >= border_val) << depth
result += model.leaf_values[current_tree_leaf_values_index + index]
tree_splits_index += current_tree_depth
current_tree_leaf_values_index += (1 << current_tree_depth)
return model.scale * result + model.bias
|
class Catboost_Model(object):
float_features_index = [0, 1, 2, 4, 5, 6, 8, 12, 13, 14, 15, 16, 17, 18, 20, 22, 23, 24, 27, 28, 31, 33, 35, 37, 38, 39, 46, 47, 48]
float_feature_count = 50
cat_feature_count = 0
binary_feature_count = 29
tree_count = 40
float_feature_borders = [[0.000758085982, 0.178914994, 0.1888735, 0.194539994, 0.34700349, 0.44264698, 0.780139983, 0.813149452], [0.00132575491, 0.0216720998, 0.0395833515, 0.0403138474, 0.102008, 0.156479999, 0.213277996, 0.281994998, 0.312178016, 0.384054512, 0.474032521, 0.585997999, 0.681437016, 0.815984011], [0.00109145499, 0.00861673057, 0.0365923494, 0.0686140954, 0.419130981, 0.428588986, 0.879231513, 0.937812984], [0.5], [0.5], [0.5], [0.5], [0.5], [0.5], [0.358823478, 0.421568513, 0.433333516, 0.52352953, 0.554902017, 0.558823466, 0.621568501, 0.7156865], [0.148551002, 0.183333501, 0.384469509, 0.436507493, 0.506097496, 0.578900516, 0.587584972, 0.674775004, 0.748417497, 0.76047051, 0.800989985, 0.866219521, 0.867108464, 0.908883512, 0.950919986], [0.0207247995, 0.0343967006, 0.0504557006, 0.158435494, 0.216674, 0.247377992, 0.269448996, 0.318728, 0.333916008, 0.37875849, 0.39003402, 0.422357976, 0.594812512, 0.795647502], [0.0398375988, 0.0653211027, 0.115491495, 0.120285496, 0.124523498, 0.133076996, 0.136280507, 0.140028998, 0.142480001, 0.14288801, 0.155889004, 0.199276, 0.2121225, 0.240777999, 0.260086477, 0.276386499, 0.280552983, 0.297052979, 0.355903506], [0.5], [0.252941012, 0.276470482, 0.331372499, 0.335294008, 0.413725495, 0.437254995, 0.496078491, 0.694117486, 0.699999988, 0.750980496, 0.852941036, 0.929412007, 0.968627512], [0.5], [0.0416666493], [0.0225447994, 0.0226299986, 0.0261416994, 0.0633649006, 0.182705492, 0.187063992, 0.211840004, 0.213952005, 0.241398007, 0.29707399, 0.937534451, 0.939258993, 0.93988049, 0.946740508], [0.5], [0.5], [0.0867389515, 0.16316551, 0.693239987], [0.185759991, 0.297058523, 0.363489985, 0.402247012, 0.793442488, 0.84256053], [-0.0383633971, 0.00895375013, 0.193027496, 0.220256999, 0.342289001, 0.423586994, 0.434064507, 0.476337016, 0.623547494, 0.957795024], [0.000421158999, 0.000926548964, 0.00227425992, 0.00513814017, 0.0282176994, 0.0325976983, 0.0403470509], [0.283847004, 0.650285006, 0.6519925, 0.654693007, 0.661086977, 0.682412982, 0.726830006, 0.784554005, 0.821318984, 0.950830996], [4.17586998e-05, 8.0244994e-05, 0.000137109499, 0.00141531997, 0.00250496017, 0.00326151494, 0.00393318012, 0.005463365, 0.00693041505, 0.00947646052, 0.0113535002, 0.0157128982, 0.01822575, 0.0689947009, 0.0747110993], [0.0761536956, 0.103404, 0.148530498, 0.164992496, 0.214888006, 0.404017985, 0.451396525, 0.535629511, 0.665955007, 0.811691999], [0.60571146, 0.711432993, 0.981393516], [0.1105005, 0.175806999, 0.340994507, 0.346906006, 0.458132505, 0.504471004, 0.544902503, 0.547486544, 0.569079995, 0.670499027, 0.726330996, 0.774749517, 0.776835024, 0.787591517, 0.870769978, 0.911834955]]
tree_depth = [6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6]
tree_split_border = [1, 6, 8, 9, 4, 6, 8, 5, 7, 9, 3, 1, 2, 13, 5, 1, 5, 7, 16, 1, 1, 7, 10, 6, 14, 11, 7, 8, 14, 12, 2, 5, 4, 7, 6, 14, 6, 7, 19, 8, 5, 1, 2, 1, 6, 13, 2, 5, 13, 10, 8, 1, 15, 10, 5, 8, 10, 2, 2, 9, 1, 9, 2, 3, 9, 7, 1, 1, 8, 7, 8, 8, 1, 15, 1, 8, 15, 7, 1, 8, 4, 4, 10, 4, 13, 3, 1, 4, 5, 1, 14, 1, 6, 4, 14, 10, 4, 8, 8, 2, 1, 7, 12, 16, 5, 3, 7, 9, 4, 3, 11, 8, 18, 8, 14, 14, 5, 1, 4, 9, 1, 3, 3, 4, 1, 11, 12, 10, 13, 9, 13, 13, 1, 3, 13, 6, 3, 3, 8, 3, 1, 1, 13, 8, 2, 3, 3, 4, 2, 12, 15, 6, 11, 9, 14, 7, 14, 12, 1, 10, 2, 1, 6, 3, 5, 3, 4, 5, 7, 10, 4, 1, 1, 1, 2, 7, 10, 2, 12, 11, 14, 12, 6, 1, 6, 9, 10, 12, 2, 9, 1, 6, 15, 5, 17, 10, 6, 1, 11, 9, 8, 2, 1, 2, 15, 2, 1, 1, 3, 3, 13, 12, 1, 6, 12, 5, 6, 3, 1, 5, 4, 6, 11, 6, 1, 9, 7, 4, 2, 10, 11, 14, 12, 5, 2, 16, 7, 3, 11, 4]
tree_split_feature_index = [20, 1, 25, 10, 23, 22, 2, 22, 14, 22, 11, 21, 27, 11, 28, 18, 14, 23, 28, 4, 24, 2, 12, 12, 11, 17, 10, 0, 12, 25, 25, 12, 21, 24, 11, 17, 17, 25, 12, 11, 9, 27, 17, 13, 2, 12, 21, 17, 14, 24, 2, 26, 28, 25, 21, 2, 24, 22, 9, 25, 15, 11, 2, 9, 28, 26, 8, 1, 12, 12, 28, 9, 15, 10, 2, 22, 12, 9, 0, 17, 25, 24, 11, 9, 14, 17, 28, 24, 10, 19, 1, 8, 21, 14, 11, 26, 12, 1, 24, 28, 4, 25, 14, 28, 23, 10, 0, 24, 0, 24, 10, 26, 12, 10, 10, 11, 25, 15, 26, 17, 18, 26, 25, 2, 23, 28, 14, 14, 17, 26, 1, 25, 10, 12, 10, 14, 23, 21, 2, 20, 22, 25, 28, 14, 1, 27, 22, 22, 11, 10, 28, 23, 12, 14, 28, 22, 1, 1, 3, 1, 20, 5, 28, 28, 24, 2, 17, 0, 17, 17, 10, 13, 9, 18, 0, 28, 10, 12, 11, 11, 25, 28, 0, 14, 12, 12, 22, 17, 24, 12, 6, 12, 25, 1, 12, 28, 25, 6, 12, 12, 12, 9, 17, 14, 25, 26, 12, 11, 14, 1, 14, 1, 3, 10, 12, 2, 24, 26, 16, 26, 1, 9, 14, 26, 7, 1, 11, 11, 23, 26, 1, 17, 17, 11, 10, 12, 1, 0, 25, 28]
tree_split_xor_mask = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
cat_features_index = []
one_hot_cat_feature_index = []
one_hot_hash_values = []
ctr_feature_borders = []
leaf_values = [-0.01452223061650176, 0.003220391872338723, -0.005535119676446759, -0.01465273981215404, -0.00855547415566176, 0.002037667919068398, 0.0001120632868695247, 0.03840825802757053, -0.01533940293562541, 0.007951286482469178, 0.02893911799022985, 0, 0.02292931274542596, 0.02265389319360762, 0.02038603740012057, 0.01812879496613256, -0.00714521746238457, 0.001950130990137022, -0.007326369906077018, 0.002300279908813374, 0.008621431815437664, 0.03554284328040242, 0.03512996404078633, 0.01981997355782309, -0.0179565158733794, 0.01325214413744863, 0.01360229305612498, 0.009626649814890392, 0.01925329962978078, 0.02543763356059014, 0.01559011467674228, 0.03281872682860205, -0.009945571873778352, -0.001362905044225135, -0.01304254387598467, 0, -0.006594462653496712, -0.01190226843647107, 0.007182689275421724, 0.01535789817241634, -0.00410502282758085, 0.007472611244634545, 0.04089836809158642, 0, 0.006062759240253598, 0.03643488793168285, 0.003512268152670903, 0.007951286482469178, -0.00983941490470884, 0.07047121835364896, 0, 0, 0, 0.02766033534093435, 0, 0.05719577328378828, -0.0149153515011613, -0.007326369906077018, 0, 0, 0, 0.03080527940764925, 0.001150139954406687, -0.004940983961336265, -0.004290491016358114, 0, -0.005142491159808076, 0, -0.01631414563094668, 0, -0.01583305362655595, 0, 0, 0, -0.004223387993378917, 0, 0, 0, -0.009901576725822188, 0, 0.001550563113605264, 0.001390731497052868, 0.00226873941224347, 0.005896346192859286, -0.007258726327461003, 0, 0.003358357795086376, 0, 0, 0, 0.00837589032594164, 0, 0, 0, -0.01059649838552386, 0, -0.009781645896798577, -0.007562517113173503, 0.02214271375734489, 0.05394157562038105, -0.0002138456496420421, 0.008021907958099189, -0.005188739401065129, 0, 0, 0, 0.04905615915828059, 0, 0, 0, -0.005303802232773693, 0, 0.0117081010746993, 0.03062085933581888, 0.02235340547823699, 0.1227133227722861, 0.007862897175603121, 0, 0.001608888337109428, 0, 0, 0, 0.007699061410369978, 0.00687759070158362, 0, 0, -0.01342322142795995, 0, -0.0008628659065023804, 0.009204875414304065, -0.01426102453631723, 0, 0.001937670583401637, 0.0156650165407804, 0.003739955634906077, -0.01011840625499374, -0.006940214177145987, 0, 0.0880356242859759, 0, 0.004817009991483832, -0.01025097578144819, 0.01005740748032615, 0, -0.007628195609257056, 0.01666370432348902, -0.005875549236929858, 0, -0.005698779283673799, 0.02285690403407965, 0.007392561165114673, -0.0003019701652545931, -0.007486785321659697, 0, 0.02840589257042851, 0, 0.02333489281990855, -0.01496735226052822, 0.02076800095251007, 0, -0.001649031678139777, 0, 0, 0, -0.008155449138096203, 0.004641872952715348, 0, 0, -0.001232876227576032, 0, 0, 0, 0, 0.05206643187070074, 0, 0, -0.006966526173996213, 0, 0, 0, 0.006788599608527733, 0.03295161256656724, 0, 0, -0.004321213678543653, 0, 0, 0, 0, 0, 0, 0, -0.0006316326352561491, 0, 0.002209029311105294, 0, -0.003906258731861617, 0.01822784905785241, -0.007781793914963634, 0.00369127410676005, 0, 0, 0, 0, 0, 0, 0.01084750316615975, 0.003076691807563753, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.007433185431032323, 0, 0.09732001192850437, 0, 0, -0.006489873411550759, -0.000821510986801417, 0, 0.0009016305409923756, 0, 0, 0, 0, 0, 0, 0, -0.003277781054332973, 0, -0.005230433240534993, 0, -2.334684902255853e-05, 0, 0.01667959184008616, 0.030891978624975, -0.009702818552789287, -0.003268921953000008, 0.07275386856216502, 0, 0.005896393694908028, 0.09662770584410534, 0.006870360776745228, 0, -0.006516009201959305, 0, -3.323295954872068e-05, 0, 0.0004376897450590875, -0.016185990647663, 0.005314203577559586, 0, 0, 0, 0.04228330137429515, 0, 0, 0, 0.002856957752237062, 0, -0.006992031300023761, 0, -0.007689462879424449, 0, -0.004894108778840038, 0.04066674455775433, -0.006377224181098736, 0.06636328184817226, 0, 0, 0, 0, 0, 0, -0.002448863010868009, 0, -0.001599676199583939, 0, -0.001839682430886059, 0, 0.008702810373211153, 0.008430332565516271, 0.01224326320954283, -0.001859631967022486, 0, 0, 0.006273614761263048, 0, 0, 0, 0.004420039017319769, 0, 0.001293534889321958, 0, 0.02950345370374422, -0.009660460245099391, 0.02369356196464931, -0.001158431984081868, 0.009349389068681473, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.01033229094404197, -0.007187343747184476, -0.007599668941868871, 0.001046029595139935, 0, -0.002073750565693754, 0, 0.01099245434817203, 0, -0.004632214597172815, -0.00297160298904751, -0.001383886818924526, 0, -0.002361190901371866, 0, 0.005535010356095894, 0, -0.01322741423698182, -0.002775568834658869, 0.01131382384954872, 0, -0.007914126374622217, 0, -0.008210417918465872, 0, 0.001797586256526629, 0, -0.01802573556610242, 0, -0.005298017858824775, 0, -0.008726335545986813, -0.00885938193616398, 0.005372641593092777, 0.01071385500662267, -0.007928226701768163, 0, 0, 0, 0, 0, 0.004516165657551504, -0.006049952764731165, 0.0192234950573283, 0, -0.005696520755513532, 0.02659826875262265, 0.003420263338752106, 0, 0, 0, 0.02422158610017956, 0, 0, 0, 0, 0, 0.00126692067246405, 0, 0, 0, 0.0007217026943314586, 0, -0.002266889663467931, 0.000527517366002036, -0.002534949671624169, -0.003795174528153681, 0.004302276548359646, 0.00417587126416725, -0.01268481637109885, -0.005280610360802796, -0.01140100317411678, 0.01675387938496236, 0.04086789025096867, -0.008145068052945906, 0.006114168871778969, 0.00077910935731664, 0.01117549245296063, 0.0005327828844887133, -0.01676369662343859, 0.001517021075247556, -0.001040003671238676, -0.007437525517506317, -0.003805970678087701, -0.00677088288691832, -0.008383823598800712, -0.005926407144474803, 0.002916388412913377, -0.007793611684618585, -0.01499687262349923, -0.00837170672752739, 0.005644736538996646, 0, -0.007805469452170886, 0.04114703210503323, -0.009413073655501647, 0.00264157826850697, 0.006811901388331594, -0.00785001589087246, 0.006267517621904849, 0, 0, 0, 0, 0, -0.01002221384787358, -0.001878559000076426, -0.001571213557730054, 0, 0, 0, 0, -0.002083858638354818, 0.001275122653329691, -0.00298423046224213, 0.007948801114930267, 0, 0, 0, 0, 0, 0, 0.001703906597396959, 0.01259645896916223, 0, 0, 0, 0, 0.03371445805168941, -0.001185444138199443, -0.005124136415977224, -0.002269766091428051, 0, -0.003115138555538167, 0, 0.0002734064426249876, 0.004451898118968756, -0.006610624869245027, 0.01146197259215778, 0.008207522836697762, 0, -0.01252261687479132, 0, 0, 0.02224446463457334, -0.007450223305193149, 0, -0.002956108328539124, 0, 0.005493097638456914, 0, 0, -0.01117800929023734, -0.005940270996419188, 0, -0.009309274010778306, 0, -0.01121189428501243, 0, 0.007270105812932515, 0, 0.001794995781352121, 0, -0.002881837710680872, 0, -0.00175626470189178, 0, 0.02789932855041816, 0, -0.001254060475956491, 0, 0.0003838824129692717, 0, 0.002700351630090569, 0, -0.004932940466300367, 0, 0.002454226355227466, 0, -0.006817443839065618, 0, 0.01105467749302552, 0, 0.01258289305241422, 0, 0.005684877145427304, 0, 0.004658453264072202, 0, -0.02276857481217035, 0, 0.004522300012710081, 0.0008425763829553446, 0, 0.002408208215270238, 0, 0.003974681148615804, 0, 0, 0, -0.00124829809341042, 0.02601956538434454, -0.01009978674854628, 0, -0.01518993399347249, 0, -0.0005417341493214053, 0, 0.02703082630014987, 0, -0.005929548050357011, 0, 0.01170565302244698, 0, 0, 0, 0.009499910399089498, 0, 0.003443180560358982, 0, 0.03899070964790601, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.001177194100092369, 0.002197621475938342, -0.003738951144040578, 0, 0.06761161842455489, 0, -0.001413081831667368, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.004615713640272379, 0, 0.004864661537091734, 0, -0.002598625338326503, 0, -0.004341071208617991, 0, 0.0007082202227046739, -0.01417198056324468, 0, 0, 0, 0, 0, 0, -0.002233204528853981, -0.0004139872216927391, 0.01979641445754554, 0, 0, 0, 0, 0, -0.002178288671951388, 0, -0.00360473464751448, 0, 0.005053944700215062, 0, 0, 0, 0.002122122180820853, -0.007506233446806798, -0.01335053935450701, 0, -0.005379359259597945, 0, -0.0004761339373366446, 0, 0.003036568089877086, 0, -0.002159168798767843, 0, -0.006397598535431919, 0.002462250454737061, 0, 0, -0.0007918339682017969, -0.00747074017029643, 0.03613803344024129, 0, 0.00141681661514044, -0.0005350297286611192, 0, -0.001184656097336426, 0.0007980781893843416, -0.01629166360527857, -0.0002549510143050871, 0, -0.002119026697857936, 0.0007696998857344751, -0.003092788850768577, -0.001970819641649676, 0.00198267359326956, -0.006528310010020534, 0.05276177036643386, 0, -0.0003863112444145576, 0.002799631501597771, -0.0004585310810119515, 0, -0.003436931006256012, -0.001880055642781857, 0.03931679760609862, 0.00207680679730032, -0.01608453850866252, 0.006177269964816359, 0, 0.004155976758090527, -0.008203301672499668, 7.89624474734734e-05, -0.009091765287648202, 0.009506992461471344, -0.008745540885302742, 0.003336443982337911, 0, 0.004891915602822441, 0, 0, 0, 0, -0.02901723113755253, 0.01377392164587125, 0, 0, 0, 0, 0, 0, 0.004189553403655831, -0.0009198607687909613, 0, -0.008800524472416962, 0.0007477070656349182, 0.0138133903052463, -0.005912442929395006, -0.005368369746916586, -0.0008132228493616045, -0.01170808838238346, -0.001728136193868294, 0, -0.002738385514239566, 0.002586904335229321, 0.005527382910955883, -0.003968764892065669, -0.008492087951499474, -0.002880444593632151, -0.008360550051275346, -0.0009289996874247378, 0.004891720359176894, 0.004942331617833064, -0.009186322270972859, 0.01193260467970703, -0.01284207922655834, -0.002735258252103402, 0, -0.002480936486017504, 0.006092020715453159, -0.009081414635937958, -0.01483079523810853, 0.00322573154796649, -0.01337992039046931, -0.0008211533919189933, 0.00991551996901448, 0.004262051857374169, -0.006519586679048669, 0, -0.001127439979654628, -0.002417485798184351, 0, 0, 0, 0, 0.004765260126636051, 0, 0.03932018670902827, 0.04753753344254798, -0.0005372979603245312, -0.005862006702254967, -0.0005733088667826958, 0.003664515811356012, -0.008420020702699777, 0, -0.003859880487842085, 0.003816000064491417, 0, 0, 0, 0, -0.0006419674658671908, 0, -0.02011266763831634, 0.03841717796147258, 0.02145587480367529, 0, 0.001925676050311349, -0.007280202882629585, 0, 0, -0.0006407812599111966, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.002655541373673015, -0.003236077560222469, -0.001415994749800743, 0.01414876397674743, 0, 0, -0.003357723086404019, 0.003451453831730515, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.004834488764318794, 0, -0.000649587430288665, 0.001077810862839724, 0.005798390928744019, -0.003420055346174706, -0.00977233842052971, 0.0009085490175898029, 0, 0.001268016052802764, -0.01005377673547363, -0.001856233393903322, 0.03246167031016051, -0.0058344375144712, -0.002341716809590147, 0.003562496750569594, 0, 0.01261561634395496, -0.006365779933418836, -0.0003390004264884097, -0.001645150670912731, -0.003596299577269803, -0.01418453604877385, 0.005461785519242847, 0, 0, -0.0007057914691763191, 0.0007260677058429372, 0, -0.009896463286649984, -0.008367117275452961, -0.005707163502343657, 0, 0.01979329622098861, -0.001778446722347536, 0.001576838212596189, 0, -0.01190640980002457, -0.0004514969114598992, 0.001800839165156762, 0, 0.002327598870655146, -0.005076946147572659, 0.00582526834986082, 0, 0, 0.003340497563803794, -0.002860466736855253, 0, 0.007086956874265312, 0.02583719934066403, 0.00254818672368436, 0, -2.785195404866421e-05, 0, 0.01713202940723876, 0, 0.003595286904269788, -0.001680688760924203, -0.005253073562903502, 0, -0.01081673412265356, -0.006149780945842423, -0.01189845578887982, 0, 0, 0, 0.00144580774246254, -0.006888315703386255, -0.002036765507886379, 0, -0.001717011677129853, -0.002416602298772847, -0.0007846538918684904, 0, 0.01802989916708417, -0.002267182912939588, -0.0007106579902153677, 0, -0.001608776183287672, 0.01324732702175739, 0.006722458027226863, 0, -0.005711035880326279, 0, 0.01101753622188988, 0, 0.01008548666656309, -0.01875901981605288, 0.008680745365905417, 0, 0, 0, 0, 0, -0.0113679978126718, -0.0007958558244987248, -0.01031906953379618, -0.001981992694753275, 0.002226838976410632, -0.005259296160203421, -4.108337312730977e-05, 0.01110704169108917, -0.005510461213624759, -0.004599803442791042, 0.005564226391006013, 0, 0.01477565262190105, -0.008758703119366424, 0.004090543373581325, 0, -0.001946440683938637, -0.004179704633185196, -0.001019196740294627, 0, -0.006620610622624007, -0.003885535891225653, -0.008092744687167423, 0, -0.005365153750766971, -0.00270999863953204, 0.02358261062736248, 0, 0, 0, 0, 0, -0.002285192751038402, -0.007117575670051689, -0.01232766448342375, -0.0003341775321481666, 0, 0.002356934022451013, 0, 0.002627904063348906, 0, -0.001614027693938054, 0, 0, 0, 0, 0, 0.002034389801264993, 0, 0.001773630831705176, 0, -0.002472580780816105, 0, -0.0006188588949580134, 0, 0.008418005933349243, 0.004516321830814956, -0.0006466613588203758, 0.01567428295178522, 0, 0, 0.008423149535952622, 0, -0.005537896997797264, -0.0001469527459028007, 0.00128345360039673, 0, 0, 0, 0, 0, -0.0007313399641059645, 0, -0.003587022157459245, 0, 0, 0, 0, 0, -0.003942508888188949, 0, -0.00671756904680176, 0, 0, 0, -0.001198313839797913, 0, 0.03313639836171998, 0, 0.002525281174674087, 0.007225695226896136, 0, 0, 0.02085168500556788, 0, -0.001725133937376072, 0, -0.003710163156462239, 0, -2.882306979392905e-05, -0.008840340185999234, 0.01024219447979495, -0.004930401259347526, -0.006336257367863711, 0, 0.001363241283987496, 0, -0.0001362738648771099, -0.01257142901958388, -0.001552308801101539, 0, -0.008898668970800964, 0, 0, 0, 0.0287313036792823, -0.00715429047871884, 0, 0, 0, 0, 0, 0, 0.001686325181308503, -0.00914341470329577, 0.002158413856034538, 0, 0, 0, 0, 0, -0.01356606425328256, 0, 0, 0, 0, 0, 0, 0, 0.03497281238054101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.001750091035647119, 0, 0, 0, 0, 0, 0, 0, -0.00833899733874174, 0.0003597655116193077, 0.007016154531836198, -0.00123643255121268, 0, 0.01903116048937517, 0, 0, 0.001437478765078566, -0.001400042597859968, 0.01088785520414561, -0.0002887918868625145, 0, -0.002488949628264815, 0, 0, -0.002569265729330937, -0.002666947570060249, 0, 0, 0, 0, 0, 0, -0.00726840434383713, 0.0241659502052364, 0, 0, -0.00332110542221703, -0.003921528142455406, 0, 0, 0, -0.004270025268621891, 0.006357136520265612, -0.006259558610432504, 0, 0, 0, 0, -0.004337383344948695, 0.001448668683583064, 0.009064191660367545, 0.002898151765618375, 0, 0.003881684061312062, 0, -0.01294678778151941, 0, -0.008359143556347395, 0, 0.0009808235090056872, 0.04419026938925198, 0, 0, 0, -0.0127668756252063, 0.005044528643021176, 0, -0.004078874836433299, -0.001189739358603529, 0.00330880756771256, 0, -0.007698494217423413, -0.001725111427812541, 0, 0, 0, 0, 0, -0.00954446058119998, 0, 5.049130832362155e-05, 0.01266973371588525, 0, 0, -0.0008610824848622114, 0, -0.0005105988414078843, 0, 0, 0, 0, 0, 0.002432831430493304, 0, 0.02130681477465009, 0, -0.01468038158756479, 0, 0, 0, -0.001430667328265194, 0, -0.004419700040505479, 0.009483546732933994, 0.01978173759029336, 0, -0.002015094255606966, 0, 0, 0, 0, 0, 6.366680547170786e-05, -0.0004112288299529529, 0.04185219872909039, 0, -0.001839165935000485, 0, -0.007108198494370649, 0, 0, 0, 0, 0, 0, 0, 0.0128909098423757, 0, 0, 0, 0, 0, -0.001614524668354511, 0, -0.001010272969642779, 0, 0.001413719447510995, 0.004751833843638695, 0.001313793010005915, 0.0002773174819771473, 0, 0, 0, 0, -0.01538215993244164, -0.001811808821310886, 0.001564441477073216, -0.00073417920675308, 0, 0, 0, 0, -0.004267364424007767, 0.003066742239883457, 0.005759722493614132, -0.003034823224738566, 0, 0, 0, 0, -0.0166641368118317, 0.05179552019099695, -0.007232574699234405, 0.0007212122993372308, 0, 0, 0, 0, -0.006304942411102714, -0.0009205927880105677, -0.005573628773923337, -0.002819479638492943, -1.928710344308788e-05, -0.0006618894988711732, 0.01133539923226573, 0.00458174729249652, 0.009051748594843353, -0.0004143779508366861, -0.001799954669535612, 0.002688707844776018, 0.01215331560054345, -0.01363113126007854, 0.03577091990467188, -0.004616038270617801, -0.004548332188562191, 0.005800679496140143, -0.004336825215151915, 0.001375792889004648, -0.003232260899274965, 0.007215689750060041, 0.003765752462791202, -0.01374873478244614, 0.0283693508400993, 0.007790534392359536, -0.004176866207106717, 0, 0, -0.003590814535215166, 0, 0, 0.007712177561303588, 0.004658813867975723, 0, 0, 0.003557399374690188, 0, 0, 0, 0.007130442330222466, -0.007895219243215307, 0, 0, 0.03289739152535191, 0, 0, -0.007204186454902795, 0.004782292775409107, -0.001155831056293473, 0, 0, -0.005270111378991518, 0.02805235351119512, 0, -0.008387982736450469, 0.0004314053372997581, -0.009707191312727615, 0.02362033205035392, 0, -0.0002384965866926278, -0.00939000113265419, -0.0007410785044227704, -0.01218842555308583, 0.003992714503420977, -0.004304508514187587, 0, 0, 0.002849145933975315, 0, 0, 0, -3.611069715285153e-05, -0.001111251685001905, 0, 0, 0.00547271371868726, -0.001195237635243299, 0, 0, -0.00331778380644569, -0.001341608886442737, 0, 0, -0.009315421546020202, 0, 0, 0.001879442002142324, -0.004942635778845518, 0.00171882168861144, 0.0203156934154258, 0.009121080072022385, 0.002246847443140535, -0.0005361572000861885, 0.01155669165606157, -0.009626795354304836, -0.0002601353391901144, -0.00803217773198739, 0.005539670950967394, -0.004143159973277316, -0.002967544462277945, 0.02861031790043842, 0.0001945131651728269, -9.269367257699312e-05, -0.0007553570617151146, 0, -0.001613740462189984, 0, 0.009964433228540247, 0, -0.0047107579508887, -0.002541340061554663, -0.005599930095332994, -0.007501060498578672, -0.00802531320259861, 0, -0.003026589957880636, 0.005698437314104208, 0.002041607267156333, 0.002585827738774831, 0.00684362169127563, 0, 0.001909902942932213, -0.007630891383431389, 0.003850190264516804, 0, -0.00245138110677884, 0.01593767824059439, 0, 0, 0, 0, 0, 0, -0.00354065071434987, 0.01566065512421712, 0, 0, 0, 0, 0, 0, 0.002199701640094146, -0.002188107635406581, 0, 0, 0, 0, 0, 0, 0.03451007331324229, 0, -0.00490689580914813, 0.01766780513554095, 0, 0, 0.001512439046726563, -0.001825098653789209, -0.0005931838293132388, -0.005157040072186576, 6.426277619093477e-05, 0, -0.001053295396698586, 0.00791380502922337, 0.0005572520806985627, 0, -0.01346640850622293, 0.00810132734320351, -0.004004243877249658, 0, 0.00306316892786278, 0, 0.02130978596680305, 0, -0.005771656277276187, 0, -0.0138094111776746, 0, 0, 0, 0.02403559749070115, 0, 0, 0, -0.007439958927368553, 0, 0, 0, 0, 0, 0, 0, -3.498454990553957e-05, 0, -0.006298561674139992, 0, -0.0001156497182768396, 0, 0, 0, 0.008960153715300803, 0, 0.003232462183187687, 0, 0, 0, 0, 0, 0.007003649553629167, 0, -0.006388788944325855, 0, 0.0003260134544410754, 0, 0, 0, -0.004401136908448783, 0, 0, 0, 0, 0, 0, 0, 0, -0.007468746764876354, 0, 0.0003351050199188818, 0, -0.00638944493732296, 0, 0.002130180133394121, 0, -0.003794535013882342, 0, 0.001253569330085425, 0, 0.01821343246937834, 0, -0.007538205084731804, 0, -0.001752637503362958, -0.004604875481238277, 0.0008674830719780078, 0, 0.002092116041797376, 0, -0.003707124202399564, 0, -0.0001439664007336834, 0, 0.01778113443047632, 0, 0.002342171332183897, 0, 0.002379560561952122, 0, -0.01116478430331294, 0, -0.001968226746205869, 0, 0, 0, 0.02518558177547209, 0, -0.002362237310972251, 0, 0.001091567784160315, 0, 0.004140784782122374, 0, -4.71196184252804e-07, 0, -0.0008175801365521834, 0, -0.01134486964097154, 0, -0.01079323652592306, 0, -0.007469012940402369, 0, -0.0110228441565101, 0.01182741387367938, 0.004025666667684384, 0, 0, 0, 0.0002276349551944205, -0.008732362933184646, 0, 0, 0, 0.0002902448270457388, 0, 0, 0, -0.001593958931154713, 0, 7.458892425533448e-05, 0, 0.0001624390686383372, 0.02212232631464971, -0.008817154382776077, -0.01228384459161924, 0, 0, 0, -0.007059238623060285, -0.007518528175023706, 0, 0.01010691468931285, 0.01039519687514465, -0.002362882837612092, -0.000806647433439807, 0.0005699612407259796, -0.00475481231183098, -0.002400173914475628, 0.03130885710814432, 0.001126294158892378, 0.0009203706966530442, 0, 0, 0, 0, -4.833650121306244e-05, 0, 0, 0, -0.007707060184955791, 0.001536347829489788, 0, 0, -0.001195263603377008, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.02124656744689655, 0, 0, 0, 0.001005199683833882, 0.002378035702359351, 0, 0, -0.006957336822733496, 0.005907671209316037, 0, 0, 0, 0, 0, 0, 0.0008477092446434622, -0.004237509980262018, 0.0186146935465747, 5.991270146717054e-05, -0.0007863149970890873, -0.00010593576188641, 0, -0.000485384063887367, 0, 0.0289568863966818, 0, 0.0009868884078362058, 0, 0, 0, 0, -0.01257588799119105, 0.0007205764878100086, 0, -0.001012432400738649, -0.002305237155792446, 0.004169314076856803, 0, 0, 0.003008650588714366, 0, 0, 0, 0, 0, 0, 0, -0.004487513651467192, 0.02312311134611146, 0, 0, 0.0004508549730984344, -0.001715035859191854, 0, 3.731125807723225e-05, 0, 0, 0, 0, 0, 0, 0, 0, -0.005998714136472598, 0.003153553926814504, 0, 0.000971000752150799, 0.0001257730234203951, 0, -0.005998997894691992, 0, 0.0004567970005242645, 0, -0.000194201407038784, 0, -0.006492881338481158, 0, 0, 0, 0.004107529069339337, 0, 0, 0, 0.001356326521594529, 0.007035516014978383, 0.004838611624248375, 0.0004452612152863048, -0.01139214943932402, 0.02254760811869375, -0.009721221545397113, -0.004409346286175638, 0, 0, 0, 0, 0.01893099953866985, 0, 0, 0, 0.001430804090144947, 0, -0.001724440856717321, 0, -0.000980358423217427, 0, -0.0115672759223646, 0, -0.008127120238271569, 0, 0, 0, 0.005049390172673433, 0, 0.005692238305356361, 0, -0.01149617972157024, 0, 0.00151810000007299, -0.0009953135724501347, -0.006209248133282681, 0, 0, 0.01500811908427421, 0, 0, 0, 0.002307075159195328, 0, 0, 0, 0, 6.80607111730963e-05, 0, 0, 0, -0.001016047567698612, 0, 0, 0, -0.01701526858562624, 0, 0.02558693385867629, 0.003846804176346546, 0.008020553450149095, 0, -0.001802907781160725, -0.01079246059061763, -0.01390630575442788, 0, 0, 0, 0.006837121810751317, 0, 0, 0, -0.01086009736563739, 0, 0.01433663526237206, 0, 0, 0, 0, 0, 0.01291057394889696, 0, 0, 0, 0.0006180469986989157, 0, 0, 0, 0, 0, 0, 0, -0.0007738011510673988, 0, 0.004031051215267387, -0.004896749197145166, -0.001489287449101218, 0, 0, 0, 0.001551170557854442, 0, 0, 0, 0, 0, 0, 0, -0.01141970879160927, 0, 0.008628092591820808, 0, 0.001126218605304539, 0, 0.02016498070162265, -0.003092008597246964, 0, 0, -0.000517003713890498, -0.0003914335697334931, -0.0001440370248138673, 0, -0.013670168916573, 0.001556309664740588, -0.007568652105128563, 0, -0.004421682735892658, 0.004639149742664597, -0.001590854437451202, 0, 0.0043745244952328, -0.001935581372121101, 0.010299902966338, 0, 0.003148613022866638, -0.004740457672219808, -0.007972785612895172, 0, 0.002336000234194641, 0.00293227564110007, -0.003211738660437819, 0, -0.00794765274044616, -0.00222639422820582, 0.003245669470591114, 0, -0.005975529440151903, -0.0068626921097712, -0.003132569355364862, 0, 0.00272824717145368, 0.0002246468471952025, -0.008010754082007819, 0, -0.00986634028082622, -0.0002562873797048795, -0.002834980615258248, 0, 0.001467874914260032, 0.003067304539378215, -0.004744704208284056, 0, 0.004149746880943716, -0.006271130333408623, 0.01738582596173823, 0, -1.164045429277443e-05, 0.004675097165856939, 0.006557644974532456, 0, 0.008713262618591138, -0.002070787156176882, 0.001507251848941074, 0, -0.000237952794471403, -0.0001236747799720155, 0.006434111949914737, -0.004622922407263938, 0, 0.001190019379212154, -0.007512841085398453, 0.003784805331020962, 0, -0.006120610757383083, 0, -0.002383583685779329, 0, -0.00329688893431917, -0.005694900759515568, -0.003914956197215805, 0, -0.000326405797146243, -0.008082791056511746, -0.003837763995919439, 0, 0.001323099560808065, 0.0006020809422659129, 0.009778649045643857, 0, -0.0007933097001797593, 0.01711201503420096, -0.001436035332414139, 0, 0.01026069237299034, -0.00370245860304249, -0.003283917338843471, 0, -0.001796595689620441, 0, -0.002900690968876481, 0, 0.01178948264817988, 0.009207173079810473, -0.0006611422564243819, 0, -0.004909509630911322, -0.004947893703929581, 0.01797809682195921, 0, 0.008663223665884399, -0.006438895448720918, 0.01491436872249691, 0, 0.009982633756021472, -0.0084738981186407, -0.006444518003298808, 0, 0.003613325673000373, -0.003609795348444116, 0.009488600341575266, 0, -0.0006037221500529269, -0.005146833413561202, -0.004123072030895489, 0, -0.002502878021072579, 0.007102521924209803, -0.006137331387839083, 0, 0.003000423291863974, -0.0003716806318731357, -0.009147213741804511, 0.003393429600422219, -0.00159855758954746, -0.003230952235450017, 0.02363482282849876, 0, -0.001876286655321569, -0.00307003544747985, 0.001581491262596342, 0.001554300540215755, -0.0005991541455636257, -0.0005064617499824666, -0.0001458050098129941, 0.01389328363834484, 0.001131416464432976, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.00269437525770383, 0.000955212410004915, 0.005388523946922758, -0.007222489623611219, 0.01521856695344321, 0.02862999331260521, 0.0007507232452434407, -0.0003721496971993855, 0, 0, 0, 0, 0, 0, 0, 0, -0.0006581258952861653, -0.003898566164443519, -0.005504645488404245, 0.004016475995727442, -0.006932143371149152, -0.002706394840185011, 0.02603807786094646, -0.006457077278412474, 0.0008333858112814772, 0, 0.003322231215794787, 0, 0.007030691782148221, 0, 0.0006674628364834567, 0, -0.0009490579320315346, 0, -0.005866820130288414, 0, -0.003222285416630529, 0, 0.002669135285761115, 0, 0.009601590900597482, 0, 0, 0, -0.01467775069959415, 0, -0.0005163565926599732, 0, 0.01765851383475853, -0.0004673994813533929, -0.01244352977112377, 0.005867672282405119, 0.007443411055672763, 0, -0.002986700525482147, 0.004661429040999812, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0003729558140413504, 0.001159843574114646, -0.001206682903343299, 0.0142159845489957, -0.00555105580993312, 0, -0.006716175441539823, 0, -0.0002366130338200353, 0.001491461841280922, -0.01188605580053989, 0, -0.003550940561238971, 0, 0.01740745201716997, 0, -0.0005206229533172776, -0.007389787726235744, 0.00571174439246964, -0.001413902148439728, -0.001540908561638005, -0.004050829196045627, -0.0007900817585849532, -0.004096596225019023, 0, 0, 0, 0, 0, 0, 0, 0, 0.007808117309308044, -0.002389152434264638, -0.003126186787337136, 0, -0.002369428520866114, -0.001151142525467415, -0.002727314198337178, 0.003494877300399567, 0, 0, 0, 0, 0, 0, 0, 0, -0.002605894910530867, 0.01426748309209886, -0.003833921355499409, 0.01906455445173979, 0, 0, -0.007073242335998765, -0.003412146996453673, 0.0003580713315009965, -0.006366007085742838, -0.003542709926184133, 0.008908452508420485, 0.0006275045869376188, -0.0005916902853405298, 0.006850665927795104, -0.002363867292964954, 0.02717027862956679, -0.01324778956019031, 0.02393728647898445, 0.01184217416546364, -0.0009349039834501818, -0.007081358508085917, 0.002628411433231996, 0, -0.006274938056162171, -0.001843618347049134, 0.01642945355608477, 0, -0.000438734069903705, 0.0003669912116903268, 0.001584737256219857, 0, 0.0009035942318894242, 0, -0.007731411378679106, 0, -0.0009420968597672351, 0, 0.00716997484554133, 0, -0.004468927511204036, 0, -0.001578808799589982, 0, 0, 0, 0, 0, 0.006509804567358965, 0, -0.001524354104739426, 0.0009434082277321563, -0.008668971860839989, 0, -0.001565944129273947, 0, -0.002331377573980632, 0, -0.00156206282546401, 0, 0, 0, 0.0278606177866006, 0, -0.005650582956621558, 0, 0.03120680087019912, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.005717228746906962, 0, -0.002885205776921137, -0.000516937712554633, 0, 0, 0.002738605394545225, 0.00633501787859803, 0.00321645116213338, 0, -0.0004008998629149539, 0.006900077270706165, 0, 0, 0.01050503658941557, 0, 0, 0, 0, 0, 0, 0, 0, 0.01212698195395298, 0.01694183428317643, 0, 0, 0, 0, 0, 0.003033543381740902, -0.008051167983832336, -0.002148721568378247, 0, 0, 0, 0, 0, -0.01348866553208747, 0.002383715398289006, 0.002023657883634585, 0, 0, 0, 0, 0, -0.004694187903310705, 0.0005309122258515087, 0, 0, 0, 0, 0, 0, 0, 0, 0.00584344319988623, 0, 0, 0, 0, 0, -0.01316397428112242, 0.002732271895744454, 0.0004121489571974119, 0, 0, 0, 0, 0, -0.007599238608812724, -0.0001604977494409007, -0.0004288108966699379, 0, 0, 0, 0.0251605207750177, 0, -0.006301350685921673, 5.285876568801811e-05, 0, 0, -0.005781391942185314, 0, -0.003303524206408698, 0, -0.009584093460265739, 0, 0, 0, 0.005151337751185255, 0, 0.008766051554230282, 0, 0.003059388820613836, 0, 0.02005053204515015, 0, 0, 0, 0.004240594506279695, 0, -0.006809769055794543, 0, 0, 0, 0, 0, -0.0003037153551994478, 0, -0.003167208954064623, 0, 0, 0, -0.008662060686102606, 0, 0.003451393935389406, 0, 0.005570804897147878, 0, 0, 0, -0.002854141286807793, 0, 0.007478329689000058, 0, -0.0001157983845928881, 8.4489466382625e-05, 0, 0, 0, 0, 0.003603790406370605, 0, 0.0009097880107919778, 0, 0, 0, -0.003047353645013298, 0, -2.886701326251023e-05, 0, 9.541927321861329e-05, 0.00774898944331678, 0.01630901693668716, 0, 0, 0, 0.0008493408967284018, 0, 0.008007254966244541, 0, 0.00638947239058216, 0, 0, 0, 0.0004086289046566216, 0.005915396695794608, -0.007644844709016225, 0, -0.0020483493037432, 0, 0.02334623039528641, 0, -0.002963312755350968, 0, 0.001334662399364233, 0, -0.0007896565870777275, 0, 0.003567698530639925, 0, 0.0004419253061240559, 0.002020884061689238, -0.003405090476810642, 0, -3.107400690391909e-05, 0, 0, 0, -0.008848577783466793, 0, 0.002430605805834032, 0, -0.008162389198315927, 0, 0, 0, 0.001834579472200669, 0, 0, 0, -0.009079916491195942, 0, 0.01171764004582317, 0, 0.002040818335766045, 0, -0.001483609434343343, 0, -0.007521377282591571, 0, -0.001424617639326989, 0, -0.004473173043090052, 0, 0.005795257952119029, 0, -3.091180632599988e-05, 0.000283968794228894, 0.003580140541915714, -0.005130787961160182, -0.003589514318363054, 0.01757307091957987, 0.001911740236477573, -0.003084485554528056, 0, 0, -0.001558274565991026, -0.004388733782783085, 0, 0, 0.009090347942013861, -0.00853853382055778, 0.001315161538127572, 0.006204452785369888, -0.004397227854226076, -0.01495705269674054, 0, 0, 0.01721502888426632, 0.005916958189823338, 0, 0, 0.002229895700517362, -0.003759709622810227, 0, 0, -0.008808490208197874, 0.0008552410189744743, 0.00154580629232903, -0.001700593197007501, -0.001842745983030029, 0.003994462857484092, -0.002264180657569243, 0.01304125979042078, 0, -0.006652139724974812, 0, 0, 0.001095193671274753, -0.0002493820967402591, 0, 0, -0.009383861319603965, -0.0004357794930232231, -0.00597716028509146, 0.0008705095891339598, -0.004192470155566111, -0.0008853220262082244, 0, 0.002057423181567856, 0, 0.001671880774940797, 0, 0, -0.0009776117403414166, -0.001759638538139495, 0, 0, 0.008938850209649813, 0.001634556590349951, -0.0004698049349426934, 0.01153696629503784, 9.038149644943767e-05, -0.005949048129154037, 0.01703580578494586, 0, 0, 0, 0.005408925424404415, 6.409388394209269e-06, 0.0008933812203781565, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.008272974278283532, 0.002067779125116028, 0.004295358760507847, 0.0001066198706846939, 0.0001019123460597512, 0, -0.006014875229771914, 0, -0.003547874232213407, 0, -5.296988096453445e-06, 0.0009276201883237631, 0, 0, -0.009634101962925776, 0, 0.000235389479181564, 0, -0.0002866474767635955, 0, 0, 0, 0.001835090715255629, 0, 0.01757390831741953, 0, -0.001069657800969774, 0, 0, 0, -0.002339334448906032, 0, -0.0004839894924010943, -0.001867532366196057, 0, 0, 0.001738643444075898, 0.005377487266275471, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.002748272755798261, 0.002595239780007262, 0, 0, -0.0001418462882295295, 0.02229442230453981, 0, 0, -0.001995540941819327, 0.000445743324936112, 0, 0, 0, -0.00883028219113073, 0, 0, 0.0001564274714546383, 0.006102919775881276, -0.005676531345791757, 0, -0.0006993343315798668, 0.005076547134070009, 0.005989930194543225, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.004068345711333085, -0.006948242587641357, 0, 0, -0.01017012505841051, 0.01010449312627406, 0, 0, -0.006196028033325935, -0.00099568292557525, 0, 0.01562187972351308, 0, 0.001418969537149321, 0, 0, 0, -0.0007031474788144405, 0, 0.0005447611253861456, 0, -0.00314880788541437, 0, -0.002255281158319075, -0.005541068280287664, 0.00107959792698606, -1.579335866601879e-05, -0.001629093559384154, 0, -0.001839189970067733, 0, 0.004206100141319774, 0, -0.0048079435507011, 0, -0.005490863460335312, 0, -0.005501361744136286, 0, 0.002927194013940577, 0, 0.00190880459565371, 0, -0.008980166468561158, -0.005105365057309028, -0.008767530934527685, 0, 0.01937541126211955, 0, 0.001390124860092424, 0.001924338259124036, -0.002530326311729387, 0, -0.003640942735772867, 0, -0.007902581862801567, -0.007984121476397429, 0.0002658338340561725, -0.003193877285811589, 0.001371176911079293, 0, 0.0007700019506418588, 0, 0.01193419567179719, 0, -0.003857117752852003, 0, 0.01461267569869293, 0, 0.003554378068678606, 0, -0.0006163488209701966, 0, 0.001194383006065124, 0, -0.00928588435454002, 0, -0.004737440862932004, 0.007471919429696474, 0.007080388378003371]
scale = 1
bias = 0.06050201133
cat_features_hashes = {}
def hash_uint64(string):
return cat_features_hashes.get(str(string), 2147483647)
def apply_catboost_model(float_features, cat_features=[], ntree_start=0, ntree_end=catboost_model.tree_count):
"""
Applies the model built by CatBoost.
Parameters
----------
float_features : list of float features
cat_features : list of categorical features
You need to pass float and categorical features separately in the same order they appeared in train dataset.
For example if you had features f1,f2,f3,f4, where f2 and f4 were considered categorical, you need to pass here float_features=f1,f3, cat_features=f2,f4
Returns
-------
prediction : formula value for the model and the features
"""
if ntree_end == 0:
ntree_end = catboost_model.tree_count
else:
ntree_end = min(ntree_end, catboost_model.tree_count)
model = catboost_model
assert len(float_features) >= model.float_feature_count
assert len(cat_features) >= model.cat_feature_count
binary_features = [0] * model.binary_feature_count
binary_feature_index = 0
for i in range(len(model.float_feature_borders)):
for border in model.float_feature_borders[i]:
binary_features[binary_feature_index] += 1 if float_features[model.float_features_index[i]] > border else 0
binary_feature_index += 1
transposed_hash = [0] * model.cat_feature_count
for i in range(model.cat_feature_count):
transposed_hash[i] = hash_uint64(cat_features[i])
if len(model.one_hot_cat_feature_index) > 0:
cat_feature_packed_indexes = {}
for i in range(model.cat_feature_count):
cat_feature_packed_indexes[model.cat_features_index[i]] = i
for i in range(len(model.one_hot_cat_feature_index)):
cat_idx = cat_feature_packed_indexes[model.one_hot_cat_feature_index[i]]
hash = transposed_hash[cat_idx]
for border_idx in range(len(model.one_hot_hash_values[i])):
binary_features[binary_feature_index] |= (1 if hash == model.one_hot_hash_values[i][border_idx] else 0) * (border_idx + 1)
binary_feature_index += 1
if hasattr(model, 'model_ctrs') and model.model_ctrs.used_model_ctrs_count > 0:
ctrs = [0.0] * model.model_ctrs.used_model_ctrs_count
calc_ctrs(model.model_ctrs, binary_features, transposed_hash, ctrs)
for i in range(len(model.ctr_feature_borders)):
for border in model.ctr_feature_borders[i]:
binary_features[binary_feature_index] += 1 if ctrs[i] > border else 0
binary_feature_index += 1
result = 0.0
tree_splits_index = 0
current_tree_leaf_values_index = 0
for tree_id in range(ntree_start, ntree_end):
current_tree_depth = model.tree_depth[tree_id]
index = 0
for depth in range(current_tree_depth):
border_val = model.tree_split_border[tree_splits_index + depth]
feature_index = model.tree_split_feature_index[tree_splits_index + depth]
xor_mask = model.tree_split_xor_mask[tree_splits_index + depth]
index |= (binary_features[feature_index] ^ xor_mask >= border_val) << depth
result += model.leaf_values[current_tree_leaf_values_index + index]
tree_splits_index += current_tree_depth
current_tree_leaf_values_index += 1 << current_tree_depth
return model.scale * result + model.bias
|
# Based on: https://articles.leetcode.com/longest-palindromic-substring-part-ii/
def _process(s):
alt_chars = ['$', '#']
for char in s:
alt_chars.extend([char, '#'])
alt_chars += ['@']
return alt_chars
def _run_manacher(alt_chars):
palin_table = [0] * len(alt_chars)
center, right = 0, 0
for i in range(len(alt_chars) - 1):
opposite = center * 2 - i
if right > i:
palin_table[i] = min(right - i, palin_table[opposite])
while alt_chars[i + (1 + palin_table[i])] == alt_chars[i - (1 + palin_table[i])]:
palin_table[i] += 1
if i + palin_table[i] > right:
center, right = i, i + palin_table[i]
return palin_table
def longest_palindrome(s):
alt_chars = _process(s)
palin_table = _run_manacher(alt_chars)
longest, center = 0, 0
for i in range(len(palin_table) - 1):
if palin_table[i] > longest:
longest, center = palin_table[i], i
return s[(center - 1 - longest) // 2:(center - 1 + longest) // 2]
def main():
print(longest_palindrome("blahblahblahracecarblah"))
if __name__ == '__main__':
main()
|
def _process(s):
alt_chars = ['$', '#']
for char in s:
alt_chars.extend([char, '#'])
alt_chars += ['@']
return alt_chars
def _run_manacher(alt_chars):
palin_table = [0] * len(alt_chars)
(center, right) = (0, 0)
for i in range(len(alt_chars) - 1):
opposite = center * 2 - i
if right > i:
palin_table[i] = min(right - i, palin_table[opposite])
while alt_chars[i + (1 + palin_table[i])] == alt_chars[i - (1 + palin_table[i])]:
palin_table[i] += 1
if i + palin_table[i] > right:
(center, right) = (i, i + palin_table[i])
return palin_table
def longest_palindrome(s):
alt_chars = _process(s)
palin_table = _run_manacher(alt_chars)
(longest, center) = (0, 0)
for i in range(len(palin_table) - 1):
if palin_table[i] > longest:
(longest, center) = (palin_table[i], i)
return s[(center - 1 - longest) // 2:(center - 1 + longest) // 2]
def main():
print(longest_palindrome('blahblahblahracecarblah'))
if __name__ == '__main__':
main()
|
def get_majority_element(a, left, right):
a.sort()
if left == right:
return -1
if left + 1 == right:
return a[left]
#write your code here
mid = left + (right-left)//2
k=0
for i in range(len(a)):
if a[i]==a[mid]: k+=1
if k > right/2 : return k
return -1
n = int(input())
a = list(map(int, input().split()))
if get_majority_element(a, 0, n) != -1:
print(1)
else:
print(0)
|
def get_majority_element(a, left, right):
a.sort()
if left == right:
return -1
if left + 1 == right:
return a[left]
mid = left + (right - left) // 2
k = 0
for i in range(len(a)):
if a[i] == a[mid]:
k += 1
if k > right / 2:
return k
return -1
n = int(input())
a = list(map(int, input().split()))
if get_majority_element(a, 0, n) != -1:
print(1)
else:
print(0)
|
def main():
points = []
with open("input.txt") as input_file:
for wire in input_file:
wire = [(x[0], int(x[1:])) for x in wire.split(",")]
x, y = 0, 0
cost = 0
points_local = [(x, y, cost)]
for direction, value in wire:
if direction == "U":
y += value
elif direction == "D":
y -= value
elif direction == "R":
x += value
elif direction == "L":
x -= value
else:
raise Exception("Invalid direction: " + direction)
cost += value
points_local.append((x, y, cost))
points.append(points_local)
results = []
for i in range(len(points[0]) - 1):
px1, py1 = points[0][i][0], points[0][i][1]
px2, py2 = points[0][i + 1][0], points[0][i + 1][1]
for j in range(len(points[1]) - 1):
qx1, qy1 = points[1][j][0], points[1][j][1]
qx2, qy2 = points[1][j + 1][0], points[1][j + 1][1]
if px1 == px2 and qy1 == qy2:
if px1 <= max(qx1, qx2) and px1 >= min(qx1, qx2) and px2 <= max(qx1, qx2) and px2 >= min(qx1, qx2):
if max(py1, py2) >= qy1 and min(py1, py2) <= qy2:
results.append(points[0][i][2] + points[1][j][2] + abs(px1 - qx1) + abs(qy1 - py1))
#print((px1, qy1))
elif py1 == py2 and qx1 == qx2:
if qx1 <= max(px1, px2) and qx1 >= min(px1, px2) and qx2 <= max(px1, px2) and qx2 >= min(px1, px2):
if max(qy1, qy2) >= py1 and min(qy1, qy2) <= py2:
results.append(points[0][i][2] + points[1][j][2] + abs(qx1 - px1) + abs(py1 - qy1))
#print((qx1, py1))
print(results)
if __name__ == "__main__":
main()
|
def main():
points = []
with open('input.txt') as input_file:
for wire in input_file:
wire = [(x[0], int(x[1:])) for x in wire.split(',')]
(x, y) = (0, 0)
cost = 0
points_local = [(x, y, cost)]
for (direction, value) in wire:
if direction == 'U':
y += value
elif direction == 'D':
y -= value
elif direction == 'R':
x += value
elif direction == 'L':
x -= value
else:
raise exception('Invalid direction: ' + direction)
cost += value
points_local.append((x, y, cost))
points.append(points_local)
results = []
for i in range(len(points[0]) - 1):
(px1, py1) = (points[0][i][0], points[0][i][1])
(px2, py2) = (points[0][i + 1][0], points[0][i + 1][1])
for j in range(len(points[1]) - 1):
(qx1, qy1) = (points[1][j][0], points[1][j][1])
(qx2, qy2) = (points[1][j + 1][0], points[1][j + 1][1])
if px1 == px2 and qy1 == qy2:
if px1 <= max(qx1, qx2) and px1 >= min(qx1, qx2) and (px2 <= max(qx1, qx2)) and (px2 >= min(qx1, qx2)):
if max(py1, py2) >= qy1 and min(py1, py2) <= qy2:
results.append(points[0][i][2] + points[1][j][2] + abs(px1 - qx1) + abs(qy1 - py1))
elif py1 == py2 and qx1 == qx2:
if qx1 <= max(px1, px2) and qx1 >= min(px1, px2) and (qx2 <= max(px1, px2)) and (qx2 >= min(px1, px2)):
if max(qy1, qy2) >= py1 and min(qy1, qy2) <= py2:
results.append(points[0][i][2] + points[1][j][2] + abs(qx1 - px1) + abs(py1 - qy1))
print(results)
if __name__ == '__main__':
main()
|
class APIException(Exception):
def __init__(self, message):
super().__init__(message)
self.message = message
class UserException(Exception):
def __init__(self, message):
super().__init__(message)
self.message = message
|
class Apiexception(Exception):
def __init__(self, message):
super().__init__(message)
self.message = message
class Userexception(Exception):
def __init__(self, message):
super().__init__(message)
self.message = message
|
class MyClass(object):
def set_val(self,val):
self.val = val
def get_val(self):
return self.val
a = MyClass()
b = MyClass()
a.set_val(10)
b.set_val(100)
print(a.get_val())
print(b.get_val())
|
class Myclass(object):
def set_val(self, val):
self.val = val
def get_val(self):
return self.val
a = my_class()
b = my_class()
a.set_val(10)
b.set_val(100)
print(a.get_val())
print(b.get_val())
|
# ========================
# Information
# ========================
# Direct Link: https://www.hackerrank.com/challenges/security-key-spaces/problem
# Difficulty: Easy
# Max Score: 10
# Language: Python
# ========================
# Solution
# ========================
num = (input())
e = int(input())
print(''.join([str((int(i)+e) % 10) for i in num]))
|
num = input()
e = int(input())
print(''.join([str((int(i) + e) % 10) for i in num]))
|
def reverse(S, start, stop):
"""Reverse elements in emplicit slice S[start:stop]."""
if start < stop - 1:
S[start], S[stop-1] = S[stop - 1], S[start]
reverse(S, start+1, stop - 1)
def reverse_iterative(S):
"""Reverse elements in S using tail recursion"""
start,stop = 0,len(S)
while start < stop - 1:
S[start],S[stop-1] = S[stop - 1], S[start]
start,stop = start+1, stop -1
|
def reverse(S, start, stop):
"""Reverse elements in emplicit slice S[start:stop]."""
if start < stop - 1:
(S[start], S[stop - 1]) = (S[stop - 1], S[start])
reverse(S, start + 1, stop - 1)
def reverse_iterative(S):
"""Reverse elements in S using tail recursion"""
(start, stop) = (0, len(S))
while start < stop - 1:
(S[start], S[stop - 1]) = (S[stop - 1], S[start])
(start, stop) = (start + 1, stop - 1)
|
def palindrome_num():
num = int(input("Enter a number:"))
temp = num
rev = 0
while(num>0):
dig = num%10
rev = rev*10+dig
num = num//10
if(temp == rev):
print("The number is palindrome!")
else:
print("Not a palindrome!")
palindrome_num()
|
def palindrome_num():
num = int(input('Enter a number:'))
temp = num
rev = 0
while num > 0:
dig = num % 10
rev = rev * 10 + dig
num = num // 10
if temp == rev:
print('The number is palindrome!')
else:
print('Not a palindrome!')
palindrome_num()
|
# Not necessary. Just wanted to separate program from credentials
def apikey():
return 'apikey'
def stomp_username():
return 'stomp user'
def stomp_password():
return 'stomp pass'
|
def apikey():
return 'apikey'
def stomp_username():
return 'stomp user'
def stomp_password():
return 'stomp pass'
|
"""
https://leetcode.com/problems/add-strings/
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2.
Note:
The length of both num1 and num2 is < 5100.
Both num1 and num2 contains only digits 0-9.
Both num1 and num2 does not contain any leading zero.
You must not use any built-in BigInteger library or convert the inputs to integer directly.
"""
# Pretty easy.
# time complexity: O(n+m), space complexity: O(max(m,n)), where m and n are the lengths of the two strings respectively.
class Solution:
def addStrings(self, num1: str, num2: str) -> str:
result = ""
addone = 0
for i in range(max(len(num1),len(num2))):
if i >= len(num1):
number1 = 0
number2 = ord(num2[-1-i]) - ord('0')
elif i >= len(num2):
number1 = ord(num1[-1-i]) - ord('0')
number2 = 0
else:
number1 = ord(num1[-1-i]) - ord('0')
number2 = ord(num2[-1-i]) - ord('0')
r = number1 + number2 + addone
if r > 9:
addone = 1
r -= 10
else:
addone = 0
result = str(r)+result
if addone != 0:
result = '1' + result
return result
|
"""
https://leetcode.com/problems/add-strings/
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2.
Note:
The length of both num1 and num2 is < 5100.
Both num1 and num2 contains only digits 0-9.
Both num1 and num2 does not contain any leading zero.
You must not use any built-in BigInteger library or convert the inputs to integer directly.
"""
class Solution:
def add_strings(self, num1: str, num2: str) -> str:
result = ''
addone = 0
for i in range(max(len(num1), len(num2))):
if i >= len(num1):
number1 = 0
number2 = ord(num2[-1 - i]) - ord('0')
elif i >= len(num2):
number1 = ord(num1[-1 - i]) - ord('0')
number2 = 0
else:
number1 = ord(num1[-1 - i]) - ord('0')
number2 = ord(num2[-1 - i]) - ord('0')
r = number1 + number2 + addone
if r > 9:
addone = 1
r -= 10
else:
addone = 0
result = str(r) + result
if addone != 0:
result = '1' + result
return result
|
# Lists always stay in the same order, so you can get
# information out very easily. List indexes act very similar
# to string indexs
intList = [1, 2, 3, 4, 5]
# Get the first item
print(intList[0])
# Get the last item
print(intList[-1])
# Alternatively:
print(intList[len(intList) - 1])
# Get the 2nd to 4th items
print(intList[1:5])
# Instead of find, lists have "index"
print(intList.index(2))
|
int_list = [1, 2, 3, 4, 5]
print(intList[0])
print(intList[-1])
print(intList[len(intList) - 1])
print(intList[1:5])
print(intList.index(2))
|
cars = 100
space_in_car = 4
drivers = 30
passengers = 90
cars_not_driven = cars - drivers
cars_driven = drivers
carpool_capacity = cars_driven * space_in_car
average_passengers_per_car = passengers / cars_driven
print("Cars: ", cars)
print(drivers)
print(cars_not_driven)
print(carpool_capacity)
print(passengers)
print(average_passengers_per_car)
|
cars = 100
space_in_car = 4
drivers = 30
passengers = 90
cars_not_driven = cars - drivers
cars_driven = drivers
carpool_capacity = cars_driven * space_in_car
average_passengers_per_car = passengers / cars_driven
print('Cars: ', cars)
print(drivers)
print(cars_not_driven)
print(carpool_capacity)
print(passengers)
print(average_passengers_per_car)
|
class Config(object):
# Measuration Parameters
TOTAL_TICKS = 80
PRECISION = 1
INITIAL_TIMESTAMP = 1
# Acceleration Parameters
MINIMIZE_CHECKING = True
GENERATE_STATE = False
LOGGING_NETWORK = False
# SPEC Parameters
SLOTS_PER_EPOCH = 8
# System Parameters
NUM_VALIDATORS = 8
# Network Parameters
LATENCY = 1.5 / PRECISION
RELIABILITY = 1.0
NUM_PEERS = 10
SHARD_NUM_PEERS = 5
TARGET_TOTAL_TPS = 1
MEAN_TX_ARRIVAL_TIME = ((1 / TARGET_TOTAL_TPS) * PRECISION) * NUM_VALIDATORS
# Validator Parameters
TIME_OFFSET = 1
PROB_CREATE_BLOCK_SUCCESS = 0.999
DISCONNECT_THRESHOLD = 5
|
class Config(object):
total_ticks = 80
precision = 1
initial_timestamp = 1
minimize_checking = True
generate_state = False
logging_network = False
slots_per_epoch = 8
num_validators = 8
latency = 1.5 / PRECISION
reliability = 1.0
num_peers = 10
shard_num_peers = 5
target_total_tps = 1
mean_tx_arrival_time = 1 / TARGET_TOTAL_TPS * PRECISION * NUM_VALIDATORS
time_offset = 1
prob_create_block_success = 0.999
disconnect_threshold = 5
|
_base_ = [
'../_base_/models/mask_rcnn_se_r50_fpn.py',
'../_base_/datasets/coco_instance.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
pretrained='checkpoints/se_resnext101_64x4d-f9926f93.pth',
backbone=dict(block='SEResNeXtBottleneck', layers=[3, 4, 23, 3], groups=64))
|
_base_ = ['../_base_/models/mask_rcnn_se_r50_fpn.py', '../_base_/datasets/coco_instance.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py']
model = dict(pretrained='checkpoints/se_resnext101_64x4d-f9926f93.pth', backbone=dict(block='SEResNeXtBottleneck', layers=[3, 4, 23, 3], groups=64))
|
class Solution:
def reverseVowels(self, s: str) -> str:
vowels = {'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'}
s = list(s)
left = 0
right = len(s) - 1
while left < right:
if s[left] not in vowels:
left += 1
elif s[right] not in vowels:
right -= 1
else:
s[left], s[right] = s[right], s[left]
left += 1
right -= 1
return ''.join(s)
|
class Solution:
def reverse_vowels(self, s: str) -> str:
vowels = {'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'}
s = list(s)
left = 0
right = len(s) - 1
while left < right:
if s[left] not in vowels:
left += 1
elif s[right] not in vowels:
right -= 1
else:
(s[left], s[right]) = (s[right], s[left])
left += 1
right -= 1
return ''.join(s)
|
#!/usr/bin/env python3
# https://sites.google.com/site/ev3python/learn_ev3_python/using-sensors/sensor-modes
speedReading=0
# Color Sensor Readings
# COL-REFLECT COL-AMBIENT COL-COLOR RGB-RAW
colorSensor_mode_default = "COL-COLOR"
colorSensor_mode_lt = colorSensor_mode_default
colorSensor_mode_rt = colorSensor_mode_default
colorSensor_reflect_lt=0
colorSensor_reflect_rt=0
colorSensor_color_lt=0
colorSensor_color_rt=0
colorSensor_rawred_lt=0
colorSensor_rawgreen_lt=0
colorSensor_rawblue_lt=0
colorSensor_rawred_rt=0
colorSensor_rawgreen_rt=0
colorSensor_rawblue_rt=0
ultrasonicSensor_ReadingInCm=0
|
speed_reading = 0
color_sensor_mode_default = 'COL-COLOR'
color_sensor_mode_lt = colorSensor_mode_default
color_sensor_mode_rt = colorSensor_mode_default
color_sensor_reflect_lt = 0
color_sensor_reflect_rt = 0
color_sensor_color_lt = 0
color_sensor_color_rt = 0
color_sensor_rawred_lt = 0
color_sensor_rawgreen_lt = 0
color_sensor_rawblue_lt = 0
color_sensor_rawred_rt = 0
color_sensor_rawgreen_rt = 0
color_sensor_rawblue_rt = 0
ultrasonic_sensor__reading_in_cm = 0
|
"""Message types to register."""
PROTOCOL_URI = "https://didcomm.org/issue-credential/1.1"
PROTOCOL_PACKAGE = "aries_cloudagent.protocols.issue_credential.v1_1"
CREDENTIAL_ISSUE = f"{PROTOCOL_URI}/issue-credential"
CREDENTIAL_REQUEST = f"{PROTOCOL_URI}/request-credential"
MESSAGE_TYPES = {
CREDENTIAL_ISSUE: (f"{PROTOCOL_PACKAGE}.messages.credential_issue.CredentialIssue"),
CREDENTIAL_REQUEST: (
f"{PROTOCOL_PACKAGE}.messages.credential_request.CredentialRequest"
),
}
|
"""Message types to register."""
protocol_uri = 'https://didcomm.org/issue-credential/1.1'
protocol_package = 'aries_cloudagent.protocols.issue_credential.v1_1'
credential_issue = f'{PROTOCOL_URI}/issue-credential'
credential_request = f'{PROTOCOL_URI}/request-credential'
message_types = {CREDENTIAL_ISSUE: f'{PROTOCOL_PACKAGE}.messages.credential_issue.CredentialIssue', CREDENTIAL_REQUEST: f'{PROTOCOL_PACKAGE}.messages.credential_request.CredentialRequest'}
|
class Player:
def getTime(self):
pass
def playWavFile(self, file):
pass
def wavWasPlayed(self):
pass
def resetWav(self):
pass
|
class Player:
def get_time(self):
pass
def play_wav_file(self, file):
pass
def wav_was_played(self):
pass
def reset_wav(self):
pass
|
def countSetBits(num):
binary = bin(num)
setBits = [ones for ones in binary[2:] if ones == '1']
return len(setBits)
if __name__ == "__main__":
n = int(input())
for i in range(n+1):
print(countSetBits(i), end =' ')
|
def count_set_bits(num):
binary = bin(num)
set_bits = [ones for ones in binary[2:] if ones == '1']
return len(setBits)
if __name__ == '__main__':
n = int(input())
for i in range(n + 1):
print(count_set_bits(i), end=' ')
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.