• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java LabeledValue类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: EVCProcessorDefinition

import com.esri.ges.core.property.LabeledValue; //导入依赖的package包/类
public EVCProcessorDefinition()
{
	try {
		PropertyDefinition pdInterval = new PropertyDefinition("interval", PropertyType.Long, 10000, "Interval (miliseconds)", "Amount of time between which new messages with the same track id will be dropped", true, false);
		propertyDefinitions.put(pdInterval.getPropertyName(), pdInterval);
		
		List<LabeledValue> allowedVals = new ArrayList<LabeledValue>();
		allowedVals.add(new LabeledValue(allowedValInterval,"byInterval" ));
		allowedVals.add(new LabeledValue(allowedValMaxPerInterval, "maxPerInterval"));
		PropertyDefinition pdFilterType = new PropertyDefinition("filterType", PropertyType.String, allowedValInterval, lblFilterType, descFilterType, true, false, allowedVals);

		propertyDefinitions.put(pdFilterType.getPropertyName(), pdFilterType);
		
		PropertyDefinition pdEPI = new PropertyDefinition("epi", PropertyType.Long, 100, lblMaxPerInterval, descMaxPerInterval, true, false);
		pdEPI.setDependsOn("filterType=maxPerInterval");
		propertyDefinitions.put(pdEPI.getPropertyName(), pdEPI);
		
	} catch (PropertyException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:23,代码来源:EVCProcessorDefinition.java


示例2: IncrementalPointProcessorDefinition

import com.esri.ges.core.property.LabeledValue; //导入依赖的package包/类
public IncrementalPointProcessorDefinition() throws PropertyException {

		
		List<LabeledValue> allowedIn = new ArrayList<LabeledValue>();
		allowedIn.add(new LabeledValue("${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.SEGMENTATION_TYPE_DISTANCE_LBL}","distance"));
		allowedIn.add(new LabeledValue("${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.SEGMENTATION_TYPE_TIME_LBL}","time"));
		allowedIn.add(new LabeledValue("${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.SEGMENTATION_TYPE_VERTEX_LBL}","vertex"));
		
		PropertyDefinition pdInterval= new PropertyDefinition("intervalType", PropertyType.String, "", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.LBL_INTERVAL_TYPE}", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.DESC_INTERVAL_TYPE}",true, false, allowedIn);
		propertyDefinitions.put(pdInterval.getPropertyName(), pdInterval);
		PropertyDefinition pdTimeInterval = new PropertyDefinition("timeinterval", PropertyType.Long, 600000, "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.LBL_TIME_INTERVAL}", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.DESC_TIME_INTERVAL}", false, false);
		pdTimeInterval.setDependsOn("intervalType=time");
		propertyDefinitions.put(pdTimeInterval.getPropertyName(),pdTimeInterval);
		PropertyDefinition pdDistInterval = new PropertyDefinition("distanceinterval", PropertyType.Double, 0.0, "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.LBL_DISTANCE_INTERVAL}", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.DESC_DISTANCE_INTERVAL}", false, false);
		pdDistInterval.setDependsOn("intervalType=distance");
		propertyDefinitions.put(pdDistInterval.getPropertyName(),pdDistInterval);
		PropertyDefinition pdwkid = new PropertyDefinition("wkid", PropertyType.Integer, "", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.LBL_PROCESS_WKID}", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.DESC_PROCESS_WKID}",true, false);
		propertyDefinitions.put(pdwkid.getPropertyName(), pdwkid);
		PropertyDefinition pdOutDef = new PropertyDefinition("outdefname", PropertyType.String, "", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.LBL_OUTDEFNAME}", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.DESC_OUTDEFNAME}", true, false);
		propertyDefinitions.put(pdOutDef.getPropertyName(), pdOutDef);
	}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:22,代码来源:IncrementalPointProcessorDefinition.java


示例3: TcpSquirtOutboundTransportDefinition

import com.esri.ges.core.property.LabeledValue; //导入依赖的package包/类
public TcpSquirtOutboundTransportDefinition()
{
	super(TransportType.OUTBOUND);
	try
	{
		propertyDefinitions.put("host", new PropertyDefinition("host", PropertyType.String, "localhost", "${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.LBL_HOST}", "${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.DESC_HOST}", false, false));
		propertyDefinitions.put("port", new PropertyDefinition("port", PropertyType.Integer, new Integer(5000), "${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.LBL_PORT}", "${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.DESC_PORT}", true, false));
		List<LabeledValue> allowedModes = new ArrayList<LabeledValue>();
		allowedModes.add(new LabeledValue("${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.ALLOWED_MODE_SERVER}", "SERVER"));
		allowedModes.add(new LabeledValue("${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.ALLOWED_MODE_CLIENT}", "CLIENT"));
		propertyDefinitions.put("mode", new PropertyDefinition("mode", PropertyType.String, "${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.MODE_SERVER_LBL}", "${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.LBL_MODE}", "${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.DESC_MODE}", true, false, allowedModes));
		propertyDefinitions.put("clientConnectionTimeout", new PropertyDefinition("clientConnectionTimeout", PropertyType.Integer, new Integer(60), "{com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.LBL_TIMEOUT}", "{com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.DESC_TIMEOUT}", "mode=CLIENT", false, false));
	}
	catch (PropertyException e)
	{
		LOG.error("Failed to define properties of TCPSquirtOutboundTransportDefinition: ", e);
		throw new RuntimeException(e);
	}
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:20,代码来源:TcpSquirtOutboundTransportDefinition.java


示例4: ServiceAreaCalculatorDefinition

import com.esri.ges.core.property.LabeledValue; //导入依赖的package包/类
public ServiceAreaCalculatorDefinition()
{
	try
	{
		propertyDefinitions.put("inputGeometryField", new PropertyDefinition("inputGeometryField", PropertyType.GeoEventField_Geometry, "GEOMETRY", "${com.esri.geoevent.processor.service-area-calculator-processor.INPUTGEOMETRYFIELD_LABEL}", "${com.esri.geoevent.processor.service-area-calculator-processor.INPUTGEOMETRYFIELD_DESC}", true, false));
		propertyDefinitions.put("replaceGeometry", new PropertyDefinition("replaceGeometry", PropertyType.Boolean, "true", "${com.esri.geoevent.processor.service-area-calculator-processor.REPLACEGEOMETRY_LABEL}", "${com.esri.geoevent.processor.service-area-calculator-processor.REPLACEGEOMETRY_DESC}", true, false));
		propertyDefinitions.put("outputGeometryField", new PropertyDefinition("outputGeometryField", PropertyType.String, "", "${com.esri.geoevent.processor.service-area-calculator-processor.OUTPUTGEOMETRYFIELD_LABEL}", "${com.esri.geoevent.processor.service-area-calculator-processor.OUTPUTGEOMETRYFIELD_DESC}", "replaceGeometry=false", false, false));
		propertyDefinitions.put("outputGEDName", new PropertyDefinition("outputGEDName", PropertyType.String, "", "${com.esri.geoevent.processor.service-area-calculator-processor.OUTPUTGEDNAME_LABEL}", "${com.esri.geoevent.processor.service-area-calculator-processor.OUTPUTGEDNAME_DESC}", "replaceGeometry=false", false, false));
		propertyDefinitions.put(NA_CONNECTION_PROPERTY, new PropertyDefinition(NA_CONNECTION_PROPERTY, PropertyType.ArcGISConnection, "", "${com.esri.geoevent.processor.service-area-calculator-processor.AGS_CONNECTION_NAME_LABEL}", "${com.esri.geoevent.processor.service-area-calculator-processor.AGS_CONNECTION_NAME_DESC}", true, false));

		propertyDefinitions.put(NA_PATH_PROPERTY, new PropertyDefinition(NA_PATH_PROPERTY, PropertyType.String, "rest/services/Network/USA/NAServer/Service%20Area/solveServiceArea", "${com.esri.geoevent.processor.service-area-calculator-processor.NA_SOLVER_PATH_LABEL}", "${com.esri.geoevent.processor.service-area-calculator-processor.NA_SOLVER_PATH_DESC}", false, false));
		propertyDefinitions.put(DRIVE_TIME_PROPERTY, new PropertyDefinition(DRIVE_TIME_PROPERTY, PropertyType.Integer, 2, "${com.esri.geoevent.processor.service-area-calculator-processor.DRIVE_TIME_LABEL}", "${com.esri.geoevent.processor.service-area-calculator-processor.DRIVE_TIME_DESC}", false, false));

		List<LabeledValue> outputPolygonType = new ArrayList<LabeledValue>(2);
		outputPolygonType.add(new LabeledValue("${com.esri.geoevent.processor.service-area-calculator-processor.POLYGON_TYPE_DETAILED_LBL}", "esriNAOutputPolygonDetailed"));
		outputPolygonType.add(new LabeledValue("${com.esri.geoevent.processor.service-area-calculator-processor.POLYGON_TYPE_SIMPLIFIED_LBL}", "esriNAOutputPolygonSimplified"));
		propertyDefinitions.put(OUTPUT_POLYGON_TYPE_PROPERTY, new PropertyDefinition(OUTPUT_POLYGON_TYPE_PROPERTY, PropertyType.String, "esriNAOutputPolygonSimplified", "${com.esri.geoevent.processor.service-area-calculator-processor.OUTPUT_POLYGON_TYPE_LABEL}", "${com.esri.geoevent.processor.service-area-calculator-processor.OUTPUT_POLYGON_TYPE_DESC}", false, false, outputPolygonType));

	}
	catch (Exception e)
	{
		;
	}
}
 
开发者ID:Esri,项目名称:service-area-calculator-for-geoevent,代码行数:25,代码来源:ServiceAreaCalculatorDefinition.java


示例5: ActiveMQOutboundTransportDefinition

import com.esri.ges.core.property.LabeledValue; //导入依赖的package包/类
public ActiveMQOutboundTransportDefinition() {
  super(TransportType.OUTBOUND);
  try {
    propertyDefinitions.put("providerUrl", new PropertyDefinition("providerUrl", PropertyType.String, "tcp://localhost:61616", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_PROVIDER_URL_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_PROVIDER_URL_DESC}", true, false));
    List<LabeledValue> allowedValues = new ArrayList<>(2);
    allowedValues.add(new LabeledValue("Queue", "Queue"));
    allowedValues.add(new LabeledValue("Topic", "Topic"));
    propertyDefinitions.put("destinationType", new PropertyDefinition("destinationType", PropertyType.String, "Queue", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_JMS_DESTINATION_TYPE_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_JMS_DESTINATION_TYPE_DESC}", true, false, allowedValues));
    propertyDefinitions.put("destinationName", new PropertyDefinition("destinationName", PropertyType.String, null, "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_JMS_DESTINATION_NAME_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_JMS_DESTINATION_NAME_DESC}", true, false));
    propertyDefinitions.put("userName", new PropertyDefinition("userName", PropertyType.String, null, "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_USERNAME_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_USERNAME_DESC}", false, false));
    propertyDefinitions.put("password", new PropertyDefinition("password", PropertyType.Password, null, "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_PASSWORD_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_PASSWORD_DESC}", false, false));
  } catch (PropertyException error) {
    String errorMsg = LOGGER.translate("OUT_INIT_ERROR", error.getMessage());
    LOGGER.error(errorMsg, error);
    throw new RuntimeException(errorMsg, error);
  }
}
 
开发者ID:Esri,项目名称:activemq-for-geoevent,代码行数:18,代码来源:ActiveMQOutboundTransportDefinition.java


示例6: ActiveMQInboundTransportDefinition

import com.esri.ges.core.property.LabeledValue; //导入依赖的package包/类
public ActiveMQInboundTransportDefinition() {
  super(TransportType.INBOUND);
  try {
    propertyDefinitions.put("providerUrl", new PropertyDefinition("providerUrl", PropertyType.String, "tcp://localhost:61616", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_PROVIDER_URL_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_PROVIDER_URL_DESC}", true, false));
    List<LabeledValue> allowedValues = new ArrayList<>(2);
    allowedValues.add(new LabeledValue("Queue", "Queue"));
    allowedValues.add(new LabeledValue("Topic", "Topic"));
    propertyDefinitions.put("destinationType", new PropertyDefinition("destinationType", PropertyType.String, "Queue", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_JMS_DESTINATION_TYPE_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_JMS_DESTINATION_TYPE_DESC}", true, false, allowedValues));
    propertyDefinitions.put("destinationName", new PropertyDefinition("destinationName", PropertyType.String, null, "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_JMS_DESTINATION_NAME_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_JMS_DESTINATION_NAME_DESC}", true, false));
    propertyDefinitions.put("userName", new PropertyDefinition("userName", PropertyType.String, null, "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_USERNAME_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_USERNAME_DESC}", false, false));
    propertyDefinitions.put("password", new PropertyDefinition("password", PropertyType.Password, null, "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_PASSWORD_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_PASSWORD_DESC}", false, false));
  } catch (PropertyException error) {
    String errorMsg = LOGGER.translate("IN_INIT_ERROR", error.getMessage());
    LOGGER.error(errorMsg, error);
    throw new RuntimeException(errorMsg, error);
  }
}
 
开发者ID:Esri,项目名称:activemq-for-geoevent,代码行数:18,代码来源:ActiveMQInboundTransportDefinition.java


示例7: Line2PtProcessorDefinition

import com.esri.ges.core.property.LabeledValue; //导入依赖的package包/类
public Line2PtProcessorDefinition() throws PropertyException {
	List<LabeledValue> allowedIn = new ArrayList<LabeledValue>();
	allowedIn.add(new LabeledValue("${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.STARTPOINT_LBL}","start"));
	allowedIn.add(new LabeledValue("${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.ENDPOINT_LBL}","end"));
	allowedIn.add(new LabeledValue("${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.MIDPOINT_LBL}","mid"));
	
	PropertyDefinition pdPoint = new PropertyDefinition("pointType", PropertyType.String, "", "${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.LBL_POINT_TYPE}", "${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.DESC_POINT_TYPE}",true, false, allowedIn);
	propertyDefinitions.put(pdPoint.getPropertyName(), pdPoint);
	PropertyDefinition pdwkid = new PropertyDefinition("wkid", PropertyType.Integer, "", "${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.LBL_PROCESS_WKID}", "${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.DESC_PROCESS_WKID}",true, false);
	propertyDefinitions.put(pdwkid.getPropertyName(), pdwkid);
	PropertyDefinition pdOutDef = new PropertyDefinition("outdefname", PropertyType.String, "", "${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.LBL_OUTDEFNAME}", "${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.DESC_OUTDEFNAME}", true, false);
	propertyDefinitions.put(pdOutDef.getPropertyName(), pdOutDef);
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:14,代码来源:Line2PtProcessorDefinition.java


示例8: TimeToLongDefinition

import com.esri.ges.core.property.LabeledValue; //导入依赖的package包/类
public TimeToLongDefinition() throws PropertyException
{
	List<LabeledValue> allowedValues = new ArrayList<LabeledValue>();
	allowedValues.add(new LabeledValue(lvlong, "long"));
	allowedValues.add(new LabeledValue(lvfloat, "float"));
	allowedValues.add(new LabeledValue(lvdouble, "double"));
	allowedValues.add(new LabeledValue(lvstring, "string"));
	
	propertyDefinitions.put("timefld", new PropertyDefinition("timefld", PropertyType.String, "", timefldlbl, timeflddesc, true, false));
	propertyDefinitions.put("outputtype", new PropertyDefinition("outputtype", PropertyType.String, "", converttolbl, converttodesc, true, false, allowedValues));
	propertyDefinitions.put("useexisting", new PropertyDefinition("useexisting", PropertyType.Boolean, true, useexistinglbl, useexistingdesc, true, false));
	propertyDefinitions.put("newdef", new PropertyDefinition("newdef", PropertyType.String, "DateTimeToNumber", newdeflbl, newdefdesc, "useexisting=false",true, false));
	propertyDefinitions.put("longfld", new PropertyDefinition("longfld", PropertyType.String, "", longfldlbl, longflddesc, true, false));
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:15,代码来源:TimeToLongDefinition.java


示例9: RabbitMQOutboundTransportDefinition

import com.esri.ges.core.property.LabeledValue; //导入依赖的package包/类
public RabbitMQOutboundTransportDefinition()
{
	super(TransportType.OUTBOUND);
	try
	{
		// Connection properties
		propertyDefinitions.put("host", new PropertyDefinition("host", PropertyType.String, "localhost", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_HOST_LBL}", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_HOST_DESC}", true, false));
		propertyDefinitions.put("port", new PropertyDefinition("port", PropertyType.Integer, "5672", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_PORT_LBL}", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_PORT_DESC}", true, false));
		propertyDefinitions.put("virtualHost", new PropertyDefinition("virtualHost", PropertyType.String, null, "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_VIRTUAL_HOST_LBL}", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_VIRTUAL_HOST_DESC}", false, false));
		propertyDefinitions.put("username", new PropertyDefinition("username", PropertyType.String, null, "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_USERNAME_LBL}", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_USERNAME_DESC}", false, false));
		propertyDefinitions.put("password", new PropertyDefinition("password", PropertyType.Password, null, "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_PASSWORD_LBL}", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_PASSWORD_DESC}", false, false));
		propertyDefinitions.put("ssl", new PropertyDefinition("ssl", PropertyType.Boolean, false, "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_SSL_LBL}", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_SSL_DESC}", true, false));

		// Exchange properties
		propertyDefinitions.put("exchangeName", new PropertyDefinition("exchangeName", PropertyType.String, null, "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_EXCHANGE_NAME_LBL}", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_EXCHANGE_NAME_DESC}", true, false));

		List<LabeledValue> exchangeTypeAllowedValues = new ArrayList<LabeledValue>();
		exchangeTypeAllowedValues.add(new LabeledValue(RabbitMQExchangeType.direct.toString(), RabbitMQExchangeType.direct.toString()));
		exchangeTypeAllowedValues.add(new LabeledValue(RabbitMQExchangeType.fanout.toString(), RabbitMQExchangeType.fanout.toString()));
		propertyDefinitions.put("exchangeType", new PropertyDefinition("exchangeType", PropertyType.String, RabbitMQExchangeType.direct.toString(), "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_EXCHANGE_TYPE_LBL}", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_EXCHANGE_TYPE_DESC}", true, false, exchangeTypeAllowedValues));

		List<LabeledValue> exchangeDurabilityAllowedValues = new ArrayList<LabeledValue>();
		exchangeDurabilityAllowedValues.add(new LabeledValue(RabbitMQDurability.Transient.toString(), RabbitMQDurability.Transient.toString()));
		exchangeDurabilityAllowedValues.add(new LabeledValue(RabbitMQDurability.Durable.toString(), RabbitMQDurability.Durable.toString()));
		propertyDefinitions.put("exchangeDurability", new PropertyDefinition("exchangeDurability", PropertyType.String, RabbitMQDurability.Transient.toString(), "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_EXCHANGE_DURABILITY_LBL}", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_EXCHANGE_DURABILITY_DESC}", true, false, exchangeDurabilityAllowedValues));

		propertyDefinitions.put("exchangeAutoDelete", new PropertyDefinition("exchangeAutoDelete", PropertyType.Boolean, "true", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_EXCHANGE_AUTO_DELETE_LBL}", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_EXCHANGE_AUTO_DELETE_DESC}", true, false));
		propertyDefinitions.put("routingKey", new PropertyDefinition("routingKey", PropertyType.String, "", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_OUT_ROUTING_KEY_LBL}", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_OUT_ROUTING_KEY_DESC}", false, false));
	}
	catch (PropertyException e)
	{
		String errorMsg = LOGGER.translate("TRANSPORT_OUT_INIT_ERROR", e.getMessage());
		LOGGER.error(errorMsg, e);
		throw new RuntimeException(errorMsg, e);
	}
}
 
开发者ID:Esri,项目名称:rabbitmq-for-geoevent,代码行数:37,代码来源:RabbitMQOutboundTransportDefinition.java


示例10: MotionCalculatorDefinition

import com.esri.ges.core.property.LabeledValue; //导入依赖的package包/类
public MotionCalculatorDefinition()
{
  try
  {
    List<LabeledValue> distanceUnitsAllowedValues = new ArrayList<>();
    distanceUnitsAllowedValues.add(new LabeledValue("Kilometers", "Kilometers"));
    distanceUnitsAllowedValues.add(new LabeledValue("Miles", "Miles"));
    distanceUnitsAllowedValues.add(new LabeledValue("Nautical Miles", "Nautical Miles"));
    propertyDefinitions.put("distanceUnit", new PropertyDefinition("distanceUnit", PropertyType.String, "Kilometers", "Distance Unit", "Distance unit to be used", false, false, distanceUnitsAllowedValues));

    List<LabeledValue> geometryTypeAllowedValues = new ArrayList<>();
    geometryTypeAllowedValues.add(new LabeledValue("Point", "Point"));
    geometryTypeAllowedValues.add(new LabeledValue("Line", "Line"));
    propertyDefinitions.put("geometryType", new PropertyDefinition("geometryType", PropertyType.String, "Kilometers", "Geometry Type", "The resulting Geometry Type", false, false, geometryTypeAllowedValues));

    List<LabeledValue> notificationModeAllowedValues = new ArrayList<>();
    notificationModeAllowedValues.add(new LabeledValue("OnChange", "OnChange"));
    notificationModeAllowedValues.add(new LabeledValue("Continuous", "Continuous"));
    propertyDefinitions.put("notificationMode", new PropertyDefinition("notificationMode", PropertyType.String, "OnChange", "Count Notification Mode", "Count Notification Mode", true, false, notificationModeAllowedValues));

    propertyDefinitions.put("reportInterval", new PropertyDefinition("reportInterval", PropertyType.Long, 10, "Report Interval (seconds)", "Report Interval (seconds)", "notificationMode=Continuous", false, false));
    propertyDefinitions.put("autoResetCache", new PropertyDefinition("autoResetCache", PropertyType.Boolean, false, "Automatic Reset Cache", "Auto Reset Cache", true, false));
    propertyDefinitions.put("resetTime", new PropertyDefinition("resetTime", PropertyType.String, "00:00:00", "Reset Cache at", "Reset Cache time", "autoResetCache=true", false, false));
    propertyDefinitions.put("clearCache", new PropertyDefinition("clearCache", PropertyType.Boolean, true, "Clear in-memory Cache", "Clear in-memory Cache", "autoResetCache=true", false, false));
    propertyDefinitions.put("predictiveTimespan", new PropertyDefinition("predictiveTimespan", PropertyType.Integer, 10, "Predictive Timespan (seconds)", "Timespan in seconds to calculate the next position.", false, false));

    List<LabeledValue> predictiveGeometryTypeAllowedValues = new ArrayList<>();
    predictiveGeometryTypeAllowedValues.add(new LabeledValue("Point", "Point"));
    predictiveGeometryTypeAllowedValues.add(new LabeledValue("Line", "Line"));
    propertyDefinitions.put("predictiveGeometryType", new PropertyDefinition("predictiveGeometryType", PropertyType.String, "Kilometers", "Geometry Type", "The resulting Geometry Type", false, false, predictiveGeometryTypeAllowedValues));
    propertyDefinitions.put("newGeoEventDefinitionName", new PropertyDefinition("newGeoEventDefinitionName", PropertyType.String, "MotionCalculatorDef", "Resulting GeoEvent Definition Name", "Resulting GeoEvent Definition Name", false, false));

  }
  catch (Exception error)
  {
    LOGGER.error("INIT_ERROR", error.getMessage());
    LOGGER.info(error.getMessage(), error);
  }
}
 
开发者ID:Esri,项目名称:motion-calculator-for-geoevent,代码行数:40,代码来源:MotionCalculatorDefinition.java


示例11: TrackIdleDetectorDefinition

import com.esri.ges.core.property.LabeledValue; //导入依赖的package包/类
public TrackIdleDetectorDefinition()
{
	try
	{
		List<LabeledValue> allowableValues = new ArrayList<>();
		allowableValues.add(new LabeledValue("OnChange", "OnChange"));
		allowableValues.add(new LabeledValue("Continuous", "Continuous"));

		propertyDefinitions.put("notificationMode", new PropertyDefinition("notificationMode", PropertyType.String, "OnChange", "${com.esri.geoevent.processor.trackidledetector-processor.PROCESSOR_NOTIFICATION_MODE_LBL}", "${com.esri.geoevent.processor.trackidledetector-processor.PROCESSOR_NOTIFICATION_MODE_DESC}", true, false, allowableValues));
		propertyDefinitions.put("idleLimit", new PropertyDefinition("idleLimit", PropertyType.Long, 300, "${com.esri.geoevent.processor.trackidledetector-processor.PROCESSOR_IDLE_LIMIT_LBL}", "${com.esri.geoevent.processor.trackidledetector-processor.PROCESSOR_IDLE_LIMIT_DESC}", true, false));
		propertyDefinitions.put("tolerance", new PropertyDefinition("tolerance", PropertyType.Long, 120, "${com.esri.geoevent.processor.trackidledetector-processor.PROCESSOR_TOLERANCE_LBL}", "${com.esri.geoevent.processor.trackidledetector-processor.PROCESSOR_TOLERANCE_DESC}", true, false));
		propertyDefinitions.put("keepFields", new PropertyDefinition("keepFields", PropertyType.Boolean, false, "${com.esri.geoevent.processor.trackidledetector-processor.PROCESSOR_KEEP_FIELDS_LBL}", "${com.esri.geoevent.processor.trackidledetector-processor.PROCESSOR_KEEP_FIELDS_DESC}", true, false));
		propertyDefinitions.put("outGedSuffixName", new PropertyDefinition("outGedSuffixName", PropertyType.String, "TrackIdle", "${com.esri.geoevent.processor.trackidledetector-processor.PROCESSOR_OUT_GED_SUFFIX_NAME_LBL}", "${com.esri.geoevent.processor.trackidledetector-processor.PROCESSOR_OUT_GED_SUFFIX_NAME_DESC}", "keepFields=true", true, false));
		propertyDefinitions.put("accumulateIdleDuration", new PropertyDefinition("accumulateIdleDuration", PropertyType.Boolean, true, "${com.esri.geoevent.processor.trackidledetector-processor.PROCESSOR_ACCUMULATE_IDLE_DURATION_LBL}", "${com.esri.geoevent.processor.trackidledetector-processor.PROCESSOR_ACCUMULATE_IDLE_DURATION_DESC}", true, false));
		propertyDefinitions.put("reportIdleDurationWhileNotIdle", new PropertyDefinition("reportIdleDurationWhileNotIdle", PropertyType.Boolean, true, "${com.esri.geoevent.processor.trackidledetector-processor.PROCESSOR_REPORT_IDLE_DURATION_WHILE_NOT_IDLE_LBL}", "${com.esri.geoevent.processor.trackidledetector-processor.PROCESSOR_REPORT_IDLE_DURATION_WHILE_NOT_IDLE_DESC}", true, false));

		// create the default Track Idle GED
		GeoEventDefinition ged = new DefaultGeoEventDefinition();
		ged.setName(DEFAULT_TRACK_IDLE_GED_NAME);
		List<FieldDefinition> fds = new ArrayList<FieldDefinition>();
		fds.add(new DefaultFieldDefinition("trackId", FieldType.String, "TRACK_ID"));
		fds.add(new DefaultFieldDefinition("idle", FieldType.Boolean));
		fds.add(new DefaultFieldDefinition("idleDuration", FieldType.Double));
		fds.add(new DefaultFieldDefinition("idleStart", FieldType.Date, "TIME_START"));
		fds.add(new DefaultFieldDefinition("geometry", FieldType.Geometry, "GEOMETRY"));
		ged.setFieldDefinitions(fds);
		geoEventDefinitions.put(ged.getName(), ged);
	}
	catch (Exception error)
	{
		LOGGER.error("INIT_ERROR", error.getMessage());
		LOGGER.info(error.getMessage(), error);
	}
}
 
开发者ID:Esri,项目名称:track-idle-detector-for-geoevent,代码行数:35,代码来源:TrackIdleDetectorDefinition.java


示例12: CacheAwareFieldCalculatorDefinition

import com.esri.ges.core.property.LabeledValue; //导入依赖的package包/类
public CacheAwareFieldCalculatorDefinition()
{
  try
  {
  	List<LabeledValue> resultDestinationAllowableValues = new ArrayList<>();
  	resultDestinationAllowableValues.add(new LabeledValue("Existing Field", "Existing Field"));
  	resultDestinationAllowableValues.add(new LabeledValue("New Field", "New Field"));
    propertyDefinitions.put("expression", new PropertyDefinition("expression", PropertyType.String, "", "Expression", "Expression", true, false));

    propertyDefinitions.put("resultDestination", new PropertyDefinition("resultDestination", PropertyType.String, "Existing Field", "Result Destination", "Result Destination", true, false, resultDestinationAllowableValues));
    // Case 1: Overwriting Existing Field
    propertyDefinitions.put("existingFieldName", new PropertyDefinition("existingFieldName", PropertyType.String, "", "Existing Field Name", "Existing Field Name", "resultDestination=Existing Field", false, false));
    // Case 2: Creating New Field
    propertyDefinitions.put("newFieldName", new PropertyDefinition("newFieldName", PropertyType.String, "", "New Field Name", "New Field Name", "resultDestination=New Field", false, false));
    
    List<LabeledValue> newFieldTypeAllowableValues = new ArrayList<>();
    newFieldTypeAllowableValues.add(new LabeledValue("Boolean", "Boolean"));
    newFieldTypeAllowableValues.add(new LabeledValue("Date", "Date"));
    newFieldTypeAllowableValues.add(new LabeledValue("Double", "Double"));
    newFieldTypeAllowableValues.add(new LabeledValue("Float", "Float"));
    newFieldTypeAllowableValues.add(new LabeledValue("Geometry", "Geometry"));
    newFieldTypeAllowableValues.add(new LabeledValue("Integer", "Integer"));
    newFieldTypeAllowableValues.add(new LabeledValue("Long", "Long"));
    newFieldTypeAllowableValues.add(new LabeledValue("Short", "Short"));
    newFieldTypeAllowableValues.add(new LabeledValue("String", "String"));
    propertyDefinitions.put("newFieldType", new PropertyDefinition("newFieldType", PropertyType.String, "", "New Field Type", "New Field Type", "resultDestination=New Field", false, false, newFieldTypeAllowableValues));
    propertyDefinitions.put("newFieldTag", new PropertyDefinition("newFieldTag", PropertyType.String, "", "New Field Tag", "New Field Tag", "resultDestination=New Field", false, false));
    propertyDefinitions.put("newGeoEventDefinitionName", new PropertyDefinition("newGeoEventDefinitionName", PropertyType.String, "FieldCalculator", "Resulting GeoEvent Definition Name", "Resulting GeoEvent Definition Name", "resultDestination=New Field", false, false));
  }
  catch(Exception e)
  {
    ;
  }
}
 
开发者ID:Esri,项目名称:solutions-geoevent-java,代码行数:35,代码来源:CacheAwareFieldCalculatorDefinition.java


示例13: BearingProcessorDefinition

import com.esri.ges.core.property.LabeledValue; //导入依赖的package包/类
public BearingProcessorDefinition() throws PropertyException {
	
	List<LabeledValue> oSrcValues = new ArrayList<LabeledValue>();
	oSrcValues.add(new LabeledValue(srcGeoLbl, "geo"));
	oSrcValues.add(new LabeledValue(srcCoordLbl, "coord"));
	
	List<LabeledValue> dSrcValues = new ArrayList<LabeledValue>();
	dSrcValues.add(new LabeledValue(srcGeoLbl, "geo"));
	dSrcValues.add(new LabeledValue(srcCoordLbl, "coord"));
	
	PropertyDefinition pdOriginSource = new PropertyDefinition("osrc", PropertyType.String, srcGeoLbl, lblOSrc, descOSrc, true, false, oSrcValues);
	propertyDefinitions.put(pdOriginSource.getPropertyName(), pdOriginSource);

	PropertyDefinition pdOGeoFld = new PropertyDefinition("oGeoFld", PropertyType.String, "ORIGIN_GEOMETRY_FIELD", lblOFld, descOFld, false, false);
	pdOGeoFld.setDependsOn("osrc=geo");
	propertyDefinitions.put(pdOGeoFld.getPropertyName(), pdOGeoFld);
	
	PropertyDefinition pdOXField = new PropertyDefinition("oxFld", PropertyType.String, "ORIGIN_X_FIELD", lblOX, descOX, false, false);
	pdOXField.setDependsOn("osrc=coord");
	propertyDefinitions.put(pdOXField.getPropertyName(), pdOXField);
	
	PropertyDefinition pdOYField = new PropertyDefinition("oyFld", PropertyType.String, "ORIGIN_Y_FIELD", lblOY, descOY, false, false);
	pdOYField.setDependsOn("osrc=coord");
	propertyDefinitions.put(pdOYField.getPropertyName(),pdOYField);
	
	PropertyDefinition pdDestinationSource = new PropertyDefinition("dsrc", PropertyType.String, defaultSrc, lblDSrc, "", true, false, dSrcValues);
	propertyDefinitions.put(pdDestinationSource.getPropertyName(),pdDestinationSource);
			
	PropertyDefinition pdDGeoFld = new PropertyDefinition("dGeoFld", PropertyType.String, "DESTINATION_GEOMETRY_FIELD", lblDFld, descDFld, false, false);
	pdDGeoFld.setDependsOn("dsrc=geo");
	propertyDefinitions.put(pdDGeoFld.getPropertyName(),pdDGeoFld);
	
	PropertyDefinition pdDXField = new PropertyDefinition("dxFld", PropertyType.String, "DESTINATION_X_FIELD", lblDX, descDX, false, false);
	pdDXField.setDependsOn("dsrc=coord");
	propertyDefinitions.put(pdDXField.getPropertyName(),pdDXField);
	
	PropertyDefinition pdDYField = new PropertyDefinition("dyFld", PropertyType.String, "DESTINATION_Y_FIELD", lblDY, descDY, false, false);
	pdDYField.setDependsOn("dsrc=coord");
	propertyDefinitions.put(pdDYField.getPropertyName(),pdDYField);
	
	PropertyDefinition pdBearingField = new PropertyDefinition("newfld", PropertyType.String, "bearing", lblNewFld, descNewFld, true, false);
	propertyDefinitions.put(pdBearingField.getPropertyName(), pdBearingField);
	
	PropertyDefinition pdGenerateGeometry = new PropertyDefinition("generateGeo", PropertyType.Boolean, true, lblGenerateGeo, descGenerateGeo, true, false);
	propertyDefinitions.put(pdGenerateGeometry.getPropertyName(), pdGenerateGeometry);
	
	PropertyDefinition pdOutWkid = new PropertyDefinition("wkidout", PropertyType.Integer, 4326, lblWkidOut, descWkidOut, "generateGeo=true", false, false);
	propertyDefinitions.put(pdOutWkid.getPropertyName(), pdOutWkid);
	
	PropertyDefinition pdNewGeoDef = new PropertyDefinition("newdef", PropertyType.String, "calculate_bearing", lblEventDefName, descEventDefName, true, false);
	propertyDefinitions.put(pdNewGeoDef.getPropertyName(), pdNewGeoDef);
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:53,代码来源:BearingProcessorDefinition.java


示例14: TrackIdleProcessorDefinition

import com.esri.ges.core.property.LabeledValue; //导入依赖的package包/类
public TrackIdleProcessorDefinition()
{
	try {
		List<LabeledValue> allowableValues = new ArrayList<>();
		allowableValues.add(new LabeledValue("OnChange", "OnChange"));
		allowableValues.add(new LabeledValue("Continuous", "Continuous"));

		propertyDefinitions
				.put("notificationMode",
						new PropertyDefinition(
								"notificationMode",
								PropertyType.String,
								"OnChange",
								"${com.esri.geoevent.solutions.processor.trackidle.trackidle-processor.PROCESSOR_NOTIFICATION_MODE_LBL}",
								"${com.esri.geoevent.solutions.processor.trackidle.trackidle-processor.PROCESSOR_NOTIFICATION_MODE_DESC}",
								true, false, allowableValues));
		propertyDefinitions
				.put("idleLimit",
						new PropertyDefinition(
								"idleLimit",
								PropertyType.Long,
								300,
								"${com.esri.geoevent.solutions.processor.trackidle.trackidle-processor.PROCESSOR_IDLE_LIMIT_LBL}",
								"${com.esri.geoevent.solutions.processor.trackidle.trackidle-processor.PROCESSOR_IDLE_LIMIT_DESC}",
								true, false));
		propertyDefinitions
				.put("tolerance",
						new PropertyDefinition(
								"tolerance",
								PropertyType.Long,
								120,
								"${com.esri.geoevent.solutions.processor.trackidle.trackidle-processor.PROCESSOR_TOLERANCE_LBL}",
								"${com.esri.geoevent.solutions.processor.trackidle.trackidle-processor.PROCESSOR_TOLERANCE_DESC}",
								true, false));
		propertyDefinitions
				.put("keepfields",
						new PropertyDefinition(
								"keepfields",
								PropertyType.Boolean,
								false,
								"${com.esri.geoevent.solutions.processor.trackidle.trackidle-processor.PROCESSOR_KEEPFIELDS_LBL}",
								"${com.esri.geoevent.solutions.processor.trackidle.trackidle-processor.PROCESSOR_KEEPFIELDS_DESC}",
								true, false));
		propertyDefinitions
				.put("outdefname",
						new PropertyDefinition(
								"outdefname",
								PropertyType.String,
								"",
								"${com.esri.geoevent.solutions.processor.trackidle.trackidle-processor.PROCESSOR_OUTDEFNAME_LBL}",
								"${com.esri.geoevent.solutions.processor.trackidle.trackidle-processor.PROCESSOR_OUTDEFNAME_DESC}",
								true, false));
	} catch (Exception error) {
		LOGGER.error("INIT_ERROR", error.getMessage());
		LOGGER.info(error.getMessage(), error);
	}
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:58,代码来源:TrackIdleProcessorDefinition.java


示例15: RabbitMQInboundTransportDefinition

import com.esri.ges.core.property.LabeledValue; //导入依赖的package包/类
public RabbitMQInboundTransportDefinition()
{
	super(TransportType.INBOUND);
	try
	{
		// Connection properties
		propertyDefinitions.put("host", new PropertyDefinition("host", PropertyType.String, "localhost", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_HOST_LBL}", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_HOST_DESC}", true, false));
		propertyDefinitions.put("port", new PropertyDefinition("port", PropertyType.Integer, "5672", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_PORT_LBL}", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_PORT_DESC}", true, false));
		propertyDefinitions.put("virtualHost", new PropertyDefinition("virtualHost", PropertyType.String, null, "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_VIRTUAL_HOST_LBL}", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_VIRTUAL_HOST_DESC}", false, false));
		propertyDefinitions.put("username", new PropertyDefinition("username", PropertyType.String, null, "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_USERNAME_LBL}", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_USERNAME_DESC}", false, false));
		propertyDefinitions.put("password", new PropertyDefinition("password", PropertyType.Password, null, "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_PASSWORD_LBL}", "${com.esri.geoevent.transport.rabbitmq-transport.TRANSPORT_PASSWORD_DESC}", false, false));
		propertyDefinitions.put("ssl", new PropertyDefinition("ssl", PropertyType.Boolean, false, "${com.esri.geoevent. 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java GreedyGraphColoring类代码示例发布时间:2022-05-23
下一篇:
Java UserDataHolderEx类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap