Java 类org.projectfloodlight.openflow.protocol.OFOxmClass 实例源码

项目:loxigen-artifacts    文件:OFOxmClassSerializerVer15.java   
public static OFOxmClass ofWireValue(short val) {
    switch(val) {
        case NXM_0_VAL:
            return OFOxmClass.NXM_0;
        case NXM_1_VAL:
            return OFOxmClass.NXM_1;
        case OPENFLOW_BASIC_VAL:
            return OFOxmClass.OPENFLOW_BASIC;
        case PACKET_REGS_VAL:
            return OFOxmClass.PACKET_REGS;
        case EXPERIMENTER_VAL:
            return OFOxmClass.EXPERIMENTER;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFOxmClass in version 1.5: " + val);
    }
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer15.java   
public static short toWireValue(OFOxmClass e) {
    switch(e) {
        case NXM_0:
            return NXM_0_VAL;
        case NXM_1:
            return NXM_1_VAL;
        case OPENFLOW_BASIC:
            return OPENFLOW_BASIC_VAL;
        case PACKET_REGS:
            return PACKET_REGS_VAL;
        case EXPERIMENTER:
            return EXPERIMENTER_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFOxmClass in version 1.5: " + e);
    }
}
项目:openflowj-otn    文件:OFOxmClassSerializerVer12.java   
public static OFOxmClass readFrom(ChannelBuffer bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:openflowj-otn    文件:OFOxmClassSerializerVer12.java   
public static OFOxmClass ofWireValue(short val) {
    switch(val) {
        case NXM_0_VAL:
            return OFOxmClass.NXM_0;
        case NXM_1_VAL:
            return OFOxmClass.NXM_1;
        case OPENFLOW_BASIC_VAL:
            return OFOxmClass.OPENFLOW_BASIC;
        case EXPERIMENTER_VAL:
            return OFOxmClass.EXPERIMENTER;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFOxmClass in version 1.2: " + val);
    }
}
项目:openflowj-otn    文件:OFOxmClassSerializerVer12.java   
public static short toWireValue(OFOxmClass e) {
    switch(e) {
        case NXM_0:
            return NXM_0_VAL;
        case NXM_1:
            return NXM_1_VAL;
        case OPENFLOW_BASIC:
            return OPENFLOW_BASIC_VAL;
        case EXPERIMENTER:
            return EXPERIMENTER_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFOxmClass in version 1.2: " + e);
    }
}
项目:openflowj-otn    文件:OFOxmClassSerializerVer13.java   
public static OFOxmClass readFrom(ChannelBuffer bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:openflowj-otn    文件:OFOxmClassSerializerVer13.java   
public static OFOxmClass ofWireValue(short val) {
    switch(val) {
        case NXM_0_VAL:
            return OFOxmClass.NXM_0;
        case NXM_1_VAL:
            return OFOxmClass.NXM_1;
        case OPENFLOW_BASIC_VAL:
            return OFOxmClass.OPENFLOW_BASIC;
        case EXPERIMENTER_VAL:
            return OFOxmClass.EXPERIMENTER;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFOxmClass in version 1.3: " + val);
    }
}
项目:openflowj-otn    文件:OFOxmClassSerializerVer13.java   
public static short toWireValue(OFOxmClass e) {
    switch(e) {
        case NXM_0:
            return NXM_0_VAL;
        case NXM_1:
            return NXM_1_VAL;
        case OPENFLOW_BASIC:
            return OPENFLOW_BASIC_VAL;
        case EXPERIMENTER:
            return EXPERIMENTER_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFOxmClass in version 1.3: " + e);
    }
}
项目:openflowj-otn    文件:OFOxmClassSerializerVer14.java   
public static OFOxmClass readFrom(ChannelBuffer bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:openflowj-otn    文件:OFOxmClassSerializerVer14.java   
public static OFOxmClass ofWireValue(short val) {
    switch(val) {
        case NXM_0_VAL:
            return OFOxmClass.NXM_0;
        case NXM_1_VAL:
            return OFOxmClass.NXM_1;
        case OPENFLOW_BASIC_VAL:
            return OFOxmClass.OPENFLOW_BASIC;
        case EXPERIMENTER_VAL:
            return OFOxmClass.EXPERIMENTER;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFOxmClass in version 1.4: " + val);
    }
}
项目:openflowj-otn    文件:OFOxmClassSerializerVer14.java   
public static short toWireValue(OFOxmClass e) {
    switch(e) {
        case NXM_0:
            return NXM_0_VAL;
        case NXM_1:
            return NXM_1_VAL;
        case OPENFLOW_BASIC:
            return OPENFLOW_BASIC_VAL;
        case EXPERIMENTER:
            return EXPERIMENTER_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFOxmClass in version 1.4: " + e);
    }
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer12.java   
public static OFOxmClass readFrom(ByteBuf bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer12.java   
public static OFOxmClass ofWireValue(short val) {
    switch(val) {
        case NXM_0_VAL:
            return OFOxmClass.NXM_0;
        case NXM_1_VAL:
            return OFOxmClass.NXM_1;
        case OPENFLOW_BASIC_VAL:
            return OFOxmClass.OPENFLOW_BASIC;
        case EXPERIMENTER_VAL:
            return OFOxmClass.EXPERIMENTER;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFOxmClass in version 1.2: " + val);
    }
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer12.java   
public static short toWireValue(OFOxmClass e) {
    switch(e) {
        case NXM_0:
            return NXM_0_VAL;
        case NXM_1:
            return NXM_1_VAL;
        case OPENFLOW_BASIC:
            return OPENFLOW_BASIC_VAL;
        case EXPERIMENTER:
            return EXPERIMENTER_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFOxmClass in version 1.2: " + e);
    }
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer13.java   
public static OFOxmClass readFrom(ByteBuf bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer13.java   
public static OFOxmClass ofWireValue(short val) {
    switch(val) {
        case NXM_0_VAL:
            return OFOxmClass.NXM_0;
        case NXM_1_VAL:
            return OFOxmClass.NXM_1;
        case OPENFLOW_BASIC_VAL:
            return OFOxmClass.OPENFLOW_BASIC;
        case EXPERIMENTER_VAL:
            return OFOxmClass.EXPERIMENTER;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFOxmClass in version 1.3: " + val);
    }
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer13.java   
public static short toWireValue(OFOxmClass e) {
    switch(e) {
        case NXM_0:
            return NXM_0_VAL;
        case NXM_1:
            return NXM_1_VAL;
        case OPENFLOW_BASIC:
            return OPENFLOW_BASIC_VAL;
        case EXPERIMENTER:
            return EXPERIMENTER_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFOxmClass in version 1.3: " + e);
    }
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer15.java   
public static OFOxmClass readFrom(ByteBuf bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer14.java   
public static OFOxmClass readFrom(ByteBuf bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer14.java   
public static OFOxmClass ofWireValue(short val) {
    switch(val) {
        case NXM_0_VAL:
            return OFOxmClass.NXM_0;
        case NXM_1_VAL:
            return OFOxmClass.NXM_1;
        case OPENFLOW_BASIC_VAL:
            return OFOxmClass.OPENFLOW_BASIC;
        case EXPERIMENTER_VAL:
            return OFOxmClass.EXPERIMENTER;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFOxmClass in version 1.4: " + val);
    }
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer14.java   
public static short toWireValue(OFOxmClass e) {
    switch(e) {
        case NXM_0:
            return NXM_0_VAL;
        case NXM_1:
            return NXM_1_VAL;
        case OPENFLOW_BASIC:
            return OPENFLOW_BASIC_VAL;
        case EXPERIMENTER:
            return EXPERIMENTER_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFOxmClass in version 1.4: " + e);
    }
}
项目:openflowj-otn    文件:OFOxmClassSerializerVer12.java   
public static void writeTo(ChannelBuffer bb, OFOxmClass e) {
    bb.writeShort(toWireValue(e));
}
项目:openflowj-otn    文件:OFOxmClassSerializerVer12.java   
public static void putTo(OFOxmClass e, PrimitiveSink sink) {
    sink.putShort(toWireValue(e));
}
项目:openflowj-otn    文件:OFOxmClassSerializerVer13.java   
public static void writeTo(ChannelBuffer bb, OFOxmClass e) {
    bb.writeShort(toWireValue(e));
}
项目:openflowj-otn    文件:OFOxmClassSerializerVer13.java   
public static void putTo(OFOxmClass e, PrimitiveSink sink) {
    sink.putShort(toWireValue(e));
}
项目:openflowj-otn    文件:OFOxmClassSerializerVer14.java   
public static void writeTo(ChannelBuffer bb, OFOxmClass e) {
    bb.writeShort(toWireValue(e));
}
项目:openflowj-otn    文件:OFOxmClassSerializerVer14.java   
public static void putTo(OFOxmClass e, PrimitiveSink sink) {
    sink.putShort(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer12.java   
public static void writeTo(ByteBuf bb, OFOxmClass e) {
    bb.writeShort(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer12.java   
public static void putTo(OFOxmClass e, PrimitiveSink sink) {
    sink.putShort(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer13.java   
public static void writeTo(ByteBuf bb, OFOxmClass e) {
    bb.writeShort(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer13.java   
public static void putTo(OFOxmClass e, PrimitiveSink sink) {
    sink.putShort(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer15.java   
public static void writeTo(ByteBuf bb, OFOxmClass e) {
    bb.writeShort(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer15.java   
public static void putTo(OFOxmClass e, PrimitiveSink sink) {
    sink.putShort(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer14.java   
public static void writeTo(ByteBuf bb, OFOxmClass e) {
    bb.writeShort(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFOxmClassSerializerVer14.java   
public static void putTo(OFOxmClass e, PrimitiveSink sink) {
    sink.putShort(toWireValue(e));
}