本文整理汇总了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();
}
示例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();
}
示例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);
示例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);