当前位置: 首页>>代码示例>>Java>>正文


Java GeoEventDefinition.getGuid方法代码示例

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


在下文中一共展示了GeoEventDefinition.getGuid方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: CoTAdapterService

import com.esri.ges.core.geoevent.GeoEventDefinition; //导入方法依赖的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

示例2: CoTInboundAdapterDefinition

import com.esri.ges.core.geoevent.GeoEventDefinition; //导入方法依赖的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

示例3: CoTInboundAdapterDefinition

import com.esri.ges.core.geoevent.GeoEventDefinition; //导入方法依赖的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


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