Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * Unless required by applicable law or agreed to in writing, software |
| 9 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | * See the License for the specific language governing permissions and |
| 12 | * limitations under the License. |
| 13 | */ |
| 14 | /* |
| 15 | * NOTE: This file was generated, manual edits will be overwritten! |
| 16 | * |
| 17 | * Generated by 'goCodeGenerator.py': |
| 18 | * https://github.com/cboling/OMCI-parser/README.md |
| 19 | */ |
| 20 | package generated |
| 21 | |
| 22 | import "github.com/deckarep/golang-set" |
| 23 | |
| 24 | const ThresholdData2ClassId ClassID = ClassID(274) |
| 25 | |
| 26 | var thresholddata2BME *ManagedEntityDefinition |
| 27 | |
| 28 | // ThresholdData2 (class ID #274) |
| 29 | // Together with an instance of the threshold data 1 ME, an instance of this ME contains threshold |
| 30 | // values for counters maintained in one or more instances of PM history data MEs. |
| 31 | // |
| 32 | // For a complete discussion of generic PM architecture, refer to clause I.4. |
| 33 | // |
| 34 | // Instances of this ME are created and deleted by the OLT. |
| 35 | // |
| 36 | // Relationships |
| 37 | // Refer to the relationships of the threshold data 1 ME. |
| 38 | // |
| 39 | // Attributes |
| 40 | // Managed Entity Id |
| 41 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. Its value is the |
| 42 | // same as that of the paired threshold data 1 instance. (R, setbycreate) (mandatory) (2 bytes) |
| 43 | // |
| 44 | // Threshold Value_8 |
| 45 | // Threshold value 8: (R, W, setbycreate) (mandatory) (4 bytes) |
| 46 | // |
| 47 | // Threshold Value_9 |
| 48 | // Threshold value 9: (R, W, setbycreate) (mandatory) (4 bytes) |
| 49 | // |
| 50 | // Threshold Value_10 |
| 51 | // Threshold value 10: (R, W, setbycreate) (mandatory) (4 bytes) |
| 52 | // |
| 53 | // Threshold Value_11 |
| 54 | // Threshold value 11: (R, W, setbycreate) (mandatory) (4 bytes) |
| 55 | // |
| 56 | // Threshold Value_12 |
| 57 | // Threshold value 12: (R, W, setbycreate) (mandatory) (4 bytes) |
| 58 | // |
| 59 | // Threshold Value_13 |
| 60 | // Threshold value 13: (R, W, setbycreate) (mandatory) (4 bytes) |
| 61 | // |
| 62 | // Threshold Value_14 |
| 63 | // Threshold value 14: (R, W, setbycreate) (mandatory) (4 bytes) |
| 64 | // |
| 65 | type ThresholdData2 struct { |
| 66 | ManagedEntityDefinition |
| 67 | Attributes AttributeValueMap |
| 68 | } |
| 69 | |
| 70 | func init() { |
| 71 | thresholddata2BME = &ManagedEntityDefinition{ |
| 72 | Name: "ThresholdData2", |
| 73 | ClassID: 274, |
| 74 | MessageTypes: mapset.NewSetWith( |
| 75 | Create, |
| 76 | Delete, |
| 77 | Get, |
| 78 | Set, |
| 79 | ), |
| 80 | AllowedAttributeMask: 0XFE00, |
| 81 | AttributeDefinitions: AttributeDefinitionMap{ |
| 82 | 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0), |
| 83 | 1: Uint32Field("ThresholdValue8", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1), |
| 84 | 2: Uint32Field("ThresholdValue9", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2), |
| 85 | 3: Uint32Field("ThresholdValue10", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 3), |
| 86 | 4: Uint32Field("ThresholdValue11", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 4), |
| 87 | 5: Uint32Field("ThresholdValue12", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 5), |
| 88 | 6: Uint32Field("ThresholdValue13", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 6), |
| 89 | 7: Uint32Field("ThresholdValue14", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 7), |
| 90 | }, |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | // NewThresholdData2 (class ID 274 creates the basic |
| 95 | // Managed Entity definition that is used to validate an ME of this type that |
| 96 | // is received from the wire, about to be sent on the wire. |
| 97 | func NewThresholdData2(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 98 | return NewManagedEntity(thresholddata2BME, params...) |
| 99 | } |