本文整理匯總了Java中iotsuite.semanticmodel.Device.getType方法的典型用法代碼示例。如果您正苦於以下問題:Java Device.getType方法的具體用法?Java Device.getType怎麽用?Java Device.getType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類iotsuite.semanticmodel.Device
的用法示例。
在下文中一共展示了Device.getType方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getInstance
import iotsuite.semanticmodel.Device; //導入方法依賴的package包/類
public static Object getInstance(String middlewareName, Device device,
Object context) {
if (middlewareName.equals("mqtt")) {
if (singletonInstance == null) {
singletonInstance = new PubSubMiddleware(device.getType(),
device.getName(), context);
}
return singletonInstance;
}
return null;
}
開發者ID:chauhansaurabhb,項目名稱:EndUserInteractioion_RequestResponse_Command,代碼行數:15,代碼來源:IoTSuiteFactory.java
示例2: getInstance
import iotsuite.semanticmodel.Device; //導入方法依賴的package包/類
public static PubSubMiddleware getInstance(Device device, Object context) {
if (singletonInstance == null) {
singletonInstance = new PubSubMiddleware(device.getType(),
device.getName(), context);
}
return singletonInstance;
}
開發者ID:chauhansaurabhb,項目名稱:EndUserInteractioion_RequestResponse_Command,代碼行數:9,代碼來源:PubSubMiddleware.java
示例3: getInstance
import iotsuite.semanticmodel.Device; //導入方法依賴的package包/類
public static Object getInstance(String middlewareName, Device device,
Object context) {
if (middlewareName.equals("mqtt")) {
if (singletonInstance == null) {
singletonInstance = new PubSubMiddleware(device.getType(),
device.getName(), (Context) context);
}
return singletonInstance;
}
return null;
}
開發者ID:chauhansaurabhb,項目名稱:EndUserInteractioion_RequestResponse_Command,代碼行數:15,代碼來源:IoTSuiteFactory.java
示例4: getInstance
import iotsuite.semanticmodel.Device; //導入方法依賴的package包/類
public static PubSubMiddleware getInstance(Device device, Activity context) {
if (singletonInstance == null) {
singletonInstance = new PubSubMiddleware(device.getType(),
device.getName(), context);
}
return singletonInstance;
}
開發者ID:chauhansaurabhb,項目名稱:EndUserInteractioion_RequestResponse_Command,代碼行數:9,代碼來源:PubSubMiddleware.java
示例5: MergeDeviceAbilities
import iotsuite.semanticmodel.Device; //導入方法依賴的package包/類
private static Device MergeDeviceAbilities(Device device,
Set<String> swComponentName, String filterAbility) {
List<String> forLoopAbilities = new ArrayList<String>();
forLoopAbilities.addAll(device.getAbilities());
forLoopAbilities.addAll(swComponentName);
Set<String> resultAbilities = new HashSet<String>();
for (String ab : forLoopAbilities) {
if (ab.equals(filterAbility)) {
// Do nothing...
} else {
resultAbilities.add(ab);
resultAbilities.addAll(swComponentName);
}
}
/*
* return new Device(device.getName(), device.getType(),
* device.getNetworkAddress(), device.getRegion(),
* device.getRegionLabels(), resultAbilities, device.getMobileFlag(),
* device.getProtocol(), device.getDescription(), device.getDatabase());
*/
return new Device(device.getName(), device.getType(), resultAbilities,
device.getProtocol(), device.getDescription(),
device.getDatabase());
}
示例6: getInstance
import iotsuite.semanticmodel.Device; //導入方法依賴的package包/類
public static Object getInstance(String middlewareName, Device device, Object context) {
if(middlewareName.equals("mqtt")) {
if (singletonInstance == null) {
singletonInstance = new PubSubMiddleware(device.getType(), device.getName(), (Context) context);
}
return singletonInstance;
}
return null;
}