blob: 17acd46068af5340b5e95750fd5ac3abe368c2c0 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
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 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const TwdmChannelPloamPerformanceMonitoringHistoryDataPart1ClassId ClassID = ClassID(446)
25
26var twdmchannelploamperformancemonitoringhistorydatapart1BME *ManagedEntityDefinition
27
28// TwdmChannelPloamPerformanceMonitoringHistoryDataPart1 (class ID #446)
29// This ME collects certain PLOAM-related PM data associated with the slot/circuit pack, hosting
30// one or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and deleted
31// by the OLT.
32//
33// The downstream PLOAM message counts of this ME include only the received PLOAM messages
34// pertaining to the given ONU, i.e.:
35//
36// – unicast PLOAM messages, addressed by ONU-ID;
37//
38// – broadcast PLOAM messages, addressed by serial number;
39//
40// – broadcast PLOAM messages, addressed to all ONUs on the PON.
41//
42// This ME includes all PLOAM PM counters characterized as mandatory in clause 14 of
43// [ITU-T G.989.3].
44//
45// For a complete discussion of generic PM architecture, refer to clause I.4.
46//
47// Relationships
48// An instance of this ME is associated with an instance of TWDM channel ME.
49//
50// Attributes
51// Managed Entity Id
52// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
53// identical ID, this ME is implicitly linked to an instance of the TWDM channel ME. (R,
54// setbycreate) (mandatory) (2 bytes)
55//
56// Interval End Time
57// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
58// (mandatory) (1 byte)
59//
60// Threshold Data 1_2 Id
61// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
62// that contains PM threshold values. (R, W, setbycreate) (mandatory) (2 bytes)
63//
64// Ploam Mic Errors
65// PLOAM MIC errors: The counter of received PLOAM messages that remain unparsable due to MIC
66// error. (R) (mandatory) (4 byte)
67//
68// Downstream Ploam Message Count
69// Downstream PLOAM message count: The counter of received broadcast and unicast PLOAM messages
70// pertaining to the given ONU. (R) (mandatory) (4 byte)
71//
72// Ranging_Time Message Count
73// Ranging_Time message count: The counter of received Ranging_Time PLOAM messages. (R) (mandatory)
74// (4 byte)
75//
76// Protection_Control Message Count
77// Protection_Control message count: The counter of received Protection_Control PLOAM messages. (R)
78// (mandatory) (4 byte)
79//
80// Adjust_Tx_Wavelength Message Count
81// Adjust_Tx_Wavelength message count: The counter of received Adjust_Tx_Wavelength PLOAM messages.
82// (R) (mandatory) (4 byte)
83//
84// Adjust_Tx_Wavelength Adjustment Amplitude
85// Adjust_Tx_Wavelength adjustment amplitude: An estimator of the absolute value of the
86// transmission wavelength adjustment. (R) (mandatory) (4 byte)
87//
88type TwdmChannelPloamPerformanceMonitoringHistoryDataPart1 struct {
89 ManagedEntityDefinition
90 Attributes AttributeValueMap
91}
92
93func init() {
94 twdmchannelploamperformancemonitoringhistorydatapart1BME = &ManagedEntityDefinition{
95 Name: "TwdmChannelPloamPerformanceMonitoringHistoryDataPart1",
96 ClassID: 446,
97 MessageTypes: mapset.NewSetWith(
98 Create,
99 Delete,
100 Get,
101 GetCurrentData,
102 Set,
103 ),
104 AllowedAttributeMask: 0XFF00,
105 AttributeDefinitions: AttributeDefinitionMap{
106 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
107 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
108 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
109 3: Uint32Field("PloamMicErrors", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
110 4: Uint32Field("DownstreamPloamMessageCount", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
111 5: Uint32Field("RangingTimeMessageCount", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
112 6: Uint32Field("ProtectionControlMessageCount", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
113 7: Uint32Field("AdjustTxWavelengthMessageCount", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
114 8: Uint32Field("AdjustTxWavelengthAdjustmentAmplitude", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
115 },
116 }
117}
118
119// NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart1 (class ID 446 creates the basic
120// Managed Entity definition that is used to validate an ME of this type that
121// is received from the wire, about to be sent on the wire.
122func NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart1(params ...ParamData) (*ManagedEntity, OmciErrors) {
123 return NewManagedEntity(twdmchannelploamperformancemonitoringhistorydatapart1BME, params...)
124}