content
stringlengths
7
1.05M
# from sw_site.settings.components import BASE_DIR, config # SECURITY WARNING: keep the secret key used in production secret! # SECRET_KEY = config('DJANGO_SECRET_KEY') # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True CORS_ORIGIN_WHITELIST = ( 'localhost:8000', '127.0.0.1:8000', 'localhost:8080', '127.0.0.1:8080', )
"""Define subproblems – Let Dij be the length of the LCS of x1...i and y1...j ◮ Find the recurrence – If xi = yj , they both contribute to the LCS ◮ Dij = Di−1,j−1 + 1 – Otherwise, either xi or yj does not contribute to the LCS, so one can be dropped ◮ Dij = max{Di−1,j , Di,j−1} – Find and solve the base cases: Di0 = D0j = 0 """ x = "ABCBDAB" y = "BDCABC" n = len(x) m = len(y) dp = [[0] * m] * n for i in range(n): for j in range(m): if x[i] == y[j]: dp[i][j] = dp[i][j] + 1 else: dp[i][j] = max(dp[i - 1][j], dp[i][j - 1]) print(dp[n - 1][m - 1])
# -*- coding: utf-8 -*- # @Author : LG """ 执行用时:48 ms, 在所有 Python3 提交中击败了83.86% 的用户 内存消耗:14.8 MB, 在所有 Python3 提交中击败了62.52% 解题思路: 对拼消耗,摩尔投票 时间复杂度为 O(N),空间复杂度为 O(1) 不同数字一一对拼消耗,如果有剩余,则存在主要元素(人数最多,且,人数在一半以上) 具体实现见代码注释 """ class Solution: def majorityElement(self, nums: List[int]) -> int: n = len(nums) major = nums[0] # 记录当前元素 count = 0 # 当前元素的出现次数统计 for i in range(n): if nums[i] == major: # 如果与当前元素相同,则次数+1 count += 1 else: # 不同,则对拼消耗,次数减一 count -= 1 if count == 0 and i < n-1: # 如果当前元素被消耗殆尽,当前元素指向下一个元素 major = nums[i+1] if count > 0: # 如果当前元素的统计次数大于0,则存在主要元素 return major else: # 否则,不存在 return -1
class TransferPeriodEnum: """ Переченисление периодов переноса """ OLD = 'old' NEW = 'new' values = { OLD: 'Старый период', NEW: 'Новый период', }
def get_context_user(context): if 'user' in context: return context['user'] elif 'request' in context: return getattr(context['request'], 'user', None)
APP_NAME = "PythonCef.Vue.Vuetify2 Template" APP_NAME_NO_SPACE = APP_NAME.replace(' ', '') APP_VERSION = '0.0.1' APP_DESCRIPTION = "Template using PythonCef, Flask, Vue, webpack"
def count_substring(string, sub_string): c = 0 for i in range(0, len(string)): ss = string[i:len(sub_string)+i] if sub_string == ss: c += 1 return c print(count_substring('ABCDCDC', 'CDC')) print(count_substring('I am an Indian, by birth', 'Birth')) print(count_substring('ThIsisCoNfUsInG', 'is'))
class PortData(object): def __init__(self, from_port, to_port, protocol, destination): """ec2_session :param from_port: to_port-start port :type from_port: int :param to_port: from_port-end port :type to_port: int :param protocol: protocol-can be UDP or TCP :type protocol: str :param destination: Determines the traffic that can leave your instance, and where it can go. :type destination: str :return: """ self.from_port = from_port self.to_port = to_port self.protocol = protocol self.destination = destination
a=int(input("Input an integer :")) n1=int("%s"%a) n2=int("%s%s"%(a,a)) n3=int("%s%s%s"%(a,a,a)) print(n1+n2+n3)
def jogador(nom="<desconhecido>", nG=0): print(f'O jogador {nom} fez {nG} gol(s) no compeonato.') # Programa principal: print('-' * 30) nome = str(input('Nome do jogador: ')).strip().capitalize() nGols = str(input('Número de gols: ')).strip() if nome == '' and not nGols.isnumeric(): jogador() elif nome == '': jogador(nG=nGols) elif not nGols.isnumeric(): jogador(nom=nome) else: jogador(nome, nGols)
class Solution: def hasPathSum(self, root, target): def check(curr_node, curr_val): calc_val = curr_val + curr_node.val if calc_val == target and curr_node.left is None and curr_node.right is None: return True elif curr_node.left is not None and check(curr_node.left, calc_val): return True elif curr_node.right is not None and check(curr_node.right, calc_val): return True else: return False if not root: return False return check(root, 0)
#Boolean is like telling Python to do something based on conditions: #if this is true, do this; else do something different. #conditional logic in Python is written using booleans (True and False), along with if statements. user = 'James Bond' if user == 'James Bond': print('Awesome!') elif user == 'Ethan Hunt': print('Cool!') else: print('Nope!') #Python also allows you to use words like 'or', 'and', and 'not' for comparison if 30 > 40 or 40 > 30: print("yeah!") if 1 == 1 and 2 == 2: print("hmmm!") if not False: print("not False is oviously True ") # inequalities can be represented together without using the 'and' keyword: if 30 < 40 and 40 < 50: print("this is ok") if 30 < 40 < 50: print("this is better!") print("""Python does not require parenthesis around conditions, but each condition must end with a :. If you forget the colon , you'll get a SyntaxError.""")
##Patterns: W0109 ##Warn: W0109 cities = { 'CA': 'San Francisco', 'MI': 'Detroit', 'FL': 'Jacksonville', 'MI': 'Detroit' }
""" Reminders depending on the day of the week """ monday_msg = ["I hope you planned this week on Friday evening itself. If not, please do it now. Send out all the calendar events that you need to for this week. Accept (or reject) the calendar invites you received. Know at least two of your top priorities.", "Did you plan your week out in Friday? If not, now is the time. Planning your week in advance will help you say NO and help you from having to constantly firefight.", "How does your work week look? If you have not, list your action items and approximately when you think they will be tackled. Just doing this regularly will help you manage your time better.", "Please make an effort to manage your time well. Plan your week, be punctual, finish meetings on time and use the calendar well. These are important habits to cultivate a respectful environment.", "Make it a goal to avoid scheduling same-day-meetings. Those should be reserved for real emergencies. At the start of the week, make sure your have already scheduled all that you know is going to happen on your calendar.", "Did the previous week play out close to how you planned it? React with either a thumbs up or thumbs down.", "Your poor planning should not become someone elses emergency. Please take a few minutes to plan your week and schedule all the events that you might need!", "Please pay attention to mailers from 1to1help even if their material is of no use to you right now. Do not wait until you need the help. Gradually accumulating byte sized tips will most likely prove crucial in the future to you and people you care about.", "As you plan your week, please factor in time to remain minimally healthy. Schedule frequent breaks to stand up, stretch and walk multiple times during the day. Make an effort to apply the tips sent by 1to1help.net", "Avoiding burnout is important for an early employee. Make sure to pace yourself well. Finish your alloted vacation days every year. Take frequent breaks during the day to stand up, stretch and walk. Recognize when you are getting bored or overwhelmed and speak up. Accept the fact that it is OK to fail when you genuinely try. Ask your 1:1 manager for more tips."] tuesday_msg = ["Your Friday demos can be of work you did at a client in the past too! If you feel something you did in the past is interesting, please share!", "You can request your colleagues to demo something you know they have done? Just make sure to give them at least a week of prior notice.", "Think of what you want to demo on the sprint call. Work towards it in terms of visual milestones. That way, at all points you will have a working demo. Even if you don't complete your task, you can demo <i>something at least!</i>", "Friday demos are an inexpensive way for you to share your work with you colleagues while . Please make it a point to try and demo whatever you are working on.", "Your Friday demo need not be polished. You can demo work in progress too! In fact, you can demo some of the systems you are working with if you think that knowledge is not common place within Qxf2.", "You can preview the kind of socio-technical problems that we will face if we grow bigger at: https://growing-pains.qxf2.com", "Once in a while, when you are bored, please try out the-bored-qa.qxf2.com and give me some feedback.", "Qxf2 will gladly buy you tickets to one conference every year. The conference has to be related to software (or the business of software) in some way. A typical conference ticket costs INR 15k to USD 1k. We will also pay you for two days which spend attending the conference. All you need to do is to pay for your travel and stay.", "Qxf2 has partnered with 1to1help.net for mental wellbeing. Please make sure you are applying the useful tips and suggestions they offer in their weekly mailers.", "Qxf2 will gladly buy you technical books. In return, you need to read the book and create a good summary for us.", "Qxf2 will buy you online courses for upto INR 5k a year. The courses have to be related to something you hope to apply at Qxf2 some day.", "There should be absolutely no 1:1 technical communication! Technical questions should be asked on the common channel. https://qxf2.com/blog/banning-11-technical-communication/", "You should not discuss politics of religion on common channels. You are welcome to talk about them in 1:1 channels.", "For technical communication, please do not use any medium other than the ones listed here https://docs.google.com/presentation/d/1mQO7Hs45XMbmX6v5pP0V2027bqtpuN888sW8G2aEziM/edit#slide=id.g6f50f09311_0_63. No using SMS, Whatsapp, etc.", "Passwords should never be put in version control. Please remember to add the file to .gitignore and add a sentence or two in the readme of your repo on how to get setup.", "You can look at tickets of closed Trello board by searching for <b>board:number</b> in the ticket search field. For example, to see what ticket we tackled in our very first sprint, search for <i>board:0001</i>", "Keep your inbox as close to zero as possible. It will reduce the chances of missing important information. Tips available here: https://trello.com/c/eZHBXygi/23-tuesday-1400-good-gmail-habits", "You are expected to work 8 (or 9) hours a day. If you are frequently working more than that, please improve your planning and expectation setting. If you do not know how, please talk with your 1:1 manager.", "We do not use the phrase *manual testing*. Use the words <b>testing</b> or <b>exploratory testing</b> instead. Ask me or your 1:1 manager if you do not understand why.", "We do not sell *automated testing* as a service. Our goal is to test the product in front of us. Automation is a tool that helps us test better in some specific scenarios.", "Exploratory testing is not unstructured or haphazard or test-as-you-like. Good exploratory testing has structured and should be recorded/documented. Please look up the terms session-based-testing and testing-charters you do not know how to conduct your exploratory testing sessions."] wednesday_msg = ["As you go about this week, be on the lookout for how you can help a colleague get better. The help does not have to be substantial or life-changing or even correct! Just your attempt to help someone who is stuck will make Qxf2 suck a little less.", "You should pay attention to the work of your colleagues, at least at a high level. Read through Trello and Jira once or twice a week even if you are working on a client. Be curious about what your colleagues do at clients even if you are on R&D.", "1:1 sessions with your manager are supposed to be driven by the direct report. Your 1:1 manager should NOT be talking about technical work unless you bring it up. You should not be going to the meeting to report status. Instead, the sessions are to help you with your career. You can ask them for help on anything except technical problems. For technical problems, please post on the group channel.", "In a small company, enforcing culture is everyones responsibility. Please speak up if you notice someone doing something wrong.", "Do you know the number one reason early employees lose touch with the company they helped build? It is because they think correcting bad habits of later employees is the responsibility of management <i>only</i>. Well, it is the responsibility of the early employee <i>also</i>.", "I am open to trying out ideas that I completely disagree with. Suggest your idea. While I may turn it down in the moment, I will be trying incorporate it somehow, somewhere in a safe to fail way.", "The habits we stress at Qxf2 should continue at a client too. You should not suddenly go back to your old way of working when you are on a client!", "Early employees should get into the habit of asking for more responsibility! A growing bootstrapped company can afford to create all sorts of weird roles and one off opportunities.", "Please let work suffer if it is not being done in a fair way. Do NOT make it a habit to over-compensate for the weak links in your team. Instead, let the delivery fail and let the company fix the deeper issues (e.g.: poor hiring).", "As an early employee, when dealing with new hires, please attribute good intentions. New folks want to do well at their job but may not yet have enough context within Qxf2 to do well.", "We work on early stage products with small engineering teams. That means decisions around staffing, tooling, process, speed and stability are different from what you are used to. Please make an effort to think through the ramifications of what these mean. If you are not sure, please discuss with your 1:1 manager and/or your other colleagues.", "Are you multi-tasking better? We had a group discussion around multi-tasking a while ago. Today is a good time to check and see if you are adopting at least some new habits from that discussion: https://trello.com/c/hqe431zn/25-growing-pain-how-do-we-multi-task-better"] thursday_msg = ["Make an effort to share what you learn. Almost all the material on the Internet that you use to unblock yourself was created by busy professionals like you. So, once in a while, take a pause from consuming all that good stuff and try to share your own learnings", "You are expected to share what you know on our blog. If you feel unqualified, remember that technical expertise is a spectrum. There is always someone who will find your perspective useful.", "You can share personal stuff that you are excited about on the etc,etc,etc channel. You are not disturbing anyone or being noisy or anything like that. The channel exists so you can share such stuff.", "We strongly recommend regular 1:1 communication for non-technical stuff. Please make sure you are taking time to treat your colleagues like humans with lives.", "We have the habit of peer-checkins. If you havent done them in a while, please try one next week. https://sites.google.com/qxf2.com/wiki/home/r-d/newbie-orientation/peer-checkin", "Everyone starts out loving remote work. Then, it gets depressing. We expect everyone that joins us to face this challenge. If you are finding it hard to feel motivated, please reach out to the folks who have been here for a while. They can help. Helpful link: https://qxf2.com/blog/experience-working-remote/", "Remote work is a challenge, not a perk. It takes a lot of discipline to make remote work click. Please reach out when you find it hard and we will give you tips.", "Back, neck, eye and wrist problems are very common among remote workers. Please make sure you have an ergonomic work setup. Maintain good posture. Take a 2-minute break at least every hour to make sure you are walking, standing, stretching, exercising your wrists, etc.", "If you have been at Qxf2 for a while and find your work monotonous, talk to your 1:1 manager. It is OK to have such conversations within Qxf2. As an experienced engineer, I know finding work boring or stifling or monotonous is normal for anyone in any field.", "It is completely natural to have non-productive days as you transition into a completely remote environment. The best tip I have is to not hide it. Just admit the failure openly. We will work with you and try to help you make adjustments.", "Your QElo score depends on what you fill out in the help survey and the R&D task completion dashboard. If you forget to self-report, your score suffers. So please make it a habit to fill out the survey and task completion dashboard. http://34.205.45.167/survey https://docs.google.com/spreadsheets/d/1YtdX75BoCwnzkGbR6G4hHvPS_m2HfWffYTI_WCH-IlU", "Keep daily notes of what went good/bad, the folks that you gave or recieved help from and the new tech you (learnt + applied). It will help on Friday when you fill out your retrospective and help survey. The accurate information, in turn, will help you get a better QElo score", "QElo is a <i>rating</i> system. Not a ranking system. In a ranking system, the top ranks get rewarded disproportionately. E.g: The Olympics. In a rating system, people are rewarded proportionately. E.g.: Star rating of restaurants on Zomato", "The best way to get a high QElo rating is to perform four actions with four attributes. Four actions: Execute, Learn, Share, Choose. Four attributes: Consistency, Adaptability, Curiousity driven, Generalized.", "Tasks you choose to work on should benefit your client, Qxf2 and you! Choosing such tasks is a skill to be developed just like anything else.", "QElo is designed to use lifetime scores. I did this so people can make longer term plays and do not have to worry about what they did only in the last quarter.", "QElo is a group measure. You can improve and still have your score go down and vice versa!", "Your QElo score is does not depend on manager input or how well you talk/present or the visibility of your projects. Instead, it measures how much your work contributes to our goals.", "QElo is designed to keep freedom and responsibility proportional. If you have made genuine contributions, you can afford to take breaks, explore newer things, etc.", "Your QElo score will be visible to all your colleagues. You can see the discussion around this here: https://sites.google.com/qxf2.com/wiki/home/hr/pros-and-cons-of-an-open-qelo-rating", "One of the aims of QElo is to help engineers discover their own point of view.Once you have a unique way of looking at things, scoring well on QElo becomes natural.", "Qxf2 will change. As early employees, you might not like that but you have to accept it. It is not that different from how you, the individual, has changed as you grow up and deal with changes in your life."] friday_msg = ["Please fill out the help survey and retrospective card! Both habits are defenses to preserve the habit of remote work. http://34.205.45.167/survey", "Have you filled out the retrospective card? Have you filled out the survey? http://34.205.45.167/survey", "TGIF! Please remember to fill out the retrospective card and the survey! http://34.205.45.167/survey", "Survey reminder: https://docs.google.com/spreadsheets/d/1YtdX75BoCwnzkGbR6G4hHvPS_m2HfWffYTI_WCH-IlU"] messages = { 0: monday_msg, 1: tuesday_msg, 2: wednesday_msg, 3: thursday_msg, 4: friday_msg}
""" Write a Python program to swap cases of a given string. Sample Output: pYTHON eXERCISES jAVA nUMpy """ def swap_case_string(str1): result_str = "" for item in str1: if item.isupper(): result_str += item.lower() else: result_str += item.upper() return result_str print(swap_case_string("Python Exercises")) print(swap_case_string("Java")) print(swap_case_string("NumPy"))
matriz = ([0,0,0], [0,0,0], [0,0,0]) par = terceira = maior = 0 for l in range(0,3): for c in range(0,3): matriz[l][c] = int(input(f'Type a value for [{l}, {c}]: ')) if matriz[l][c] % 2 == 0: par += matriz[l][c] print('=-'*15) for l in range (0,3): for c in range(0,3): print(f'[{matriz[l][c]:^5}]', end='') print() print('=-'*15) print(f'Sum of even values: {par}') for l in range(0,3): terceira += matriz[l][2] print(f'Sum from values of third column: {terceira}') for c in range(0,3): if c == 0: maior = matriz[1][c] elif matriz[1][c] > maior: maior = matriz[1][c] print(f'Bigger value of second line: {maior}')
class Constant: __excludes__ = [] class ConstantError(Exception): pass def __setattr__(self, name, value): exclude = name in Constant.__excludes__ if self.__dict__.get(name, None) and not exclude: raise Constant.ConstantError("Property %s is not mutable" % name) self.__dict__[name] = value class Config(Constant): def __init__(self): Constant.__excludes__.append('sslVerification') Constant.__excludes__.append('connectionTimeout') Constant.__excludes__.append('url') Constant.__excludes__.append('useBalancing') Constant.__excludes__.append('rpcDebug') self.version = "1" self.url = "https://wallet.mile.global" self.appSchema = "mile-core:" self.sslVerification = True self.connectionTimeout = 30 self.useBalancing = True self.rpcDebug = False self.web = self.Web(self) class Web(Constant): def __init__(self, config): self.path = "shared" self.url = "https://wallet.mile.global" self.config = config self.wallet = self.Wallet(self) self.payment = self.Payment(self) def nodes_urls(self): return self.url + "/v" + self.config.version + "/nodes.json" def base_url(self): return self.url + "/v" + self.config.version class Wallet(Constant): def __init__(self, web): self.web = web self.public_key = "/" + self.web.path + "/wallet/key/public/" self.private_key = "/" + self.web.path + "/wallet/key/private/" self.note = "/" + self.web.path + "/wallet/note/" self.name = "/" + self.web.path + "/wallet/note/name/" self.secret_phrase = "/" + self.web.path + "/wallet/secret/phrase/" self.amount = "/" + self.web.path + "/wallet/amount/" class Payment: def __init__(self, web): self.web = web self.public_key = "/" + self.web.path + "/payment/key/public/" self.amount = "/" + self.web.path + "/payment/amount/" config = Config()
even = int(input("total even number : ")) print(even, "first even number : ",end="") for i in range(2,even*2,2): print (i,end=", ") print(even*2)
class Alphabet: """ Bijective mapping from strings to integers. >>> a = Alphabet() >>> [a[x] for x in 'abcd'] [0, 1, 2, 3] >>> list(map(a.lookup, range(4))) ['a', 'b', 'c', 'd'] >>> a.stop_growth() >>> a['e'] >>> a.freeze() >>> a.add('z') Traceback (most recent call last): ... ValueError: Alphabet is frozen. Key "z" not found. >>> print(a.plaintext()) a b c d """ def __init__(self): self._mapping = {} # str -> int self._flip = {} # int -> str; timv: consider using array or list self._i = 0 self._frozen = False self._growing = True def __repr__(self): return 'Alphabet(size=%s,frozen=%s)' % (len(self), self._frozen) def freeze(self): self._frozen = True def stop_growth(self): self._growing = False @classmethod def from_iterable(cls, s): "Assumes keys are strings." inst = cls() for x in s: inst.add(x) # inst.freeze() return inst def keys(self): return self._mapping.iterkeys() def items(self): return self._mapping.iteritems() def imap(self, seq, emit_none=False): """ Apply alphabet to sequence while filtering. By default, `None` is not emitted, so the Note that the output sequence may have fewer items. """ if emit_none: for s in seq: yield self[s] else: for s in seq: x = self[s] if x is not None: yield x def map(self, seq, *args, **kwargs): return list(self.imap(seq, *args, **kwargs)) def add_many(self, x): for k in x: self.add(k) def lookup(self, i): if i is None: return None #assert isinstance(i, int) return self._flip[i] def lookup_many(self, x): return map(self.lookup, x) def __contains__(self, k): #assert isinstance(k, basestring) return k in self._mapping def __getitem__(self, k): try: return self._mapping[k] except KeyError: #if not isinstance(k, basestring): # raise ValueError("Invalid key (%s): only strings allowed." % (k,)) if self._frozen: raise ValueError('Alphabet is frozen. Key "%s" not found.' % (k,)) if not self._growing: return None x = self._mapping[k] = self._i self._i += 1 self._flip[x] = k return x add = __getitem__ def __setitem__(self, k, v): assert k not in self._mapping assert isinstance(v, int) self._mapping[k] = v self._flip[v] = k def __iter__(self): for i in range(len(self)): yield self._flip[i] def enum(self): for i in range(len(self)): yield (i, self._flip[i]) def tolist(self): "Ordered list of the alphabet's keys." return [self._flip[i] for i in range(len(self))] def __len__(self): return len(self._mapping) def plaintext(self): "assumes keys are strings" return '\n'.join(self) @classmethod def load(cls, filename): if not os.path.exists(filename): return cls() with open(filename) as f: return cls.from_iterable(l.strip() for l in f) def save(self, filename): with open(filename, 'w') as f: f.write(self.plaintext()) def __eq__(self, other): return self._mapping == other._mapping
# break 和 continue 在Python中只能用于循环语句 # break:用来结束整个循环 # continue:用来结束本轮循环,开启下一轮循环 while True: username = input('请输入用户名:') password = input('请输入密码:') if username == 'zs' and password == '123': break
WHAT_IS_SATZIFY = ( "Satzify is a simple tool to help with analysing sentences in a given language. " "It helps with visualising and highlighting the different parts " "of a sentence according to the selected categories and parts to annotate. " "Initially and predominantly it has been created to be used for German, and that's where the name is derived from. " ) LANGUAGE = "🇩🇪" SPACY_MODEL = "de_core_news_sm" EXAMPLE_TEXT = "Besser ein Spatz in der Hand, als eine Taube auf dem Dach." POS = dict( NOUN=dict(name="Noun", color="#afa"), PRON=dict(name="Pronoun", color="#fea"), VERB=dict(name="Verb", color="#8ef"), ADJ=dict(name="Adjective", color="#faa"), ADV=dict(name="Adverb", color="#d94"), ADP=dict(name="Adposition", color="#ccc"), ) CASES = dict( NOM=dict(name="Nominativ", color="#afa"), ACC=dict(name="Akkusativ", color="#fea"), DAT=dict(name="Dativ", color="#8ef"), GEN=dict(name="Genetiv", color="#faa"), ) ANNOTATIONS = dict(POS=POS, CASES=CASES)
#!/usr/bin/env python # -*- coding=utf-8 -*- def lev_dist(source, target): if source == target: return 0 #words = open(test_file.txt,'r').read().split(); # Prepare matrix slen, tlen = len(source), len(target) dist = [[0 for i in range(tlen+1)] for x in range(slen+1)] for i in range(slen+1): dist[i][0] = i for j in range(tlen+1): dist[0][j] = j # Counting distance for i in range(slen): for j in range(tlen): cost = 0 if source[i] == target[j] else 1 dist[i+1][j+1] = min( dist[i][j+1] + 1, # deletion dist[i+1][j] + 1, # insertion dist[i][j] + cost # substitution ) return dist[-1][-1] #print(lev_dist("расписание", "расписанье")) def req_distance(request_words, word): for i in request_words: if lev_dist(word, i) <= 2: return True return False
__all__ = ["mi_enb_decoder"] PACKET_TYPE = { "0xB0A3": "LTE_PDCP_DL_Cipher_Data_PDU", "0xB0B3": "LTE_PDCP_UL_Cipher_Data_PDU", "0xB173": "LTE_PHY_PDSCH_Stat_Indication", "0xB063": "LTE_MAC_DL_Transport_Block", "0xB064": "LTE_MAC_UL_Transport_Block", "0xB092": "LTE_RLC_UL_AM_All_PDU", "0xB082": "LTE_RLC_DL_AM_All_PDU", "0xB13C": "LTE_PHY_PUCCH_SR", } FUNCTION_NAME = { "0xB0A3": "handle_pdcp_dl", "0xB0B3": "handle_pdcp_ul", "0xB173": "handle_pdsch_stat", "0xB063": "handle_mac_dl", "0xB064": "handle_mac_ul", "0xB092": "handle_rlc_ul", "0xB082": "handle_rlc_dl", "0xB13C": "handle_pucch_sr", } class mi_enb_decoder: def __init__(self, packet): self.packet = str(packet,'utf-8') self.p_type_name = None self.p_type = None self.content = None def get_type_id(self): # print (type(self.packet)) try: l = self.packet.split(" ") # print (l) if (l[1] in PACKET_TYPE): self.p_type = l[1] self.p_type_name = PACKET_TYPE[l[1]] return self.p_type_name except: return None def get_content(self): if self.p_type is None: return -1 else: method_to_call = getattr(self, FUNCTION_NAME[self.p_type]) return method_to_call() def handle_pdsch_stat(self): # PDSCH format: [MI] ID FN SFN nRB try: if self.content is None: d = {} packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(" ") d['Records'] = [] dict_tmp = {} dict_tmp['Frame Num'] = int(l[2]) dict_tmp['Subframe Num'] = int(l[3]) dict_tmp['Num RBs'] = int(l[4]) d['Records'].append(dict_tmp) self.content = d finally: return self.content def handle_pdcp_dl(self): # PDCP DL format: [MI] 0xB0A3 FN SFN SN Size try: if self.content is None: d = {} packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(" ") d['Subpackets'] = [] dict_tmp = {} dict_tmp['Sys FN'] = int(l[2]) dict_tmp['Sub FN'] = int(l[3]) dict_tmp['SN'] = int(l[4]) dict_tmp['PDU Size'] = int(l[5]) d['Subpackets'].append(dict_tmp) self.content = d finally: return self.content def handle_pdcp_ul(self): # PDCP UL format: [MI] 0xB0B3 FN SFN SN Size RLC_Mode try: if self.content is None: d = {} packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(" ") d['Subpackets'] = [] dict_tmp = {} dict_tmp['Sys FN'] = int(l[2]) dict_tmp['Sub FN'] = int(l[3]) dict_tmp['SN'] = int(l[4]) dict_tmp['PDU Size'] = int(l[5]) d['Subpackets'].append(dict_tmp) self.content = d finally: return self.content def handle_mac_ul(self): # MAC UL format: [MI] ID FN SFN Grant try: if self.content is None: d = {} packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(" ") d['Subpackets'] = [] dict_tmp = {} dict_tmp['Samples'] = [] dict_tmp2 = {} dict_tmp2['SFN'] = int(l[2]) dict_tmp2['Sub FN'] = int(l[3]) dict_tmp2['Grant (bytes)'] = int(l[4]) dict_tmp['Samples'].append(dict_tmp2) d['Subpackets'].append(dict_tmp) self.content = d finally: return self.content def handle_rlc_ul(self): # Format: [MI] 0xB092 SFN [MI] 0xB092 TYPE(1=data) FN SFN BEARER SIZE HDR_SIZE DATA_SIZE if self.content is None: packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(" ") if l[5] == "0": return None d = {} d['Subpackets'] = [] sub_dict = {} record_dict = {} record_dict['sys_fn'] = int(l[6]) record_dict['sub_fn'] = int(l[2]) record_dict['pdu_bytes'] = int(l[9]) sub_dict['RLCUL PDUs'] = [record_dict] d['Subpackets'].append(sub_dict) self.content = d return self.content def handle_rlc_dl(self): pass def handle_pucch_sr(self): if self.content is None: d = {} packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(" ") d['Records'] = [] record_dict = {} record_dict['Frame Num'] = int(l[3]) record_dict['Subframe Num'] = int(l[5]) d['Records'].append(record_dict) self.content = d return self.content
# Python - 2.7.6 eval_object = lambda v: { '+': v['a'] + v['b'], '-': v['a'] - v['b'], '/': v['a'] / v['b'], '*': v['a'] * v['b'], '%': v['a'] % v['b'], '**': v['a'] ** v['b'] }.get(v['operation'], 0)
frase = str(input('Digite uma frase: ')) m5 = ' '.join(frase.replace(' ', '')) print(m5.split())
# Кириллов, ИУ7-12, вариант 2 N = int(input('Задайте размер массива (число N): ')) t = float(input('Задайте коэффициент t: ')) A = list() maxA = 0 otrA = -1 otr = vozr = ub = True for i in range(N): A.append(((i + 1 - t)**2)/2 - 3) if A[i] > A[maxA] or i == 0: maxA = i if otr and A[i] <= 0: otr = False otrA = i if vozr and i>0: vozr = vozr and (A[i]>A[i-1]) if ub and i>0: ub = ub and (A[i]<A[i-1]) if otr: print('\nНеотрицательная последовательность, ',end='') else: print('\nМассив A до перестановки',end=' ') for i in range(N): print(A[i],end=' ') A[otrA],A[maxA] = A[maxA],A[otrA] print('\nПоследовательность - ',end='') if vozr: print('возрастающая') elif ub: print('убывающая') else: print('общего вида') print('\nИтоговый массив A',end=' ') for i in range(N): print(A[i],end=' ')
# varia class Sleep: def NREM(self): print('NREM') def REM(self): print('REM') class Awake: def act(self): print('act')
#Init records_storage = dict() line_break = "-----------------------------------------------\n" run_program = True # Define Functions def add_item(key, value): records_storage[key] = value def delete_item(key): try: del records_storage[key] except KeyError: print(f"Key '{key}' could not be found") except: print("Something else went wrong") def display_data(): print("Values: ", records_storage) print(line_break) # Run Process while run_program: action = str(input("What would you like to do? \n[A] - Add Data\n[B] - Delete Data\n[C] - End]\n")).lower() if(action == 'a'): print("\nAdd Data Selected") key = str(input("Enter Key: ")) value = str(input("Enter Value:")) add_item(key, value) display_data() elif(action == 'b'): print("\nDelete Data Selected") key = str(input("Enter Key: ")) delete_item(key) display_data() elif(action == 'c'): print("\nTHANK YOU") break; else: print(f"\nThe command '{action}' was not found. Please try again") print(line_break)
def example1(): g = ig.load("data/out_1.graphml") # whichever file you would like dend = g.community_fastgreedy() #get the clustering object c = dend.as_clustering() result = metrics.run_analysis(c) print(c)
class Player(object): def __init__(self): self.name = None self.results = dict() self.rolls = [] self.scores = dict() # # set pins scores for a frame. # def set_result(self, frame, result): self.results[frame] = result def calculate_score(self): running_total = 0 for frame, result in self.results.items(): frame_score = 0 # this is brutal but works, needs to be simplified currentIndex = result['index'] if result['strike'] or result['spare']: if len(self.rolls) - 1 >= currentIndex + 2: frame_score = self.rolls[currentIndex] + self.rolls[currentIndex + 1] + self.rolls[currentIndex + 2] else: frame_score = self.rolls[currentIndex] + self.rolls[currentIndex + 1] if frame == 10 and len(self.rolls) - 1 >= currentIndex + 2: frame_score = frame_score + self.rolls[currentIndex + 2] running_total = running_total + frame_score self.scores[frame] = { "frame_score": frame_score, "running_total": running_total }
class PyttmanProjectInvalidException(BaseException): """ Exception class for internal use. Raise this exception in situations when a user project is incorrectly configured in whatever way. """ pass class TypeConversionFailed(BaseException): """ Exception class for internal use. Raise this exception when a type conversion fails. """ def __init__(self, from_type, to_type): message = f"Type '{from_type}' could not be converted to '{to_type}'." super().__init__(message)
# Exercise # Exercise # Interpreting coefficients # Remember that origin airport, org, has eight possible values (ORD, SFO, JFK, LGA, SMF, SJC, TUS and OGG) which have been one-hot encoded to seven dummy variables in org_dummy. # The values for km and org_dummy have been assembled into features, which has eight columns with sparse representation. Column indices in features are as follows: # 0 — km # 1 — ORD # 2 — SFO # 3 — JFK # 4 — LGA # 5 — SMF # 6 — SJC and # 7 — TUS. # Note that OGG does not appear in this list because it is the reference level for the origin airport category. # In this exercise you'll be using the intercept and coefficients attributes to interpret the model. # The coefficients attribute is a list, where the first element indicates how flight duration changes with flight distance. # Instructions # 100 XP # Instructions # 100 XP # Find the average speed in km per hour. This will be different to the value that you got earlier because your model is now more sophisticated. # What's the average time on the ground at OGG? # What's the average time on the ground at JFK? # What's the average time on the ground at LGA? # Average speed in km per hour avg_speed_hour = 60 / regression.coefficients[0] print(avg_speed_hour) # Average minutes on ground at OGG inter = regression.intercept print(inter) # Average minutes on ground at JFK avg_ground_jfk = inter + regression.coefficients[3] print(avg_ground_jfk) # Average minutes on ground at LGA avg_ground_lga = inter + regression.coefficients[4] print(avg_ground_lga)
#--------------------------------- # BATCH DEFAULTS #--------------------------------- # The default options applied to each stage in the shell script. These options # are overwritten by the options provided by the individual stages in the next # section. # Stage options which Rubra will recognise are: # - distributed: a boolean determining whether the task should be submitted to # a cluster job scheduling system (True) or run on the system local to Rubra # (False). # - walltime: for a distributed PBS job, gives the walltime requested from the # job queue system; the maximum allowed runtime. For local jobs has no # effect. # - memInGB: for a distributed PBS job, gives the memory in gigabytes requested # from the job queue system. For local jobs has no effect. # - queue: for a distributed PBS job, this is the name of the queue to submit # the job to. For local jobs has no effect. # - modules: the modules to be loaded before running the task. This is intended # for systems with environment modules installed. Rubra will call module load # on each required module before running the task. Note that defining modules # for individual stages will override (not add to) any modules listed here. # This currently only works for distributed jobs. stageDefaults = { "distributed": True, "walltime": "01:00:00", "memInGB": 4, "queue": "main", "modules": [ "perl/5.18.0", "java/1.7.0_25", "samtools-intel/0.1.19", "python-gcc/2.7.5", "fastqc/0.10.1", "bowtie2-intel/2.1.0", "tophat-gcc/2.0.8", "cufflinks-gcc/2.1.1", "bwa-intel/0.7.5a", ], "manager": "slurm", } #--------------------------------- # PBS STAGES #--------------------------------- # The configuration options for individual stages. stages = { "makeIndexHtml": { "command": "python %html_index %name %samp %comp %results %output", "walltime": "10:00", }, "fastQC": { "command": "fastqc -o %outdir -f fastq %pair1 %pair2", "walltime": "30:00" }, "trimReads": { "command": "java -Xmx6g %tmp -jar %trimmomatic %paired -threads 1 " \ "-phred33 %log %parameters", "walltime": "10:00:00", "memInGB": 10, }, "fastQCSummary": { "command": "python %script %fastqc_dir %fastqc_post_trim_dir " \ "%qc_summary %fastqc_summary %paired > %summary_txt", "walltime": "10:00", }, "buildTranscriptomeIndex": { "command": "sh %buildIndex %seq %tmp_dir %index_dir %index %gene_ref " \ "%genome_ref", "walltime": "2:00:00", "queue": "smp" }, "tophatAlign": { "command": "sh %tophat %pair1 %pair2 %out_dir %gene_ref %genome_ref " \ "%known %rgsm %rglb %rgid %rgpl %link", "walltime": "10:00:00", "memInGB": 32, "queue": "smp" }, "sortBam": { "command": "samtools sort %bam %output", "walltime": "2:00:00" }, "indexBam": { "command": "samtools index %bam", "walltime": "1:00:00" }, "mergeTophat" : { "command": "sh %merge %fix_reads %samp_dir %output", "walltime": "1:00:00", "memInGB": 24 }, "reorderBam": { "command": "java -Xmx2g %tmp -jar %reorder_sam INPUT=%input " \ "OUTPUT=%output REFERENCE=%genome_ref", "walltime": "1:00:00" }, "addRG": { "command": "java -Xmx2g %tmp -jar %add_rg INPUT=%bam OUTPUT=%output " \ "RGSM=%rgsm RGLB=%rglb RGID=%rgid RGPL=%rgpl RGPU=%rgpu", "walltime": "1:00:00" }, "markDuplicates": { "command": "java -Xmx10g %tmp -jar %mark_dup INPUT=%input " \ "REMOVE_DUPLICATES=false VALIDATION_STRINGENCY=LENIENT " \ "AS=true METRICS_FILE=%log OUTPUT=%output", "walltime": "1:00:00", "memInGB": 12 }, "rnaSeQC": { "command": "java -Xmx10g %tmp -jar %rnaseqc %paired -n 1000 -s %samp " \ "-r %genome_ref -t %gene_ref %rrna_ref -o %outDir", "walltime": "1:00:00", "memInGB": 16 }, "cufflinksAssembly": { "command": "cufflinks -p 8 -o %outdir %in", "walltime": "2:00:00", "memInGB": 32, "queue": "smp" }, "cuffmerge": { "command": "cuffmerge -g %gene_ref -s %genome_ref -p 8 -o %outdir %in", "walltime": "2:00:00", "memInGB": 32, "queue": "smp" }, "cuffdiff": { "command": "cuffdiff %mask -o %outdir -p 8 -L %labels -u %merged_gtf " \ "%samples1 %samples2", "walltime": "8:00:00", "memInGB": 40, "queue": "smp" }, "sortBamByName": { "command": "samtools sort -n %bam_file %sorted_file", "walltime": "1:00:00", }, "alignmentStats": { "command": "sh %script %bam %unmapped %output %paired", "walltime": "1:00:00", }, "qcSummary": { "command": "python %qc_script %fastqc_dir %fastqc_post_dir " \ "%alignment_stats_dir %rnaqc_dir %qc_summary %paired", "walltime": "10:00", }, "countReads": { "command": "sh %htseq %bam %gene_ref %union %strict %stranded", "walltime": "5:00:00", }, "combineAndAnnotate": { "command": "R --no-save --args %samples %comparisons %plain_text " \ "%rdata %annotate < %combine > %stdout 2> %stderr", "walltime": "30:00", "modules": ["R-intel/2.15.3"], }, "voom": { "command": "R --no-save --args %rdata %outdir %voom < %script " \ "> %stdout 2> %stderr", "walltime": "30:00", "modules": ["R-intel/2.15.3"] }, "edgeR": { "command": "R --no-save --args %rdata %outdir %edgeR < %script " \ "> %stdout 2> %stderr", "walltime": "30:00", "modules": ["R-intel/2.15.3"] }, }
class Diamond: START_LETTER = 'A' ENTER = '\n' SPACE = ' ' BLANK = '' def __init__(self, upTo): self.upTo = upTo def show(self): top = self.BLANK bottom = self.BLANK for c in range(ord(self.START_LETTER), ord(self.upTo)+1): line = self.buildLine(chr(c)) top += line bottom = self.bottomLine(chr(c), line, bottom) return top + bottom def bottomLine(self, c, line, bottom): return line + bottom if(c != self.upTo) else bottom def buildLine(self, c): return self.indent(c) + \ self.letter(c) + \ self.innerSpace(c) + \ self.secondLetter(c) + \ self.ENTER def letter(self, c): return c def secondLetter(self, c): return c if c != self.START_LETTER else '' def indent(self, c): count = ord(self.upTo) - ord(c) return self.makeSpace(count) def innerSpace(self, c): index = ord(c) - ord(self.START_LETTER) count = index*2-1 return self.makeSpace(count) def makeSpace(self, count): space = '' for i in range(0, count): space += self.SPACE return space
class ContentElement(DependencyObject,IInputElement,IAnimatable): """ Provides a WPF core-level base class for content elements. Content elements are designed for flow-style presentation,using an intuitive markup-oriented layout model and a deliberately simple object model. ContentElement() """ def AddHandler(self,routedEvent,handler,handledEventsToo=None): """ AddHandler(self: ContentElement,routedEvent: RoutedEvent,handler: Delegate,handledEventsToo: bool) Adds a�routed event handler for a specified routed event,adding the handler to the handler collection on the current element. Specify handledEventsToo as true to have the provided handler be invoked for routed event that had already been marked as handled by another element along the event route. routedEvent: An identifier for the.routed event to be handled. handler: A reference to the handler implementation. handledEventsToo: true to register the handler such that it is invoked even when the routed event is marked handled in its event data; false to register the handler with the default condition that it will not be invoked if the routed event is already marked handled. The default is false.Do not routinely ask to rehandle a routed event. For more information,see Remarks. AddHandler(self: ContentElement,routedEvent: RoutedEvent,handler: Delegate) Adds a�routed event handler for a specified routed event,adding the handler to the handler collection on the current element. routedEvent: An identifier for the routed event to be handled. handler: A reference to the handler implementation. """ pass def AddToEventRoute(self,route,e): """ AddToEventRoute(self: ContentElement,route: EventRoute,e: RoutedEventArgs) Adds handlers to the specified System.Windows.EventRoute for the current System.Windows.ContentElement event handler collection. route: The event route that handlers are added to. e: The event data that is used to add the handlers. This method uses the System.Windows.RoutedEventArgs.RoutedEvent property of the arguments to create the handlers. """ pass def ApplyAnimationClock(self,dp,clock,handoffBehavior=None): """ ApplyAnimationClock(self: ContentElement,dp: DependencyProperty,clock: AnimationClock,handoffBehavior: HandoffBehavior) Applies an animation to a specified�dependency property on this element,with the ability to specify what happens if the property already has a running animation. dp: The property to animate. clock: The animation clock that controls and declares the animation. handoffBehavior: A value of the enumeration. The default is System.Windows.Media.Animation.HandoffBehavior.SnapshotAndReplace,which will stop any existing animation and replace with the new one. ApplyAnimationClock(self: ContentElement,dp: DependencyProperty,clock: AnimationClock) Applies an animation to a specified�dependency property on this element. Any existing animations are stopped and replaced with the new animation. dp: The identifier for the property to animate. clock: The animation clock that controls and declares the animation. """ pass def BeginAnimation(self,dp,animation,handoffBehavior=None): """ BeginAnimation(self: ContentElement,dp: DependencyProperty,animation: AnimationTimeline,handoffBehavior: HandoffBehavior) Starts a specific animation for a specified animated property on this element, with the option of specifying what happens if the property already has a running animation. dp: The property to animate,which is specified as the dependency property identifier. animation: The timeline of the animation to be applied. handoffBehavior: A value of the enumeration that specifies how the new animation interacts with any current (running) animations that are already affecting the property value. BeginAnimation(self: ContentElement,dp: DependencyProperty,animation: AnimationTimeline) Starts an animation for a specified animated property on this element. dp: The property to animate,which is specified as a dependency property identifier. animation: The timeline of the animation to start. """ pass def CaptureMouse(self): """ CaptureMouse(self: ContentElement) -> bool Attempts to force capture of the mouse to this element. Returns: true if the mouse is successfully captured; otherwise,false. """ pass def CaptureStylus(self): """ CaptureStylus(self: ContentElement) -> bool Attempts to force capture of the stylus to this element. Returns: true if the stylus is successfully captured; otherwise,false. """ pass def CaptureTouch(self,touchDevice): """ CaptureTouch(self: ContentElement,touchDevice: TouchDevice) -> bool Attempts to force capture of a touch to this element. touchDevice: The device to capture. Returns: true if the specified touch is captured to this element; otherwise,false. """ pass def Focus(self): """ Focus(self: ContentElement) -> bool Attempts to set focus to this element. Returns: true if keyboard focus could be set to this element; false if this method call did not force focus. """ pass def GetAnimationBaseValue(self,dp): """ GetAnimationBaseValue(self: ContentElement,dp: DependencyProperty) -> object Returns the base property value for the specified property on this element, disregarding any possible animated value from a running or stopped animation. dp: The.dependency property to check. Returns: The property value as if no animations are attached to the specified dependency property. """ pass def GetUIParentCore(self,*args): """ GetUIParentCore(self: ContentElement) -> DependencyObject When overridden in a derived class,returns an alternative user interface (UI) parent for this element if no visual parent exists. Returns: An object,if implementation of a derived class has an alternate parent connection to report. """ pass def MoveFocus(self,request): """ MoveFocus(self: ContentElement,request: TraversalRequest) -> bool Attempts to move focus from this element to another element. The direction to move focus is specified by a guidance direction,which is interpreted within the organization of the visual parent for this element. request: A traversal request,which contains a property that indicates either a mode to traverse in existing tab order,or a direction to move visually. Returns: true if the requested traversal was performed; otherwise,false. """ pass def OnCreateAutomationPeer(self,*args): """ OnCreateAutomationPeer(self: ContentElement) -> AutomationPeer Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure. Returns: The type-specific System.Windows.Automation.Peers.AutomationPeer implementation. """ pass def OnDragEnter(self,*args): """ OnDragEnter(self: ContentElement,e: DragEventArgs) Invoked when an unhandled System.Windows.DragDrop.DragEnter�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.DragEventArgs that contains the event data. """ pass def OnDragLeave(self,*args): """ OnDragLeave(self: ContentElement,e: DragEventArgs) Invoked when an unhandled System.Windows.DragDrop.DragLeave�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.DragEventArgs that contains the event data. """ pass def OnDragOver(self,*args): """ OnDragOver(self: ContentElement,e: DragEventArgs) Invoked when an unhandled System.Windows.DragDrop.DragOver�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.DragEventArgs that contains the event data. """ pass def OnDrop(self,*args): """ OnDrop(self: ContentElement,e: DragEventArgs) Invoked when an unhandled System.Windows.DragDrop.DragEnter�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.DragEventArgs that contains the event data. """ pass def OnGiveFeedback(self,*args): """ OnGiveFeedback(self: ContentElement,e: GiveFeedbackEventArgs) Invoked when an unhandled System.Windows.DragDrop.GiveFeedback�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.GiveFeedbackEventArgs that contains the event data. """ pass def OnGotFocus(self,*args): """ OnGotFocus(self: ContentElement,e: RoutedEventArgs) Raises the System.Windows.ContentElement.GotFocus�routed event by using the event data provided. e: A System.Windows.RoutedEventArgs that contains event data. This event data must contain the identifier for the System.Windows.ContentElement.GotFocus event. """ pass def OnGotKeyboardFocus(self,*args): """ OnGotKeyboardFocus(self: ContentElement,e: KeyboardFocusChangedEventArgs) Invoked when an unhandled System.Windows.Input.Keyboard.GotKeyboardFocus� attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.KeyboardFocusChangedEventArgs that contains the event data. """ pass def OnGotMouseCapture(self,*args): """ OnGotMouseCapture(self: ContentElement,e: MouseEventArgs) Invoked when an unhandled System.Windows.Input.Mouse.GotMouseCapture�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseEventArgs that contains the event data. """ pass def OnGotStylusCapture(self,*args): """ OnGotStylusCapture(self: ContentElement,e: StylusEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.GotStylusCapture�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusEventArgs that contains the event data. """ pass def OnGotTouchCapture(self,*args): """ OnGotTouchCapture(self: ContentElement,e: TouchEventArgs) Provides class handling for the System.Windows.ContentElement.GotTouchCapture routed event that occurs when a touch is captured to this element. e: A System.Windows.Input.TouchEventArgs that contains the event data. """ pass def OnIsKeyboardFocusedChanged(self,*args): """ OnIsKeyboardFocusedChanged(self: ContentElement,e: DependencyPropertyChangedEventArgs) Invoked when an unhandled System.Windows.ContentElement.IsKeyboardFocusedChanged event is raised on this element. Implement this method to add class handling for this event. e: The System.Windows.DependencyPropertyChangedEventArgs that contains the event data. """ pass def OnIsKeyboardFocusWithinChanged(self,*args): """ OnIsKeyboardFocusWithinChanged(self: ContentElement,e: DependencyPropertyChangedEventArgs) Invoked just before the System.Windows.ContentElement.IsKeyboardFocusWithinChanged event is raised by this element. Implement this method to add class handling for this event. e: A System.Windows.DependencyPropertyChangedEventArgs that contains the event data. """ pass def OnIsMouseCapturedChanged(self,*args): """ OnIsMouseCapturedChanged(self: ContentElement,e: DependencyPropertyChangedEventArgs) Invoked when an unhandled System.Windows.ContentElement.IsMouseCapturedChanged event is raised on this element. Implement this method to add class handling for this event. e: The System.Windows.DependencyPropertyChangedEventArgs that contains the event data. """ pass def OnIsMouseCaptureWithinChanged(self,*args): """ OnIsMouseCaptureWithinChanged(self: ContentElement,e: DependencyPropertyChangedEventArgs) Invoked when an unhandled System.Windows.ContentElement.IsMouseCaptureWithinChanged event is raised on this element. Implement this method to add class handling for this event. e: A System.Windows.DependencyPropertyChangedEventArgs that contains the event data. """ pass def OnIsMouseDirectlyOverChanged(self,*args): """ OnIsMouseDirectlyOverChanged(self: ContentElement,e: DependencyPropertyChangedEventArgs) Invoked when an unhandled System.Windows.ContentElement.IsMouseDirectlyOverChanged event is raised on this element. Implement this method to add class handling for this event. e: The System.Windows.DependencyPropertyChangedEventArgs that contains the event data. """ pass def OnIsStylusCapturedChanged(self,*args): """ OnIsStylusCapturedChanged(self: ContentElement,e: DependencyPropertyChangedEventArgs) Invoked when an unhandled System.Windows.ContentElement.IsStylusCapturedChanged event is raised on this element. Implement this method to add class handling for this event. e: A System.Windows.DependencyPropertyChangedEventArgs that contains the event data. """ pass def OnIsStylusCaptureWithinChanged(self,*args): """ OnIsStylusCaptureWithinChanged(self: ContentElement,e: DependencyPropertyChangedEventArgs) Invoked when an unhandled System.Windows.ContentElement.IsStylusCaptureWithinChanged event is raised on this element. Implement this method to add class handling for this event. e: The System.Windows.DependencyPropertyChangedEventArgs that contains the event data. """ pass def OnIsStylusDirectlyOverChanged(self,*args): """ OnIsStylusDirectlyOverChanged(self: ContentElement,e: DependencyPropertyChangedEventArgs) Invoked when an unhandled System.Windows.ContentElement.IsStylusDirectlyOverChanged event is raised on this element. Implement this method to add class handling for this event. e: The System.Windows.DependencyPropertyChangedEventArgs that contains the event data. """ pass def OnKeyDown(self,*args): """ OnKeyDown(self: ContentElement,e: KeyEventArgs) Invoked when an unhandled System.Windows.Input.Keyboard.KeyDown�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.KeyEventArgs that contains the event data. """ pass def OnKeyUp(self,*args): """ OnKeyUp(self: ContentElement,e: KeyEventArgs) Invoked when an unhandled System.Windows.Input.Keyboard.KeyUp�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.KeyEventArgs that contains the event data. """ pass def OnLostFocus(self,*args): """ OnLostFocus(self: ContentElement,e: RoutedEventArgs) Raises the System.Windows.ContentElement.LostFocus�routed event by using the event data that is provided. e: A System.Windows.RoutedEventArgs that contains event data. This event data must contain the identifier for the System.Windows.ContentElement.LostFocus event. """ pass def OnLostKeyboardFocus(self,*args): """ OnLostKeyboardFocus(self: ContentElement,e: KeyboardFocusChangedEventArgs) Invoked when an unhandled System.Windows.Input.Keyboard.LostKeyboardFocus� attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.KeyboardFocusChangedEventArgs that contains event data. """ pass def OnLostMouseCapture(self,*args): """ OnLostMouseCapture(self: ContentElement,e: MouseEventArgs) Invoked when an unhandled System.Windows.Input.Mouse.LostMouseCapture�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseEventArgs that contains event data. """ pass def OnLostStylusCapture(self,*args): """ OnLostStylusCapture(self: ContentElement,e: StylusEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.LostStylusCapture� attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusEventArgs that contains event data. """ pass def OnLostTouchCapture(self,*args): """ OnLostTouchCapture(self: ContentElement,e: TouchEventArgs) Provides class handling for the System.Windows.ContentElement.LostTouchCapture routed event that occurs when this element loses a touch capture. e: A System.Windows.Input.TouchEventArgs that contains the event data. """ pass def OnMouseDown(self,*args): """ OnMouseDown(self: ContentElement,e: MouseButtonEventArgs) Invoked when an unhandled System.Windows.Input.Mouse.MouseDown�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. This event data reports details about the mouse button that was pressed and the handled state. """ pass def OnMouseEnter(self,*args): """ OnMouseEnter(self: ContentElement,e: MouseEventArgs) Invoked when an unhandled System.Windows.Input.Mouse.MouseEnter�attached event is raised on this element. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseEventArgs that contains the event data. """ pass def OnMouseLeave(self,*args): """ OnMouseLeave(self: ContentElement,e: MouseEventArgs) Invoked when an unhandled System.Windows.Input.Mouse.MouseLeave�attached event is raised on this element. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseEventArgs that contains the event data. """ pass def OnMouseLeftButtonDown(self,*args): """ OnMouseLeftButtonDown(self: ContentElement,e: MouseButtonEventArgs) Invoked when an unhandled System.Windows.ContentElement.MouseLeftButtonDown� routed event is raised on this element. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed. """ pass def OnMouseLeftButtonUp(self,*args): """ OnMouseLeftButtonUp(self: ContentElement,e: MouseButtonEventArgs) Invoked when an unhandled System.Windows.ContentElement.MouseLeftButtonUp� routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was released. """ pass def OnMouseMove(self,*args): """ OnMouseMove(self: ContentElement,e: MouseEventArgs) Invoked when an unhandled System.Windows.Input.Mouse.MouseMove�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseEventArgs that contains the event data. """ pass def OnMouseRightButtonDown(self,*args): """ OnMouseRightButtonDown(self: ContentElement,e: MouseButtonEventArgs) Invoked when an unhandled System.Windows.ContentElement.MouseRightButtonDown� routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the right mouse button was pressed. """ pass def OnMouseRightButtonUp(self,*args): """ OnMouseRightButtonUp(self: ContentElement,e: MouseButtonEventArgs) Invoked when an unhandled System.Windows.ContentElement.MouseRightButtonUp� routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the right mouse button was released. """ pass def OnMouseUp(self,*args): """ OnMouseUp(self: ContentElement,e: MouseButtonEventArgs) Invoked when an unhandled System.Windows.Input.Mouse.MouseUp�routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the mouse button was released. """ pass def OnMouseWheel(self,*args): """ OnMouseWheel(self: ContentElement,e: MouseWheelEventArgs) Invoked when an unhandled System.Windows.Input.Mouse.MouseWheel�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseWheelEventArgs that contains the event data. """ pass def OnPreviewDragEnter(self,*args): """ OnPreviewDragEnter(self: ContentElement,e: DragEventArgs) Invoked when an unhandled System.Windows.DragDrop.PreviewDragEnter�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.DragEventArgs that contains the event data. """ pass def OnPreviewDragLeave(self,*args): """ OnPreviewDragLeave(self: ContentElement,e: DragEventArgs) Invoked when an unhandled System.Windows.DragDrop.PreviewDragLeave�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.DragEventArgs that contains the event data. """ pass def OnPreviewDragOver(self,*args): """ OnPreviewDragOver(self: ContentElement,e: DragEventArgs) Invoked when an unhandled System.Windows.DragDrop.PreviewDragOver�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.DragEventArgs that contains the event data. """ pass def OnPreviewDrop(self,*args): """ OnPreviewDrop(self: ContentElement,e: DragEventArgs) Invoked when an unhandled System.Windows.DragDrop.PreviewDrop�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.DragEventArgs that contains the event data. """ pass def OnPreviewGiveFeedback(self,*args): """ OnPreviewGiveFeedback(self: ContentElement,e: GiveFeedbackEventArgs) Invoked when an unhandled System.Windows.DragDrop.PreviewGiveFeedback�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.GiveFeedbackEventArgs that contains the event data. """ pass def OnPreviewGotKeyboardFocus(self,*args): """ OnPreviewGotKeyboardFocus(self: ContentElement,e: KeyboardFocusChangedEventArgs) Invoked when an unhandled System.Windows.Input.Keyboard.PreviewGotKeyboardFocus� attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.KeyboardFocusChangedEventArgs that contains the event data. """ pass def OnPreviewKeyDown(self,*args): """ OnPreviewKeyDown(self: ContentElement,e: KeyEventArgs) Invoked when an unhandled System.Windows.Input.Keyboard.PreviewKeyDown�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.KeyEventArgs that contains the event data. """ pass def OnPreviewKeyUp(self,*args): """ OnPreviewKeyUp(self: ContentElement,e: KeyEventArgs) Invoked when an unhandled System.Windows.Input.Keyboard.PreviewKeyUp�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.KeyEventArgs that contains the event data. """ pass def OnPreviewLostKeyboardFocus(self,*args): """ OnPreviewLostKeyboardFocus(self: ContentElement,e: KeyboardFocusChangedEventArgs) Invoked when an unhandled System.Windows.Input.Keyboard.PreviewKeyDown�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.KeyboardFocusChangedEventArgs that contains the event data. """ pass def OnPreviewMouseDown(self,*args): """ OnPreviewMouseDown(self: ContentElement,e: MouseButtonEventArgs) Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseDown attached� routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that one or more mouse buttons were pressed. """ pass def OnPreviewMouseLeftButtonDown(self,*args): """ OnPreviewMouseLeftButtonDown(self: ContentElement,e: MouseButtonEventArgs) Invoked when an unhandled System.Windows.ContentElement.PreviewMouseLeftButtonDown�routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed. """ pass def OnPreviewMouseLeftButtonUp(self,*args): """ OnPreviewMouseLeftButtonUp(self: ContentElement,e: MouseButtonEventArgs) Invoked when an unhandled System.Windows.ContentElement.PreviewMouseLeftButtonUp�routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was released. """ pass def OnPreviewMouseMove(self,*args): """ OnPreviewMouseMove(self: ContentElement,e: MouseEventArgs) Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseMove�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseEventArgs that contains the event data. """ pass def OnPreviewMouseRightButtonDown(self,*args): """ OnPreviewMouseRightButtonDown(self: ContentElement,e: MouseButtonEventArgs) Invoked when an unhandled System.Windows.ContentElement.PreviewMouseRightButtonDown�routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the right mouse button was pressed. """ pass def OnPreviewMouseRightButtonUp(self,*args): """ OnPreviewMouseRightButtonUp(self: ContentElement,e: MouseButtonEventArgs) Invoked when an unhandled System.Windows.ContentElement.PreviewMouseRightButtonUp�routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the right mouse button was released. """ pass def OnPreviewMouseUp(self,*args): """ OnPreviewMouseUp(self: ContentElement,e: MouseButtonEventArgs) Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseUp�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that one or more mouse buttons were released. """ pass def OnPreviewMouseWheel(self,*args): """ OnPreviewMouseWheel(self: ContentElement,e: MouseWheelEventArgs) Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseWheel�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.MouseWheelEventArgs that contains the event data. """ pass def OnPreviewQueryContinueDrag(self,*args): """ OnPreviewQueryContinueDrag(self: ContentElement,e: QueryContinueDragEventArgs) Invoked when an unhandled System.Windows.DragDrop.PreviewQueryContinueDrag� attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.QueryContinueDragEventArgs that contains the event data. """ pass def OnPreviewStylusButtonDown(self,*args): """ OnPreviewStylusButtonDown(self: ContentElement,e: StylusButtonEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusButtonDown� attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusButtonEventArgs that contains the event data. """ pass def OnPreviewStylusButtonUp(self,*args): """ OnPreviewStylusButtonUp(self: ContentElement,e: StylusButtonEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusButtonUp� attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusButtonEventArgs that contains the event data. """ pass def OnPreviewStylusDown(self,*args): """ OnPreviewStylusDown(self: ContentElement,e: StylusDownEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusDown� attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusDownEventArgs that contains the event data. """ pass def OnPreviewStylusInAirMove(self,*args): """ OnPreviewStylusInAirMove(self: ContentElement,e: StylusEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusInAirMove� attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusEventArgs that contains the event data. """ pass def OnPreviewStylusInRange(self,*args): """ OnPreviewStylusInRange(self: ContentElement,e: StylusEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusInRange� attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusEventArgs that contains the event data. """ pass def OnPreviewStylusMove(self,*args): """ OnPreviewStylusMove(self: ContentElement,e: StylusEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusMove� attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusEventArgs that contains the event data. """ pass def OnPreviewStylusOutOfRange(self,*args): """ OnPreviewStylusOutOfRange(self: ContentElement,e: StylusEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusOutOfRange� attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusEventArgs that contains the event data. """ pass def OnPreviewStylusSystemGesture(self,*args): """ OnPreviewStylusSystemGesture(self: ContentElement,e: StylusSystemGestureEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusSystemGesture�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusSystemGestureEventArgs that contains the event data. """ pass def OnPreviewStylusUp(self,*args): """ OnPreviewStylusUp(self: ContentElement,e: StylusEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusUp�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusEventArgs that contains the event data. """ pass def OnPreviewTextInput(self,*args): """ OnPreviewTextInput(self: ContentElement,e: TextCompositionEventArgs) Invoked when an unhandled System.Windows.Input.TextCompositionManager.PreviewTextInput�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.TextCompositionEventArgs that contains the event data. """ pass def OnPreviewTouchDown(self,*args): """ OnPreviewTouchDown(self: ContentElement,e: TouchEventArgs) Provides class handling for the System.Windows.ContentElement.PreviewTouchDown routed event that occurs when a touch presses this element. e: A System.Windows.Input.TouchEventArgs that contains the event data. """ pass def OnPreviewTouchMove(self,*args): """ OnPreviewTouchMove(self: ContentElement,e: TouchEventArgs) Provides class handling for the System.Windows.ContentElement.PreviewTouchMove routed event that occurs when a touch moves while inside this element. e: A System.Windows.Input.TouchEventArgs that contains the event data. """ pass def OnPreviewTouchUp(self,*args): """ OnPreviewTouchUp(self: ContentElement,e: TouchEventArgs) Provides class handling for the System.Windows.ContentElement.PreviewTouchUp routed event that occurs when a touch is released inside this element. e: A System.Windows.Input.TouchEventArgs that contains the event data. """ pass def OnPropertyChanged(self,*args): """ OnPropertyChanged(self: DependencyObject,e: DependencyPropertyChangedEventArgs) Invoked whenever the effective value of any dependency property on this System.Windows.DependencyObject has been updated. The specific dependency property that changed is reported in the event data. e: Event data that will contain the dependency property identifier of interest, the property metadata for the type,and old and new values. OnPropertyChanged(self: Window_16$17,e: DependencyPropertyChangedEventArgs)OnPropertyChanged(self: Label_17$18,e: DependencyPropertyChangedEventArgs)OnPropertyChanged(self: TextBox_18$19,e: DependencyPropertyChangedEventArgs)OnPropertyChanged(self: Button_19$20,e: DependencyPropertyChangedEventArgs)OnPropertyChanged(self: CheckBox_20$21,e: DependencyPropertyChangedEventArgs)OnPropertyChanged(self: ComboBox_21$22,e: DependencyPropertyChangedEventArgs)OnPropertyChanged(self: Separator_22$23,e: DependencyPropertyChangedEventArgs) """ pass def OnQueryContinueDrag(self,*args): """ OnQueryContinueDrag(self: ContentElement,e: QueryContinueDragEventArgs) Invoked when an unhandled System.Windows.DragDrop.QueryContinueDrag�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.QueryContinueDragEventArgs that contains the event data. """ pass def OnQueryCursor(self,*args): """ OnQueryCursor(self: ContentElement,e: QueryCursorEventArgs) Invoked when an unhandled System.Windows.Input.Mouse.QueryCursor�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.QueryCursorEventArgs that contains the event data. """ pass def OnStylusButtonDown(self,*args): """ OnStylusButtonDown(self: ContentElement,e: StylusButtonEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.StylusButtonDown�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusButtonEventArgs that contains the event data. """ pass def OnStylusButtonUp(self,*args): """ OnStylusButtonUp(self: ContentElement,e: StylusButtonEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.StylusButtonUp�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusButtonEventArgs that contains the event data. """ pass def OnStylusDown(self,*args): """ OnStylusDown(self: ContentElement,e: StylusDownEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.StylusDown�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusDownEventArgs that contains the event data. """ pass def OnStylusEnter(self,*args): """ OnStylusEnter(self: ContentElement,e: StylusEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.StylusEnter�attached event is raised by this element. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusEventArgs that contains the event data. """ pass def OnStylusInAirMove(self,*args): """ OnStylusInAirMove(self: ContentElement,e: StylusEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.StylusInAirMove�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusEventArgs that contains the event data. """ pass def OnStylusInRange(self,*args): """ OnStylusInRange(self: ContentElement,e: StylusEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.StylusInRange�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusEventArgs that contains the event data. """ pass def OnStylusLeave(self,*args): """ OnStylusLeave(self: ContentElement,e: StylusEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.StylusLeave�attached event is raised by this element. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusEventArgs that contains the event data. """ pass def OnStylusMove(self,*args): """ OnStylusMove(self: ContentElement,e: StylusEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.StylusMove�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusEventArgs that contains the event data. """ pass def OnStylusOutOfRange(self,*args): """ OnStylusOutOfRange(self: ContentElement,e: StylusEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.StylusOutOfRange�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusEventArgs that contains the event data. """ pass def OnStylusSystemGesture(self,*args): """ OnStylusSystemGesture(self: ContentElement,e: StylusSystemGestureEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.StylusSystemGesture� attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusSystemGestureEventArgs that contains the event data. """ pass def OnStylusUp(self,*args): """ OnStylusUp(self: ContentElement,e: StylusEventArgs) Invoked when an unhandled System.Windows.Input.Stylus.StylusUp�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.StylusEventArgs that contains the event data. """ pass def OnTextInput(self,*args): """ OnTextInput(self: ContentElement,e: TextCompositionEventArgs) Invoked when an unhandled System.Windows.Input.TextCompositionManager.TextInput� attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. e: The System.Windows.Input.TextCompositionEventArgs that contains the event data. """ pass def OnTouchDown(self,*args): """ OnTouchDown(self: ContentElement,e: TouchEventArgs) Provides class handling for the System.Windows.ContentElement.TouchDown routed event that occurs when a touch presses inside this element. e: A System.Windows.Input.TouchEventArgs that contains the event data. """ pass def OnTouchEnter(self,*args): """ OnTouchEnter(self: ContentElement,e: TouchEventArgs) Provides class handling for the System.Windows.ContentElement.TouchEnter routed event that occurs when a touch moves from outside to inside the bounds of this element. e: A System.Windows.Input.TouchEventArgs that contains the event data. """ pass def OnTouchLeave(self,*args): """ OnTouchLeave(self: ContentElement,e: TouchEventArgs) Provides class handling for the System.Windows.ContentElement.TouchLeave routed event that occurs when a touch moves from inside to outside the bounds of this element. e: A System.Windows.Input.TouchEventArgs that contains the event data. """ pass def OnTouchMove(self,*args): """ OnTouchMove(self: ContentElement,e: TouchEventArgs) Provides class handling for the System.Windows.ContentElement.TouchMove routed event that occurs when a touch moves while inside this element. e: A System.Windows.Input.TouchEventArgs that contains the event data. """ pass def OnTouchUp(self,*args): """ OnTouchUp(self: ContentElement,e: TouchEventArgs) Provides class handling for the System.Windows.ContentElement.TouchUp routed event that occurs when a touch is released inside this element. e: A System.Windows.Input.TouchEventArgs that contains the event data. """ pass def PredictFocus(self,direction): """ PredictFocus(self: ContentElement,direction: FocusNavigationDirection) -> DependencyObject When overridden in a derived class,returns the element that would receive focus for a specified focus traversal direction,without actually moving focus to that element. direction: The direction of the requested focus traversal. Returns: The element that would have received focus if System.Windows.ContentElement.MoveFocus(System.Windows.Input.TraversalRequest) were actually invoked. """ pass def RaiseEvent(self,e): """ RaiseEvent(self: ContentElement,e: RoutedEventArgs) Raises a specific routed event. The System.Windows.RoutedEvent to be raised is identified within the System.Windows.RoutedEventArgs instance that is provided (as the System.Windows.RoutedEventArgs.RoutedEvent property of that event data). e: A System.Windows.RoutedEventArgs that contains the event data and also identifies the event to raise. """ pass def ReleaseAllTouchCaptures(self): """ ReleaseAllTouchCaptures(self: ContentElement) Releases all captured touch devices from this element. """ pass def ReleaseMouseCapture(self): """ ReleaseMouseCapture(self: ContentElement) Releases the mouse capture,if this element held the capture. """ pass def ReleaseStylusCapture(self): """ ReleaseStylusCapture(self: ContentElement) Releases the stylus device capture,if this element held the capture. """ pass def ReleaseTouchCapture(self,touchDevice): """ ReleaseTouchCapture(self: ContentElement,touchDevice: TouchDevice) -> bool Attempts to release the specified touch device from this element. touchDevice: The device to release. Returns: true if the touch device is released; otherwise,false. """ pass def RemoveHandler(self,routedEvent,handler): """ RemoveHandler(self: ContentElement,routedEvent: RoutedEvent,handler: Delegate) Removes the specified�routed event handler from this element. routedEvent: The identifier of the.routed event for which the handler is attached. handler: The specific handler implementation to remove from the event handler collection on this element. """ pass def ShouldSerializeCommandBindings(self): """ ShouldSerializeCommandBindings(self: ContentElement) -> bool Returns whether serialization processes should serialize the contents of the System.Windows.ContentElement.CommandBindings property on instances of this class. Returns: true if the System.Windows.ContentElement.CommandBindings property value should be serialized; otherwise,false. """ pass def ShouldSerializeInputBindings(self): """ ShouldSerializeInputBindings(self: ContentElement) -> bool Returns whether serialization processes should serialize the contents of the System.Windows.ContentElement.InputBindings property on instances of this class. Returns: true if the System.Windows.ContentElement.InputBindings property value should be serialized; otherwise,false. """ pass def ShouldSerializeProperty(self,*args): """ ShouldSerializeProperty(self: DependencyObject,dp: DependencyProperty) -> bool Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property. dp: The identifier for the dependency property that should be serialized. Returns: true if the dependency property that is supplied should be value-serialized; otherwise,false. ShouldSerializeProperty(self: Window_16$17,dp: DependencyProperty) -> bool ShouldSerializeProperty(self: Label_17$18,dp: DependencyProperty) -> bool ShouldSerializeProperty(self: TextBox_18$19,dp: DependencyProperty) -> bool ShouldSerializeProperty(self: Button_19$20,dp: DependencyProperty) -> bool ShouldSerializeProperty(self: CheckBox_20$21,dp: DependencyProperty) -> bool ShouldSerializeProperty(self: ComboBox_21$22,dp: DependencyProperty) -> bool ShouldSerializeProperty(self: Separator_22$23,dp: DependencyProperty) -> bool """ pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass AllowDrop=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value that indicates whether this element can be used as the target of a drag-and-drop operation. Get: AllowDrop(self: ContentElement) -> bool Set: AllowDrop(self: ContentElement)=value """ AreAnyTouchesCaptured=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether at least one touch is captured to this element. Get: AreAnyTouchesCaptured(self: ContentElement) -> bool """ AreAnyTouchesCapturedWithin=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether at least one touch is captured to this element or to any child elements in its visual tree. Get: AreAnyTouchesCapturedWithin(self: ContentElement) -> bool """ AreAnyTouchesDirectlyOver=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether at least one touch is pressed over this element. Get: AreAnyTouchesDirectlyOver(self: ContentElement) -> bool """ AreAnyTouchesOver=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether at least one touch is pressed over this element or any child elements in its visual tree. Get: AreAnyTouchesOver(self: ContentElement) -> bool """ CommandBindings=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a collection of System.Windows.Input.CommandBinding objects that are associated with this element. Get: CommandBindings(self: ContentElement) -> CommandBindingCollection """ Focusable=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value that indicates whether the element can receive focus. Get: Focusable(self: ContentElement) -> bool Set: Focusable(self: ContentElement)=value """ HasAnimatedProperties=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether this element has any animated properties. Get: HasAnimatedProperties(self: ContentElement) -> bool """ InputBindings=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the collection of input bindings that are associated with this element. Get: InputBindings(self: ContentElement) -> InputBindingCollection """ IsEnabled=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets or sets a value that indicates whether this element is enabled in the user interface (UI). Get: IsEnabled(self: ContentElement) -> bool Set: IsEnabled(self: ContentElement)=value """ IsEnabledCore=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that becomes the return value of System.Windows.ContentElement.IsEnabled in derived classes. """ IsFocused=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that determines whether this element has logical focus. Get: IsFocused(self: ContentElement) -> bool """ IsInputMethodEnabled=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether an input method system,such as an Input Method Editor (IME),is enabled for processing the input to this element. Get: IsInputMethodEnabled(self: ContentElement) -> bool """ IsKeyboardFocused=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether this element has keyboard focus. Get: IsKeyboardFocused(self: ContentElement) -> bool """ IsKeyboardFocusWithin=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether keyboard focus is anywhere within the element or child elements. Get: IsKeyboardFocusWithin(self: ContentElement) -> bool """ IsMouseCaptured=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether the mouse is captured by this element. Get: IsMouseCaptured(self: ContentElement) -> bool """ IsMouseCaptureWithin=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that determines whether mouse capture is held by this element or by child elements in its element�tree. Get: IsMouseCaptureWithin(self: ContentElement) -> bool """ IsMouseDirectlyOver=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether the position of the mouse pointer corresponds to�hit test results,which take element compositing into account. Get: IsMouseDirectlyOver(self: ContentElement) -> bool """ IsMouseOver=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether the mouse pointer is located over this element (including visual child elements,or its control compositing). Get: IsMouseOver(self: ContentElement) -> bool """ IsStylusCaptured=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether the stylus is captured to this element. Get: IsStylusCaptured(self: ContentElement) -> bool """ IsStylusCaptureWithin=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that determines whether stylus capture is held by this element,including child elements and control compositing. Get: IsStylusCaptureWithin(self: ContentElement) -> bool """ IsStylusDirectlyOver=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether the stylus position corresponds to�hit test results,which take element compositing into account. Get: IsStylusDirectlyOver(self: ContentElement) -> bool """ IsStylusOver=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether the stylus is located over this element (including visual child elements). Get: IsStylusOver(self: ContentElement) -> bool """ TouchesCaptured=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets all touch devices that are captured to this element. Get: TouchesCaptured(self: ContentElement) -> IEnumerable[TouchDevice] """ TouchesCapturedWithin=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets all touch devices that are captured to this element or any child elements in its visual tree. Get: TouchesCapturedWithin(self: ContentElement) -> IEnumerable[TouchDevice] """ TouchesDirectlyOver=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets all touch devices that are over this element. Get: TouchesDirectlyOver(self: ContentElement) -> IEnumerable[TouchDevice] """ TouchesOver=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets all touch devices that are over this element or any child elements in its visual tree. Get: TouchesOver(self: ContentElement) -> IEnumerable[TouchDevice] """ AllowDropProperty=None AreAnyTouchesCapturedProperty=None AreAnyTouchesCapturedWithinProperty=None AreAnyTouchesDirectlyOverProperty=None AreAnyTouchesOverProperty=None DragEnter=None DragEnterEvent=None DragLeave=None DragLeaveEvent=None DragOver=None DragOverEvent=None Drop=None DropEvent=None FocusableChanged=None FocusableProperty=None GiveFeedback=None GiveFeedbackEvent=None GotFocus=None GotFocusEvent=None GotKeyboardFocus=None GotKeyboardFocusEvent=None GotMouseCapture=None GotMouseCaptureEvent=None GotStylusCapture=None GotStylusCaptureEvent=None GotTouchCapture=None GotTouchCaptureEvent=None IsEnabledChanged=None IsEnabledProperty=None IsFocusedProperty=None IsKeyboardFocusedChanged=None IsKeyboardFocusedProperty=None IsKeyboardFocusWithinChanged=None IsKeyboardFocusWithinProperty=None IsMouseCapturedChanged=None IsMouseCapturedProperty=None IsMouseCaptureWithinChanged=None IsMouseCaptureWithinProperty=None IsMouseDirectlyOverChanged=None IsMouseDirectlyOverProperty=None IsMouseOverProperty=None IsStylusCapturedChanged=None IsStylusCapturedProperty=None IsStylusCaptureWithinChanged=None IsStylusCaptureWithinProperty=None IsStylusDirectlyOverChanged=None IsStylusDirectlyOverProperty=None IsStylusOverProperty=None KeyDown=None KeyDownEvent=None KeyUp=None KeyUpEvent=None LostFocus=None LostFocusEvent=None LostKeyboardFocus=None LostKeyboardFocusEvent=None LostMouseCapture=None LostMouseCaptureEvent=None LostStylusCapture=None LostStylusCaptureEvent=None LostTouchCapture=None LostTouchCaptureEvent=None MouseDown=None MouseDownEvent=None MouseEnter=None MouseEnterEvent=None MouseLeave=None MouseLeaveEvent=None MouseLeftButtonDown=None MouseLeftButtonDownEvent=None MouseLeftButtonUp=None MouseLeftButtonUpEvent=None MouseMove=None MouseMoveEvent=None MouseRightButtonDown=None MouseRightButtonDownEvent=None MouseRightButtonUp=None MouseRightButtonUpEvent=None MouseUp=None MouseUpEvent=None MouseWheel=None MouseWheelEvent=None PreviewDragEnter=None PreviewDragEnterEvent=None PreviewDragLeave=None PreviewDragLeaveEvent=None PreviewDragOver=None PreviewDragOverEvent=None PreviewDrop=None PreviewDropEvent=None PreviewGiveFeedback=None PreviewGiveFeedbackEvent=None PreviewGotKeyboardFocus=None PreviewGotKeyboardFocusEvent=None PreviewKeyDown=None PreviewKeyDownEvent=None PreviewKeyUp=None PreviewKeyUpEvent=None PreviewLostKeyboardFocus=None PreviewLostKeyboardFocusEvent=None PreviewMouseDown=None PreviewMouseDownEvent=None PreviewMouseLeftButtonDown=None PreviewMouseLeftButtonDownEvent=None PreviewMouseLeftButtonUp=None PreviewMouseLeftButtonUpEvent=None PreviewMouseMove=None PreviewMouseMoveEvent=None PreviewMouseRightButtonDown=None PreviewMouseRightButtonDownEvent=None PreviewMouseRightButtonUp=None PreviewMouseRightButtonUpEvent=None PreviewMouseUp=None PreviewMouseUpEvent=None PreviewMouseWheel=None PreviewMouseWheelEvent=None PreviewQueryContinueDrag=None PreviewQueryContinueDragEvent=None PreviewStylusButtonDown=None PreviewStylusButtonDownEvent=None PreviewStylusButtonUp=None PreviewStylusButtonUpEvent=None PreviewStylusDown=None PreviewStylusDownEvent=None PreviewStylusInAirMove=None PreviewStylusInAirMoveEvent=None PreviewStylusInRange=None PreviewStylusInRangeEvent=None PreviewStylusMove=None PreviewStylusMoveEvent=None PreviewStylusOutOfRange=None PreviewStylusOutOfRangeEvent=None PreviewStylusSystemGesture=None PreviewStylusSystemGestureEvent=None PreviewStylusUp=None PreviewStylusUpEvent=None PreviewTextInput=None PreviewTextInputEvent=None PreviewTouchDown=None PreviewTouchDownEvent=None PreviewTouchMove=None PreviewTouchMoveEvent=None PreviewTouchUp=None PreviewTouchUpEvent=None QueryContinueDrag=None QueryContinueDragEvent=None QueryCursor=None QueryCursorEvent=None StylusButtonDown=None StylusButtonDownEvent=None StylusButtonUp=None StylusButtonUpEvent=None StylusDown=None StylusDownEvent=None StylusEnter=None StylusEnterEvent=None StylusInAirMove=None StylusInAirMoveEvent=None StylusInRange=None StylusInRangeEvent=None StylusLeave=None StylusLeaveEvent=None StylusMove=None StylusMoveEvent=None StylusOutOfRange=None StylusOutOfRangeEvent=None StylusSystemGesture=None StylusSystemGestureEvent=None StylusUp=None StylusUpEvent=None TextInput=None TextInputEvent=None TouchDown=None TouchDownEvent=None TouchEnter=None TouchEnterEvent=None TouchLeave=None TouchLeaveEvent=None TouchMove=None TouchMoveEvent=None TouchUp=None TouchUpEvent=None
# https://docs.google.com/document/d/1Ljm9S29J-mFOZ3fwrkGohMDrn9fORVteWjzucuZfyaM/edit?usp=sharing # Huu Hung Nguyen # 12/12/2021 # Nguyen_HuuHung_accounts.py # The program stores the Account class, the SavingAccount class, and # the CreditCardAccount class. class Account: ''' Account class for representing and manipulating number, balance coordinates. ''' def __init__(self, number, balance): ''' Create a new point at the given coordinates. ''' self.number = number self.balance = balance def __str__(self): ''' Display the account number and balance. ''' display = f'Account number: {self.number}' + '\n' + \ f'Balance: ${self.balance:,.2f}' return display def deposit(self, amount): ''' Return the balance after depositting. ''' if amount >= 0: self.balance += amount return self.balance def withdraw(self, amount): ''' Return the balance after withdrawing. ''' if amount <= self.balance: self.balance -= amount return self.balance class SavingAccount(Account): ''' SavingAccount class for representing and manipulating number, balance, apr coordinates. ''' def __init__(self, number, balance, apr): ''' Create a new point at the given coordinates. ''' super().__init__(number, balance) self.apr = apr / 100 def __str__(self): ''' Display the account number, balance, and apr. ''' return super().__str__() + f'\nAPR: {self.apr * 100:,.2f}%' def calculate_interest(self): ''' Return the annual interest. ''' annual_interest = self.balance * self.apr return annual_interest class CreditCardAccount(Account): ''' SavingAccount class for representing and manipulating number, balance, apr, credit limit coordinates. ''' def __init__(self, number, balance, apr, credit_limit): ''' Create a new point at the given coordinates. ''' super().__init__(number, balance) self.apr = apr / 100 self.credit_limit = credit_limit def __str__(self): ''' Display the account number, balance, apr, and credit limit. ''' display = super().__str__() + f'\nAPR: {self.apr * 100:,.2f}%' + \ f'\nCredit Limit: ${self.credit_limit:,.2f}' return display def withdraw(self, amount): ''' Return the balance after withdrawing. ''' if amount <= self.balance + self.credit_limit: self.balance -= amount return self.balance def calculate_payment(self): ''' Return the monthly payment. ''' if self.balance > 0: monthly_payment = 0 elif (self.apr / 12) * (-self.balance) >= 20: monthly_payment = 20 else: monthly_payment = (self.apr / 12) * (-self.balance) return monthly_payment
path = "data/DataPoints.txt" lines_path = "data/lines.txt" index_and_slope_delim = ';' slope_and_intercept_delim = ":" delim = ","
routers = dict( BASE = dict( default_application = "webremote", default_controller = "webremote", default_function = "index", ) )
# # PySNMP MIB module BIANCA-BRICK-TOKEN-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BIANCA-BRICK-TOKEN-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:21:46 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter64, TimeTicks, Gauge32, NotificationType, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, Bits, Counter32, ObjectIdentity, IpAddress, MibIdentifier, iso, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "TimeTicks", "Gauge32", "NotificationType", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "Bits", "Counter32", "ObjectIdentity", "IpAddress", "MibIdentifier", "iso", "ModuleIdentity") TextualConvention, PhysAddress, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "PhysAddress", "DisplayString") org = MibIdentifier((1, 3)) dod = MibIdentifier((1, 3, 6)) internet = MibIdentifier((1, 3, 6, 1)) private = MibIdentifier((1, 3, 6, 1, 4)) enterprises = MibIdentifier((1, 3, 6, 1, 4, 1)) bintec = MibIdentifier((1, 3, 6, 1, 4, 1, 272)) bibo = MibIdentifier((1, 3, 6, 1, 4, 1, 272, 4)) tokenring = MibIdentifier((1, 3, 6, 1, 4, 1, 272, 4, 11)) class Date(Integer32): pass class HexValue(Integer32): pass tokenringIfTable = MibTable((1, 3, 6, 1, 4, 1, 272, 4, 11, 1), ) if mibBuilder.loadTexts: tokenringIfTable.setStatus('mandatory') tokenringIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1), ).setIndexNames((0, "BIANCA-BRICK-TOKEN-MIB", "tokenringIfSlot")) if mibBuilder.loadTexts: tokenringIfEntry.setStatus('mandatory') tokenringIfSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfSlot.setStatus('mandatory') tokenringIfState = MibScalar((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15))).clone(namedValues=NamedValues(("down", 1), ("start", 2), ("download", 3), ("reset", 4), ("bud", 5), ("tferipb", 6), ("wait1", 7), ("open", 8), ("wait2", 9), ("delay1", 10), ("receive", 11), ("wait3", 12), ("done", 13), ("close", 14), ("error", 15)))).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfState.setStatus('mandatory') tokenringIfRingRate = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("tr-4Mbit", 1), ("tr-16Mbit", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenringIfRingRate.setStatus('mandatory') tokenringIfEarlyTokenRelease = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenringIfEarlyTokenRelease.setStatus('mandatory') tokenringIfWrapInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenringIfWrapInterface.setStatus('mandatory') tokenringIfMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(15, 17800))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenringIfMtu.setStatus('mandatory') tokenringIfOverwritePhysAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 7), PhysAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenringIfOverwritePhysAddress.setStatus('mandatory') tokenringIfNAUN = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 8), PhysAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfNAUN.setStatus('mandatory') tokenringIfLineError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfLineError.setStatus('mandatory') tokenringIfBurstError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfBurstError.setStatus('mandatory') tokenringIfAriFciError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfAriFciError.setStatus('mandatory') tokenringIfLostFrameError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfLostFrameError.setStatus('mandatory') tokenringIfReceiveCongestionError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfReceiveCongestionError.setStatus('mandatory') tokenringIfFrameCopiedError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfFrameCopiedError.setStatus('mandatory') tokenringIfTokenError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfTokenError.setStatus('mandatory') tokenringIfDmaBusError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfDmaBusError.setStatus('mandatory') tokenringIfDmaParityError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfDmaParityError.setStatus('mandatory') tokenringIfSoftError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfSoftError.setStatus('mandatory') tokenringIfSourceRouting = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenringIfSourceRouting.setStatus('mandatory') mibBuilder.exportSymbols("BIANCA-BRICK-TOKEN-MIB", tokenringIfAriFciError=tokenringIfAriFciError, tokenringIfSlot=tokenringIfSlot, tokenringIfWrapInterface=tokenringIfWrapInterface, tokenringIfRingRate=tokenringIfRingRate, HexValue=HexValue, internet=internet, tokenringIfSoftError=tokenringIfSoftError, bintec=bintec, tokenringIfNAUN=tokenringIfNAUN, tokenringIfState=tokenringIfState, bibo=bibo, tokenringIfLostFrameError=tokenringIfLostFrameError, private=private, tokenringIfTokenError=tokenringIfTokenError, tokenringIfReceiveCongestionError=tokenringIfReceiveCongestionError, org=org, tokenring=tokenring, tokenringIfEntry=tokenringIfEntry, Date=Date, tokenringIfTable=tokenringIfTable, tokenringIfOverwritePhysAddress=tokenringIfOverwritePhysAddress, tokenringIfFrameCopiedError=tokenringIfFrameCopiedError, tokenringIfBurstError=tokenringIfBurstError, tokenringIfDmaParityError=tokenringIfDmaParityError, tokenringIfSourceRouting=tokenringIfSourceRouting, tokenringIfEarlyTokenRelease=tokenringIfEarlyTokenRelease, tokenringIfMtu=tokenringIfMtu, dod=dod, tokenringIfLineError=tokenringIfLineError, enterprises=enterprises, tokenringIfDmaBusError=tokenringIfDmaBusError)
LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' def evalFile(f1, f2): op = open(f1) plain = op.read() op.close() op = open(f2) imperfect = op.read() op.close() list1 = [] list2 = [] for letter in plain: if letter.upper() in LETTERS: if letter.upper() not in list1: list1.append(letter.upper()) for letter in imperfect: if letter.upper() in LETTERS: if letter.upper() not in list2: list2.append(letter.upper()) keyAccuaracy = 0 for i in range(len(list1)): if list1[i] == list2[i]: keyAccuaracy += 1 keyAccuaracy = keyAccuaracy/len(list1) list1 = [] list2 = [] for letter in plain: if letter.upper() in LETTERS: list1.append(letter.upper()) for letter in imperfect: if letter.upper() in LETTERS: list2.append(letter.upper()) deciphermentAccuracy = 0 for i in range(len(list1)): if list1[i] == list2[i]: deciphermentAccuracy += 1 deciphermentAccuracy = deciphermentAccuracy/len(list1) return [keyAccuaracy, deciphermentAccuracy]
''' You work for an airline, and your manager has asked you to do a competitive analysis and see how often passengers flying on other airlines are involuntarily bumped from their flights. You got a CSV file (airline_bumping.csv) from the Department of Transportation containing data on passengers that were involuntarily denied boarding in 2016 and 2017, but it doesn't have the exact numbers you want. In order to figure this out, you'll need to get the CSV into a pandas DataFrame and do some manipulation! pandas is imported for you as pd. "airline_bumping.csv" is in your working directory. '''
# LIFO Stack DS using Python Lists (Arrays) class StacksArray: def __init__(self): self.stackArray = [] def __len__(self): return len(self.stackArray) def isempty(self): return len(self.stackArray) == 0 def display(self): print(self.stackArray) def top(self): return self.stackArray[-1] def pop(self): if self.isempty(): print("Stack is empty") return None return self.stackArray.pop() def push(self, element): self.stackArray.append(element) if __name__ =='__main__': S = StacksArray() S.push(5) S.push(3) S.display() print(len(S)) print(S.pop()) print(S.isempty()) print(S.pop()) print(S.isempty()) S.push(7) S.push(9) print(S.top()) S.push(4) print(len(S)) print(S.pop()) S.push(6) S.push(8) print(S.pop())
HISTOGRAM_CHARS = ['▁', '▂', '▃', '▄', '▅', '▆', '▇', '█'] HISTOGRAM_WIDTH = 6 def get_time_distribution(durations): if not durations: return '' _max, _min = max(durations), min(durations) n = HISTOGRAM_WIDTH step = (_max - _min) / float(n) r = [0] * (n + 1) for i in range(n + 1): c = 0 for d in durations: if _min + i * step <= d < _min + (i + 1) * step: c += 1 r[i] = c / len(durations) s = [] for x in r: found = False for i, c in enumerate(HISTOGRAM_CHARS[1:]): if i / n < x <= (i + 1) / n: s.append(c) found = True break if not found: s.append(HISTOGRAM_CHARS[0]) return "{} [{:.03f}-{:.03f}]ms".format( "".join(s), _min, _max, )
class ClassDictionary: def __init__(self, value): self.dict_value = value def __getattribute__(self, name): if name == "dict_value": return super().__getattribute__(name) result = self.dict_value.get(name) return result def __setattr__(self, name, value): if name == "dict_value": return super().__setattr__(name, value) self.dict_value[name] = value def pop(self, name, default=None): return self.dict_value.pop(name, default)
# String Rotation: Assume you have a method isSubstringwhich checks if one word is a substring # of another. Given two strings, sl and s2, write code to check if s2 is a rotation of sl using only one # call to isSubstring (e.g., "waterbottle" is a rotation of "erbottlewat") def is_substring(s1, s2): return s2 in s1 def is_string_rotation(s1, s2): if not len(s1) == len(s2): return False double_s1 = s1 + s1 return is_substring(double_s1, s2) print(is_string_rotation('waterbottle', 'erbottlewat')) # Time: O(n)
''' @description 2019/09/16 21:56 ''' persons = [ {"username": "zhangsan", "age": 20}, {"username": "lisi", "age": 18}, {"username": "zhaoliu", "age": 21}, {"username": "wangwu", "age": 20} ] def cmp(x): return x.get('age') # 根据年龄进行排序 ''' [ {'username': 'zhaoliu', 'age': 21}, {'username': 'zhangsan', 'age': 20}, {'username': 'wangwu', 'age': 20}, {'username': 'lisi', 'age':18} ] ''' # 1.不适用cmp_to_key进行字典排序 # persons.sort(key=cmp, reverse=True) # print(persons) # print('='*20) # 2.lambda表达式 persons.sort(key=lambda x:x.get('age')) print(persons) print('='*20) # 自己手动写一个计算器:可以模仿python自带的sort函数实现一个做计算器运算的函数。 a = 10 b = 20 def calculate(x, y, func): result = func(x, y) return result total = calculate(a, b, lambda x,y:x+y) minus = calculate(a, b, lambda x,y:x-y) print(total) # 30 print(minus) # -10
#Exericio04 #Faça um Programa que peça um número e então mostre a mensagem "O número informado foi: [número] """ while True: numero = int(input("Digite um numero: ")) print("O numero digitado foi:",numero, "\n") """ #Exercicio05 """ while True: word1 = input("Digita uma palavra com é:\n") print(word1.replace("é","e")) if word1 == "sair": break """ #Exercicio06 """ while True: nome = input("Digite o seu nome: ") #salva a alteração feita através da manipulação da string nome = nome.upper() pergunta = input("Quer comprar donuts? ") #salva a alteração feita através da manipulação da string pergunta = pergunta.lower() pergunta = pergunta.replace("ã", "a") if pergunta == "sim" or pergunta == "quero": print(nome,"quer comprar donuts!") elif pergunta == "nao" or pergunta == "nao quero": print(nome,"vai perder a chance de se apaixonar pelos donuts.") else: print(nome,"tá só me enrolando, hein") print() """ #Exercicio07 arquivo = open("PesquisaDonuts.txt","w+") nome = input("Digite o seu nome: ") nome = nome.upper() pergunta = input("Quer comprar donuts? ") #pergunta = pergunta.lower() #pergunta = pergunta.replace("ã", "a") if pergunta == "sim" or pergunta == "quero": arquivo.writelines(nome,"quer comprar donuts!") elif pergunta == "nao" or "nao quero": arquivo.writelines(nome,"vai perder a chance de se apaixonar pelos donuts.") else: arquivo.writelines(nome,"tá só me enrolando, hein")
""" I, Andy Le, student number 000805099, certify that all code submitted is my own work; that i have not copied it from any other source. I also certify that I have not allowed my work to be copied by others. """ def score(earnedPercent, overallWeight): if (earnedPercent == -1): return -1 else: return ((earnedPercent / 100) * overallWeight) def ad(l, a, e): total = 0 denom = 0 if (l != -1): total = total + l denom = denom + 20 if (a != -1): total = total + a denom = denom + 10 if (e != -1): total = total + e denom = denom + 70 return (round(((total / denom) * 100), 1)) def grade(percent): if (percent >= 90): return 'A' elif ((percent < 90) and (percent >= 75)): return 'B' elif ((percent < 75) and (percent >= 60)): return 'C' elif ((percent < 60) and (percent >= 50)): return 'D' else: return 'F' lab = int(input("What is your lab percent so far (-1 if no labs yet)? ")) lab = score(lab, 20) ass = int(input("What is your assignment percent so far (-1 if no assignment yet)? ")) ass = score(ass, 10) exam = int(input("What is your exam percent so far (-1 if no assignment yet)? ")) exam = score(exam, 70) mark = ad(lab, ass, exam) print("If things keep going the way they are you should get a " + str(mark) + " in the course, which is a " + grade(mark))
"""Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]…nums[i]). Return the running sum of nums. Example 1: Input: nums = [1,2,3,4] Output: [1,3,6,10] Explanation: Running sum is obtained as follows: [1, 1+2, 1+2+3, 1+2+3+4]. Example 2: Input: nums = [1,1,1,1,1] Output: [1,2,3,4,5] Explanation: Running sum is obtained as follows: [1, 1+1, 1+1+1, 1+1+1+1, 1+1+1+1+1]. Example 3: Input: nums = [3,1,2,10,1] Output: [3,4,6,16,17] Constraints: 1 <= nums.length <= 1000 -10^6 <= nums[i] <= 10^6""" class Solution: def runningSum(self, nums: List[int]) -> List[int]: sums = [nums[0]] for i in range(1, len(nums)): sums.append(sums[i-1] + nums[i]) return sums # >60%/>40% class Solution: def runningSum(self, nums: List[int]) -> List[int]: sums = [0]*len(nums) sums[0] = nums[0] for i in range(1, len(nums)): sums[i] = sums[i-1] + nums[i] return sums # Improved
# Name: 785 A. Anton and Polyhedrons # URL: https://codeforces.com/problemset/problem/785/A # Language: Python 3.x def main(): # Variable fuer Summe der Flächen sum_faces = 0 # Einlesen des Inputs als Integer n = int(input()) # Erstellung eines Dictionaries mit Keys als String und Values as Integer faces = { "Tetrahedron": 4, "Cube": 6, "Octahedron": 8, "Dodecahedron": 12, "Icosahedron": 20, } # Solange n groesser als Null ist Schleife. Ende wenn n gleich Null while n > 0: # Aufsummieren der einzelnen Values durch Key Abfrage von input() sum_faces += faces[input()] # Herunterzaehlen. Wenn n gleich Null, erfolgt kein input() Aufruf mehr n -= 1 print(sum_faces) if __name__ == '__main__': main()
__author__ = 'fabian' __all__ = ['handler']
class AccountNotFoundError(Exception): pass class TransactionError(Exception): pass class AccountClosedError(TransactionError): pass class InsufficientFundsError(TransactionError): pass
text = input().split() times_seen = {} for word in text: if word not in times_seen: times_seen[word] = 0 print(times_seen[word], end=' ') times_seen[word] += 1
# 수리공 항승 n, l = map(int, input().split()) hole = list(map(int, input().split())) hole_list = sorted(hole, reverse=True) temp = hole_list[0] for i in range(1, len(hole_list)): if l > temp - hole_list[i]: n -= 1 else: temp = hole_list[i] print(n)
def LeftView(root): ''' :param root: root of given tree. :return: print the left view of tree, dont print new line ''' # code here res = [] while root: res.append(root.data) if root.left: root = root.left elif root.right: root = root.right else: break # print(res) for n in res: print(n, end=' ') return res
#Verifica se possui SANTO no começo do nome da cidade cidade = input("Qual a cidade que você mora: ") cidadelista = cidade.split() print("Santo" in cidadelista[0])
# # PySNMP MIB module APPIAN-PPORT-SONET-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/APPIAN-PPORT-SONET-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:23:54 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) # acPport, AcAdminStatus, AcOpStatus, AcSlotNumber, AcPortNumber, AcNodeId = mibBuilder.importSymbols("APPIAN-SMI-MIB", "acPport", "AcAdminStatus", "AcOpStatus", "AcSlotNumber", "AcPortNumber", "AcNodeId") ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint") PerfIntervalCount, = mibBuilder.importSymbols("PerfHist-TC-MIB", "PerfIntervalCount") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") ModuleIdentity, MibIdentifier, Counter64, IpAddress, ObjectIdentity, TimeTicks, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Bits, Gauge32, NotificationType, Integer32, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "MibIdentifier", "Counter64", "IpAddress", "ObjectIdentity", "TimeTicks", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Bits", "Gauge32", "NotificationType", "Integer32", "Counter32") DisplayString, TruthValue, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TruthValue", "TextualConvention") acSonet = ModuleIdentity((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6)) acSonet.setRevisions(('1900-02-23 16:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: acSonet.setRevisionsDescriptions(('Engineering draft, not for release.',)) if mibBuilder.loadTexts: acSonet.setLastUpdated('0002231600Z') if mibBuilder.loadTexts: acSonet.setOrganization('Appian Communications, Inc.') if mibBuilder.loadTexts: acSonet.setContactInfo('Douglas Stahl') if mibBuilder.loadTexts: acSonet.setDescription('The MIB module to describe SONET/SDH objects.') class AcTraceString(TextualConvention, OctetString): description = "A string of up to printable characters, followed by padding NULL characters, and terminated with <CR> and <LF> characters, for a total of 64 characters. The maximum number of printable characters is 62 and if it's less, it's padded with NULL. Therefore the number of padding NULL characters is 0 to 62." status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(64, 64) fixedLength = 64 acSonetObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1)) acSonetObjectsPath = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2)) acSonetObjectsVT = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3)) acSonetPort = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1)) acSonetSection = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2)) acSonetLine = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3)) acSonetFarEndLine = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4)) acSonetPath = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1)) acSonetFarEndPath = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2)) acSonetVT = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1)) acSonetFarEndVT = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2)) acSonetPortTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1), ) if mibBuilder.loadTexts: acSonetPortTable.setStatus('current') if mibBuilder.loadTexts: acSonetPortTable.setDescription('The SONET/SDH Port table which must be created by the management client.') acSonetPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPortNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPortSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPortPort")) if mibBuilder.loadTexts: acSonetPortEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPortEntry.setDescription('An entry in the SONET/SDH Port table.') acSonetPortNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPortNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPortNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPortSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPortSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPortSlot.setDescription('The physical slot number of the port.') acSonetPortPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPortPort.setStatus('current') if mibBuilder.loadTexts: acSonetPortPort.setDescription('The physical port number of the port.') acSonetPortAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 4), AcAdminStatus().clone('inactivate')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortAdminStatus.setStatus('current') if mibBuilder.loadTexts: acSonetPortAdminStatus.setDescription('Appian Administrative Status attribute used to set the provisioning state as either activate(1), inactivate(2) or delete(3). Refer to the Appian-SMI.mib file for additional information.') acSonetPortOpStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 5), AcOpStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPortOpStatus.setStatus('current') if mibBuilder.loadTexts: acSonetPortOpStatus.setDescription('The current operational status for the SONET module controlling this port.') acSonetPortOpCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPortOpCode.setStatus('current') if mibBuilder.loadTexts: acSonetPortOpCode.setDescription('Provides a detailed status code which can be used to isolate a problem or state condition reported in acSonetPortOpStatus.') acSonetPortMediumType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("sonet", 1), ("sdh", 2))).clone('sonet')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortMediumType.setStatus('current') if mibBuilder.loadTexts: acSonetPortMediumType.setDescription('This variable identifies whether a SONET or a SDH signal is used across this interface.') acSonetPortTimeElapsed = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 900))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPortTimeElapsed.setStatus('current') if mibBuilder.loadTexts: acSonetPortTimeElapsed.setDescription("The number of seconds, including partial seconds, that have elapsed since the beginning of the current measurement period. If, for some reason, such as an adjustment in the system's time-of-day clock, the current interval exceeds the maximum value, the agent will return the maximum value.") acSonetPortValidIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPortValidIntervals.setStatus('current') if mibBuilder.loadTexts: acSonetPortValidIntervals.setDescription('The number of previous 15-minute intervals for which data was collected. A SONET/SDH interface must be capable of supporting at least n intervals. The minimum value of n is 4. The default of n is 32. The maximum value of n is 96. The value will be <n> unless the measurement was (re-)started within the last (<n>*15) minutes, in which case the value will be the number of complete 15 minute intervals for which the agent has at least some data. In certain cases (e.g., in the case where the agent is a proxy) it is possible that some intervals are unavailable. In this case, this interval is the maximum interval number for which data is available. ') acSonetPortMediumLineCoding = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("b3zs", 2), ("cmi", 3), ("nrz", 4), ("rz", 5))).clone('nrz')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortMediumLineCoding.setStatus('current') if mibBuilder.loadTexts: acSonetPortMediumLineCoding.setDescription('This variable describes the line coding for this interface. The B3ZS and CMI are used for electrical SONET/SDH signals (STS-1 and STS-3). The Non-Return to Zero (NRZ) and the Return to Zero are used for optical SONET/SDH signals.') acSonetPortMediumLineType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("short-single", 2), ("long-single", 3), ("multi", 4), ("coax", 5), ("utp", 6), ("intermediate", 7))).clone('multi')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortMediumLineType.setStatus('current') if mibBuilder.loadTexts: acSonetPortMediumLineType.setDescription('This variable describes the line type for this interface. The line types are Short and Long Range Single Mode fiber or Multi-Mode fiber interfaces, and coax and UTP for electrical interfaces. The value acSonetOther should be used when the Line Type is not one of the listed values.') acSonetPortTransmitterEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 12), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortTransmitterEnable.setStatus('current') if mibBuilder.loadTexts: acSonetPortTransmitterEnable.setDescription('Turns the laser on and off.') acSonetPortCircuitIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortCircuitIdentifier.setStatus('current') if mibBuilder.loadTexts: acSonetPortCircuitIdentifier.setDescription("This variable contains the transmission vendor's circuit identifier, for the purpose of facilitating troubleshooting. Note that the circuit identifier, if available, is also represented by ifPhysAddress.") acSonetPortInvalidIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPortInvalidIntervals.setStatus('current') if mibBuilder.loadTexts: acSonetPortInvalidIntervals.setDescription('The number of intervals in the range from 0 to acSonetPortValidIntervals for which no data is available. This object will typically be zero except in cases where the data for some intervals are not available (e.g., in proxy situations).') acSonetPortLoopbackConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("none", 0), ("facility", 1), ("terminal", 2), ("other", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortLoopbackConfig.setStatus('current') if mibBuilder.loadTexts: acSonetPortLoopbackConfig.setDescription('The current loopback state of the SONET/SDH interface. The values mean: none(0) Not in the loopback state. A device that is not capable of performing a loopback on this interface shall always return this value. facility(1) The received signal at this interface is looped back out through the corresponding transmitter in the return direction. terminal(2) The signal that is about to be transmitted is connected to the associated incoming receiver. other(3) Loopbacks that are not defined here.') acSonetPortResetCurrentPMregs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 16), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortResetCurrentPMregs.setStatus('current') if mibBuilder.loadTexts: acSonetPortResetCurrentPMregs.setDescription('Reset Performance Monitoring Registers for current 15 minute and day to zero for entity-related statisics. Reset on receiving a 1, will automatically go to 0 at next 15 minute or day interval.') acSonetPortResetAllPMregs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 17), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortResetAllPMregs.setStatus('current') if mibBuilder.loadTexts: acSonetPortResetAllPMregs.setDescription('Reset Performance Monitoring Registers to zero for all entity-related statisics. Reset on receiving a 1, will automatically go to 0 at next 15 minute or day interval.') acSonetPortConnectionType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ring", 1), ("interconnect", 2))).clone('interconnect')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortConnectionType.setStatus('current') if mibBuilder.loadTexts: acSonetPortConnectionType.setDescription('Whether the port is used on the ring side or the interconnect side. An interconnect interface is the one that connects to the ADM.') acSonetPortRingIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 19), Integer32().clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortRingIdentifier.setStatus('current') if mibBuilder.loadTexts: acSonetPortRingIdentifier.setDescription('This is a number assigned by carrier. It is contained here as a convenience for carrier and the EMS. It is not used by the device. When used, this should be set in east facing port row in this table. It can also be optionally set in the west facing port row in this table but it must be the same as the set in the east facing port row.') acSonetPortRingName = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortRingName.setStatus('current') if mibBuilder.loadTexts: acSonetPortRingName.setDescription('An ASCII text name up to 32 characters in length which is assigned to this optical ring. Like the RingIdentifier, this is contained here as a convenience for the carrier and the EMS. It is not used by the device. When used, this should be set in east facing port row in this table. It can also be optionally set in the west facing port row in this table but it must be the same as the set in the east facing port row.') acSonetThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2), ) if mibBuilder.loadTexts: acSonetThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdTable.setDescription('The SONET/SDH Threshold Table.') acSonetThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetThresholdPort")) if mibBuilder.loadTexts: acSonetThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdEntry.setDescription('An entry in the SONET/SDH Port Table.') acSonetThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdSlot.setDescription('The physical slot number of the port.') acSonetThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdPort.setDescription('The physical port number of the port.') acSonetThresholdSESSet = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("bellcore", 2), ("ansi93", 3), ("itu", 4), ("ansi97", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetThresholdSESSet.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdSESSet.setDescription('An enumerated integer indicating which recognized set of thresholds that the agent uses for determining severely errored seconds and unavailable time. other(1) None of the following. Bellcore1991(2) Bellcore TR-NWT-000253, 1991 [32], or ANSI T1M1.3/93-005R2, 1993 [22]. See also Appendix B. ansi1993(3) ANSI T1.231, 1993 [31], or Bellcore GR-253-CORE, Issue 2, 1995 [34] itu1995(4) ITU Recommendation G.826, 1995 [33] ansi1997(5) ANSI T1.231, 1997 [35] If a manager changes the value of this object then the SES statistics collected prior to this change must be invalidated.') acSonetDCCTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3), ) if mibBuilder.loadTexts: acSonetDCCTable.setStatus('current') if mibBuilder.loadTexts: acSonetDCCTable.setDescription('The SONET/SDH DCC Table.') acSonetDCCEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetDCCNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetDCCSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetDCCPort")) if mibBuilder.loadTexts: acSonetDCCEntry.setStatus('current') if mibBuilder.loadTexts: acSonetDCCEntry.setDescription('An entry in the SONET/SDH Port Table.') acSonetDCCNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetDCCNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetDCCNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetDCCSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetDCCSlot.setStatus('current') if mibBuilder.loadTexts: acSonetDCCSlot.setDescription('The physical slot number of the port.') acSonetDCCPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetDCCPort.setStatus('current') if mibBuilder.loadTexts: acSonetDCCPort.setDescription('The physical port number of the port.') acSonetDCCSectionEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 4), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetDCCSectionEnable.setStatus('current') if mibBuilder.loadTexts: acSonetDCCSectionEnable.setDescription('This variable indicates that the DCC for the section is enabled.') acSonetDCCLineEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetDCCLineEnable.setStatus('current') if mibBuilder.loadTexts: acSonetDCCLineEnable.setDescription('This variable indicates that the DCC for the line is enabled.') acSonetDCCAppianEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 6), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetDCCAppianEnable.setStatus('current') if mibBuilder.loadTexts: acSonetDCCAppianEnable.setDescription('This variable indicates that the Appian DCC is enabled.') acSonetDCCSectionFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 7), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetDCCSectionFail.setStatus('current') if mibBuilder.loadTexts: acSonetDCCSectionFail.setDescription('This variable indicates that the DCC for the section has failed.') acSonetDCCLineFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 8), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetDCCLineFail.setStatus('current') if mibBuilder.loadTexts: acSonetDCCLineFail.setDescription('This variable indicates that the DCC for the line has failed.') acSonetDCCAppianFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 9), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetDCCAppianFail.setStatus('current') if mibBuilder.loadTexts: acSonetDCCAppianFail.setDescription('This variable indicates that the Appian DCC has failed.') acSonetSection15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1), ) if mibBuilder.loadTexts: acSonetSection15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalTable.setDescription('The SONET/SDH Section 15Minute Interval table.') acSonetSection15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetSection15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSection15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSection15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSection15MinuteIntervalNumber")) if mibBuilder.loadTexts: acSonetSection15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH Section 15Minute Interval table.') acSonetSection15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetSection15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSlot.setDescription('The physical slot number of the port.') acSonetSection15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalPort.setDescription('The physical port number of the port.') acSonetSection15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') acSonetSection15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalValidStats.setDescription('This flag indicates if the data for this interval is valid.') acSonetSection15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 6), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for a 15 minute interval.') acSonetSection15MinuteIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetSectionCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetSectionNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetSectionNoDefect 2 acSonetSectionLOS 4 acSonetSectionLOF') acSonetSection15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Section in a particular 15-minute interval in the past 24 hours.') acSonetSection15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Section in a particular 15-minute interval in the past 24 hours.') acSonetSection15MinuteIntervalSEFSs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSEFSs.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSEFSs.setDescription('The counter associated with the number of Severely Errored Framing Seconds encountered by a SONET/SDH Section in a particular 15-minute interval in the past 24 hours.') acSonetSection15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Section in a particular 15-minute interval in the past 24 hours.') acSonetSectionDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2), ) if mibBuilder.loadTexts: acSonetSectionDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalTable.setDescription('The SONET/SDH Section Day Interval table.') acSonetSectionDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionDayIntervalNumber")) if mibBuilder.loadTexts: acSonetSectionDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalEntry.setDescription('An entry in the SONET/SDH Section Day Interval table.') acSonetSectionDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetSectionDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalSlot.setDescription('The physical slot number of the port.') acSonetSectionDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalPort.setDescription('The physical port number of the port.') acSonetSectionDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') acSonetSectionDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalValidStats.setDescription('This flag indicates if the data for this interval is valid.') acSonetSectionDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 6), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalResetStats.setDescription('Flag used to reset the current day interval stats.') acSonetSectionDayIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionDayIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetSectionCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetSectionNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetSectionNoDefect 2 acSonetSectionLOS 4 acSonetSectionLOF') acSonetSectionDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Section in a particular day interval in the past 30 days.') acSonetSectionDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Section in a particular day interval in the past 30 days.') acSonetSectionDayIntervalSEFSs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionDayIntervalSEFSs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalSEFSs.setDescription('The counter associated with the number of Severely Errored Framing Seconds encountered by a SONET/SDH Section in a particular day interval in the past 30 days.') acSonetSectionDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Section in a particular day interval in the past 30 days.') acSonetSectionThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3), ) if mibBuilder.loadTexts: acSonetSectionThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdTable.setDescription('The SONET/SDH Section Threshold Table.') acSonetSectionThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionThresholdSelectionNum")) if mibBuilder.loadTexts: acSonetSectionThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdEntry.setDescription('An entry in the SONET/SDH Section Threshold Table.') acSonetSectionThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetSectionThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdSlot.setDescription('The physical slot number of the port.') acSonetSectionThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdPort.setDescription('The physical port number of the port.') acSonetSectionThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds.') acSonetSectionThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 5), AcAdminStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetSectionThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this sonet port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') acSonetSectionThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdESs.setDescription('The threshold associated with Errored Seconds.') acSonetSectionThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') acSonetSectionThresholdSEFSs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionThresholdSEFSs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdSEFSs.setDescription('The threshold associated with Severely Errored Framing Seconds.') acSonetSectionThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdCVs.setDescription('The threshold associated with Coding Violations.') acSonetSectionTIMTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4), ) if mibBuilder.loadTexts: acSonetSectionTIMTable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMTable.setDescription('The SONET/SDH Section Trace Identifier Mismatch Table.') acSonetSectionTIMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionTIMNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionTIMSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionTIMPort")) if mibBuilder.loadTexts: acSonetSectionTIMEntry.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMEntry.setDescription('An entry in the SONET/SDH Section Trace Identifier Mismatch Table.') acSonetSectionTIMNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionTIMNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetSectionTIMSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionTIMSlot.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMSlot.setDescription('The physical slot number of the port.') acSonetSectionTIMPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionTIMPort.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMPort.setDescription('The physical port number of the port.') acSonetSectionTIMGenerateEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionTIMGenerateEnable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMGenerateEnable.setDescription('Enables the generation of the Section Trace Identifier.') acSonetSectionTIMDetectEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionTIMDetectEnable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMDetectEnable.setDescription('Enables the detection of the Section Trace Identifier.') acSonetSectionTIMTransmitedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 6), AcTraceString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionTIMTransmitedString.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMTransmitedString.setDescription('The string that gets sent to the destination.') acSonetSectionTIMExpectedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 7), AcTraceString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionTIMExpectedString.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMExpectedString.setDescription('The expected string that is to be received.') acSonetSectionTIMReceivedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 8), AcTraceString()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionTIMReceivedString.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMReceivedString.setDescription('The contents of the string that is received.') acSonetSectionTIMFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 9), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionTIMFailure.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMFailure.setDescription('Failure declared of the Section Trace Identifier.') acSonetSectionTIMFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("void", 0), ("t64", 1), ("t64-crlf", 2), ("t16", 3), ("t16-msb1", 4), ("t16-crc7", 5))).clone('void')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionTIMFormat.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMFormat.setDescription('Format of Path Trace buffer.') acSonetSectionTIMMismatchZeros = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 11), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionTIMMismatchZeros.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMMismatchZeros.setDescription('Controls whether a received trace message containing all zeros can cause a mismatch defect.') acSonetSectionSSMTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5), ) if mibBuilder.loadTexts: acSonetSectionSSMTable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMTable.setDescription('The SONET/SDH Section Synchronization Status Message Table.') acSonetSectionSSMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionSSMNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionSSMSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionSSMPort")) if mibBuilder.loadTexts: acSonetSectionSSMEntry.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMEntry.setDescription('An entry in the SONET/SDH Section Synchronization Status Message Table.') acSonetSectionSSMNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionSSMNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetSectionSSMSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionSSMSlot.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMSlot.setDescription('The physical slot number of the port.') acSonetSectionSSMPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionSSMPort.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMPort.setDescription('The physical port number of the port.') acSonetSectionSSMDetectEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 4), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionSSMDetectEnable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMDetectEnable.setDescription('Enables the detection of the Synchronization Status Message.') acSonetSectionSSMTransmitedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionSSMTransmitedValue.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMTransmitedValue.setDescription('The S1 byte value that gets sent to the destination.') acSonetSectionSSMReceivedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionSSMReceivedValue.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMReceivedValue.setDescription('The S1 byte value that is received.') acSonetLine15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1), ) if mibBuilder.loadTexts: acSonetLine15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalTable.setDescription('The SONET/SDH Line 15Minute Interval Table.') acSonetLine15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetLine15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLine15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLine15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLine15MinuteIntervalNumber")) if mibBuilder.loadTexts: acSonetLine15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH Line 15Minute Interval table.') acSonetLine15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetLine15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalSlot.setDescription('The physical slot number of the port.') acSonetLine15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalPort.setDescription('The physical port number of the port.') acSonetLine15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') acSonetLine15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.') acSonetLine15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalResetStats.setDescription('Flag to reset the 15 minute SONET Line interval statistics.') acSonetLine15MinuteIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetLineCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetLineNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetLineNoDefect 2 acSonetLineAIS 4 acSonetLineRDI') acSonetLine15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours.') acSonetLine15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours.') acSonetLine15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours.') acSonetLine15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours.') acSonetLine15MinuteIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 12), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalBER.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalBER.setDescription('The counter associated with the max BER encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours. ') acSonetLineDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2), ) if mibBuilder.loadTexts: acSonetLineDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalTable.setDescription('The SONET/SDH Line Day Interval Table.') acSonetLineDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetLineDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineDayIntervalNumber")) if mibBuilder.loadTexts: acSonetLineDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalEntry.setDescription('An entry in the SONET/SDH Line Day Interval table.') acSonetLineDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetLineDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalSlot.setDescription('The physical slot number of the port.') acSonetLineDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalPort.setDescription('The physical port number of the port.') acSonetLineDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') acSonetLineDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.') acSonetLineDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalResetStats.setDescription('Flag to reset the SONET Line Day interval statistics.') acSonetLineDayIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineDayIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetLineCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetLineNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetLineNoDefect 2 acSonetLineAIS 4 acSonetLineRDI') acSonetLineDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Line in a particular day interval in the past 30 days.') acSonetLineDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Line in a particular day interval in the past 30 days.') acSonetLineDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Line in a particular day interval in the past 30 days.') acSonetLineDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a SONET/SDH Line in a particular day interval in the past 30 days.') acSonetLineDayIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 12), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineDayIntervalBER.setStatus('deprecated') if mibBuilder.loadTexts: acSonetLineDayIntervalBER.setDescription('The counter associated with the max BER encountered by a SONET/SDH Line in a particular day interval in the past 30 days.') acSonetLineThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3), ) if mibBuilder.loadTexts: acSonetLineThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdTable.setDescription('The SONET/SDH Line Threshold Table.') acSonetLineThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetLineThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineThresholdSelectionNum")) if mibBuilder.loadTexts: acSonetLineThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdEntry.setDescription('An entry in the SONET/SDH Line Threshold Table.') acSonetLineThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetLineThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdSlot.setDescription('The physical slot number of the port.') acSonetLineThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdPort.setDescription('The physical port number of the port.') acSonetLineThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') acSonetLineThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 5), AcAdminStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetLineThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') acSonetLineThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdESs.setDescription('The threshold associated with Errored Seconds.') acSonetLineThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') acSonetLineThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdCVs.setDescription('The threshold associated with Coding Violations.') acSonetLineThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.') acSonetFarEndLine15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1), ) if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalTable.setDescription('The SONET/SDH FarEndLine 15Minute Interval Table.') acSonetFarEndLine15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLine15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLine15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLine15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLine15MinuteIntervalNumber")) if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH FarEndLine 15Minute Interval table.') acSonetFarEndLine15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndLine15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalSlot.setDescription('The physical slot number of the port.') acSonetFarEndLine15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalPort.setDescription('The physical port number of the port.') acSonetFarEndLine15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') acSonetFarEndLine15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.') acSonetFarEndLine15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalResetStats.setDescription('Flag to reset the SONET Far End Line 15 minute interval statistics.') acSonetFarEndLine15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 7), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndLine in a particular 15-minute interval in the past 24 hours.') acSonetFarEndLine15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndLine in a particular 15-minute interval in the past 24 hours.') acSonetFarEndLine15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndLine in a particular 15-minute interval in the past 24 hours.') acSonetFarEndLine15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a SONET/SDH FarEndLine in a particular 15-minute interval in the past 24 hours.') acSonetFarEndLineDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2), ) if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalTable.setDescription('The SONET/SDH FarEndLine Day Interval Table.') acSonetFarEndLineDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineDayIntervalNumber")) if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalEntry.setDescription('An entry in the SONET/SDH FarEndLine Day Interval table.') acSonetFarEndLineDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndLineDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalSlot.setDescription('The physical slot number of the port.') acSonetFarEndLineDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalPort.setDescription('The physical port number of the port.') acSonetFarEndLineDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') acSonetFarEndLineDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.') acSonetFarEndLineDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalResetStats.setDescription('Flag to reset the SONET far end line day interval statistics.') acSonetFarEndLineDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 7), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndLine in a particular day interval in the past 30 days.') acSonetFarEndLineDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndLine in a particular day interval in the past 30 days.') acSonetFarEndLineDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndLine in a particular day interval in the past 30 days.') acSonetFarEndLineDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a SONET/SDH FarEndLine in a particular day interval in the past 30 days.') acSonetFarEndLineThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3), ) if mibBuilder.loadTexts: acSonetFarEndLineThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdTable.setDescription('The SONET/SDH FarEndLine Threshold Table.') acSonetFarEndLineThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineThresholdSelectionNum")) if mibBuilder.loadTexts: acSonetFarEndLineThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdEntry.setDescription('An entry in the SONET/SDH FarEndLine Threshold Table.') acSonetFarEndLineThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLineThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndLineThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLineThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdSlot.setDescription('The physical slot number of the port.') acSonetFarEndLineThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLineThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdPort.setDescription('The physical port number of the port.') acSonetFarEndLineThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLineThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') acSonetFarEndLineThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 5), AcAdminStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndLineThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetFarEndLineThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') acSonetFarEndLineThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndLineThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdESs.setDescription('The threshold associated with Errored Seconds.') acSonetFarEndLineThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndLineThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') acSonetFarEndLineThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndLineThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdCVs.setDescription('The threshold associated with Coding Violations.') acSonetFarEndLineThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndLineThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.') acSonetPath15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1), ) if mibBuilder.loadTexts: acSonetPath15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalTable.setDescription('The SONET/SDH Path 15Minute Interval table.') acSonetPath15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPath15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPath15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPath15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPath15MinuteIntervalPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPath15MinuteIntervalNumber")) if mibBuilder.loadTexts: acSonetPath15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH Path 15Minute Interval table.') acSonetPath15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPath15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalSlot.setDescription('The physical slot number of the port.') acSonetPath15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalPort.setDescription('The physical port number of the port.') acSonetPath15MinuteIntervalPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalPath.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalPath.setDescription('The STS Path for which the set of statistics is available.') acSonetPath15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') acSonetPath15MinuteIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 62))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetPathCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetPathNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetPathNoDefect 2 acSonetPathSTSLOP 4 acSonetPathSTSAIS 8 acSonetPathSTSRDI 16 acSonetPathUnequipped 32 acSonetPathPayloadLabelMismatch') acSonetPath15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 7), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.') acSonetPath15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 8), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for a 15 minute interval.') acSonetPath15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Path in the current 15 minute interval.') acSonetPath15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Path in the current 15 minute interval.') acSonetPath15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Path in the current 15 minute interval.') acSonetPath15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 12), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a Path in the current 15 minute interval.') acSonetPath15MinuteIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 13), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalBER.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalBER.setDescription('The counter associated with the BER encountered by a Path in the current 15 minute interval. Represents the max value for an interval for number > 1.') acSonetPathDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2), ) if mibBuilder.loadTexts: acSonetPathDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalTable.setDescription('The SONET/SDH Path Day Interval table.') acSonetPathDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathDayIntervalPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathDayIntervalNumber")) if mibBuilder.loadTexts: acSonetPathDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalEntry.setDescription('An entry in the SONET/SDH Path Day Interval table.') acSonetPathDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPathDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalSlot.setDescription('The physical slot number of the port.') acSonetPathDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalPort.setDescription('The physical port number of the port.') acSonetPathDayIntervalPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathDayIntervalPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalPath.setDescription('The STS Path for which the set of statistics is available.') acSonetPathDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') acSonetPathDayIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 62))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathDayIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetPathCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetPathNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetPathNoDefect 2 acSonetPathSTSLOP 4 acSonetPathSTSAIS 8 acSonetPathSTSRDI 16 acSonetPathUnequipped 32 acSonetPathPayloadLabelMismatch') acSonetPathDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 7), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalValidStats.setDescription('This variable indicates if the data for this day is valid.') acSonetPathDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 8), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalResetStats.setDescription('This flag is used to reset the data for day interval.') acSonetPathDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Path in the past day interval.') acSonetPathDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Path in the past day interval.') acSonetPathDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Path in the past day interval.') acSonetPathDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 12), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a Path in the past day interval.') acSonetPathDayIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 13), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathDayIntervalBER.setStatus('deprecated') if mibBuilder.loadTexts: acSonetPathDayIntervalBER.setDescription('The counter associated with the BER encountered by a Path in the past day interval.') acSonetPathThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3), ) if mibBuilder.loadTexts: acSonetPathThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdTable.setDescription('The SONET/SDH Path Threshold Table.') acSonetPathThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathThresholdPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathThresholdSelectionNum")) if mibBuilder.loadTexts: acSonetPathThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdEntry.setDescription('An entry in the SONET/SDH Path Threshold Table.') acSonetPathThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPathThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdSlot.setDescription('The physical slot number of the port.') acSonetPathThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdPort.setDescription('The physical port number of the port.') acSonetPathThresholdPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathThresholdPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdPath.setDescription('The STS Path for which the set of statistics is available.') acSonetPathThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') acSonetPathThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 6), AcAdminStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetPathThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') acSonetPathThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdESs.setDescription('The threshold associated with Errored Seconds.') acSonetPathThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') acSonetPathThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdCVs.setDescription('The threshold associated with Coding Violations.') acSonetPathThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdUASs.setDescription('The threshold associated with Unavailable Seconds.') acSonetPathRDITable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4), ) if mibBuilder.loadTexts: acSonetPathRDITable.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDITable.setDescription('The SONET/SDH Path RDI Table.') acSonetPathRDIEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathRDINodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathRDISlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathRDIPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathRDIPath")) if mibBuilder.loadTexts: acSonetPathRDIEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDIEntry.setDescription('An entry in the SONET/SDH Path RDI Table.') acSonetPathRDINodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathRDINodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDINodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPathRDISlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathRDISlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDISlot.setDescription('The physical slot number of the port.') acSonetPathRDIPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathRDIPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDIPort.setDescription('The physical port number of the port.') acSonetPathRDIPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathRDIPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDIPath.setDescription('The STS path instance for this port') acSonetPathRDIOpMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("rdi", 1), ("erdi", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathRDIOpMode.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDIOpMode.setDescription('The Remote Defect Indiction signals have undergone a number of changes over the years, and now encompass two or even three different versions. See GR-253 6.2.1.3.2 for more information.') acSonetPathTIMTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5), ) if mibBuilder.loadTexts: acSonetPathTIMTable.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMTable.setDescription('The SONET/SDH Path Trace Identifier Mismatch Table.') acSonetPathTIMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathTIMNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathTIMSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathTIMPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathTIMPath")) if mibBuilder.loadTexts: acSonetPathTIMEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMEntry.setDescription('An entry in the SONET/SDH Path Trace Identifier Mismatch Table.') acSonetPathTIMNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathTIMNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPathTIMSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathTIMSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMSlot.setDescription('The physical slot number of the port.') acSonetPathTIMPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathTIMPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMPort.setDescription('The physical port number of the port.') acSonetPathTIMPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathTIMPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMPath.setDescription('The path instance of the port.') acSonetPathTIMGenerateEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 5), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathTIMGenerateEnable.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMGenerateEnable.setDescription('Enables the generation of the Path Trace Identifier.') acSonetPathTIMDetectEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 6), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathTIMDetectEnable.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMDetectEnable.setDescription('Enables the detection of the Path Trace Identifier.') acSonetPathTIMTransmitedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 7), AcTraceString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathTIMTransmitedString.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMTransmitedString.setDescription('The string that gets sent to the destination.') acSonetPathTIMExpectedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 8), AcTraceString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathTIMExpectedString.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMExpectedString.setDescription('The expected string that is to be received.') acSonetPathTIMReceivedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 9), AcTraceString()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathTIMReceivedString.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMReceivedString.setDescription('The contents of the string that is received.') acSonetPathTIMFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 10), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathTIMFailure.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMFailure.setDescription('Failure declared of the Path Trace Identifier.') acSonetPathTIMFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("void", 0), ("t64", 1), ("t64-crlf", 2), ("t16", 3), ("t16-msb1", 4), ("t16-crc7", 5))).clone('void')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathTIMFormat.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMFormat.setDescription('Format of Path Trace buffer.') acSonetPathTIMMismatchZeros = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 12), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathTIMMismatchZeros.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMMismatchZeros.setDescription('Controls whether a received trace message containing all zeros can cause a mismatch defect.') acSonetPathPLMTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6), ) if mibBuilder.loadTexts: acSonetPathPLMTable.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMTable.setDescription('The SONET/SDH Path Payload Label Mismatch Table.') acSonetPathPLMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathPLMNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathPLMSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathPLMPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathPLMPath")) if mibBuilder.loadTexts: acSonetPathPLMEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMEntry.setDescription('An entry in the SONET/SDH Path Payload Label Mismatch Table.') acSonetPathPLMNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathPLMNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPathPLMSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathPLMSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMSlot.setDescription('The physical slot number of the port.') acSonetPathPLMPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathPLMPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMPort.setDescription('The physical port number of the port.') acSonetPathPLMPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathPLMPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMPath.setDescription('The path instance of the port.') acSonetPathPLMDetectEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathPLMDetectEnable.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMDetectEnable.setDescription('Enables the detection of the Path Payload Label.') acSonetPathPLMTransmitedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathPLMTransmitedValue.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMTransmitedValue.setDescription('The Path Payload Label that gets sent to the destination. See GR-253 Tables 3-2, 3-3.') acSonetPathPLMExpectedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathPLMExpectedValue.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMExpectedValue.setDescription('The expected Path Payload Label that is to be received. See GR-253 Tables 3-2, 3-3.') acSonetPathPLMReceivedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathPLMReceivedValue.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMReceivedValue.setDescription('The contents of the Path Payload Label that is received. See GR-253 Tables 3-2, 3-3.') acSonetPathPLMMismatchFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 9), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathPLMMismatchFailure.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMMismatchFailure.setDescription('Mismatch failure declared for the Path Payload Label.') acSonetPathPLMUnequipped = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 10), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathPLMUnequipped.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMUnequipped.setDescription('Unequipped failure declared for the Path Payload Label.') acSonetFarEndPath15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1), ) if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalTable.setDescription('The SONET/SDH FarEndPath 15Minute Interval table.') acSonetFarEndPath15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPath15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPath15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPath15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPath15MinuteIntervalPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPath15MinuteIntervalNumber")) if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH FarEndPath 15Minute Interval table.') acSonetFarEndPath15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndPath15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalSlot.setDescription('The physical slot number of the port.') acSonetFarEndPath15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalPort.setDescription('The physical port number of the port.') acSonetFarEndPath15MinuteIntervalPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalPath.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalPath.setDescription('The STS Path for which the set of statistics is available.') acSonetFarEndPath15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') acSonetFarEndPath15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 6), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this far end 15 minute interval is valid.') acSonetFarEndPath15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 7), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for far end 15 minute interval.') acSonetFarEndPath15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') acSonetFarEndPath15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') acSonetFarEndPath15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') acSonetFarEndPath15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a FarEndPath in the current 15 minute interval.') acSonetFarEndPathDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2), ) if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalTable.setDescription('The SONET/SDH FarEndPath Day Interval table.') acSonetFarEndPathDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathDayIntervalPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathDayIntervalNumber")) if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalEntry.setDescription('An entry in the SONET/SDH FarEndPath Day Interval table.') acSonetFarEndPathDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndPathDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalSlot.setDescription('The physical slot number of the port.') acSonetFarEndPathDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalPort.setDescription('The physical port number of the port.') acSonetFarEndPathDayIntervalPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalPath.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalPath.setDescription('The STS Path for which the set of statistics is available.') acSonetFarEndPathDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') acSonetFarEndPathDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 6), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalValidStats.setDescription('This variable indicates if the data for this far end day interval is valid.') acSonetFarEndPathDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 7), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalResetStats.setDescription('This flag is used to reset the data for far end day interval.') acSonetFarEndPathDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') acSonetFarEndPathDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') acSonetFarEndPathDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') acSonetFarEndPathDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a FarEndPath in the current 15 minute interval.') acSonetFarEndPathThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3), ) if mibBuilder.loadTexts: acSonetFarEndPathThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdTable.setDescription('The SONET/SDH FarEndPath Threshold Table.') acSonetFarEndPathThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathThresholdPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathThresholdSelectionNum")) if mibBuilder.loadTexts: acSonetFarEndPathThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdEntry.setDescription('An entry in the SONET/SDH FarEndPath Threshold Table.') acSonetFarEndPathThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndPathThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdSlot.setDescription('The physical slot number of the port.') acSonetFarEndPathThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdPort.setDescription('The physical port number of the port.') acSonetFarEndPathThresholdPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathThresholdPath.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdPath.setDescription('The STS Path for which the set of statistics is available.') acSonetFarEndPathThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') acSonetFarEndPathThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 6), AcAdminStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndPathThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetFarEndPathThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') acSonetFarEndPathThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndPathThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdESs.setDescription('The threshold associated with Errored Seconds.') acSonetFarEndPathThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndPathThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') acSonetFarEndPathThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndPathThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdCVs.setDescription('The threshold associated with Coding Violations.') acSonetFarEndPathThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndPathThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.') acSonetVT15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1), ) if mibBuilder.loadTexts: acSonetVT15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalTable.setDescription('The SONET/SDH VT 15Minute Interval table.') acSonetVT15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVT15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVT15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVT15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVT15MinuteIntervalVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVT15MinuteIntervalNumber")) if mibBuilder.loadTexts: acSonetVT15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH VT 15Minute Interval table.') acSonetVT15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetVT15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalSlot.setDescription('The physical slot number of the port.') acSonetVT15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalPort.setDescription('The physical port number of the port.') acSonetVT15MinuteIntervalVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalVT.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalVT.setDescription('The VT for which the set of statistics is available.') acSonetVT15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') acSonetVT15MinuteIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 192))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetVTCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects and failures simultaneously. The acSonetVTNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetVTNoDefect 2 acSonetVTLOP 4 acSonetVTPathAIS 8 acSonetVTPathRDI 16 acSonetVTPathRFI 32 acSonetVTUnequipped 64 acSonetVTPayloadLabelMismatch') acSonetVT15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 8), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this VT 15 minute interval is valid.') acSonetVT15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 9), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for this VT 15 minute interval.') acSonetVT15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH VT in the current 15 minute interval.') acSonetVT15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH VT in the current 15 minute interval.') acSonetVT15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 12), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH VT in the current 15 minute interval.') acSonetVT15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 13), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a VT in the current 15 minute interval.') acSonetVT15MinuteIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 14), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalBER.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalBER.setDescription('The counter associated with the BER encountered by a VT in the current 15 minute interval. Represents the max BER for the interval when number > 1.') acSonetVTDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2), ) if mibBuilder.loadTexts: acSonetVTDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalTable.setDescription('The SONET/SDH VT Day Interval table.') acSonetVTDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVTDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTDayIntervalVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTDayIntervalNumber")) if mibBuilder.loadTexts: acSonetVTDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalEntry.setDescription('An entry in the SONET/SDH VT Day Interval table.') acSonetVTDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetVTDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalSlot.setDescription('The physical slot number of the port.') acSonetVTDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalPort.setDescription('The physical port number of the port.') acSonetVTDayIntervalVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTDayIntervalVT.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalVT.setDescription('The VT for which the set of statistics is available.') acSonetVTDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') acSonetVTDayIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 192))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTDayIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetVTCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects and failures simultaneously. The acSonetVTNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetVTNoDefect 2 acSonetVTLOP 4 acSonetVTPathAIS 8 acSonetVTPathRDI 16 acSonetVTPathRFI 32 acSonetVTUnequipped 64 acSonetVTPayloadLabelMismatch') acSonetVTDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 7), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalValidStats.setDescription('This variable indicates if the data for this VT Day interval is valid.') acSonetVTDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 8), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalResetStats.setDescription('This flag is used to reset the data for this VT Day interval.') acSonetVTDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH VT in the last day interval.') acSonetVTDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH VT in the last day interval.') acSonetVTDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH VT in the last day interval.') acSonetVTDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 12), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a VT in the last day interval.') acSonetVTDayIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 13), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTDayIntervalBER.setStatus('deprecated') if mibBuilder.loadTexts: acSonetVTDayIntervalBER.setDescription('The counter associated with the max BER encountered by a VT in a day.') acSonetVTThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3), ) if mibBuilder.loadTexts: acSonetVTThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdTable.setDescription('The SONET/SDH VT Threshold Table.') acSonetVTThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVTThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTThresholdVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTThresholdSelectionNum")) if mibBuilder.loadTexts: acSonetVTThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdEntry.setDescription('An entry in the SONET/SDH VT Threshold Table.') acSonetVTThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetVTThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdSlot.setDescription('The physical slot number of the port.') acSonetVTThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdPort.setDescription('The physical port number of the port.') acSonetVTThresholdVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTThresholdVT.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdVT.setDescription('The VT for which the set of statistics is available.') acSonetVTThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') acSonetVTThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 6), AcAdminStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetVTThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') acSonetVTThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdESs.setDescription('The threshold associated with Errored Seconds.') acSonetVTThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') acSonetVTThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdCVs.setDescription('The threshold associated with Coding Violations.') acSonetVTThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.') acSonetVTRDITable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4), ) if mibBuilder.loadTexts: acSonetVTRDITable.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDITable.setDescription('The SONET/SDH VT RDI Table.') acSonetVTRDIEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVTRDINodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTRDISlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTRDIPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTRDIVT")) if mibBuilder.loadTexts: acSonetVTRDIEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDIEntry.setDescription('An entry in the SONET/SDH VT RDI Table.') acSonetVTRDINodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTRDINodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDINodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetVTRDISlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTRDISlot.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDISlot.setDescription('The physical slot number of the port.') acSonetVTRDIPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTRDIPort.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDIPort.setDescription('The physical port number of the port.') acSonetVTRDIVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTRDIVT.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDIVT.setDescription('The Virtual Tributary (VT) instance.') acSonetVTRDIOpMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("rdi", 1), ("erdi", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTRDIOpMode.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDIOpMode.setDescription('The Remote Defect Indiction signals have undergone a number of changes over the years, and now encompass two or even three different versions. See GR-253 6.2.1.3.3 for more information.') acSonetVTPLMTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5), ) if mibBuilder.loadTexts: acSonetVTPLMTable.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMTable.setDescription('The SONET/SDH VT Payload Label Mismatch Table.') acSonetVTPLMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVTPLMNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTPLMSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTPLMPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTPLMVT")) if mibBuilder.loadTexts: acSonetVTPLMEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMEntry.setDescription('An entry in the SONET/SDH VT Payload Label Mismatch Table.') acSonetVTPLMNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTPLMNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetVTPLMSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTPLMSlot.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMSlot.setDescription('The physical slot number of the port.') acSonetVTPLMPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTPLMPort.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMPort.setDescription('The physical port number of the port.') acSonetVTPLMVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTPLMVT.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMVT.setDescription('The Virtual Tributary (VT) instance.') acSonetVTPLMDetectEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTPLMDetectEnable.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMDetectEnable.setDescription('Enables the detection of the VT Payload Label.') acSonetVTPLMTransmitedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTPLMTransmitedValue.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMTransmitedValue.setDescription('The VT Payload Label that gets sent to the destination. See GR-253 Tables 3-4.') acSonetVTPLMExpectedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTPLMExpectedValue.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMExpectedValue.setDescription('The expected VT Payload Label that is to be received. See GR-253 Tables 3-4.') acSonetVTPLMReceivedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTPLMReceivedValue.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMReceivedValue.setDescription('The contents of the VT Payload Label that is received. See GR-253 Tables 3-4.') acSonetVTPLMMismatchFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 9), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTPLMMismatchFailure.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMMismatchFailure.setDescription('Mismatch failure declared for the VT Payload Label.') acSonetVTPLMUnequipped = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 10), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTPLMUnequipped.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMUnequipped.setDescription('Unequipped failure declared for the VT Payload Label.') acSonetFarEndVT15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1), ) if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalTable.setDescription('The SONET/SDH FarEndVT 15Minute Interval table.') acSonetFarEndVT15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVT15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVT15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVT15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVT15MinuteIntervalVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVT15MinuteIntervalNumber")) if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH FarEndVT 15Minute Interval table.') acSonetFarEndVT15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndVT15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalSlot.setDescription('The physical slot number of the port.') acSonetFarEndVT15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalPort.setDescription('The physical port number of the port.') acSonetFarEndVT15MinuteIntervalVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalVT.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalVT.setDescription('The VT for which the set of statistics is available.') acSonetFarEndVT15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') acSonetFarEndVT15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 6), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this VT FE 15 minute interval is valid.') acSonetFarEndVT15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 7), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for this VT FE 15 minute interval.') acSonetFarEndVT15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') acSonetFarEndVT15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') acSonetFarEndVT15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') acSonetFarEndVT15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a FarEndVT in the current 15 minute interval.') acSonetFarEndVTDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2), ) if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalTable.setDescription('The SONET/SDH FarEndVT Day Interval table.') acSonetFarEndVTDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTDayIntervalVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTDayIntervalNumber")) if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalEntry.setDescription('An entry in the SONET/SDH FarEndVT Day Interval table.') acSonetFarEndVTDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndVTDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalSlot.setDescription('The physical slot number of the port.') acSonetFarEndVTDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalPort.setDescription('The physical port number of the port.') acSonetFarEndVTDayIntervalVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalVT.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalVT.setDescription('The VT for which the set of statistics is available.') acSonetFarEndVTDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') acSonetFarEndVTDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 6), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalValidStats.setDescription('This variable indicates if the data for this VT Day interval is valid.') acSonetFarEndVTDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 7), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalResetStats.setDescription('This flag is used to reset the data for this VT Day interval.') acSonetFarEndVTDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') acSonetFarEndVTDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') acSonetFarEndVTDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') acSonetFarEndVTDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a FarEndVT in the current 15 minute interval.') acSonetFarEndVTThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3), ) if mibBuilder.loadTexts: acSonetFarEndVTThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdTable.setDescription('The SONET/SDH FarEndVT Threshold Table.') acSonetFarEndVTThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTThresholdVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTThresholdSelectionNum")) if mibBuilder.loadTexts: acSonetFarEndVTThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdEntry.setDescription('An entry in the SONET/SDH FarEndVT Threshold Table.') acSonetFarEndVTThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndVTThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdSlot.setDescription('The physical slot number of the port.') acSonetFarEndVTThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdPort.setDescription('The physical port number of the port.') acSonetFarEndVTThresholdVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTThresholdVT.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdVT.setDescription('The VT for which the set of statistics is available.') acSonetFarEndVTThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') acSonetFarEndVTThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 6), AcAdminStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndVTThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetFarEndVTThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') acSonetFarEndVTThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndVTThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdESs.setDescription('The threshold associated with Errored Seconds.') acSonetFarEndVTThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndVTThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') acSonetFarEndVTThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndVTThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdCVs.setDescription('The threshold associated with Coding Violations.') acSonetFarEndVTThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndVTThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.') acSonetPortProtectionTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4), ) if mibBuilder.loadTexts: acSonetPortProtectionTable.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionTable.setDescription('The SONET/SDH Port Protection table.') acSonetPortProtectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPortProtectionNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPortProtectionSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPortProtectionPort")) if mibBuilder.loadTexts: acSonetPortProtectionEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionEntry.setDescription('An entry in the SONET/SDH Port Protection table.') acSonetPortProtectionNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPortProtectionNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPortProtectionSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPortProtectionSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionSlot.setDescription('The physical slot number of the port.') acSonetPortProtectionPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPortProtectionPort.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionPort.setDescription('The physical port number of the port.') acSonetPortProtectionType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("working", 1), ("protection", 2), ("west", 3), ("east", 4), ("match", 5), ("ring", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPortProtectionType.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionType.setDescription('This variable statically defines the purpose of the physical port connection as the working or protection port. It does not convey whether the system has undergone a protection switch.') acSonetLineProtectionTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4), ) if mibBuilder.loadTexts: acSonetLineProtectionTable.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionTable.setDescription('The SONET/SDH Line Protection table.') acSonetLineProtectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetLineProtectionNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineProtectionSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineProtectionPort")) if mibBuilder.loadTexts: acSonetLineProtectionEntry.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionEntry.setDescription('An entry in the SONET/SDH Line Protection table.') acSonetLineProtectionNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineProtectionNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetLineProtectionSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineProtectionSlot.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionSlot.setDescription('The physical slot number of the port.') acSonetLineProtectionPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineProtectionPort.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionPort.setDescription('The physical port number of the port.') acSonetLineProtectionArchitecture = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("one-plus-one", 2), ("one-to-one", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineProtectionArchitecture.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionArchitecture.setDescription('This variable defines the APS architecture as either 1+1 or 1:1.') acSonetLineProtectionOpMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("unidirectional", 1), ("bidirectional", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineProtectionOpMode.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionOpMode.setDescription('This variable defines the APS mode as either unidirectional or bidirectional.') acSonetLineProtectionSwitchType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("revertive", 1), ("nonrevertive", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineProtectionSwitchType.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionSwitchType.setDescription('This variable defines the APS switch type as either revertive or nonrevertive.') acSonetLineProtectionSFThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 5)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineProtectionSFThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionSFThreshold.setDescription('The threshold associated with Signal Fail (SF). This value determines the BER level for protection switching.') acSonetLineProtectionSDThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 9)).clone(6)).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineProtectionSDThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionSDThreshold.setDescription('The threshold associated with Signal Degrade (SD). This value determines the BER level for protection switching.') acSonetLineProtectionActiveTraffic = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 9), TruthValue().clone('false')).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineProtectionActiveTraffic.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionActiveTraffic.setDescription('This variable indicates when active traffic is on this line.') acSonetLineProtectionProtectionSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 10), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineProtectionProtectionSwitch.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionProtectionSwitch.setDescription('This variable indicates when a protection switch is currently affecting this line.') acSonetLineProtectionFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 11), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineProtectionFail.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionFail.setDescription('This variable indicates when a protection switching failure has taken place. See GR-253, 6.2.1.1.6.') acSonetLineProtectionChannelMismatchFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 12), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineProtectionChannelMismatchFail.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionChannelMismatchFail.setDescription('This variable indicates when a protection switching channel mismatch failure has taken place. See GR-253, 6.2.1.1.6.') acSonetLineProtectionModeMismatchFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 13), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineProtectionModeMismatchFail.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionModeMismatchFail.setDescription('This variable indicates when a protection switching mode mismatch failure has taken place. See GR-253, 6.2.1.1.6.') acSonetLineProtectionFarEndLineFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 14), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineProtectionFarEndLineFail.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionFarEndLineFail.setDescription('This variable indicates when a protection switching far-end protection-line failure has taken place. See GR-253, 6.2.1.1.6.') acSonetLineProtectionWTRTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(300, 720))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineProtectionWTRTime.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionWTRTime.setDescription('This variable defines the APS Wait To Restore time. The time has one second granularity and may have a value in the range from 300 seconds (5 minutes) to 720 seconds (12 minutes).') acSonetLineProtectionManCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("clear", 1), ("lockout-protection", 2), ("force-working", 3), ("force-protection", 4), ("manual-working", 5), ("manual-protection", 6), ("exercise", 7), ("lockout-working", 8), ("clear-lockout-working", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineProtectionManCommand.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionManCommand.setDescription('This variable defines the APS manually initiated commands.') acSonetPathProtectionTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7), ) if mibBuilder.loadTexts: acSonetPathProtectionTable.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionTable.setDescription('The SONET/SDH Path Protection table.') acSonetPathProtectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathProtectionNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathProtectionSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathProtectionPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathProtectionPath")) if mibBuilder.loadTexts: acSonetPathProtectionEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionEntry.setDescription('An entry in the SONET/SDH Path Protection table.') acSonetPathProtectionNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathProtectionNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPathProtectionSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathProtectionSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionSlot.setDescription('The physical slot number of the port.') acSonetPathProtectionPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathProtectionPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionPort.setDescription('The physical port number of the port.') acSonetPathProtectionPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathProtectionPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionPath.setDescription('The STS-1 path for the port.') acSonetPathProtectionSwitchType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("revertive", 1), ("nonrevertive", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionSwitchType.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionSwitchType.setDescription('This variable defines the path switch type as either revertive or nonrevertive.') acSonetPathProtectionSFThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 5)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionSFThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionSFThreshold.setDescription('The threshold associated with Signal Fail (SF). This value determines the BER level for protection switching. The value used is the exponent to a power of 10, so 3 means 10E-3.') acSonetPathProtectionSDThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 9)).clone(6)).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionSDThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionSDThreshold.setDescription('The threshold associated with Signal Degrade (SD). This value determines the BER level for protection switching. The value used is the exponent to a power of 10, so 6 means 10E-6.') acSonetPathProtectionActiveTraffic = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 8), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathProtectionActiveTraffic.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionActiveTraffic.setDescription('This variable indicates when ODP or UPSR active traffic is on this path.') acSonetPathProtectionProtectionSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 9), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathProtectionProtectionSwitch.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionProtectionSwitch.setDescription('This variable indicates when either a UPSR or an ODP protection switch is currently affecting this path.') acSonetPathProtectionWTRTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 720))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionWTRTime.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionWTRTime.setDescription('This variable defines the ODP or UPSR Wait To Restore time. The time has one second granularity and may have a value in the range from 1 second to 720 seconds(12 minutes).') acSonetPathProtectionWTITime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 50))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionWTITime.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionWTITime.setDescription('This variable defines the ODP Wait To Idle time. The time has one second granularity and may have a value in the range from 1 to 50 seconds.') acSonetPathProtectionWTCTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 720))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionWTCTime.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionWTCTime.setDescription('This variable defines the ODP Wait To Clear time. The time has one second granularity and may have a value in the range from 1 second to 720 seconds (12 minutes).') acSonetPathProtectionWTRelTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 50))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionWTRelTime.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionWTRelTime.setDescription('This variable defines the ODP Wait To Release time. The time has one second granularity and may have a value in the range from 1 to 50 seconds.') acSonetPathProtectionManSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("clear", 1), ("lockout-protection", 2), ("force-working", 3), ("force-protection", 4), ("manual-working", 5), ("manual-protection", 6), ("exercise", 7), ("lockout-working", 8), ("clear-lockout-working", 9), ("extra-traffic", 10)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionManSwitch.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionManSwitch.setDescription('This variable defines the ODP and UPSR manually initiated commands. Entries 7..10 are used in ODP only.') acSonetPathProtectionSwitchOpStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("idle", 1), ("bridged", 2), ("switched", 3), ("passthrough", 4), ("extra-traffic", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathProtectionSwitchOpStatus.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionSwitchOpStatus.setDescription('This variable defines the current switch condition of an ODP path.') acSonetPathProtectionProtectionMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("odp", 1), ("upsr", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionProtectionMode.setStatus('deprecated') if mibBuilder.loadTexts: acSonetPathProtectionProtectionMode.setDescription(' !! This object *MUST* be set before any other object is accessed. !! This is the type of protection switching to be used if independent path level protection switching is enabled. This is similar to the acTimeSlotPathProtectionMode object that resides in the timeslot table. Refer to it for a description of the enumerations.') acSonetVTProtectionTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6), ) if mibBuilder.loadTexts: acSonetVTProtectionTable.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionTable.setDescription('The SONET/SDH VT Protection table.') acSonetVTProtectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVTProtectionNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTProtectionSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTProtectionPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTProtectionVT")) if mibBuilder.loadTexts: acSonetVTProtectionEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionEntry.setDescription('An entry in the SONET/SDH VT Protection table.') acSonetVTProtectionNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTProtectionNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetVTProtectionSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTProtectionSlot.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionSlot.setDescription('The physical slot number of the port.') acSonetVTProtectionPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTProtectionPort.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionPort.setDescription('The physical port number of the port.') acSonetVTProtectionVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTProtectionVT.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionVT.setDescription('The VT path instance for the port.') acSonetVTProtectionSwitchType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("revertive", 1), ("nonrevertive", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTProtectionSwitchType.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionSwitchType.setDescription('This variable defines the VT path switch type as either revertive or nonrevertive.') acSonetVTProtectionSFThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 5)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTProtectionSFThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionSFThreshold.setDescription('The threshold associated with Signal Fail (SF). This value determines the BER level for protection switching.') acSonetVTProtectionSDThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 8)).clone(6)).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTProtectionSDThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionSDThreshold.setDescription('The threshold associated with Signal Degrade (SD). This value determines the BER level for protection switching.') acSonetVTProtectionProtectionSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 8), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTProtectionProtectionSwitch.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionProtectionSwitch.setDescription('This variable indicates when a protection switch is currently affecting this path.') acSonetVTProtectionWTRTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 720))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTProtectionWTRTime.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionWTRTime.setDescription('This variable defines the UPSR Wait To Restore time. The time has one second granularity and may have a value in the range from 1 second to 720 seconds(12 minutes).') acSonetVTProtectionManSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("clear", 1), ("lockout-protection", 2), ("force-working", 3), ("force-protection", 4), ("manual-working", 5), ("manual-protection", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTProtectionManSwitch.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionManSwitch.setDescription('This variable defines the UPSR manually initiated commands.') acSonetVTProtectionActiveTraffic = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 11), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTProtectionActiveTraffic.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionActiveTraffic.setDescription('This variable indicates when UPSR active traffic is on this path.') mibBuilder.exportSymbols("APPIAN-PPORT-SONET-MIB", acSonetPathTIMFormat=acSonetPathTIMFormat, acSonetFarEndVTThresholdPort=acSonetFarEndVTThresholdPort, acSonetPathProtectionProtectionMode=acSonetPathProtectionProtectionMode, acSonetSectionSSMEntry=acSonetSectionSSMEntry, acSonetPathProtectionSlot=acSonetPathProtectionSlot, acSonetFarEndPathDayIntervalValidStats=acSonetFarEndPathDayIntervalValidStats, acSonetVTDayIntervalVT=acSonetVTDayIntervalVT, acSonetFarEndVT15MinuteIntervalPort=acSonetFarEndVT15MinuteIntervalPort, acSonetSection15MinuteIntervalPort=acSonetSection15MinuteIntervalPort, acSonetPortValidIntervals=acSonetPortValidIntervals, acSonetFarEndPath15MinuteIntervalNodeId=acSonetFarEndPath15MinuteIntervalNodeId, acSonetVT15MinuteIntervalSESs=acSonetVT15MinuteIntervalSESs, acSonetPath15MinuteIntervalESs=acSonetPath15MinuteIntervalESs, acSonetSectionSSMNodeId=acSonetSectionSSMNodeId, acSonetLine15MinuteIntervalUASs=acSonetLine15MinuteIntervalUASs, acSonetSection=acSonetSection, acSonetPath=acSonetPath, acSonetPathThresholdNodeId=acSonetPathThresholdNodeId, acSonetPathDayIntervalUASs=acSonetPathDayIntervalUASs, acSonetPortOpStatus=acSonetPortOpStatus, acSonetPath15MinuteIntervalSlot=acSonetPath15MinuteIntervalSlot, acSonetVTRDIVT=acSonetVTRDIVT, acSonetVTThresholdSlot=acSonetVTThresholdSlot, acSonetVTThresholdSelectionNum=acSonetVTThresholdSelectionNum, acSonetPortNodeId=acSonetPortNodeId, acSonetPathDayIntervalBER=acSonetPathDayIntervalBER, acSonetPathTIMSlot=acSonetPathTIMSlot, acSonetFarEndPathThresholdCVs=acSonetFarEndPathThresholdCVs, acSonetFarEndVTDayIntervalVT=acSonetFarEndVTDayIntervalVT, acSonetPortProtectionEntry=acSonetPortProtectionEntry, acSonetFarEndVT15MinuteIntervalSlot=acSonetFarEndVT15MinuteIntervalSlot, acSonetPathThresholdUASs=acSonetPathThresholdUASs, acSonetVT15MinuteIntervalNodeId=acSonetVT15MinuteIntervalNodeId, acSonetVTDayIntervalNodeId=acSonetVTDayIntervalNodeId, acSonetVTProtectionEntry=acSonetVTProtectionEntry, acSonetVTDayIntervalSlot=acSonetVTDayIntervalSlot, acSonetVTProtectionSlot=acSonetVTProtectionSlot, acSonetFarEndPathDayIntervalPath=acSonetFarEndPathDayIntervalPath, acSonetVTPLMExpectedValue=acSonetVTPLMExpectedValue, acSonetFarEndVTThresholdSelectionNum=acSonetFarEndVTThresholdSelectionNum, acSonetPortProtectionType=acSonetPortProtectionType, acSonetLineProtectionManCommand=acSonetLineProtectionManCommand, acSonetFarEndLine15MinuteIntervalESs=acSonetFarEndLine15MinuteIntervalESs, acSonetFarEndVTDayIntervalNumber=acSonetFarEndVTDayIntervalNumber, acSonetPathTIMDetectEnable=acSonetPathTIMDetectEnable, acSonetVTProtectionActiveTraffic=acSonetVTProtectionActiveTraffic, acSonetVTRDIPort=acSonetVTRDIPort, acSonetPath15MinuteIntervalResetStats=acSonetPath15MinuteIntervalResetStats, acSonetThresholdSlot=acSonetThresholdSlot, acSonetPath15MinuteIntervalUASs=acSonetPath15MinuteIntervalUASs, acSonetSectionDayIntervalESs=acSonetSectionDayIntervalESs, acSonetFarEndVTThresholdSESs=acSonetFarEndVTThresholdSESs, acSonetLineDayIntervalSESs=acSonetLineDayIntervalSESs, acSonetLineProtectionOpMode=acSonetLineProtectionOpMode, acSonetVT15MinuteIntervalStatus=acSonetVT15MinuteIntervalStatus, acSonetFarEndVTDayIntervalValidStats=acSonetFarEndVTDayIntervalValidStats, acSonetFarEndVTDayIntervalCVs=acSonetFarEndVTDayIntervalCVs, acSonetDCCSlot=acSonetDCCSlot, acSonetFarEndLineThresholdESs=acSonetFarEndLineThresholdESs, acSonetVTThresholdEntry=acSonetVTThresholdEntry, acSonetLineDayIntervalUASs=acSonetLineDayIntervalUASs, acSonetPathRDIOpMode=acSonetPathRDIOpMode, acSonetPathProtectionWTRelTime=acSonetPathProtectionWTRelTime, acSonetPathTIMNodeId=acSonetPathTIMNodeId, acSonetVTDayIntervalTable=acSonetVTDayIntervalTable, acSonetPathPLMEntry=acSonetPathPLMEntry, acSonetPathThresholdCVs=acSonetPathThresholdCVs, acSonetFarEndPathDayIntervalResetStats=acSonetFarEndPathDayIntervalResetStats, acSonetPathProtectionPath=acSonetPathProtectionPath, acSonetFarEndVTDayIntervalSlot=acSonetFarEndVTDayIntervalSlot, acSonetVT15MinuteIntervalNumber=acSonetVT15MinuteIntervalNumber, acSonetFarEndLineDayIntervalUASs=acSonetFarEndLineDayIntervalUASs, acSonetLineThresholdCVs=acSonetLineThresholdCVs, acSonetVTDayIntervalBER=acSonetVTDayIntervalBER, acSonetFarEndVTDayIntervalResetStats=acSonetFarEndVTDayIntervalResetStats, acSonetLineProtectionModeMismatchFail=acSonetLineProtectionModeMismatchFail, acSonetFarEndLineThresholdPort=acSonetFarEndLineThresholdPort, acSonetFarEndLineDayIntervalCVs=acSonetFarEndLineDayIntervalCVs, acSonetPathDayIntervalCVs=acSonetPathDayIntervalCVs, acSonetPathDayIntervalEntry=acSonetPathDayIntervalEntry, acSonetFarEndVTDayIntervalUASs=acSonetFarEndVTDayIntervalUASs, acSonetFarEndPathDayIntervalSESs=acSonetFarEndPathDayIntervalSESs, acSonetPortOpCode=acSonetPortOpCode, acSonetVTProtectionSwitchType=acSonetVTProtectionSwitchType, acSonetFarEndLineDayIntervalESs=acSonetFarEndLineDayIntervalESs, acSonetFarEndVT15MinuteIntervalUASs=acSonetFarEndVT15MinuteIntervalUASs, acSonetPathDayIntervalStatus=acSonetPathDayIntervalStatus, acSonetFarEndPath15MinuteIntervalSESs=acSonetFarEndPath15MinuteIntervalSESs, acSonetVT15MinuteIntervalSlot=acSonetVT15MinuteIntervalSlot, acSonetPathTIMReceivedString=acSonetPathTIMReceivedString, acSonetLine=acSonetLine, acSonetFarEndVTDayIntervalPort=acSonetFarEndVTDayIntervalPort, acSonetVTRDITable=acSonetVTRDITable, acSonetFarEndLine15MinuteIntervalEntry=acSonetFarEndLine15MinuteIntervalEntry, acSonetPathProtectionWTCTime=acSonetPathProtectionWTCTime, acSonetFarEndPath15MinuteIntervalPath=acSonetFarEndPath15MinuteIntervalPath, acSonetFarEndVTThresholdCVs=acSonetFarEndVTThresholdCVs, acSonetSection15MinuteIntervalTable=acSonetSection15MinuteIntervalTable, acSonetPathProtectionTable=acSonetPathProtectionTable, acSonetLineProtectionChannelMismatchFail=acSonetLineProtectionChannelMismatchFail, acSonetVTThresholdUASs=acSonetVTThresholdUASs, acSonetVTDayIntervalCVs=acSonetVTDayIntervalCVs, acSonetPathPLMMismatchFailure=acSonetPathPLMMismatchFailure, acSonetFarEndLine15MinuteIntervalSlot=acSonetFarEndLine15MinuteIntervalSlot, acSonetFarEndVTThresholdUASs=acSonetFarEndVTThresholdUASs, acSonetLineProtectionTable=acSonetLineProtectionTable, acSonetPortEntry=acSonetPortEntry, acSonetFarEndLineThresholdEntry=acSonetFarEndLineThresholdEntry, acSonetLineDayIntervalCVs=acSonetLineDayIntervalCVs, acSonetSection15MinuteIntervalResetStats=acSonetSection15MinuteIntervalResetStats, acSonetVTThresholdPort=acSonetVTThresholdPort, acSonetVTProtectionSFThreshold=acSonetVTProtectionSFThreshold, acSonetDCCAppianEnable=acSonetDCCAppianEnable, acSonetSectionDayIntervalNumber=acSonetSectionDayIntervalNumber, acSonetLineDayIntervalNodeId=acSonetLineDayIntervalNodeId, acSonetVTProtectionNodeId=acSonetVTProtectionNodeId, acSonetFarEndPathDayIntervalUASs=acSonetFarEndPathDayIntervalUASs, acSonetFarEndVTDayIntervalSESs=acSonetFarEndVTDayIntervalSESs, acSonetLineThresholdPort=acSonetLineThresholdPort, acSonetPortRingName=acSonetPortRingName, acSonetSectionThresholdTable=acSonetSectionThresholdTable, acSonetPathThresholdPort=acSonetPathThresholdPort, acSonetLine15MinuteIntervalPort=acSonetLine15MinuteIntervalPort, acSonetSectionTIMSlot=acSonetSectionTIMSlot, acSonetFarEndLine15MinuteIntervalPort=acSonetFarEndLine15MinuteIntervalPort, acSonetVT15MinuteIntervalEntry=acSonetVT15MinuteIntervalEntry, acSonetFarEndLine=acSonetFarEndLine, acSonetLineThresholdNodeId=acSonetLineThresholdNodeId, acSonetVTProtectionManSwitch=acSonetVTProtectionManSwitch, acSonetFarEndVT=acSonetFarEndVT, acSonetSectionTIMDetectEnable=acSonetSectionTIMDetectEnable, acSonetPortProtectionNodeId=acSonetPortProtectionNodeId, acSonetPathProtectionActiveTraffic=acSonetPathProtectionActiveTraffic, acSonetPortResetAllPMregs=acSonetPortResetAllPMregs, acSonetPortConnectionType=acSonetPortConnectionType, acSonetVTDayIntervalResetStats=acSonetVTDayIntervalResetStats, acSonetFarEndPathThresholdEntry=acSonetFarEndPathThresholdEntry, acSonetLine15MinuteIntervalBER=acSonetLine15MinuteIntervalBER, acSonetDCCSectionEnable=acSonetDCCSectionEnable, acSonetFarEndPathThresholdUASs=acSonetFarEndPathThresholdUASs, acSonetPathTIMTable=acSonetPathTIMTable, acSonetVTPLMVT=acSonetVTPLMVT, acSonetPathDayIntervalPort=acSonetPathDayIntervalPort, acSonetSectionSSMReceivedValue=acSonetSectionSSMReceivedValue, acSonetFarEndLineThresholdSlot=acSonetFarEndLineThresholdSlot, acSonetSectionDayIntervalResetStats=acSonetSectionDayIntervalResetStats, acSonetVTProtectionPort=acSonetVTProtectionPort, acSonetLineDayIntervalPort=acSonetLineDayIntervalPort, acSonetLineDayIntervalTable=acSonetLineDayIntervalTable, acSonetFarEndVTThresholdEntry=acSonetFarEndVTThresholdEntry, acSonetPathThresholdSlot=acSonetPathThresholdSlot, acSonetPath15MinuteIntervalStatus=acSonetPath15MinuteIntervalStatus, acSonetFarEndPath15MinuteIntervalNumber=acSonetFarEndPath15MinuteIntervalNumber, acSonetPortProtectionPort=acSonetPortProtectionPort, acSonetVTPLMTable=acSonetVTPLMTable, acSonetFarEndLine15MinuteIntervalTable=acSonetFarEndLine15MinuteIntervalTable, acSonetFarEndPath=acSonetFarEndPath, acSonetPathThresholdTable=acSonetPathThresholdTable, acSonetFarEndVT15MinuteIntervalValidStats=acSonetFarEndVT15MinuteIntervalValidStats, acSonetFarEndPathDayIntervalTable=acSonetFarEndPathDayIntervalTable, acSonetSectionDayIntervalTable=acSonetSectionDayIntervalTable, acSonetDCCPort=acSonetDCCPort, acSonetSectionTIMExpectedString=acSonetSectionTIMExpectedString, acSonetSectionTIMFailure=acSonetSectionTIMFailure, acSonetSectionSSMDetectEnable=acSonetSectionSSMDetectEnable, acSonetDCCAppianFail=acSonetDCCAppianFail, acSonetLineProtectionSwitchType=acSonetLineProtectionSwitchType, acSonetPathDayIntervalTable=acSonetPathDayIntervalTable, acSonetFarEndPath15MinuteIntervalResetStats=acSonetFarEndPath15MinuteIntervalResetStats, acSonetPathTIMEntry=acSonetPathTIMEntry, acSonetVTDayIntervalPort=acSonetVTDayIntervalPort, acSonetLineDayIntervalValidStats=acSonetLineDayIntervalValidStats, acSonetFarEndLineDayIntervalEntry=acSonetFarEndLineDayIntervalEntry, acSonetLineProtectionNodeId=acSonetLineProtectionNodeId, acSonetSection15MinuteIntervalNodeId=acSonetSection15MinuteIntervalNodeId, acSonetPathDayIntervalPath=acSonetPathDayIntervalPath, acSonetSectionTIMReceivedString=acSonetSectionTIMReceivedString, acSonetPathProtectionWTRTime=acSonetPathProtectionWTRTime, acSonetFarEndLine15MinuteIntervalResetStats=acSonetFarEndLine15MinuteIntervalResetStats, acSonetFarEndLineThresholdUASs=acSonetFarEndLineThresholdUASs, acSonetFarEndLine15MinuteIntervalSESs=acSonetFarEndLine15MinuteIntervalSESs, acSonetFarEndLineDayIntervalNodeId=acSonetFarEndLineDayIntervalNodeId, acSonetFarEndVT15MinuteIntervalResetStats=acSonetFarEndVT15MinuteIntervalResetStats, acSonetSection15MinuteIntervalCVs=acSonetSection15MinuteIntervalCVs, acSonetLineDayIntervalStatus=acSonetLineDayIntervalStatus, acSonetLine15MinuteIntervalESs=acSonetLine15MinuteIntervalESs, acSonetPathThresholdSelectionNum=acSonetPathThresholdSelectionNum, acSonetPathRDINodeId=acSonetPathRDINodeId, acSonetLineThresholdSelectionNum=acSonetLineThresholdSelectionNum, acSonetFarEndLineThresholdNodeId=acSonetFarEndLineThresholdNodeId, acSonetFarEndLineThresholdSelectionNum=acSonetFarEndLineThresholdSelectionNum, acSonetFarEndVT15MinuteIntervalEntry=acSonetFarEndVT15MinuteIntervalEntry, acSonetPortTimeElapsed=acSonetPortTimeElapsed, acSonetPathRDIPort=acSonetPathRDIPort, acSonetPortAdminStatus=acSonetPortAdminStatus, acSonetSection15MinuteIntervalESs=acSonetSection15MinuteIntervalESs, acSonetSectionDayIntervalEntry=acSonetSectionDayIntervalEntry, acSonetLineProtectionSFThreshold=acSonetLineProtectionSFThreshold, acSonetLineDayIntervalResetStats=acSonetLineDayIntervalResetStats, acSonetLineProtectionProtectionSwitch=acSonetLineProtectionProtectionSwitch, acSonetVT15MinuteIntervalUASs=acSonetVT15MinuteIntervalUASs, acSonetLine15MinuteIntervalSlot=acSonetLine15MinuteIntervalSlot, acSonetLine15MinuteIntervalTable=acSonetLine15MinuteIntervalTable, acSonetSectionSSMSlot=acSonetSectionSSMSlot, acSonetLine15MinuteIntervalCVs=acSonetLine15MinuteIntervalCVs, acSonetLineThresholdSESs=acSonetLineThresholdSESs, acSonetPathProtectionNodeId=acSonetPathProtectionNodeId, acSonetDCCTable=acSonetDCCTable, acSonetPath15MinuteIntervalCVs=acSonetPath15MinuteIntervalCVs, acSonetFarEndVTThresholdNodeId=acSonetFarEndVTThresholdNodeId, acSonetVTPLMUnequipped=acSonetVTPLMUnequipped, acSonetPortTransmitterEnable=acSonetPortTransmitterEnable, acSonetLineDayIntervalEntry=acSonetLineDayIntervalEntry, acSonetVT15MinuteIntervalResetStats=acSonetVT15MinuteIntervalResetStats, acSonetPathProtectionProtectionSwitch=acSonetPathProtectionProtectionSwitch, acSonetPortRingIdentifier=acSonetPortRingIdentifier, acSonetFarEndPathThresholdSESs=acSonetFarEndPathThresholdSESs, acSonetPathThresholdEntry=acSonetPathThresholdEntry, acSonetPathProtectionSwitchType=acSonetPathProtectionSwitchType, acSonetFarEndPathThresholdPort=acSonetFarEndPathThresholdPort, acSonetSectionTIMTable=acSonetSectionTIMTable, acSonetFarEndPathDayIntervalEntry=acSonetFarEndPathDayIntervalEntry, acSonetLineDayIntervalBER=acSonetLineDayIntervalBER, acSonetFarEndLine15MinuteIntervalNodeId=acSonetFarEndLine15MinuteIntervalNodeId, acSonetSectionThresholdSESs=acSonetSectionThresholdSESs, acSonetPath15MinuteIntervalPath=acSonetPath15MinuteIntervalPath, acSonetSectionDayIntervalPort=acSonetSectionDayIntervalPort, acSonetVTProtectionSDThreshold=acSonetVTProtectionSDThreshold, acSonetSectionThresholdCVs=acSonetSectionThresholdCVs, acSonetLineThresholdTable=acSonetLineThresholdTable, acSonetSectionTIMFormat=acSonetSectionTIMFormat, acSonetFarEndLineThresholdAdminStatus=acSonetFarEndLineThresholdAdminStatus, acSonetPathTIMGenerateEnable=acSonetPathTIMGenerateEnable, acSonetFarEndLineDayIntervalSESs=acSonetFarEndLineDayIntervalSESs, acSonetFarEndPath15MinuteIntervalEntry=acSonetFarEndPath15MinuteIntervalEntry, acSonetObjectsVT=acSonetObjectsVT, acSonetSectionDayIntervalValidStats=acSonetSectionDayIntervalValidStats, acSonetThresholdPort=acSonetThresholdPort, acSonetLineProtectionSDThreshold=acSonetLineProtectionSDThreshold, acSonetLineProtectionArchitecture=acSonetLineProtectionArchitecture, acSonetFarEndPathDayIntervalESs=acSonetFarEndPathDayIntervalESs, acSonetFarEndLineDayIntervalSlot=acSonetFarEndLineDayIntervalSlot, acSonetPathTIMMismatchZeros=acSonetPathTIMMismatchZeros, acSonetVTPLMMismatchFailure=acSonetVTPLMMismatchFailure, acSonetFarEndPath15MinuteIntervalCVs=acSonetFarEndPath15MinuteIntervalCVs, acSonetSectionDayIntervalSESs=acSonetSectionDayIntervalSESs, acSonetVT15MinuteIntervalCVs=acSonetVT15MinuteIntervalCVs, acSonetPathProtectionManSwitch=acSonetPathProtectionManSwitch, acSonetVTProtectionWTRTime=acSonetVTProtectionWTRTime, acSonetPort=acSonetPort, acSonetPortSlot=acSonetPortSlot, acSonetPathPLMNodeId=acSonetPathPLMNodeId, acSonetFarEndPathDayIntervalNumber=acSonetFarEndPathDayIntervalNumber, acSonetSectionThresholdNodeId=acSonetSectionThresholdNodeId) mibBuilder.exportSymbols("APPIAN-PPORT-SONET-MIB", acSonetSectionDayIntervalCVs=acSonetSectionDayIntervalCVs, acSonetVTDayIntervalStatus=acSonetVTDayIntervalStatus, acSonetLineProtectionFarEndLineFail=acSonetLineProtectionFarEndLineFail, acSonetPathThresholdSESs=acSonetPathThresholdSESs, acSonetSectionDayIntervalSEFSs=acSonetSectionDayIntervalSEFSs, acSonetSectionSSMTable=acSonetSectionSSMTable, acSonetPortMediumType=acSonetPortMediumType, acSonetLineDayIntervalSlot=acSonetLineDayIntervalSlot, acSonetFarEndPath15MinuteIntervalTable=acSonetFarEndPath15MinuteIntervalTable, acSonetLineProtectionEntry=acSonetLineProtectionEntry, acSonetPathProtectionSwitchOpStatus=acSonetPathProtectionSwitchOpStatus, acSonetFarEndVT15MinuteIntervalNumber=acSonetFarEndVT15MinuteIntervalNumber, acSonetSectionThresholdEntry=acSonetSectionThresholdEntry, acSonetFarEndPathDayIntervalPort=acSonetFarEndPathDayIntervalPort, acSonetFarEndLine15MinuteIntervalCVs=acSonetFarEndLine15MinuteIntervalCVs, acSonetPathRDITable=acSonetPathRDITable, acSonetVT15MinuteIntervalPort=acSonetVT15MinuteIntervalPort, acSonetVT15MinuteIntervalTable=acSonetVT15MinuteIntervalTable, acSonetFarEndVT15MinuteIntervalSESs=acSonetFarEndVT15MinuteIntervalSESs, acSonetPortProtectionTable=acSonetPortProtectionTable, acSonetSectionDayIntervalSlot=acSonetSectionDayIntervalSlot, acSonetFarEndPathThresholdAdminStatus=acSonetFarEndPathThresholdAdminStatus, acSonetVTDayIntervalEntry=acSonetVTDayIntervalEntry, acSonetThresholdNodeId=acSonetThresholdNodeId, acSonetSectionSSMPort=acSonetSectionSSMPort, acSonetVTDayIntervalESs=acSonetVTDayIntervalESs, acSonetVTPLMDetectEnable=acSonetVTPLMDetectEnable, AcTraceString=AcTraceString, acSonetLineProtectionFail=acSonetLineProtectionFail, acSonetPathTIMPort=acSonetPathTIMPort, acSonetLine15MinuteIntervalValidStats=acSonetLine15MinuteIntervalValidStats, acSonetVTRDISlot=acSonetVTRDISlot, acSonetVTRDIOpMode=acSonetVTRDIOpMode, acSonetPath15MinuteIntervalValidStats=acSonetPath15MinuteIntervalValidStats, acSonetFarEndVTThresholdESs=acSonetFarEndVTThresholdESs, acSonetSectionDayIntervalStatus=acSonetSectionDayIntervalStatus, acSonetVTPLMReceivedValue=acSonetVTPLMReceivedValue, acSonetPathTIMTransmitedString=acSonetPathTIMTransmitedString, acSonetFarEndLineThresholdCVs=acSonetFarEndLineThresholdCVs, acSonetPath15MinuteIntervalNumber=acSonetPath15MinuteIntervalNumber, acSonetPathProtectionPort=acSonetPathProtectionPort, acSonetFarEndPathDayIntervalCVs=acSonetFarEndPathDayIntervalCVs, acSonetLineThresholdESs=acSonetLineThresholdESs, acSonetPathPLMExpectedValue=acSonetPathPLMExpectedValue, acSonetFarEndPath15MinuteIntervalUASs=acSonetFarEndPath15MinuteIntervalUASs, acSonetVTProtectionTable=acSonetVTProtectionTable, acSonetLineThresholdUASs=acSonetLineThresholdUASs, acSonetSectionThresholdSelectionNum=acSonetSectionThresholdSelectionNum, acSonetPathPLMReceivedValue=acSonetPathPLMReceivedValue, acSonetVTThresholdCVs=acSonetVTThresholdCVs, acSonetPathThresholdESs=acSonetPathThresholdESs, acSonetFarEndVTThresholdAdminStatus=acSonetFarEndVTThresholdAdminStatus, acSonetDCCNodeId=acSonetDCCNodeId, acSonetPathDayIntervalValidStats=acSonetPathDayIntervalValidStats, acSonetSectionDayIntervalNodeId=acSonetSectionDayIntervalNodeId, acSonetVT15MinuteIntervalVT=acSonetVT15MinuteIntervalVT, acSonetPortPort=acSonetPortPort, acSonetLineDayIntervalNumber=acSonetLineDayIntervalNumber, acSonetFarEndLineDayIntervalResetStats=acSonetFarEndLineDayIntervalResetStats, acSonetSectionSSMTransmitedValue=acSonetSectionSSMTransmitedValue, acSonetVTDayIntervalUASs=acSonetVTDayIntervalUASs, acSonetVTRDINodeId=acSonetVTRDINodeId, acSonetPathProtectionSFThreshold=acSonetPathProtectionSFThreshold, acSonetFarEndLineDayIntervalTable=acSonetFarEndLineDayIntervalTable, acSonetLineDayIntervalESs=acSonetLineDayIntervalESs, acSonetPortProtectionSlot=acSonetPortProtectionSlot, acSonetFarEndVTThresholdVT=acSonetFarEndVTThresholdVT, acSonetSection15MinuteIntervalNumber=acSonetSection15MinuteIntervalNumber, acSonetLine15MinuteIntervalSESs=acSonetLine15MinuteIntervalSESs, acSonetVTPLMTransmitedValue=acSonetVTPLMTransmitedValue, acSonetVT15MinuteIntervalBER=acSonetVT15MinuteIntervalBER, acSonetVTPLMNodeId=acSonetVTPLMNodeId, acSonetVTThresholdNodeId=acSonetVTThresholdNodeId, acSonetFarEndVTDayIntervalESs=acSonetFarEndVTDayIntervalESs, acSonetFarEndVTDayIntervalEntry=acSonetFarEndVTDayIntervalEntry, acSonetThresholdTable=acSonetThresholdTable, acSonetFarEndPath15MinuteIntervalESs=acSonetFarEndPath15MinuteIntervalESs, acSonetFarEndPathThresholdSlot=acSonetFarEndPathThresholdSlot, acSonetFarEndLineDayIntervalValidStats=acSonetFarEndLineDayIntervalValidStats, acSonetFarEndPathThresholdSelectionNum=acSonetFarEndPathThresholdSelectionNum, acSonetFarEndVTDayIntervalNodeId=acSonetFarEndVTDayIntervalNodeId, acSonetFarEndLineThresholdSESs=acSonetFarEndLineThresholdSESs, acSonetPortResetCurrentPMregs=acSonetPortResetCurrentPMregs, acSonetSection15MinuteIntervalEntry=acSonetSection15MinuteIntervalEntry, acSonetPortTable=acSonetPortTable, acSonetFarEndPathThresholdPath=acSonetFarEndPathThresholdPath, acSonetVTThresholdSESs=acSonetVTThresholdSESs, acSonetPathRDIPath=acSonetPathRDIPath, acSonetFarEndLineDayIntervalNumber=acSonetFarEndLineDayIntervalNumber, acSonetLineProtectionActiveTraffic=acSonetLineProtectionActiveTraffic, acSonetPathPLMTransmitedValue=acSonetPathPLMTransmitedValue, acSonetLineThresholdEntry=acSonetLineThresholdEntry, acSonetSection15MinuteIntervalSESs=acSonetSection15MinuteIntervalSESs, acSonetLine15MinuteIntervalStatus=acSonetLine15MinuteIntervalStatus, acSonetPathDayIntervalSESs=acSonetPathDayIntervalSESs, acSonet=acSonet, acSonetPathPLMSlot=acSonetPathPLMSlot, acSonetVTProtectionVT=acSonetVTProtectionVT, acSonetFarEndLine15MinuteIntervalNumber=acSonetFarEndLine15MinuteIntervalNumber, acSonetFarEndLine15MinuteIntervalValidStats=acSonetFarEndLine15MinuteIntervalValidStats, acSonetVT15MinuteIntervalValidStats=acSonetVT15MinuteIntervalValidStats, acSonetThresholdSESSet=acSonetThresholdSESSet, acSonetSectionTIMGenerateEnable=acSonetSectionTIMGenerateEnable, acSonetVTDayIntervalSESs=acSonetVTDayIntervalSESs, acSonetLineThresholdSlot=acSonetLineThresholdSlot, acSonetPath15MinuteIntervalBER=acSonetPath15MinuteIntervalBER, PYSNMP_MODULE_ID=acSonet, acSonetPortCircuitIdentifier=acSonetPortCircuitIdentifier, acSonetFarEndVTThresholdSlot=acSonetFarEndVTThresholdSlot, acSonetPathPLMDetectEnable=acSonetPathPLMDetectEnable, acSonetFarEndPathThresholdTable=acSonetFarEndPathThresholdTable, acSonetDCCLineEnable=acSonetDCCLineEnable, acSonetSectionThresholdPort=acSonetSectionThresholdPort, acSonetSectionThresholdSEFSs=acSonetSectionThresholdSEFSs, acSonetPath15MinuteIntervalTable=acSonetPath15MinuteIntervalTable, acSonetVTDayIntervalValidStats=acSonetVTDayIntervalValidStats, acSonetPath15MinuteIntervalNodeId=acSonetPath15MinuteIntervalNodeId, acSonetSectionTIMEntry=acSonetSectionTIMEntry, acSonetPathDayIntervalResetStats=acSonetPathDayIntervalResetStats, acSonetSectionTIMTransmitedString=acSonetSectionTIMTransmitedString, acSonetFarEndLineDayIntervalPort=acSonetFarEndLineDayIntervalPort, acSonetLine15MinuteIntervalNodeId=acSonetLine15MinuteIntervalNodeId, acSonetVTDayIntervalNumber=acSonetVTDayIntervalNumber, acSonetPortInvalidIntervals=acSonetPortInvalidIntervals, acSonetPathProtectionWTITime=acSonetPathProtectionWTITime, acSonetPath15MinuteIntervalEntry=acSonetPath15MinuteIntervalEntry, acSonetPathThresholdAdminStatus=acSonetPathThresholdAdminStatus, acSonetFarEndVT15MinuteIntervalTable=acSonetFarEndVT15MinuteIntervalTable, acSonetSectionThresholdESs=acSonetSectionThresholdESs, acSonetPortMediumLineCoding=acSonetPortMediumLineCoding, acSonetPathPLMTable=acSonetPathPLMTable, acSonetVT15MinuteIntervalESs=acSonetVT15MinuteIntervalESs, acSonetFarEndVT15MinuteIntervalVT=acSonetFarEndVT15MinuteIntervalVT, acSonetSection15MinuteIntervalSEFSs=acSonetSection15MinuteIntervalSEFSs, acSonetFarEndVT15MinuteIntervalNodeId=acSonetFarEndVT15MinuteIntervalNodeId, acSonetPortLoopbackConfig=acSonetPortLoopbackConfig, acSonetFarEndPathDayIntervalNodeId=acSonetFarEndPathDayIntervalNodeId, acSonetLineProtectionWTRTime=acSonetLineProtectionWTRTime, acSonetPathDayIntervalNumber=acSonetPathDayIntervalNumber, acSonetVT=acSonetVT, acSonetVTProtectionProtectionSwitch=acSonetVTProtectionProtectionSwitch, acSonetPath15MinuteIntervalSESs=acSonetPath15MinuteIntervalSESs, acSonetVTRDIEntry=acSonetVTRDIEntry, acSonetObjectsPath=acSonetObjectsPath, acSonetVTPLMEntry=acSonetVTPLMEntry, acSonetSection15MinuteIntervalSlot=acSonetSection15MinuteIntervalSlot, acSonetFarEndPath15MinuteIntervalValidStats=acSonetFarEndPath15MinuteIntervalValidStats, acSonetFarEndPathThresholdESs=acSonetFarEndPathThresholdESs, acSonetObjects=acSonetObjects, acSonetFarEndLine15MinuteIntervalUASs=acSonetFarEndLine15MinuteIntervalUASs, acSonetLine15MinuteIntervalNumber=acSonetLine15MinuteIntervalNumber, acSonetFarEndVTDayIntervalTable=acSonetFarEndVTDayIntervalTable, acSonetPathThresholdPath=acSonetPathThresholdPath, acSonetSectionTIMMismatchZeros=acSonetSectionTIMMismatchZeros, acSonetLineProtectionSlot=acSonetLineProtectionSlot, acSonetFarEndPathThresholdNodeId=acSonetFarEndPathThresholdNodeId, acSonetPortMediumLineType=acSonetPortMediumLineType, acSonetLine15MinuteIntervalResetStats=acSonetLine15MinuteIntervalResetStats, acSonetVTPLMSlot=acSonetVTPLMSlot, acSonetPathPLMUnequipped=acSonetPathPLMUnequipped, acSonetSectionTIMNodeId=acSonetSectionTIMNodeId, acSonetDCCSectionFail=acSonetDCCSectionFail, acSonetLine15MinuteIntervalEntry=acSonetLine15MinuteIntervalEntry, acSonetFarEndPath15MinuteIntervalSlot=acSonetFarEndPath15MinuteIntervalSlot, acSonetPathTIMFailure=acSonetPathTIMFailure, acSonetLineProtectionPort=acSonetLineProtectionPort, acSonetSection15MinuteIntervalValidStats=acSonetSection15MinuteIntervalValidStats, acSonetPathDayIntervalNodeId=acSonetPathDayIntervalNodeId, acSonetFarEndVT15MinuteIntervalCVs=acSonetFarEndVT15MinuteIntervalCVs, acSonetFarEndLineThresholdTable=acSonetFarEndLineThresholdTable, acSonetPathRDIEntry=acSonetPathRDIEntry, acSonetPathProtectionSDThreshold=acSonetPathProtectionSDThreshold, acSonetPathPLMPort=acSonetPathPLMPort, acSonetVTThresholdVT=acSonetVTThresholdVT, acSonetPathPLMPath=acSonetPathPLMPath, acSonetVTThresholdESs=acSonetVTThresholdESs, acSonetPathRDISlot=acSonetPathRDISlot, acSonetDCCEntry=acSonetDCCEntry, acSonetThresholdEntry=acSonetThresholdEntry, acSonetSection15MinuteIntervalStatus=acSonetSection15MinuteIntervalStatus, acSonetFarEndVT15MinuteIntervalESs=acSonetFarEndVT15MinuteIntervalESs, acSonetPathTIMExpectedString=acSonetPathTIMExpectedString, acSonetSectionThresholdSlot=acSonetSectionThresholdSlot, acSonetPathDayIntervalSlot=acSonetPathDayIntervalSlot, acSonetFarEndPath15MinuteIntervalPort=acSonetFarEndPath15MinuteIntervalPort, acSonetFarEndVTThresholdTable=acSonetFarEndVTThresholdTable, acSonetVTThresholdAdminStatus=acSonetVTThresholdAdminStatus, acSonetPathProtectionEntry=acSonetPathProtectionEntry, acSonetFarEndPathDayIntervalSlot=acSonetFarEndPathDayIntervalSlot, acSonetVTThresholdTable=acSonetVTThresholdTable, acSonetPathTIMPath=acSonetPathTIMPath, acSonetPathDayIntervalESs=acSonetPathDayIntervalESs, acSonetSectionTIMPort=acSonetSectionTIMPort, acSonetSectionThresholdAdminStatus=acSonetSectionThresholdAdminStatus, acSonetPath15MinuteIntervalPort=acSonetPath15MinuteIntervalPort, acSonetDCCLineFail=acSonetDCCLineFail, acSonetVTPLMPort=acSonetVTPLMPort, acSonetLineThresholdAdminStatus=acSonetLineThresholdAdminStatus)
cont = 0 pares = 0 for c in range(1, 7): num = int(input('Digite um número: ')) if num % 2 == 0: pares += num cont += 1 print(f'Você informou {cont} números PARES e a soma foi {pares}')
class Solution: def longestConsecutive(self, nums): nums_set = set(nums) longest_seq = 0 for num in nums_set: # Don't need to check if there is a - 1 smaller in the list. if num - 1 not in nums_set: current_num = num current_seq = 1 while current_num + 1 in nums_set: current_num += 1 current_seq += 1 longest_seq = max(longest_seq, current_seq) return longest_seq if __name__ == '__main__': s = Solution() nums = [100, 4, 200, 1, 3, 2] print(s.longestConsecutive(nums))
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## { 'name': 'Advanced Routes', 'version': '1.0', 'category': 'Manufacturing', 'description': """ This module supplements the Warehouse application by effectively implementing Push and Pull inventory flows. ============================================================================================================ Typically this could be used to: -------------------------------- * Manage product manufacturing chains * Manage default locations per product * Define routes within your warehouse according to business needs, such as: - Quality Control - After Sales Services - Supplier Returns * Help rental management, by generating automated return moves for rented products Once this module is installed, an additional tab appear on the product form, where you can add Push and Pull flow specifications. The demo data of CPU1 product for that push/pull : Push flows: ----------- Push flows are useful when the arrival of certain products in a given location should always be followed by a corresponding move to another location, optionally after a certain delay. The original Warehouse application already supports such Push flow specifications on the Locations themselves, but these cannot be refined per-product. A push flow specification indicates which location is chained with which location, and with what parameters. As soon as a given quantity of products is moved in the source location, a chained move is automatically foreseen according to the parameters set on the flow specification (destination location, delay, type of move, journal). The new move can be automatically processed, or require a manual confirmation, depending on the parameters. Pull flows: ----------- Pull flows are a bit different from Push flows, in the sense that they are not related to the processing of product moves, but rather to the processing of procurement orders. What is being pulled is a need, not directly products. A classical example of Pull flow is when you have an Outlet company, with a parent Company that is responsible for the supplies of the Outlet. [ Customer ] <- A - [ Outlet ] <- B - [ Holding ] <~ C ~ [ Supplier ] When a new procurement order (A, coming from the confirmation of a Sale Order for example) arrives in the Outlet, it is converted into another procurement (B, via a Pull flow of type 'move') requested from the Holding. When procurement order B is processed by the Holding company, and if the product is out of stock, it can be converted into a Purchase Order (C) from the Supplier (Pull flow of type Purchase). The result is that the procurement order, the need, is pushed all the way between the Customer and Supplier. Technically, Pull flows allow to process procurement orders differently, not only depending on the product being considered, but also depending on which location holds the 'need' for that product (i.e. the destination location of that procurement order). Use-Case: --------- You can use the demo data as follow: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **CPU1:** Sell some CPU1 from Chicago Shop and run the scheduler - Warehouse: delivery order, Chicago Shop: reception **CPU3:** - When receiving the product, it goes to Quality Control location then stored to shelf 2. - When delivering the customer: Pick List -> Packing -> Delivery Order from Gate A """, 'author': 'OpenERP SA', 'images': ['images/pulled_flow.jpeg','images/pushed_flow.jpeg'], 'depends': ['procurement','stock','sale'], 'data': ['stock_location_view.xml', 'security/stock_location_security.xml', 'security/ir.model.access.csv', 'procurement_pull_workflow.xml'], 'demo': [ 'stock_location_demo_cpu1.xml', 'stock_location_demo_cpu3.yml', ], 'installable': True, 'test': [ 'test/stock_location_pull_flow.yml', 'test/stock_location_push_flow.yml', ], 'auto_install': False, } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
def test(): # Here we can either check objects created in the solution code, or the # string value of the solution, available as __solution__. A helper for # printing formatted messages is available as __msg__. See the testTemplate # in the meta.json for details. # If an assertion fails, the message will be displayed assert not numeric_cols is None, "Your answer for numeric_cols does not exist. Have you assigned the list of labels for numeric columns to the correct variable name?" assert type(numeric_cols) == list, "numeric_cols does not appear to be of type list. Can you store all the labels of the numeric columns into a list called numeric_cols?" assert set(numeric_cols) == set(['culmen_length_mm', 'culmen_depth_mm', 'flipper_length_mm', 'body_mass_g']), "Make sure you only include the numeric columns in numeric_cols. Hint: there are 4 numeric columns in the dataframe." assert numeric_cols == ['culmen_length_mm', 'culmen_depth_mm', 'flipper_length_mm', 'body_mass_g'], "You're close. Please make sure that the numeric columns are ordered in the same order they appear in the dataframe." assert not numeric_histograms is None, "Your answer for numeric_histograms does not exist. Have you assigned the chart object to the correct variable name?" assert type(numeric_histograms) == alt.vegalite.v4.api.RepeatChart, "Your answer is not an Altair RepeatChart object. Check to make sure that you have assigned an alt.Chart object to numeric_histograms and that you are repeating by columns in numeric_cols." assert numeric_histograms.columns == 2, "Make sure you have 2 columns in your RepeatChart. Hint: use columns argument." assert numeric_histograms.spec.mark == 'bar', "Make sure you are using the 'mark_bar' to generate histograms." assert numeric_histograms.spec.encoding.x.shorthand == alt.RepeatRef(repeat = 'repeat'), "Make sure you specify that the chart set-up is repeated for different columns as the x-axis encoding. Hint: use alt.repeat()" assert numeric_histograms.spec.encoding.x.bin != alt.utils.schemapi.Undefined, "Make sure you are specifying the bin argument for the x-axis encoding for the histogram." assert numeric_histograms.spec.encoding.x.bin.maxbins != alt.utils.schemapi.Undefined, "Make sure you specify the maxbins argument for binning the x-axis encoding to something reasonable (like 30 or 40)." assert numeric_histograms.spec.encoding.x.type == "quantitative", "Make sure you let Altair know that alt.repeat() is a quantitative type, since it's not a column in the dataframe." assert ( numeric_histograms.spec.encoding.y.field in {'count()', 'count():quantitative', 'count():Q'} or numeric_histograms.spec.encoding.y.shorthand in {'count()', 'count():quantitative', 'count():Q'} ), "Make sure you are using 'count()' as the y-axis encoding." assert numeric_histograms.spec.height == 150, "Make sure your plot has a height of 150." assert numeric_histograms.spec.width == 150, "Make sure your plot has a width of 150." __msg__.good("You're correct, well done!")
# Section 5.16 Self Check snippets # Exercise 4 t = [[10, 7, 3], [20, 4, 17]] total = 0 items = 0 for row in t: for item in row: total += item items += 1 total / items total = 0 items = 0 for row in t: total += sum(row) items += len(row) total / items ########################################################################## # (C) Copyright 2019 by Deitel & Associates, Inc. and # # Pearson Education, Inc. All Rights Reserved. # # # # DISCLAIMER: The authors and publisher of this book have used their # # best efforts in preparing the book. These efforts include the # # development, research, and testing of the theories and programs # # to determine their effectiveness. The authors and publisher make # # no warranty of any kind, expressed or implied, with regard to these # # programs or to the documentation contained in these books. The authors # # and publisher shall not be liable in any event for incidental or # # consequential damages in connection with, or arising out of, the # # furnishing, performance, or use of these programs. # ##########################################################################
# Nícolas Ramos # desenvolvido para ser igual ao pedido no desafio print('====== DESAFIO 1 ======') primeiro = int(input('Primeiro número ')) segundo = int(input('Segundo número ')) print(f'A soma é {primeiro + segundo}')
""" Test getting repo functions. """ # pylint: disable=invalid-sequence-index def test_get_repos(ghh): """ Default get repos. """ ghh.get_requested_object("ckear1989") ghh.requested_object.get_repos() assert "github" in [repo.name for repo in ghh.requested_object.repos] def test_ignore(ghh): """ Get repos with ignore option. """ ghh.get_requested_object("ckear1989") ghh.requested_object.get_repos(ignore="github") assert "github" not in [repo.name for repo in ghh.requested_object.repos] def test_get_org_repos(ghh): """ Test get repos from known org. PyGitHub org has a repo called PyGithub (note the lowercase "h") """ ghh.get_requested_object("PyGitHub") ghh.requested_object.get_repos() assert "PyGithub" in [repo.name for repo in ghh.requested_object.repos] def test_results_limit(ghh): """ Test get repos from known user with limiting of results. """ ghh.user.get_metadata() ghh.user.metadata.set_input_limits(input_from=1, input_to=2) ghh.user.metadata.get_metadata() assert len(ghh.user.metadata.metadata_df) <= 2 ghh.user.metadata.set_input_limits(input_from=1, input_to=4) ghh.user.metadata.get_metadata() assert len(ghh.user.metadata.metadata_df) <= 4 ghh.user.metadata.set_input_limits(input_from=1, input_to=10) ghh.user.metadata.get_metadata() assert len(ghh.user.metadata.metadata_df) <= 10
''' Created on 2018年4月15日 @author: bomber ''' class Field(object): def __init__(self, name, column_type, primary_key, default): self.name = name self.column_type = column_type self.primary_key = primary_key self.default = default def __str__(self): return '<%s, %s:%s>' % (self.__class__.__name__, self.column_type, self.name)
def minion_game(string): # your code goes here Kevin = 0 Stuart = 0 word = list(string) x = len(word) vowels = ['A','E','I','O','U'] for inx, w in enumerate(word): if w in vowels: Kevin = Kevin + x else: Stuart = Stuart + x x = x - 1 if Stuart > Kevin: print ('Stuart', Stuart) elif Kevin > Stuart: print ('Kevin', Kevin) else: print ('Draw')
class UndergroundSystem: def __init__(self): self.enterstation = {} self.leavestation = {} def checkIn(self, id: int, stationName: str, t: int) -> None: if stationName not in self.enterstation: self.enterstation[stationName] = [[id, t]] else: self.enterstation[stationName].append([id, t]) def checkOut(self, id: int, stationName: str, t: int) -> None: if stationName not in self.leavestation: self.leavestation[stationName] = [[id, t]] else: self.leavestation[stationName].append([id, t]) def getAverageTime(self, startStation: str, endStation: str) -> float: res = [] start = self.enterstation[startStation] end = self.leavestation[endStation] for i in start: for j in end: # id相同 if i[0] == j[0]: res.append(abs(j[1] - i[1])) return float(sum(res) / len(res)) # Your UndergroundSystem object will be instantiated and called as such: # obj = UndergroundSystem() # obj.checkIn(id,stationName,t) # obj.checkOut(id,stationName,t) # param_3 = obj.getAverageTime(startStation,endStation)
#! /usr/bin/python3 -i # coding=utf-8 tradify={ "𫍟":"𧦧", "𰾵":"𨬟", "𫮃":"墠", "𪪼":"彃", "𢭏":"擣", "𥐟":"礒", "𬘝":"紾", "𫄨":"絺", "𮉪":"緅", "𰬸":"繐", "𫄸":"纁", "𮉡":"纑", "𫄥":"纚", "𦰏":"蓧", "𫉁":"薆", "𧦧":"訑", "𫍥":"誂", "𬤊":"諟", "𬤣":"譈", "𫐄":"軏", "𫐐":"輗", "𬨎":"輶", "𫓧":"鈇", "𨱂":"鈋", "𬱙":"頖", "𫖹":"顣", "𫗞":"飦", "𫗦":"餔", "𮩝":"餲", "𮩞":"饐", "𫗴":"饘", "𬶍":"鮀", "𫚈":"鱮", "𫛞":"鴃", "𫜁":"鷩", "㑹":"會", "㧛":"攬", "㧞":"拔", "㨗":"捷", "㫖":"旨", "㱩":"殰", "䃅":"磾", "䌶":"䊷", "䌷":"紬", "䌹":"絅", "䘮":"喪", "䜣":"訢", "䟽":"疏", "䧟":"陷", "䯄":"騧", "䶮":"龑", "万":"萬", "与":"與", "专":"專", "业":"業", "丛":"叢", "东":"東", "丝":"絲", "両":"兩", "两":"兩", "严":"嚴", "並":"竝", "丧":"喪", "丰":"豐", "临":"臨", "为":"爲", "丽":"麗", "举":"舉", "义":"義", "乌":"烏", "乐":"樂", "乔":"喬", "乗":"乘", "习":"習", "乡":"郷", "书":"書", "买":"買", "乱":"亂", "亀":"龜", "争":"爭", "云":"雲", "亚":"亞", "亜":"亞", "产":"產", "亩":"畝", "亲":"親", "亵":"褻", "亿":"億", "仅":"僅", "仆":"僕", "从":"從", "仏":"佛", "仑":"崙", "仓":"倉", "仪":"儀", "众":"衆", "优":"優", "会":"會", "伝":"傳", "传":"傳", "伤":"傷", "伥":"倀", "伦":"倫", "伪":"偽", "体":"體", "併":"倂", "侄":"姪", "価":"價", "侧":"側", "侨":"僑", "侮":"侮", "俨":"儼", "俪":"儷", "俭":"儉", "倶":"俱", "倹":"儉", "倾":"傾", "偸":"偷", "偻":"僂", "偾":"僨", "储":"儲", "傩":"儺", "僞":"偽", "僧":"僧", "儿":"兒", "免":"免", "兎":"兔", "児":"兒", "兰":"蘭", "关":"關", "兴":"興", "兹":"茲", "养":"養", "兽":"獸", "内":"內", "円":"園", "写":"寫", "军":"軍", "农":"農", "冯":"馮", "决":"決", "况":"況", "冻":"凍", "准":"準", "凉":"涼", "减":"減", "凑":"湊", "凤":"鳳", "処":"處", "凯":"凱", "击":"擊", "凿":"鑿", "刍":"芻", "刘":"劉", "则":"則", "刚":"剛", "创":"創", "别":"別", "剎":"刹", "剑":"劍", "剣":"劍", "劝":"勸", "务":"務", "动":"動", "励":"勵", "劳":"勞", "労":"勞", "効":"效", "势":"勢", "勉":"勉", "勋":"勳", "勛":"勳", "勤":"勤", "勲":"勳", "匮":"匱", "区":"區", "医":"醫", "华":"華", "协":"協", "卑":"卑", "单":"單", "単":"單", "卢":"盧", "卧":"臥", "卫":"衞", "却":"卻", "卽":"即", "历":"歷", "厉":"厲", "厌":"厭", "厕":"厠", "厘":"釐", "厨":"廚", "厩":"廄", "厳":"嚴", "县":"縣", "参":"參", "双":"雙", "収":"收", "变":"變", "叙":"敘", "台":"臺", "号":"號", "叹":"嘆", "向":"嚮", "吕":"呂", "听":"聽", "启":"啟", "吴":"吳", "呉":"吳", "告":"吿", "呑":"吞", "呕":"嘔", "员":"員", "呙":"咼", "呜":"嗚", "呪":"咒", "咏":"詠", "哙":"噲", "唤":"喚", "啓":"啟", "啬":"嗇", "営":"營", "喻":"喩", "嘆":"嘆", "器":"器", "嚢":"囊", "嚣":"囂", "园":"園", "囲":"圍", "図":"圖", "围":"圍", "国":"國", "图":"圖", "圣":"聖", "圹":"壙", "场":"場", "坏":"壞", "坚":"堅", "坠":"墜", "垫":"墊", "埀":"垂", "堕":"墮", "塩":"鹽", "填":"塡", "墙":"牆", "墨":"墨", "墻":"牆", "壊":"壞", "壌":"壤", "壮":"壯", "声":"聲", "壱":"壹", "壶":"壺", "处":"處", "备":"備", "変":"變", "头":"頭", "夺":"奪", "奋":"奮", "奖":"奬", "奥":"奧", "奨":"奬", "妇":"婦", "妪":"嫗", "妬":"妒", "姊":"姉", "姜":"薑", "娄":"婁", "娯":"娛", "娱":"娛", "娲":"媧", "婴":"嬰", "婵":"嬋", "媭":"嬃", "嬢":"孃", "孙":"孫", "学":"學", "宁":"寧", "宝":"寶", "实":"實", "実":"實", "宠":"寵", "审":"審", "宪":"憲", "宫":"宮", "宽":"寬", "宾":"賓", "寛":"寬", "寝":"寢", "对":"對", "寻":"尋", "导":"導", "対":"對", "寿":"壽", "専":"專", "将":"將", "尔":"爾", "尚":"尙", "尝":"嘗", "尧":"堯", "尭":"堯", "尽":"盡", "属":"屬", "屡":"屢", "屦":"屨", "岁":"歲", "岂":"豈", "岭":"嶺", "岳":"嶽", "峡":"峽", "峯":"峰", "巌":"巖", "巣":"巢", "巻":"卷", "币":"幣", "帅":"帥", "师":"師", "帏":"幃", "带":"帶", "帯":"帶", "帰":"歸", "帱":"幬", "幷":"并", "广":"廣", "広":"廣", "庄":"莊", "庆":"慶", "庐":"廬", "库":"庫", "应":"應", "庙":"廟", "废":"廢", "廁":"厠", "廃":"廢", "廐":"廄", "廪":"廩", "廵":"巡", "开":"開", "异":"異", "弃":"棄", "弑":"弒", "张":"張", "弥":"彌", "强":"強", "归":"歸", "当":"當", "彦":"彥", "彻":"徹", "径":"徑", "従":"從", "徳":"德", "徴":"徵", "忆":"憶", "応":"應", "忧":"憂", "忾":"愾", "怀":"懷", "怃":"憮", "怆":"愴", "总":"總", "怼":"懟", "恋":"戀", "恒":"恆", "恠":"怪", "恳":"懇", "恵":"惠", "恶":"惡", "恸":"慟", "恻":"惻", "悔":"悔", "悦":"悅", "悪":"惡", "悬":"懸", "悯":"憫", "惧":"懼", "惩":"懲", "惭":"慚", "惮":"憚", "惯":"慣", "愠":"慍", "愤":"憤", "慎":"愼", "憎":"憎", "懐":"懷", "懲":"懲", "戏":"戲", "战":"戰", "戦":"戰", "戯":"戲", "户":"戶", "戸":"戶", "戻":"戾", "払":"拂", "托":"託", "扡":"拖", "执":"執", "扩":"擴", "扬":"揚", "扰":"擾", "抚":"撫", "抜":"拔", "択":"擇", "护":"護", "报":"報", "拝":"拜", "拡":"擴", "拥":"擁", "拨":"撥", "择":"擇", "挂":"掛", "挙":"舉", "挞":"撻", "挟":"挾", "挠":"撓", "挿":"插", "损":"損", "换":"換", "捣":"搗", "据":"據", "掲":"揭", "揔":"摠", "揽":"攬", "搂":"摟", "携":"攜", "摂":"攝", "摄":"攝", "摅":"攄", "摈":"擯", "撃":"擊", "撄":"攖", "擥":"攬", "擧":"舉", "攷":"考", "敌":"敵", "敏":"敏", "教":"敎", "敛":"斂", "数":"數", "斉":"齊", "斋":"齋", "斎":"齋", "斩":"斬", "断":"斷", "无":"無", "旣":"既", "旧":"舊", "时":"時", "旷":"曠", "昆":"崑", "昼":"晝", "显":"顯", "晋":"晉", "晓":"曉", "晩":"晚", "暁":"曉", "暦":"曆", "暧":"曖", "朞":"期", "术":"術", "杀":"殺", "杂":"雜", "权":"權", "条":"條", "来":"來", "杨":"楊", "杰":"傑", "极":"極", "构":"構", "枢":"樞", "枣":"棗", "枨":"棖", "柰":"奈", "栄":"榮", "栅":"柵", "栉":"櫛", "树":"樹", "桡":"橈", "桥":"橋", "梅":"梅", "梦":"夢", "梼":"檮", "检":"檢", "棁":"梲", "検":"檢", "椟":"櫝", "楼":"樓", "楽":"樂", "榅":"榲", "榆":"楡", "槚":"檟", "槨":"椁", "槪":"概", "権":"權", "横":"橫", "橹":"櫓", "欢":"歡", "欤":"歟", "歓":"歡", "歩":"步", "歯":"齒", "歳":"歲", "歴":"歷", "殁":"歿", "殇":"殤", "残":"殘", "殒":"殞", "殡":"殯", "殺":"殺", "毁":"毀", "毎":"每", "毕":"畢", "毙":"斃", "气":"氣", "気":"氣", "氷":"冰", "汉":"漢", "汛":"汎", "污":"汚", "汤":"湯", "沟":"溝", "没":"沒", "沢":"澤", "沧":"滄", "泽":"澤", "洁":"潔", "浅":"淺", "浆":"漿", "浊":"濁", "测":"測", "浍":"澮", "济":"濟", "浒":"滸", "浜":"濱", "海":"海", "涂":"塗", "涜":"瀆", "润":"潤", "涧":"澗", "淸":"清", "渇":"渴", "済":"濟", "渉":"涉", "渊":"淵", "渎":"瀆", "渐":"漸", "渓":"溪", "渔":"漁", "温":"溫", "湿":"濕", "満":"滿", "溼":"濕", "滞":"滯", "满":"滿", "滥":"濫", "滨":"濱", "漑":"溉", "漢":"漢", "潅":"灌", "潜":"潛", "澜":"瀾", "灭":"滅", "灵":"靈", "灶":"竈", "灾":"災", "点":"點", "為":"爲", "烂":"爛", "烛":"燭", "烦":"煩", "烧":"燒", "热":"熱", "焕":"煥", "焭":"煢", "焼":"燒", "煕":"熙", "爱":"愛", "牵":"牽", "牺":"犧", "犠":"犧", "状":"狀", "犹":"猶", "独":"獨", "狭":"狹", "狱":"獄", "狸":"貍", "猎":"獵", "猟":"獵", "猫":"貓", "献":"獻", "獎":"奬", "獣":"獸", "獭":"獺", "玆":"茲", "环":"環", "琏":"璉", "産":"產", "电":"電", "画":"畫", "畅":"暢", "畴":"疇", "疴":"痾", "痈":"癰", "発":"發", "益":"益", "盐":"鹽", "监":"監", "盖":"蓋", "盗":"盜", "盘":"盤", "県":"縣", "真":"眞", "眾":"衆", "着":"著", "睾":"睪", "矫":"矯", "矶":"磯", "硁":"硜", "硕":"碩", "硗":"磽", "礼":"禮", "社":"社", "祈":"祈", "祐":"祐", "祖":"祖", "祝":"祝", "神":"神", "祥":"祥", "祯":"禎", "祷":"禱", "祸":"禍", "禄":"祿", "禅":"禪", "禍":"禍", "禎":"禎", "福":"福", "离":"離", "秊":"年", "种":"種", "积":"積", "称":"稱", "税":"稅", "稲":"稻", "穀":"穀", "穑":"穡", "穣":"穰", "穷":"窮", "突":"突", "窃":"竊", "窍":"竅", "窓":"窗", "窥":"窺", "竜":"龍", "竞":"競", "笃":"篤", "笾":"籩", "筚":"篳", "简":"簡", "箪":"簞", "節":"節", "篑":"簣", "篡":"簒", "籴":"糴", "类":"類", "粛":"肅", "粪":"糞", "粮":"糧", "経":"經", "絕":"絶", "絵":"繪", "継":"繼", "続":"續", "緒":"緖", "緜":"綿", "緼":"縕", "縁":"緣", "縄":"繩", "縦":"縱", "繁":"繁", "繊":"纖", "繋":"繫", "繍":"繡", "红":"紅", "纣":"紂", "纤":"纖", "约":"約", "级":"級", "纪":"紀", "纯":"純", "纲":"綱", "纳":"納", "纵":"縱", "纶":"綸", "纷":"紛", "纸":"紙", "绀":"紺", "练":"練", "组":"組", "绅":"紳", "细":"細", "织":"織", "终":"終", "绍":"紹", "绎":"繹", "经":"經", "绐":"紿", "结":"結", "绕":"繞", "绖":"絰", "绘":"繪", "给":"給", "绚":"絢", "绝":"絶", "绞":"絞", "统":"統", "绢":"絹", "绤":"綌", "绥":"綏", "继":"繼", "绩":"績", "绪":"緖", "续":"續", "绰":"綽", "绳":"繩", "维":"維", "绵":"緜", "绸":"綢", "绹":"綯", "缀":"綴", "缁":"緇", "缉":"緝", "缊":"縕", "缌":"緦", "缓":"緩", "缕":"縷", "缗":"緡", "缘":"緣", "缚":"縛", "缧":"縲", "缨":"纓", "缩":"縮", "缪":"繆", "缫":"繅", "缭":"繚", "缴":"繳", "缵":"纘", "网":"網", "罗":"羅", "罚":"罰", "罢":"罷", "羡":"羨", "羣":"群", "者":"者", "耸":"聳", "耻":"恥", "职":"職", "聡":"聰", "聪":"聰", "聴":"聽", "肃":"肅", "肤":"膚", "胁":"脅", "胆":"膽", "胜":"勝", "胫":"脛", "胶":"膠", "脍":"膾", "腾":"騰", "臭":"臭", "舆":"輿", "舎":"舍", "艺":"藝", "节":"節", "芜":"蕪", "芦":"蘆", "苍":"蒼", "苏":"蘇", "茕":"煢", "茧":"繭", "荅":"答", "荆":"荊", "荐":"薦", "荘":"莊", "荛":"蕘", "荡":"蕩", "荣":"榮", "药":"藥", "莱":"萊", "获":"獲", "萤":"螢", "营":"營", "萦":"縈", "萧":"蕭", "著":"著", "蒉":"蕢", "蓝":"藍", "蔂":"虆", "蔵":"藏", "薫":"薰", "薬":"藥", "虏":"虜", "虑":"慮", "虚":"虛", "虜":"虜", "虫":"蟲", "虬":"虯", "虽":"雖", "蚁":"蟻", "蚕":"蠶", "蛍":"螢", "蛙":"鼃", "蛮":"蠻", "蛰":"蟄", "蜕":"蛻", "蝇":"蠅", "蝼":"螻", "蝿":"蠅", "衛":"衞", "补":"補", "袭":"襲", "裏":"裡", "褐":"褐", "覇":"霸", "視":"視", "覚":"覺", "覧":"覽", "観":"觀", "见":"見", "观":"觀", "规":"規", "视":"視", "览":"覽", "觉":"覺", "觌":"覿", "觐":"覲", "觞":"觴", "触":"觸", "訚":"誾", "証":"證", "誉":"譽", "説":"說", "読":"讀", "諸":"諸", "謁":"謁", "謹":"謹", "譲":"讓", "讐":"讎", "计":"計", "讥":"譏", "讦":"訐", "讨":"討", "让":"讓", "讪":"訕", "训":"訓", "议":"議", "讯":"訊", "记":"記", "讱":"訒", "讲":"講", "讳":"諱", "讴":"謳", "讷":"訥", "许":"許", "论":"論", "讼":"訟", "设":"設", "访":"訪", "证":"證", "识":"識", "诈":"詐", "诉":"訴", "词":"詞", "诎":"詘", "诏":"詔", "诐":"詖", "诒":"詒", "诔":"誄", "试":"試", "诗":"詩", "诘":"詰", "诚":"誠", "诛":"誅", "话":"話", "诞":"誕", "诟":"詬", "诡":"詭", "询":"詢", "诣":"詣", "该":"該", "详":"詳", "诬":"誣", "语":"語", "误":"誤", "诰":"誥", "诱":"誘", "诲":"誨", "说":"說", "诵":"誦", "请":"請", "诸":"諸", "诺":"諾", "读":"讀", "诼":"諑", "谀":"諛", "谁":"誰", "调":"調", "谄":"諂", "谅":"諒", "谆":"諄", "谇":"誶", "谈":"談", "谋":"謀", "谏":"諫", "谒":"謁", "谓":"謂", "谗":"讒", "谚":"諺", "谟":"謨", "谢":"謝", "谤":"謗", "谥":"謚", "谦":"謙", "谨":"謹", "谪":"謫", "谬":"謬", "谮":"譖", "谲":"譎", "豊":"豐", "賓":"賓", "賛":"贊", "贞":"貞", "负":"負", "贡":"貢", "财":"財", "责":"責", "贤":"賢", "败":"敗", "货":"貨", "质":"質", "贪":"貪", "贫":"貧", "贬":"貶", "贯":"貫", "贰":"貳", "贱":"賤", "贲":"賁", "贵":"貴", "贶":"貺", "贷":"貸", "费":"費", "贺":"賀", "贼":"賊", "贾":"賈", "赂":"賂", "资":"資", "赅":"賅", "赆":"贐", "赉":"賚", "赋":"賦", "赎":"贖", "赏":"賞", "赐":"賜", "赖":"賴", "赞":"贊", "赠":"贈", "赡":"贍", "赵":"趙", "趋":"趨", "跃":"躍", "践":"踐", "踌":"躊", "踪":"蹤", "踯":"躑", "躯":"軀", "転":"轉", "軽":"輕", "车":"車", "轨":"軌", "轫":"軔", "转":"轉", "轮":"輪", "轲":"軻", "轻":"輕", "载":"載", "辂":"輅", "较":"較", "辅":"輔", "辉":"輝", "辍":"輟", "输":"輸", "辔":"轡", "辞":"辭", "辩":"辯", "边":"邊", "辺":"邊", "达":"達", "迁":"遷", "过":"過", "运":"運", "还":"還", "进":"進", "远":"遠", "违":"違", "连":"連", "迟":"遲", "迩":"邇", "适":"適", "选":"選", "逊":"遜", "递":"遞", "逓":"遞", "逸":"逸", "遅":"遲", "遗":"遺", "邮":"郵", "邹":"鄒", "邻":"鄰", "郎":"郞", "郑":"鄭", "都":"都", "鄉":"郷", "鄕":"郷", "酔":"醉", "酱":"醬", "醤":"醬", "釈":"釋", "释":"釋", "鉄":"鐵", "鉴":"鑒", "銭":"錢", "鋭":"銳", "鋳":"鑄", "錬":"鍊", "鎮":"鎭", "鑑":"鑒", "鑚":"鑽", "钓":"釣", "钜":"鉅", "钧":"鈞", "钩":"鉤", "钱":"錢", "钺":"鉞", "钻":"鑽", "铁":"鐵", "铄":"鑠", "铎":"鐸", "铜":"銅", "铭":"銘", "银":"銀", "铸":"鑄", "铺":"鋪", "铿":"鏗", "锐":"銳", "错":"錯", "锜":"錡", "锡":"錫", "锦":"錦", "锭":"錠", "锸":"鍤", "镂":"鏤", "镃":"鎡", "镇":"鎭", "镒":"鎰", "镜":"鏡", "镦":"鐓", "长":"長", "閒":"間", "関":"關", "閲":"閱", "闘":"鬭", "门":"門", "闭":"閉", "问":"問", "闲":"閑", "间":"間", "闵":"閔", "闺":"閨", "闻":"聞", "阅":"閱", "阈":"閾", "阉":"閹", "阐":"闡", "阕":"闋", "阖":"闔", "阙":"闕", "队":"隊", "阳":"陽", "阴":"陰", "阵":"陣", "阶":"階", "际":"際", "陆":"陸", "陈":"陳", "陥":"陷", "陨":"隕", "险":"險", "随":"隨", "隐":"隱", "隠":"隱", "隣":"鄰", "隶":"隸", "隷":"隸", "难":"難", "雏":"雛", "雑":"雜", "雠":"讎", "難":"難", "雾":"霧", "霊":"靈", "靁":"雷", "靑":"青", "静":"靜", "韩":"韓", "韫":"韞", "韵":"韻", "頻":"頻", "頼":"賴", "顔":"顏", "顕":"顯", "顛":"顚", "類":"類", "顶":"頂", "顺":"順", "须":"須", "顽":"頑", "顾":"顧", "颁":"頒", "颂":"頌", "领":"領", "颇":"頗", "频":"頻", "题":"題", "颜":"顏", "额":"額", "颠":"顚", "颡":"顙", "风":"風", "飞":"飛", "飨":"饗", "飮":"飲", "餍":"饜", "饥":"飢", "饩":"餼", "饪":"飪", "饬":"飭", "饭":"飯", "饮":"飲", "饰":"飾", "饱":"飽", "饷":"餉", "饿":"餓", "馀":"餘", "馁":"餒", "馆":"館", "馈":"饋", "馑":"饉", "馔":"饌", "駆":"驅", "騒":"騷", "験":"驗", "马":"馬", "驭":"馭", "驯":"馴", "驰":"馳", "驱":"驅", "驷":"駟", "驹":"駒", "驾":"駕", "骁":"驍", "骂":"罵", "骄":"驕", "骇":"駭", "骈":"駢", "骊":"驪", "骋":"騁", "验":"驗", "骍":"騂", "骐":"騏", "骑":"騎", "骚":"騷", "骞":"騫", "骤":"驟", "骥":"驥", "髪":"髮", "鬪":"鬭", "鱼":"魚", "鲁":"魯", "鲂":"魴", "鲐":"鮐", "鲜":"鮮", "鲤":"鯉", "鲧":"鯀", "鳅":"鰍", "鳌":"鰲", "鳏":"鰥", "鳖":"鱉", "鴈":"雁", "鶏":"雞", "鷄":"雞", "鸟":"鳥", "鸡":"雞", "鸢":"鳶", "鸣":"鳴", "鸱":"鴟", "鸷":"鷙", "鸾":"鸞", "鸿":"鴻", "鹃":"鵑", "鹄":"鵠", "鹅":"鵝", "鹈":"鵜", "鹉":"鵡", "鹘":"鶻", "鹤":"鶴", "鹥":"鷖", "鹥":"鷖", "鹦":"鸚", "鹯":"鸇", "麦":"麥", "麪":"麵", "麹":"麴", "麺":"麵", "黄":"黃", "黒":"黑", "黙":"默", "鼇":"鰲", "鼈":"鱉", "鼋":"黿", "鼌":"鼂", "鼍":"鼉", "齐":"齊", "齿":"齒", "龁":"齕", "龙":"龍", "龟":"龜", "隆":"隆", "精":"精", "羽":"羽", "飯":"飯", "館":"館", "既":"既", }
no_exists = '{}_does_not_exists' already_exists = '{}_already_exists' exception_occurred = 'exception_occurred' no_modification_made = 'mo_modification_made' no_required_args = 'no_required_args' add_success = 'add_{}_success' delete_success = 'delete_{}_success' __all__ = ['no_exists', 'exception_occurred', 'no_modification_made', 'no_required_args', 'add_success', 'delete_success']
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' ***************************************** Author: zhlinh Email: zhlinhng@gmail.com Version: 0.0.1 Created Time: 2016-03-21 Last_modify: 2016-03-21 ****************************************** ''' ''' Compare two version numbers version1 and version2. If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. You may assume that the version strings are non-empty and contain only digits and the . character. The . character does not represent a decimal point and is used to separate number sequences. For instance, 2.5 is not "two and a half" or "half way to version three", it is the fifth second-level revision of the second first-level revision. Here is an example of version numbers ordering: 0.1 < 1.1 < 1.2 < 13.37 Credits: Special thanks to @ts for adding this problem and creating all test cases. ''' class Solution(object): def compareVersion(self, version1, version2): """ :type version1: str :type version2: str :rtype: int """ n1, n2 = len(version1), len(version2) start1, start2 = 0, 0 i1, i2 = 0, 0 while i1 < n1 or i2 < n2: while i1 < n1 and version1[i1] != '.': i1 += 1 while i2 < n2 and version2[i2] != '.': i2 += 1 cmp1 = int(version1[start1:i1]) if i1 > start1 else 0 cmp2 = int(version2[start2:i2]) if i2 > start2 else 0 i1 += 1 i2 += 1 start1, start2 = i1, i2 if cmp1 == cmp2: continue return 1 if cmp1 > cmp2 else -1 return 0
class RetrievalMethod(): def __init__(self,db): self.db = db def get_sentences_for_claim(self,claim_text,include_text=False): pass
''' WRITTEN BY Ramon Rossi PURPOSE Consider the Fionacci sequence. It is a sequence of natural numbers defined recursively as follows: * the first element is 0 * the second is 1 * each next element is the sum of the previous two elements This function will sum all even elements of the Fibonacci sequence with values less than 1 million. The function is called calculate() and prints the result to the console. EXAMPLE calculate(1000000) will have the result 1089154. ''' def calculate(limit): values_list = [] x = 0 # increment x by 1 until the Fibonacci number gets to the limit while(True): # the first element must be 0, and the second element must be 1 if x == 0 or x == 1: values_list.append(x) # the rest of the elements adds the previous two values else: values_list.append(values_list[x-1]+values_list[x-2]) # uncomment this line if need to see each Fibonacci number as its generated #print('Element {}, Fibonacci number is {}'.format(x, values_list[x])) # check if the Fibonacci number is at or past the limit if values_list[x] >= limit: # remove this last list item because its at or past the limit values_list.pop(x) break # increment x by 1 x += 1 # the values in the list are added if they are even sum_of_even_values = sum([values_list[i] for i in range(len(values_list)) if values_list[i]%2 == 0]) print(values_list) return sum_of_even_values # run test 1 print('Test 1'.center(40,'-')) limit = 1000000 result = calculate(limit) print('Sum of all even Fibonacci numbers up to {}: {}'.format(limit, result)) if result == 1089154: print('Test passed') else: print('Test failed')
def caesarCipherEncryptor(string, key): # To solve this problem, we need first to break the string into a list of chars, and then apply a function # basically transform each letter the key shifted, and then join them together. Obviously creating the list will take O(n) time and space # the function can be implemented in two ways: # 1. using Unicode and buildin functions. Specifically, using or to get the unicode value and chr to transform to char. # knowing that a = 97 and z = 122, we can convert the value. We need to understand the edge cases: # newlleter = letter + key: # # - If unicode > 122, we need to use the modulo : newletter = (shiftedletter % 122 + 96), we use 96, since # if char = 'a' -> 123 % 122 = 1 + 96 # - If key > 26, we need to be careful since we are not containing this in the prior logic: we need to use the modulo # ALSO in the key = key % 26 newLetters = [] newKey = key % 26 for letter in string: # instead of creating a new list, we can do this in place directly, populating the new list newLetters.append(getNewLetter(letter, newKey)) return "".join(newLetters) def getNewLetter(letter, key): newLetterCode = ord(letter) + key return chr(newLetterCode) if newLetterCode <= 122 else chr(96 + newLetterCode % 122)
f = open("test_data.txt", "r") fout = open("test_data_commas.txt", "w") for line in f: fout.write(line.replace(" ", ",")) f.close() fout.close()
class Menu: def __init__(self, Requests, log, presences): self.Requests = Requests self.log = log self.presences = presences def get_party_json(self, GamePlayersPuuid, presencesDICT): party_json = {} for presence in presencesDICT: if presence["puuid"] in GamePlayersPuuid: decodedPresence = self.presences.decode_presence(presence["private"]) if decodedPresence["isValid"]: if decodedPresence["partySize"] > 1: try: party_json[decodedPresence["partyId"]].append(presence["puuid"]) except KeyError: party_json.update({decodedPresence["partyId"]: [presence["puuid"]]}) self.log(f"retrieved party json: {party_json}") return party_json def get_party_members(self, self_puuid, presencesDICT): res = [] for presence in presencesDICT: if presence["puuid"] == self_puuid: decodedPresence = self.presences.decode_presence(presence["private"]) if decodedPresence["isValid"]: party_id = decodedPresence["partyId"] res.append({"Subject": presence["puuid"], "PlayerIdentity": {"AccountLevel": decodedPresence["accountLevel"]}}) for presence in presencesDICT: decodedPresence = self.presences.decode_presence(presence["private"]) if decodedPresence["isValid"]: if decodedPresence["partyId"] == party_id and presence["puuid"] != self_puuid: res.append({"Subject": presence["puuid"], "PlayerIdentity": {"AccountLevel": decodedPresence["accountLevel"]}}) self.log(f"retrieved party members: {res}") return res
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/home/suntao/workspace/gorobots/utils/real_robots/stbot/catkin_ws/src/lilistbot/msg/Jy901imu.msg" services_str = "" pkg_name = "lilistbot" dependencies_str = "std_msgs" langs = "gencpp;geneus;genlisp;gennodejs;genpy" dep_include_paths_str = "lilistbot;/home/suntao/workspace/gorobots/utils/real_robots/stbot/catkin_ws/src/lilistbot/msg;std_msgs;/opt/ros/kinetic/share/std_msgs/cmake/../msg" PYTHON_EXECUTABLE = "/home/suntao/.pyenv/shims/python" package_has_static_sources = '' == 'TRUE' genmsg_check_deps_script = "/opt/ros/kinetic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py"
pirate_ship_status = [int(i) for i in input().split('>')] warship_status = [int(i) for i in input().split('>')] health_capacity = int(input()) while True: command_nosplit = input() if command_nosplit == "Retire": break command = command_nosplit.split() if "Fire" in command: index = int(command[1]) damage = int(command[2]) if 0 <= index <= len(warship_status)-1: warship_status[index] -= damage if warship_status[index] <= 0: print(f"You won! The enemy ship has sunken.") exit() else: continue elif "Defend" in command: first_index = int(command[1]) last_index = int(command[2]) damage = int(command[3]) if (0 <= first_index and first_index < last_index) and (last_index <= len(pirate_ship_status)-1): for i in range(first_index,last_index+1): pirate_ship_status[i] -= damage if pirate_ship_status[i] <= 0: print(f"You lost! The pirate ship has sunken.") exit() else: continue elif "Repair" in command: index = int(command[1]) repair = int(command[2]) if 0 <= index <= len(pirate_ship_status)-1: pirate_ship_status[index] += repair if pirate_ship_status[index] > health_capacity: pirate_ship_status[index] = health_capacity else: continue elif "Status" in command: value_need_repair = health_capacity // 5 sections_for_repair = 0 for section in pirate_ship_status: if section < value_need_repair: sections_for_repair += 1 print(f"{sections_for_repair} sections need repair.") print(f"Pirate ship status: {sum(pirate_ship_status)}\nWarship status: {sum(warship_status)}")
#Crie uma tupla preenchuda com os 20 primeiros colocados da tabela do Campeonato Brasileiro de Futebol, na ordem de colocação. # Depois mostre: # A) Apenas os 5 primeiros colocados # B) os 4 últimos colocados da tabela. # C) Uma lista com os times em ordem alfabética. # D) Em que posição na tabela está o time da chapecoense times= ('Atlético-MG', 'Palmeiras', 'Fortaleza', 'Bragantino', 'Flamengo', 'Corinthians', 'Atlético-GO', 'Ceará SC', 'Athletico-PR', 'Internacional', 'Santos', 'São Paulo', 'Juvetude', 'Cuiabá', 'Bahia', 'Fluminense', 'Grêmio', 'Sport Recife', 'América-MG', 'Chapecoense') print(f'Os cinco primeiros colocados:\n{times[0:5]}') print(f'\nOs 4 últimos colocados da tabela:\n{times[16:20]}') print(f'\nLista dos times em ordem alfabética:\n{sorted(times[0:])}') Chapecoense = times.index('Chapecoense') + 1 print(f'\nO Chapecoense está na {Chapecoense}ª posição')
class Solution(object): def findDisappearedNumbers(self, nums): return list(set(range(1,len(nums)+1)) - set(nums)) nums = [4, 6, 2, 6, 7, 2, 1] def test(): assert Solution().findDisappearedNumbers(nums) == [3, 5]
# Copyright (c) OpenMMLab. All rights reserved. _base_ = './i_base.py' item_cfg = {'b': 2} item6 = {'cfg': item_cfg}
# listでとってきてsortとして小さい順から二つ足していく list = list(map(int, input().split())) list.sort() print(list[0]+list[1])
# type: ignore __all__ = [ "datatipinfo", "deprpt", "dbstep", "arrayviewfunc", "openvar", "workspace", "commandwindow", "runreport", "fixcontents", "projdumpmat", "urldecode", "renameStructField", "dbcont", "checkcode", "publish", "urlencode", "uiimport", "dbstop", "grabcode", "mlintrpt", "workspacefunc", "dbstack", "filebrowser", "dbstatus", "dbtype", "stripanchors", "auditcontents", "sharedplotfunc", "dbquit", "codetoolsswitchyard", "snapnow", "dofixrpt", "mdbfileonpath", "code2html", "mlint", "initdesktoputils", "commonplotfunc", "edit", "functionhintsfunc", "convertSpreadsheetDates", "contentsrpt", "commandhistory", "plotpickerfunc", "coveragerpt", "dbup", "opentoline", "m2struct", "convertSpreadsheetExcelDates", "profviewgateway", "makemcode", "indentcode", "profile", "mdbpublish", "dbdown", "pathtool", "value2CustomFcn", "profsave", "getcallinfo", "profview", "dbclear", "dbmex", "profreport", "makecontentsfile", "helprpt", "mdbstatus", "fixquote", ] def datatipinfo(*args): raise NotImplementedError("datatipinfo") def deprpt(*args): raise NotImplementedError("deprpt") def dbstep(*args): raise NotImplementedError("dbstep") def arrayviewfunc(*args): raise NotImplementedError("arrayviewfunc") def openvar(*args): raise NotImplementedError("openvar") def workspace(*args): raise NotImplementedError("workspace") def commandwindow(*args): raise NotImplementedError("commandwindow") def runreport(*args): raise NotImplementedError("runreport") def fixcontents(*args): raise NotImplementedError("fixcontents") def projdumpmat(*args): raise NotImplementedError("projdumpmat") def urldecode(*args): raise NotImplementedError("urldecode") def renameStructField(*args): raise NotImplementedError("renameStructField") def dbcont(*args): raise NotImplementedError("dbcont") def checkcode(*args): raise NotImplementedError("checkcode") def publish(*args): raise NotImplementedError("publish") def urlencode(*args): raise NotImplementedError("urlencode") def uiimport(*args): raise NotImplementedError("uiimport") def dbstop(*args): raise NotImplementedError("dbstop") def grabcode(*args): raise NotImplementedError("grabcode") def mlintrpt(*args): raise NotImplementedError("mlintrpt") def workspacefunc(*args): raise NotImplementedError("workspacefunc") def dbstack(*args): raise NotImplementedError("dbstack") def filebrowser(*args): raise NotImplementedError("filebrowser") def dbstatus(*args): raise NotImplementedError("dbstatus") def dbtype(*args): raise NotImplementedError("dbtype") def stripanchors(*args): raise NotImplementedError("stripanchors") def auditcontents(*args): raise NotImplementedError("auditcontents") def sharedplotfunc(*args): raise NotImplementedError("sharedplotfunc") def dbquit(*args): raise NotImplementedError("dbquit") def codetoolsswitchyard(*args): raise NotImplementedError("codetoolsswitchyard") def snapnow(*args): raise NotImplementedError("snapnow") def dofixrpt(*args): raise NotImplementedError("dofixrpt") def mdbfileonpath(*args): raise NotImplementedError("mdbfileonpath") def code2html(*args): raise NotImplementedError("code2html") def mlint(*args): raise NotImplementedError("mlint") def initdesktoputils(*args): raise NotImplementedError("initdesktoputils") def commonplotfunc(*args): raise NotImplementedError("commonplotfunc") def edit(*args): raise NotImplementedError("edit") def functionhintsfunc(*args): raise NotImplementedError("functionhintsfunc") def convertSpreadsheetDates(*args): raise NotImplementedError("convertSpreadsheetDates") def contentsrpt(*args): raise NotImplementedError("contentsrpt") def commandhistory(*args): raise NotImplementedError("commandhistory") def plotpickerfunc(*args): raise NotImplementedError("plotpickerfunc") def coveragerpt(*args): raise NotImplementedError("coveragerpt") def dbup(*args): raise NotImplementedError("dbup") def opentoline(*args): raise NotImplementedError("opentoline") def m2struct(*args): raise NotImplementedError("m2struct") def convertSpreadsheetExcelDates(*args): raise NotImplementedError("convertSpreadsheetExcelDates") def profviewgateway(*args): raise NotImplementedError("profviewgateway") def makemcode(*args): raise NotImplementedError("makemcode") def indentcode(*args): raise NotImplementedError("indentcode") def profile(*args): raise NotImplementedError("profile") def mdbpublish(*args): raise NotImplementedError("mdbpublish") def dbdown(*args): raise NotImplementedError("dbdown") def pathtool(*args): raise NotImplementedError("pathtool") def value2CustomFcn(*args): raise NotImplementedError("value2CustomFcn") def profsave(*args): raise NotImplementedError("profsave") def getcallinfo(*args): raise NotImplementedError("getcallinfo") def profview(*args): raise NotImplementedError("profview") def dbclear(*args): raise NotImplementedError("dbclear") def dbmex(*args): raise NotImplementedError("dbmex") def profreport(*args): raise NotImplementedError("profreport") def makecontentsfile(*args): raise NotImplementedError("makecontentsfile") def helprpt(*args): raise NotImplementedError("helprpt") def mdbstatus(*args): raise NotImplementedError("mdbstatus") def fixquote(*args): raise NotImplementedError("fixquote")
#!/usr/bin/env python ######################################################################## # Copyright 2012 Mandiant # Copyright 2014 FireEye # # Mandiant licenses this file to you 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. # # Reference: # https://github.com/mandiant/flare-ida/blob/master/shellcode_hashes/make_sc_hash_db.py # ######################################################################## DESCRIPTION = "SHIFT LEFT 7 and SUB used in DoublePulsar backdoor" TYPE = 'unsigned_int' TEST_1 = 2493113697 def hash(data): eax = 0 edi = 0 for i in data: edi = 0xffffffff & (eax << 7) eax = 0xffffffff & (edi - eax) eax = eax + (0xff & i) edi = 0xffffffff & (eax << 7) eax = 0xffffffff & (edi - eax) return eax
def loop(subject: int, loop_size: int) -> int: value = 1 for i in range(loop_size): value *= subject value = value % 20201227 return value def find_loopsize(public_key: int) -> int: value = 1 subject = 7 for i in range(100_000_000): value *= subject value = value % 20201227 if value == public_key: return i + 1 raise ValueError("Did not find public key") def get_secret(public_keys): loop_sizes = [find_loopsize(pk) for pk in public_keys] enc_key_0 = loop(public_keys[0], loop_sizes[1]) enc_key_1 = loop(public_keys[1], loop_sizes[0]) return enc_key_0, enc_key_1 def main(): public_keys = [11349501, 5107328] secret = get_secret(public_keys) print(f"The secret is {secret}") if __name__ == "__main__": main()
soma = 0 while True: n = int(input('Digite um número: ')) if n == 999: break soma += n #print('A soma entre os números digitados é igual a {}'.format(soma)) print(f'A soma vale {soma}') nome = 'José' idade = 33 salário = 987.3 ok = 'ok' print(f'O {nome:->20} tem {idade:-^20} anos e ganha R${salário:.2f} {ok:-<5}') print('O %s tem %d anos'% (nome, idade)) #Python 2
def findDecision(obj): #obj[0]: Passanger, obj[1]: Weather, obj[2]: Temperature, obj[3]: Time, obj[4]: Coupon, obj[5]: Coupon_validity, obj[6]: Gender, obj[7]: Age, obj[8]: Maritalstatus, obj[9]: Children, obj[10]: Education, obj[11]: Occupation, obj[12]: Income, obj[13]: Bar, obj[14]: Coffeehouse, obj[15]: Restaurantlessthan20, obj[16]: Restaurant20to50, obj[17]: Direction_same, obj[18]: Distance # {"feature": "Restaurant20to50", "instances": 51, "metric_value": 0.9864, "depth": 1} if obj[16]>0.0: # {"feature": "Restaurantlessthan20", "instances": 45, "metric_value": 0.9996, "depth": 2} if obj[15]>1.0: # {"feature": "Age", "instances": 37, "metric_value": 0.974, "depth": 3} if obj[7]<=3: # {"feature": "Income", "instances": 25, "metric_value": 0.9988, "depth": 4} if obj[12]>1: # {"feature": "Time", "instances": 16, "metric_value": 0.896, "depth": 5} if obj[3]>0: # {"feature": "Children", "instances": 12, "metric_value": 0.9799, "depth": 6} if obj[9]>0: # {"feature": "Coupon", "instances": 9, "metric_value": 0.7642, "depth": 7} if obj[4]>0: return 'False' elif obj[4]<=0: # {"feature": "Temperature", "instances": 3, "metric_value": 0.9183, "depth": 8} if obj[2]<=55: return 'True' elif obj[2]>55: return 'False' else: return 'False' else: return 'True' elif obj[9]<=0: return 'True' else: return 'True' elif obj[3]<=0: return 'False' else: return 'False' elif obj[12]<=1: # {"feature": "Education", "instances": 9, "metric_value": 0.7642, "depth": 5} if obj[10]<=2: return 'True' elif obj[10]>2: # {"feature": "Passanger", "instances": 3, "metric_value": 0.9183, "depth": 6} if obj[0]<=1: return 'False' elif obj[0]>1: return 'True' else: return 'True' else: return 'False' else: return 'True' elif obj[7]>3: # {"feature": "Occupation", "instances": 12, "metric_value": 0.65, "depth": 4} if obj[11]<=7: return 'True' elif obj[11]>7: # {"feature": "Coupon", "instances": 5, "metric_value": 0.971, "depth": 5} if obj[4]>1: # {"feature": "Maritalstatus", "instances": 3, "metric_value": 0.9183, "depth": 6} if obj[8]>0: return 'False' elif obj[8]<=0: return 'True' else: return 'True' elif obj[4]<=1: return 'True' else: return 'True' else: return 'True' else: return 'True' elif obj[15]<=1.0: # {"feature": "Education", "instances": 8, "metric_value": 0.5436, "depth": 3} if obj[10]<=2: return 'False' elif obj[10]>2: return 'True' else: return 'True' else: return 'False' elif obj[16]<=0.0: return 'True' else: return 'True'
"""while loops, also known as indefinite loops""" # n = 5 # while n > 0: # print(n) # n = n - 1 # print('Blastoff') # print(n) # breaking out of loops # while True: # line = input('> ') # if line == 'done': # break #ends loop and jumps to the end of the code # print(line) # print('Done!') # while True: # line = input('> ') # if line == '#': # continue # if line == 'done': # break # print(line) # print('Done!!!') # """For loop, also known as definite Loops""" #"""This code finds the largest value in a list and returns it""" #largest_num_so_far = -1 # set an initial variable to hold largest num value #print('largest number before loop', largest_num_so_far) #for number in [3, 41, 12, 9, 74, 15]: # if number > largest_num_so_far: # largest_num_so_far = number # print('largest number so far is', largest_num_so_far) #print('After iteration, largest number is:', largest_num_so_far) """This code find the smallest value in a list of numbers""" smallest = None print("Before:", smallest) for itervar in [3, 41, 12, 9, 74, 15]: if smallest is None or itervar < smallest: smallest = itervar break print("Loop:", itervar, smallest) print("Smallest:", smallest)
class Solution: def minDistance(self, word1: str, word2: str) -> int: m,n=len(word1),len(word2) dp=[[0 for _ in range(0,n+1)] for _ in range(0,m+1)] for _ in range(0,m+1):dp[_][0]=_ for _ in range(0,n+1):dp[0][_]=_ for i in range(1,m+1): for j in range(1,n+1): if word1[i-1]==word2[j-1]: dp[i][j]=dp[i-1][j-1] else: dp[i][j]=min(dp[i-1][j-1],dp[i-1][j],dp[i][j-1])+1 return dp[m][n]
# -*- coding: utf-8 -*- """ TradingStrategy __author__ = ‘Administrator‘ __mtime__ = 2016/12/19 """
""" 1. Keyword param """ def foo(a = 100, b = 10): print(a) print(b) foo(b=200, a=1000) foo(1, b=15) # Problem # SyntaxError: positional argument # follows keyword argument # foo(b=30, 1) """ 1. key word argument needs to place after position argument 2. 根据我查资料总结结果,很多 python 内置的函数都不支持 keyword 参数,python 的内置函数都是 c 实现的,只支持位置参数 """ print("hello", "abc", sep="|", end=" ") print("itcast")
#!/usr/bin/env python # Code Listing #5 """ Borg - Pattern which allows class instances to share state without the strict requirement of Singletons """ class Borg: """ I ain't a Singleton """ # クラス変数として dict を持つ __shared_state = {} def __init__(self): self.__dict__ = self.__shared_state # サブクラス子 class IBorg(Borg): """ I am a Borg """ def __init__(self): super().__init__() self.state = 'init' def __str__(self): return self.state # サブクラス孫 1 class ABorg(Borg): pass # サブクラス孫 2 class BBorg(Borg): pass # サブクラスひ孫 class A1Borg(ABorg): pass if __name__ == "__main__": a = ABorg() a1 = A1Borg() b = BBorg() a.x = 100 # すべて 100 を出力する。 print(f'{a.x = }') print(f'{a1.x = }') print(f'{b.x = }')
a = 999 b = 999 palindromes = [] for n in range(1,1000): for m in range(1,1000): num = m*n if str(num) == str(num)[::-1]: palindromes.append(num) print(max(palindromes))
def fileNaming(names): outnames = [] for name in names: if name in outnames: k = 1 while "{}({})".format(name, k) in outnames: k += 1 name = "{}({})".format(name, k) outnames.append(name) return outnames
print("Hello World") print("Hello Again") print("I Like typing this") print("This is fun.") print("Yay! Printing.") print("I'd much rather you 'not'.") print('I"said" do not touch this.') print("how to fix github")
#!/usr/env/bin python # https://www.hackerrank.com/challenges/array-left-rotation # Python 2 # first_input = '5 4' # second_input = '1 2 3 4 5' first_input = raw_input() second_input = raw_input() n, d = map(lambda x: int(x), first_input.split(' ')) items = second_input.split(' ') for i in xrange(d): item = items.pop(0) items.append(item) print(" ".join(items))
""" Remember that joint probability can generally be expressed as 𝑃(𝑎,𝑏)=𝑃(𝑎|𝑏)𝑃(𝑏) 𝑃(ℎ+,𝑣+)=𝑃(ℎ+|𝑣+)𝑃(𝑣+)=0.1∗0.3=0.03 """
# Reading lines from file and putting in a content string for line in open('rosalind_iev.txt', 'r').readlines(): contents = line.rsplit() AA_AA = float(contents[0]) AA_Aa = float(contents[1]) AA_aa = float(contents[2]) Aa_Aa = float(contents[3]) Aa_aa = float(contents[4]) aa_aa = float(contents[5]) def iev_prob(offsprings, AA_AA, AA_Aa, AA_aa, Aa_Aa, Aa_aa, aa_aa): allel_prob = [1, 1, 1, 0.75, 0.5, 0] AA_AA *= allel_prob[0] AA_Aa *= allel_prob[1] AA_aa *= allel_prob[2] Aa_Aa *= allel_prob[3] Aa_aa *= allel_prob[4] aa_aa *= allel_prob[5] return offsprings*(AA_AA+AA_Aa+AA_aa+Aa_Aa+Aa_aa+aa_aa) print(iev_prob(2, AA_AA, AA_Aa, AA_aa, Aa_Aa, Aa_aa, aa_aa))
#usando strip para eliminar espaços vazios nas bordas de uma string. Equivalente ao trim() arquivo = open('pessoas.csv') for linha in arquivo: print('Nome: {}, Idade: {}'.format(*linha.strip().split(','))) #Usando * irá extrair os elementos de uma coleção de dados (lista, tuplas dicionários, sets, etc) arquivo.close()
#------------------------------------------------------------------------------ # Custom whitespace stripping -- Append to bottom of ~/.jupyter/jupyter_notebook_config.py # Found here: https://github.com/jupyter/notebook/issues/1455#issuecomment-519891159 #------------------------------------------------------------------------------ def strip_white_space(text): return '\n'.join([line.rstrip() for line in text.split('\n')]) def scrub_output_pre_save(model=None, **kwargs): """Auto strip trailing white space before saving.""" # If we are dealing with a notebook # if model['type'] == 'notebook': # Don't run on anything other than nbformat version 4 # if model['content']['nbformat'] != 4: print("Skipping white space stripping since `nbformat` != 4.") return # Apply function to every cell # print("Stripping white space on a notebook.") for cell in model['content']['cells']: if cell['cell_type'] != 'code': continue cell['source'] = strip_white_space(cell['source']) # If we are dealing with a file # if model['type'] == 'file': if model['format'] == 'text': print("Stripping white space on a file.") model['content'] = strip_white_space(model['content']) c.ContentsManager.pre_save_hook = scrub_output_pre_save
""" --- Day 2: 1202 Program Alarm --- -- Part One -- An Intcode program is a list of integers separated by commas (like 1,0,0,3,99). To run one, start by looking at the first integer (called position 0). Here, you will find an opcode - either 1, 2, or 99. The opcode indicates what to do; for example, 99 means that the program is finished and should immediately halt. Encountering an unknown opcode means something went wrong. Opcode 1 adds together numbers read from two positions and stores the result in a third position. The three integers immediately after the opcode tell you these three positions - the first two indicate the positions from which you should read the input values, and the third indicates the position at which the output should be stored. For example, if your Intcode computer encounters 1,10,20,30, it should read the values at positions 10 and 20, add those values, and then overwrite the value at position 30 with their sum. Opcode 2 works exactly like opcode 1, except it multiplies the two inputs instead of adding them. Again, the three integers after the opcode indicate where the inputs and outputs are, not their values. (Opcode 99 halts the program.) Once you're done processing an opcode, move to the next one by stepping forward 4 positions. Once you have a working computer, the first step is to restore the gravity assist program (your puzzle input) to the "1202 program alarm" state it had just before the last computer caught fire. To do this, before running the program, replace position 1 with the value 12 and replace position 2 with the value 2. What value is left at position 0 after the program halts? -- Part Two -- "With terminology out of the way, we're ready to proceed. To complete the gravity assist, you need to determine what pair of inputs produces the output 19690720." The inputs should still be provided to the program by replacing the values at addresses 1 and 2, just like before. In this program, the value placed in address 1 is called the noun, and the value placed in address 2 is called the verb. Each of the two input values will be between 0 and 99, inclusive. Once the program has halted, its output is available at address 0, also just like before. Each time you try a pair of inputs, make sure you first reset the computer's memory to the values in the program (your puzzle input) - in other words, don't reuse memory from a previous attempt. Find the input noun and verb that cause the program to produce the output 19690720. What is 100 * noun + verb? (For example, if noun=12 and verb=2, the answer would be 1202.) """ def get_init(): a = open("intcode.txt", "r") b = (a.readline()).split(",") a.close() return b def opcode_one(arr, i): arr[int('%s'%(arr[i+3]))] = int(arr[int('%s'%(arr[i+1]))]) + int(arr[int('%s'%(arr[i+2]))]) def opcode_two(arr, i): arr[int('%s'%(arr[i+3]))] = int(arr[int('%s'%(arr[i+1]))]) * int(arr[int('%s'%(arr[i+2]))]) def part_one(): ics = get_init() i = 0 while i < (len(ics)): if ics[i] == "1": opcode_one(ics, i) i += 4 elif ics[i] == "2": opcode_two(ics, i) i += 4 elif ics[i] == "99": return ics[0] def part_two(): for k in range(0,100): for j in range(0, 100): ics = get_init() ics[1] = '%s'%(k) ics[2] = '%s'%(j) i = 0 while i < (len(ics)): if ics[i] == "1": opcode_one(ics, i) i += 4 elif ics[i] == "2": opcode_two(ics, i) i += 4 elif ics[i] == "99": break if ics[0] == 19690720: return(100*k + j) if __name__ == '__main__': print(part_one()) print(part_two())