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

Java DefaultFieldDefinition类代码示例

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

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



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

示例1: CAPInboundAdapterDefinition

import com.esri.ges.core.geoevent.DefaultFieldDefinition; //导入依赖的package包/类
public CAPInboundAdapterDefinition()
{
	super(AdapterType.INBOUND);
	try
	{
		GeoEventDefinition md = new DefaultGeoEventDefinition();
		md.setName("SampleGeoEventDefinition");
		List<FieldDefinition> fieldDefinitions = new ArrayList<FieldDefinition>();
		fieldDefinitions.add(new DefaultFieldDefinition("track_id", FieldType.Long));
		fieldDefinitions.add(new DefaultFieldDefinition("location", FieldType.Geometry));
		md.setFieldDefinitions(fieldDefinitions);
		geoEventDefinitions.put(md.getName(), md);
	}
	catch (ConfigurationException ex)
	{
		;
	}
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:19,代码来源:CAPInboundAdapterDefinition.java


示例2: afterPropertiesSet

import com.esri.ges.core.geoevent.DefaultFieldDefinition; //导入依赖的package包/类
@Override
public void afterPropertiesSet() {
	pointType = properties.get("pointType").getValueAsString();
	processWkid = (Integer)properties.get("wkid").getValue();
	outDef = properties.get("outdefname").getValueAsString();
	fds = new ArrayList<FieldDefinition>();
	try {
		//fds.add(new DefaultFieldDefinition("trackId", FieldType.String,
				//"TRACK_ID"));
		fds.add(new DefaultFieldDefinition("LocationTimeStamp", FieldType.Date, "TIMESTAMP"));
		
		//fds.add(new DefaultFieldDefinition("geometry", FieldType.Geometry));

		if ((ged = manager.searchGeoEventDefinition(outDef, definition.getUri().toString())) == null)
		{
			createDef = true;
		}
	}
	catch(ConfigurationException e)
	{
		LOGGER.error(e.getMessage());
	}
	
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:25,代码来源:Line2PtProcessor.java


示例3: afterPropertiesSet

import com.esri.ges.core.geoevent.DefaultFieldDefinition; //导入依赖的package包/类
@Override
public void afterPropertiesSet() {
	mgrs = properties.get("mgrs").getValueAsString();
	overwrite = (Boolean) properties.get("overwrite").getValue();
	returnBB = (Boolean) properties.get("returnbb").getValue();
	if (overwrite)
		geofld = "GEOMETRY";
	else {
		geofld = properties.get("geofld").getValueAsString();
		try {
			FieldDefinition fd = new DefaultFieldDefinition(geofld,
					FieldType.Geometry);
			fds = new ArrayList<FieldDefinition>();
			fds.add(fd);
		} catch (ConfigurationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	newdef = properties.get("eventdef").getValueAsString();
	//accuracy = (Integer) properties.get("accuracy").getValue();
	
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:24,代码来源:LatLongProcessor.java


示例4: main

import com.esri.ges.core.geoevent.DefaultFieldDefinition; //导入依赖的package包/类
public static void main( String[] args )
{
	try
	{
		//GeoEventDefinition cotDef = new DefaultGeoEventDefinition();
		FieldDefinition detailsField = new DefaultFieldDefinition("detail", FieldType.Group);
		CoTAdapterService service = new CoTAdapterService();
		service.getAdditionalSchemasFromXSDFolder(detailsField);
		report(0,detailsField);
	} catch (ConfigurationException e)
	{
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:16,代码来源:CoTAdapterService.java


示例5: afterPropertiesSet

import com.esri.ges.core.geoevent.DefaultFieldDefinition; //导入依赖的package包/类
@Override 
public void afterPropertiesSet()
{
	geofld = properties.get("geofld").getValueAsString();
	newdef = properties.get("eventdef").getValueAsString();
	accuracy = (Integer)properties.get("accuracy").getValue();
	try {
		FieldDefinition fd = new DefaultFieldDefinition("mgrs", FieldType.String);
		fds = new ArrayList<FieldDefinition>();
		fds.add(fd);
	} catch (ConfigurationException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:16,代码来源:MGRSProcessor.java


示例6: afterPropertiesSet

import com.esri.ges.core.geoevent.DefaultFieldDefinition; //导入依赖的package包/类
public void afterPropertiesSet() {
	notificationMode = Validator.valueOfIgnoreCase(
			TrackIdleProcessorNotificationMode.class,
			getProperty("notificationMode").getValueAsString(),
			TrackIdleProcessorNotificationMode.OnChange);
	idleLimit = Converter.convertToInteger(getProperty("idleLimit")
			.getValueAsString(), 300);
	tolerance = Converter.convertToLong(getProperty("tolerance")
			.getValueAsString(), 50l);
	keepFields = (Boolean) getProperty("keepfields").getValue();
	outDefName = getProperty("outdefname").getValueAsString();


	fds = new ArrayList<FieldDefinition>();
	
	try {
		//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));
		//fds.add(new DefaultFieldDefinition("geometry", FieldType.Geometry));

		if ((ged = manager.searchGeoEventDefinition(outDefName, definition.getUri().toString())) == null)
		{
			createDef = true;
		}
	} catch (ConfigurationException e) {

	}

	// geoEventDefinitions.put(ged.getName(), ged);
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:34,代码来源:TrackIdleProcessor.java


示例7: ESDInboundAdapterDefinition

import com.esri.ges.core.geoevent.DefaultFieldDefinition; //导入依赖的package包/类
public ESDInboundAdapterDefinition()
{
	super(AdapterType.INBOUND);
	try
	{
		GeoEventDefinition md = new DefaultGeoEventDefinition();
		md.setName("ESDGeoEventDefinition");
		List<FieldDefinition> fieldDefinitions = new ArrayList<FieldDefinition>();
		fieldDefinitions.add(new DefaultFieldDefinition("track_id", FieldType.Long));  					// 0
		fieldDefinitions.add(new DefaultFieldDefinition("target_location", FieldType.Geometry));		// 1
		fieldDefinitions.add(new DefaultFieldDefinition("target_width", FieldType.Long));				// 2
		fieldDefinitions.add(new DefaultFieldDefinition("slant_range", FieldType.Long));				// 3
		fieldDefinitions.add(new DefaultFieldDefinition("sensor_pointing_azimuth", FieldType.Float));	// 4		
		fieldDefinitions.add(new DefaultFieldDefinition("sensor_elevation_angle", FieldType.Float));	// 5
		fieldDefinitions.add(new DefaultFieldDefinition("field_of_view", FieldType.Float));				// 6
		fieldDefinitions.add(new DefaultFieldDefinition("sensor_altitude", FieldType.Long));			// 7
		fieldDefinitions.add(new DefaultFieldDefinition("sensor_location", FieldType.Geometry));		// 8
		fieldDefinitions.add(new DefaultFieldDefinition("sensor_name_enum", FieldType.Short));			// 9
		fieldDefinitions.add(new DefaultFieldDefinition("collection_time", FieldType.Date));			// 10
		fieldDefinitions.add(new DefaultFieldDefinition("mission_number", FieldType.Long));				// 11
		fieldDefinitions.add(new DefaultFieldDefinition("mission_start_time", FieldType.Date));			// 12
		fieldDefinitions.add(new DefaultFieldDefinition("security_classification", FieldType.String));	// 13
		fieldDefinitions.add(new DefaultFieldDefinition("platform_code", FieldType.Short));				// 14
		md.setFieldDefinitions(fieldDefinitions);
		geoEventDefinitions.put(md.getName(), md);
	}
	catch (ConfigurationException ex)
	{
		;
	}
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:32,代码来源:ESDInboundAdapterDefinition.java


示例8: lookup

import com.esri.ges.core.geoevent.DefaultFieldDefinition; //导入依赖的package包/类
/**
 * <p>
 * The lookup method is used to search the {@link GeoEventDefinitionManager} for the configurable
 * {@link GeoEventDefinition} via the property <code>geoEventDefinitionName</code>. When it is is found, it will
 * augment the {@link GeoEventDefinition} with the new Extent related fields <code>MinX</code>, <code>MinY</code>,
 * <code>MaxX</code>, <code>MaxY</code> (all of type {@link FieldType#Double}). The augmented
 * {@link GeoEventDefinition} will be added as a new "temporary" {@link GeoEventDefinitionManager} to the
 * GeoEventDefinitionManager via
 * {@link GeoEventDefinitionManager#addTemporaryGeoEventDefinition(GeoEventDefinition, boolean)}.
 * </p>
 * 
 * <p>
 * <b>Optionally</b> if the configuration property <code>addCenterPoint</code> was set to <code>true</code>, the field
 * <code>CenterPoint</code> of type {@link FieldType#Geometry} will be added as well.
 * </p>
 * 
 * @param edIn the GeoEventDefinition to augment.
 * @return the augmented GeoEventDefinition 
 * @throws Exception if the incoming GeoEventDefinition cannot be augmented or created.
 * 
 * @see GeoEventDefinition
 * @see GeoEventDefinitionManager
 */
private synchronized GeoEventDefinition lookup(GeoEventDefinition edIn) throws Exception
{
	GeoEventDefinition edOut = edMapper.containsKey(edIn.getGuid()) ? geoEventDefinitionManager.getGeoEventDefinition(edMapper.get(edIn.getGuid())) : null;
	if (edOut == null)
	{
		List<FieldDefinition> newFields = new ArrayList<>();
		newFields.add(new DefaultFieldDefinition("MinX", FieldType.Double));
		newFields.add(new DefaultFieldDefinition("MinY", FieldType.Double));
		newFields.add(new DefaultFieldDefinition("MaxX", FieldType.Double));
		newFields.add(new DefaultFieldDefinition("MaxY", FieldType.Double));
		if (addCenterPoint)
			newFields.add(new DefaultFieldDefinition("CenterPoint", FieldType.Geometry));

		edOut = edIn.augment(newFields);
		edOut.setOwner(getId());
		if (StringUtils.isNotBlank(geoEventDefinitionName))
		{
			edOut.setName(geoEventDefinitionName);
			geoEventDefinitionManager.addTemporaryGeoEventDefinition(edOut, false);
		}
		else
			geoEventDefinitionManager.addTemporaryGeoEventDefinition(edOut, true);
		edMapper.put(edIn.getGuid(), edOut.getGuid());
	}
	return edOut;
}
 
开发者ID:Esri,项目名称:extent-enricher-for-geoevent,代码行数:50,代码来源:GeometryExtentEnricher.java


示例9: GeoNamesOSMPOIProcessorDefinition

import com.esri.ges.core.geoevent.DefaultFieldDefinition; //导入依赖的package包/类
public GeoNamesOSMPOIProcessorDefinition()
{
	try
	{
		PropertyDefinition geoNamesUsernameProperty = new PropertyDefinition(GEONAMES_USERNAME_PROPERTY, PropertyType.String, "", "GeoNames Username (optional)", "If you purchased GeoNames Premium services, enter your username. If blank, a more limited free account will be used.", false, false);
		propertyDefinitions.put(GEONAMES_USERNAME_PROPERTY, geoNamesUsernameProperty);

		PropertyDefinition geoNamesOSMPOIsRadiusProperty = new PropertyDefinition(GEONAMES_OSMPOIsRADIUS_PROPERTY, PropertyType.Double, 1, "GeoNames OpenStreetmap POI Search Radius (Km)", "The distance from the geoevent's location within which to search for OpenStreetmap Points of Interest. Max for a free account = 1, max for a premium account = 3.", true, false);
		propertyDefinitions.put(GEONAMES_OSMPOIsRADIUS_PROPERTY, geoNamesOSMPOIsRadiusProperty);

		PropertyDefinition geoNamesOSMPOIsMaxRowsProperty = new PropertyDefinition(GEONAMES_OSMPOIsMAXROWS_PROPERTY, PropertyType.Integer, 50, "GeoNames OpenStreetmap POI Max Rows", "The maximum number of OpenStreetmap Points of Interest to return. Max for a free account = 50, max for a premium account = 150.", true, false);
		propertyDefinitions.put(GEONAMES_OSMPOIsMAXROWS_PROPERTY, geoNamesOSMPOIsMaxRowsProperty);

		GeoEventDefinition ged = new DefaultGeoEventDefinition();
		ged.setName("GeoNamesOSMPOI");
		List<FieldDefinition> fds = new ArrayList<FieldDefinition>();
		fds.add(new DefaultFieldDefinition("trackId", FieldType.String, "TRACK_ID"));
		fds.add(new DefaultFieldDefinition("timestamp", FieldType.Date, "TIME_START"));
		fds.add(new DefaultFieldDefinition("incidentId", FieldType.String));
		fds.add(new DefaultFieldDefinition("typeName", FieldType.String));
		fds.add(new DefaultFieldDefinition("distance", FieldType.Double));
		fds.add(new DefaultFieldDefinition("name", FieldType.String));
		fds.add(new DefaultFieldDefinition("lng", FieldType.Double));
		fds.add(new DefaultFieldDefinition("typeClass", FieldType.String));
		fds.add(new DefaultFieldDefinition("lat", FieldType.Double));
		fds.add(new DefaultFieldDefinition("geometry", FieldType.Geometry, "GEOMETRY"));
		ged.setFieldDefinitions(fds);
		geoEventDefinitions.put(ged.getName(), ged);

	}
	catch (PropertyException ex)
	{
		;
	}
	catch (ConfigurationException e)
	{
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
}
 
开发者ID:Esri,项目名称:geonames-for-geoevent,代码行数:41,代码来源:GeoNamesOSMPOIProcessorDefinition.java


示例10: AutoArrivalDepartureProcessorDefinition

import com.esri.ges.core.geoevent.DefaultFieldDefinition; //导入依赖的package包/类
public AutoArrivalDepartureProcessorDefinition()
{
  try
  {
    GeoEventDefinition md = new DefaultGeoEventDefinition();
    md.setName("incident");
    List<FieldDefinition> ads = new ArrayList<FieldDefinition>();
    ads.add(new DefaultFieldDefinition("id", FieldType.String));
    ads.add(new DefaultFieldDefinition("name", FieldType.String));
    ads.add(new DefaultFieldDefinition("type", FieldType.String));
    ads.add(new DefaultFieldDefinition("status", FieldType.String));
    ads.add(new DefaultFieldDefinition("alertType", FieldType.String));
    ads.add(new DefaultFieldDefinition("openCondition", FieldType.String));
    ads.add(new DefaultFieldDefinition("closeCondition", FieldType.String));
    ads.add(new DefaultFieldDefinition("description", FieldType.String));
    ads.add(new DefaultFieldDefinition("timestamp", FieldType.Date, "TIME_START"));
    ads.add(new DefaultFieldDefinition("definitionName", FieldType.String));
    ads.add(new DefaultFieldDefinition("definitionOwner", FieldType.String));
    ads.add(new DefaultFieldDefinition("trackId", FieldType.String, "TRACK_ID"));
    ads.add(new DefaultFieldDefinition("shape", FieldType.Geometry, "GEOMETRY"));
    ads.add(new DefaultFieldDefinition("duration", FieldType.Long));
    ads.add(new DefaultFieldDefinition("dismissed", FieldType.Boolean));
    ads.add(new DefaultFieldDefinition("assignedTo", FieldType.String));
    ads.add(new DefaultFieldDefinition("note", FieldType.String));
    md.setFieldDefinitions(ads);
    geoEventDefinitions.put(md.getName(), md);
  }
  catch(Exception e)
  {
    LOG.error("Error setting up Incident Detector Definition.", e);
  }
}
 
开发者ID:Esri,项目名称:route-monitor-for-geoevent,代码行数:33,代码来源:AutoArrivalDepartureProcessorDefinition.java


示例11: validate

import com.esri.ges.core.geoevent.DefaultFieldDefinition; //导入依赖的package包/类
@Override
public synchronized void validate() throws ValidationException
{
	super.validate();
	List<String> errors = new ArrayList<String>();
	if (resultDestination == null)
		errors.add("Result Destination is unknown.");
	if (ResultDestination.NEW_FIELD.equals(resultDestination))
	{
		try
		{
			fieldDefinition = new DefaultFieldDefinition(fieldName, fieldType);
			tag(fieldDefinition);
		}
		catch (Exception e)
		{
			errors.add(e.getMessage());
		}
	}
	else if (ResultDestination.EXISTING_FIELD.equals(resultDestination))
		if (fieldName.isEmpty())
			errors.add(LOGGER.translate("VALIDATION_ERROR_FIELD_DOESNT_EXIST"));
	if (errors.size() > 0)
	{
		StringBuffer sb = new StringBuffer();
		for (String message : errors)
			sb.append(message).append("\n");
		throw new ValidationException(LOGGER.translate("VALIDATION_ERROR", sb.toString()));
	}
}
 
开发者ID:Esri,项目名称:solutions-geoevent-java,代码行数:31,代码来源:CacheAwareFieldCalculator.java


示例12: CoTAdapterService

import com.esri.ges.core.geoevent.DefaultFieldDefinition; //导入依赖的package包/类
public CoTAdapterService()
{
	super(AdapterType.INBOUND);
	try {
		try
		{
			propertyDefinitions.put(COT_TYPES_PATH_LABEL, new PropertyDefinition(COT_TYPES_PATH_LABEL, PropertyType.String, "", "CoT Types Path", "This is the complete path for the cot types file.", false, false) );
			propertyDefinitions.put(XSD_PATH_LABEL, new PropertyDefinition(XSD_PATH_LABEL, PropertyType.String, "", "XSD_Path", "This directory is where additional xsd files can be installed.  When the Adapter is installed, any xsd files found in this folder are used to add schema elements to the CoT GeoEvent Definition.", false, false ) );
			propertyDefinitions.put(MAXIMUM_BUFFER_SIZE_LABEL, new PropertyDefinition(MAXIMUM_BUFFER_SIZE_LABEL, PropertyType.Integer, ""+(1024*1024), "Maximum Buffer Size", "This is the maximum number of XML characters that will be stored in memory while looking for a complete Cursor on Target message.  If the adapter receives more than this amount of text, it will assume that it has somehow missed the end of the message, and it will scan for something that looks like the beginning of a new message.", false, false ) );
		} catch (PropertyException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		FieldDefinition detailField = new DefaultFieldDefinition("detail", FieldType.Group);

		getBuiltInSchemas(detailField);

		// INCLUDE the following line if we want to convert CoTTypes to
		// human readable. - NOTE load from JAR is OK.
		// coTHash=CoTUtilities.getCoTTypeMap(this.getClass().getResourceAsStream("/CoTTypes/CoTtypes.xml"));

		// INCLUDE the following line if we are going to extract attributes
		// from XSD files. -NOTE problem loading from JAR
		getAdditionalSchemasFromXSDFolder(detailField);

		GeoEventDefinition geoEventDefinition = new DefaultGeoEventDefinition();
		geoEventDefinition.setName("CoT");
		this.fieldDefinitions = new ArrayList<FieldDefinition>();
		fieldDefinitions.add(new DefaultFieldDefinition("version",
				FieldType.Double));
		fieldDefinitions.add(new DefaultFieldDefinition("uid",
				FieldType.String, "TRACK_ID"));
		fieldDefinitions.add(new DefaultFieldDefinition("type",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("2525b",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition(
				"typeDescription", FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("how",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition(
				"parsedhow", FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("time",
				FieldType.Date));
		fieldDefinitions.add(new DefaultFieldDefinition("start",
				FieldType.Date, "TIME_START"));
		fieldDefinitions.add(new DefaultFieldDefinition("stale",
				FieldType.Date));
		fieldDefinitions.add(new DefaultFieldDefinition("access",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("opex",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition(
				"opexDescription", FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("qos",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition(
				"qosDescription", FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("point",
				FieldType.Geometry, "GEOMETRY"));
		fieldDefinitions.add( detailField );

		

		geoEventDefinition.setFieldDefinitions(fieldDefinitions);
		geoEventDefinitions.put(geoEventDefinition.getName(),
				geoEventDefinition);
		guid = geoEventDefinition.getGuid();
	} catch (ConfigurationException ex) {

	}
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:75,代码来源:CoTAdapterService.java


示例13: CoTInboundAdapterDefinition

import com.esri.ges.core.geoevent.DefaultFieldDefinition; //导入依赖的package包/类
public CoTInboundAdapterDefinition(AdapterType type) {
	super(AdapterType.INBOUND);
	try {
		try
		{
			propertyDefinitions.put(COT_TYPES_PATH_LABEL, new PropertyDefinition(COT_TYPES_PATH_LABEL, PropertyType.String, "", "CoT_Types_Path", "This is the complete path for the cot types file.", false, false) );
			propertyDefinitions.put(XSD_PATH_LABEL, new PropertyDefinition(XSD_PATH_LABEL, PropertyType.String, "", "XSD_Path", "This directory is where additional xsd files can be installed.  When the Adapter is installed, any xsd files found in this folder are used to add schema elements to the CoT GeoEvent Definition.", false, false ) );
			propertyDefinitions.put(MAXIMUM_BUFFER_SIZE_LABEL, new PropertyDefinition(MAXIMUM_BUFFER_SIZE_LABEL, PropertyType.Integer, ""+(1024*1024), "Maximum Buffer Size", "This is the maximum number of XML characters that will be stored in memory while looking for a complete Cursor on Target message.  If the adapter receives more than this amount of text, it will assume that it has somehow missed the end of the message, and it will scan for something that looks like the beginning of a new message.", false, false ) );
			
		} catch (PropertyException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		FieldDefinition detailField = new DefaultFieldDefinition("detail", FieldType.Group);

		getBuiltInSchemas(detailField);

		// INCLUDE the following line if we want to convert CoTTypes to
		// human readable. - NOTE load from JAR is OK.
		// coTHash=CoTUtilities.getCoTTypeMap(this.getClass().getResourceAsStream("/CoTTypes/CoTtypes.xml"));

		// INCLUDE the following line if we are going to extract attributes
		// from XSD files. -NOTE problem loading from JAR
		getAdditionalSchemasFromXSDFolder(detailField);

		GeoEventDefinition geoEventDefinition = new DefaultGeoEventDefinition();
		geoEventDefinition.setName("CoT");
		this.fieldDefinitions = new ArrayList<FieldDefinition>();
		fieldDefinitions.add(new DefaultFieldDefinition("version",
				FieldType.Double));
		fieldDefinitions.add(new DefaultFieldDefinition("uid",
				FieldType.String, "TRACK_ID"));
		fieldDefinitions.add(new DefaultFieldDefinition("type",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("2525b",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition(
				"typeDescription", FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("how",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition(
				"parsedhow", FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("time",
				FieldType.Date));
		fieldDefinitions.add(new DefaultFieldDefinition("start",
				FieldType.Date, "TIME_START"));
		fieldDefinitions.add(new DefaultFieldDefinition("stale",
				FieldType.Date));
		fieldDefinitions.add(new DefaultFieldDefinition("access",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("opex",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition(
				"opexDescription", FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("qos",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition(
				"qosDescription", FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("point",
				FieldType.Geometry, "GEOMETRY"));
		fieldDefinitions.add( detailField );
		

		geoEventDefinition.setFieldDefinitions(fieldDefinitions);
		geoEventDefinitions.put(geoEventDefinition.getName(),
				geoEventDefinition);
		guid = geoEventDefinition.getGuid();
	} catch (ConfigurationException ex) {

	} 
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:74,代码来源:CoTInboundAdapterDefinition.java


示例14: CoTInboundAdapterDefinition

import com.esri.ges.core.geoevent.DefaultFieldDefinition; //导入依赖的package包/类
public CoTInboundAdapterDefinition(AdapterType type) {
	super(AdapterType.INBOUND);
	try {
		try
		{
			propertyDefinitions.put(COT_TYPES_PATH_LABEL, new PropertyDefinition(COT_TYPES_PATH_LABEL, PropertyType.String, "", lblCotTypes, descCotTypes, false, false) );
			propertyDefinitions.put(XSD_PATH_LABEL, new PropertyDefinition(XSD_PATH_LABEL, PropertyType.String, "", lblXSDPath, descXSDPath, false, false ) );
			propertyDefinitions.put(MAXIMUM_BUFFER_SIZE_LABEL, new PropertyDefinition(MAXIMUM_BUFFER_SIZE_LABEL, PropertyType.Integer, ""+(1024*1024), lblMaxBuffer, descMaxBuffer, false, false ) );
			
		} catch (PropertyException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		FieldDefinition detailField = new DefaultFieldDefinition("detail", FieldType.Group);

		getBuiltInSchemas(detailField);

		// INCLUDE the following line if we want to convert CoTTypes to
		// human readable. - NOTE load from JAR is OK.
		// coTHash=CoTUtilities.getCoTTypeMap(this.getClass().getResourceAsStream("/CoTTypes/CoTtypes.xml"));

		// INCLUDE the following line if we are going to extract attributes
		// from XSD files. -NOTE problem loading from JAR
		getAdditionalSchemasFromXSDFolder(detailField);

		GeoEventDefinition geoEventDefinition = new DefaultGeoEventDefinition();
		geoEventDefinition.setName("CoT");
		this.fieldDefinitions = new ArrayList<FieldDefinition>();
		fieldDefinitions.add(new DefaultFieldDefinition("version",
				FieldType.Double));
		fieldDefinitions.add(new DefaultFieldDefinition("uid",
				FieldType.String, "TRACK_ID"));
		fieldDefinitions.add(new DefaultFieldDefinition("type",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("2525b",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition(
				"typeDescription", FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("how",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition(
				"parsedhow", FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("time",
				FieldType.Date));
		fieldDefinitions.add(new DefaultFieldDefinition("start",
				FieldType.Date, "TIME_START"));
		fieldDefinitions.add(new DefaultFieldDefinition("stale",
				FieldType.Date));
		fieldDefinitions.add(new DefaultFieldDefinition("access",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("opex",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition(
				"opexDescription", FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("qos",
				FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition(
				"qosDescription", FieldType.String));
		fieldDefinitions.add(new DefaultFieldDefinition("point",
				FieldType.Geometry, "GEOMETRY"));
		fieldDefinitions.add( detailField );
		

		geoEventDefinition.setFieldDefinitions(fieldDefinitions);
		geoEventDefinitions.put(geoEventDefinition.getName(),
				geoEventDefinition);
		guid = geoEventDefinition.getGuid();
	} catch (ConfigurationException ex) {

	} 
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:74,代码来源:CoTInboundAdapterDefinition.java


示例15: createFieldDefinitionList

import com.esri.ges.core.geoevent.DefaultFieldDefinition; //导入依赖的package包/类
private List<FieldDefinition> createFieldDefinitionList()
{
  List<FieldDefinition> fdsMC = new ArrayList<FieldDefinition>();
  try
  {
    fdsMC.add(new DefaultFieldDefinition("distance", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("height", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("timespan", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("speed", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("heading", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("slope", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("minTimespan", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("maxTimespan", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("avgTimespan", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("minDistance", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("maxDistance", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("avgDistance", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("minHeight", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("maxHeight", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("avgHeight", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("minSpeed", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("maxSpeed", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("avgSpeed", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("minAcceleration", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("maxAcceleration", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("avgAcceleration", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("minSlope", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("maxSlope", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("avgSlope", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("cumulativeDistance", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("cumulativeHeight", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("cumulativeTime", FieldType.Double));
    fdsMC.add(new DefaultFieldDefinition("calculatedAt", FieldType.Date));
    fdsMC.add(new DefaultFieldDefinition("predictiveTime", FieldType.Date));
    fdsMC.add(new DefaultFieldDefinition("predictivePosition", FieldType.Geometry));
  }
  catch (Exception e)
  {

  }
  return fdsMC;
}
 
开发者ID:Esri,项目名称:motion-calculator-for-geoevent,代码行数:43,代码来源:MotionCalculator.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java NotationImpl类代码示例发布时间:2022-05-23
下一篇:
Java Command类代码示例发布时间: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