当前位置: 首页>>代码示例>>Java>>正文


Java OFVendorDataType类代码示例

本文整理汇总了Java中org.openflow.protocol.vendor.OFVendorDataType的典型用法代码示例。如果您正苦于以下问题:Java OFVendorDataType类的具体用法?Java OFVendorDataType怎么用?Java OFVendorDataType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


OFVendorDataType类属于org.openflow.protocol.vendor包,在下文中一共展示了OFVendorDataType类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getVendorData

import org.openflow.protocol.vendor.OFVendorDataType; //导入依赖的package包/类
@Override
public OFVendorData getVendorData(OFVendorId vendorId,
                                  OFVendorDataType vendorDataType) {
    if (vendorDataType == null)
        return null;
    
    return vendorDataType.newInstance();
}
 
开发者ID:vishalshubham,项目名称:Multipath-Hedera-system-in-Floodlight-controller,代码行数:9,代码来源:BasicFactory.java

示例2: getVendorData

import org.openflow.protocol.vendor.OFVendorDataType; //导入依赖的package包/类
@Override
public OFVendorData getVendorData(final OFVendorId vendorId,
        final OFVendorDataType vendorDataType) {
    if (vendorDataType == null) {
        return null;
    }

    return vendorDataType.newInstance();
}
 
开发者ID:CoVisor,项目名称:CoVisor,代码行数:10,代码来源:BasicFactory.java

示例3: getVendorData

import org.openflow.protocol.vendor.OFVendorDataType; //导入依赖的package包/类
@Override
public OFVendorData getVendorData(OFVendorId vendorId,
                                  OFVendorDataType vendorDataType) {
    if (vendorDataType == null)
        return null;

    return vendorDataType.newInstance();
}
 
开发者ID:opendaylight,项目名称:archived-net-virt-platform,代码行数:9,代码来源:BasicFactory.java

示例4: getVendorData

import org.openflow.protocol.vendor.OFVendorDataType; //导入依赖的package包/类
/**
 * Retrieves an OFVendorData instance corresponding to the specified
 * OFVendorId and OFVendorDataType. There are 3 possible cases for
 * how this will be called:
 * 
 * 1) If the vendor id in the OFVendor message is an unknown value, 
 *    then this method is called with both vendorId and vendorDataType
 *    set to null. In this case typically the factory method should
 *    return an instance of OFGenericVendorData that just contains
 *    the raw byte array of the vendor data.
 *    
 * 2) If the vendor id is known but no vendor data type has been
 *    registered for the data in the message, then vendorId is set to
 *    the appropriate OFVendorId instance and OFVendorDataType is set
 *    to null. This would typically be handled the same way as #1
 *    
 * 3) If both the vendor id and and vendor data type are known, then
 *    typically you'd just call the method in OFVendorDataType to
 *    instantiate the appropriate subclass of OFVendorData.
 *    
 * @param vendorId the vendorId of the containing OFVendor message
 * @param vendorDataType the type of the OFVendorData to be retrieved
 * @return an OFVendorData instance
 */
public OFVendorData getVendorData(OFVendorId vendorId,
        OFVendorDataType vendorDataType);
 
开发者ID:JianqingJiang,项目名称:QoS-floodlight,代码行数:27,代码来源:OFVendorDataFactory.java

示例5: getVendorData

import org.openflow.protocol.vendor.OFVendorDataType; //导入依赖的package包/类
/**
 * Retrieves an OFVendorData instance corresponding to the specified
 * OFVendorId and OFVendorDataType. There are 3 possible cases for how this
 * will be called:
 *
 * 1) If the vendor id in the OFVendor message is an unknown value, then
 * this method is called with both vendorId and vendorDataType set to null.
 * In this case typically the factory method should return an instance of
 * OFGenericVendorData that just contains the raw byte array of the vendor
 * data.
 *
 * 2) If the vendor id is known but no vendor data type has been registered
 * for the data in the message, then vendorId is set to the appropriate
 * OFVendorId instance and OFVendorDataType is set to null. This would
 * typically be handled the same way as #1
 *
 * 3) If both the vendor id and and vendor data type are known, then
 * typically you'd just call the method in OFVendorDataType to instantiate
 * the appropriate subclass of OFVendorData.
 *
 * @param vendorId
 *            the vendorId of the containing OFVendor message
 * @param vendorDataType
 *            the type of the OFVendorData to be retrieved
 * @return an OFVendorData instance
 */
public OFVendorData getVendorData(OFVendorId vendorId,
        OFVendorDataType vendorDataType);
 
开发者ID:CoVisor,项目名称:CoVisor,代码行数:29,代码来源:OFVendorDataFactory.java


注:本文中的org.openflow.protocol.vendor.OFVendorDataType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。