blob: 450fdfacffa5666806f44bb98bf171fca272ef2e [file] [log] [blame]
Phaneendra Manda1c0061d2015-08-06 12:29:38 +05301/*
2 * Copyright 2015 Open Networking Laboratory
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 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.pcepio.protocol;
18
19/**
20 * Enum to Provide the Different types of PCEP messages.
21 */
22public enum PcepType {
23
24 NONE(0), OPEN(1), KEEP_ALIVE(2), PATH_COMPUTATION_REQUEST(3), PATH_COMPUTATION_REPLY(4),
25 NOTIFICATION(5), ERROR(6), CLOSE(7), REPORT(10), UPDATE(11), INITIATE(12), LABEL_UPDATE(13),
26 TE_REPORT(14), LABEL_RANGE_RESERV(15), MAX(16), END(17);
27
28 int iValue;
29
30 /**
31 * Assign iValue with the value iVal as the types of PCEP message.
32 *
33 * @param iVal type of pcep message
34 */
35 PcepType(int iVal) {
36
37 iValue = iVal;
38 }
39
40 /**
41 * Returns iValue as type of PCEP message.
42 *
43 * @return iValue type of pcep message
44 */
45 public byte getType() {
46
47 return (byte) iValue;
48 }
49}