5c2c5f7d73ad9924573053f8b0568f90e9f79c63
[openflowjava.git] / third-party / openflow-codec / src / main / java / org / openflow / codec / protocol / action / OFPGroupType.java
1 /**
2  *
3  */
4 package org.openflow.codec.protocol.action;
5
6 import java.io.Serializable;
7
8 /**
9  * List of OpenFlow Group types and mappings to wire protocol value and derived
10  * classes
11  *
12  * @author Yugandhar Sarraju (ysarraju@in.ibm.com)
13  */
14 public enum OFPGroupType implements Serializable {
15
16     OFPGT_ALL((short) 0), /* All (multicast/broadcast) group. */
17     OFPGT_SELECT((short) 1), /* Select group. */
18     OFPGT_INDIRECT((short) 2), /* Indirect group. */
19     OFPGT_FF((short) 3); /* Fast failover group. */
20
21     protected short value;
22
23     private OFPGroupType(short value) {
24         this.value = value;
25     }
26
27     /**
28      * @return the value
29      */
30     public short getValue() {
31         return value;
32     }
33
34 }