本文整理汇总了Java中com.thales.ntis.subscriber.model.FeedType类的典型用法代码示例。如果您正苦于以下问题:Java FeedType类的具体用法?Java FeedType怎么用?Java FeedType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FeedType类属于com.thales.ntis.subscriber.model包,在下文中一共展示了FeedType类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: newInstance
import com.thales.ntis.subscriber.model.FeedType; //导入依赖的package包/类
public static TrafficDataService newInstance(D2LogicalModel request) {
String feedType = request.getPayloadPublication().getFeedType();
LOG.info("FeedType is : " + feedType);
if (feedType.toLowerCase().contains(FeedType.ANPR.lowerCase())) {
return new ANPRTrafficDataServiceImpl();
} else if (feedType.toLowerCase().contains(FeedType.MIDAS.lowerCase())) {
return new MIDASTrafficDataServiceImpl();
} else if (feedType.toLowerCase().contains(FeedType.TMU.lowerCase())) {
return new TMUTrafficDataServiceImpl();
} else if (feedType.toLowerCase().contains(FeedType.FUSED_SENSOR_ONLY.lowerCase())) {
return new FusedSensorOnlyTrafficDataServiceImpl();
} else if (feedType.toLowerCase().contains(FeedType.FUSED_FVD_AND_SENSOR_PTD.lowerCase())) {
return new FusedFvdAndSensorTrafficDataServiceImpl();
} else if (feedType.toLowerCase().contains(FeedType.VMS.lowerCase())) {
return new VMSTrafficDataServiceImpl();
} else if (feedType.toLowerCase().contains(FeedType.NTIS_MODEL_UPDATE_NOTIFICATION.lowerCase())) {
return new NtisModelNotificationDataServiceImpl();
} else if (feedType.toLowerCase().contains(FeedType.EVENT_DATA.lowerCase())) {
return new EventDataServiceImpl();
} else {
LOG.error("Unrecognised Feed Type: " + feedType);
return null;
}
}
开发者ID:ntisservices,项目名称:ntis-java-web-services-Release3.2,代码行数:36,代码来源:TrafficDataServiceFactory.java
示例2: newInstance
import com.thales.ntis.subscriber.model.FeedType; //导入依赖的package包/类
public static TrafficDataService newInstance(D2LogicalModel request) {
String feedType = request.getPayloadPublication().getFeedType();
LOG.info("FeedType is : " + feedType);
if (feedType.toLowerCase().contains(FeedType.ANPR.lowerCase())) {
return new ANPRTrafficDataServiceImpl();
} else if (feedType.toLowerCase().contains(FeedType.MIDAS.lowerCase())) {
return new MIDASTrafficDataServiceImpl();
} else if (feedType.toLowerCase().contains(FeedType.TMU.lowerCase())) {
return new TMUTrafficDataServiceImpl();
} else if (feedType.toLowerCase().contains(FeedType.FUSED_SENSOR_ONLY.lowerCase())) {
return new SensorTrafficDataServiceImpl();
} else if (feedType.toLowerCase().contains(FeedType.FUSED_FVD_AND_SENSOR_PTD.lowerCase())) {
return new FVDTrafficDataServiceImpl();
} else if (feedType.toLowerCase().contains(FeedType.VMS.lowerCase())) {
return new VMSTrafficDataServiceImpl();
} else if (feedType.toLowerCase().contains(FeedType.NTIS_MODEL_UPDATE_NOTIFICATION.lowerCase())) {
return new NtisModelNotificationDataServiceImpl();
}
return null;
}
开发者ID:ntisservices,项目名称:OBSOLETE-ntis-java-web-services-Release2.4,代码行数:28,代码来源:TrafficDataServiceFactory.java
示例3: isEventFullRefresh
import com.thales.ntis.subscriber.model.FeedType; //导入依赖的package包/类
private boolean isEventFullRefresh(D2LogicalModel d2LogicalModel) {
return d2LogicalModel.getPayloadPublication().getFeedType().toLowerCase().contains(FeedType.FULL_REFRESH.lowerCase());
}