本文整理汇总了Java中com.esri.ges.core.property.PropertyType类的典型用法代码示例。如果您正苦于以下问题:Java PropertyType类的具体用法?Java PropertyType怎么用?Java PropertyType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PropertyType类属于com.esri.ges.core.property包,在下文中一共展示了PropertyType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setManager
import com.esri.ges.core.property.PropertyType; //导入依赖的package包/类
public void setManager(GeoEventDefinitionManager m) throws PropertyException {
this.manager = m;
PropertyDefinition procSymbolIdSource = new PropertyDefinition("symbolIdSource",
PropertyType.String, "", "SymbolId Source", "Source of SymbolId Value", true, false);
procSymbolIdSource.addAllowedValue("Event");
propertyDefinitions.put(procSymbolIdSource.getPropertyName(), procSymbolIdSource);
PropertyDefinition procSymbolIdEvent = new PropertyDefinition("symbolIdEvent",
PropertyType.String, "", "SymbolId Event Field", "Geoevent field containing SymbolId data", true, false);
procSymbolIdEvent.setDependsOn("symbolIdSource=Event");
SetGeoEventAllowedFields(procSymbolIdEvent);
propertyDefinitions.put(procSymbolIdEvent.getPropertyName(), procSymbolIdEvent);
PropertyDefinition procSymbolNameSource = new PropertyDefinition("symbolNameSource",
PropertyType.String, "", "SymbolName Source", "Source of SymbolName Value", true, false);
procSymbolNameSource.addAllowedValue("Event");
propertyDefinitions.put(procSymbolNameSource.getPropertyName(), procSymbolNameSource);
PropertyDefinition procSymbolNameEvent = new PropertyDefinition("symbolNameEvent",
PropertyType.String, "", "SymbolName Event Field", "Geoevent field containing SymbolName data", true, false);
procSymbolNameEvent.setDependsOn("symbolNameSource=Event");
SetGeoEventAllowedFields(procSymbolNameEvent);
propertyDefinitions.put(procSymbolNameEvent.getPropertyName(), procSymbolNameEvent);
}
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:27,代码来源:SymbolIdToNameProcessorDefinition.java
示例2: setManager
import com.esri.ges.core.property.PropertyType; //导入依赖的package包/类
public void setManager(GeoEventDefinitionManager m) throws PropertyException {
this.manager = m;
PropertyDefinition procSymbolNameSource = new PropertyDefinition("symbolNameSource",
PropertyType.String, "", "SymbolName Source", "Source of SymbolName Value", true, false);
procSymbolNameSource.addAllowedValue("Event");
propertyDefinitions.put(procSymbolNameSource.getPropertyName(), procSymbolNameSource);
PropertyDefinition procSymbolNameEvent = new PropertyDefinition("symbolNameEvent",
PropertyType.String, "", "SymbolName Event Field", "Geoevent field containing SymbolName data", true, false);
procSymbolNameEvent.setDependsOn("symbolNameSource=Event");
SetGeoEventAllowedFields(procSymbolNameEvent);
propertyDefinitions.put(procSymbolNameEvent.getPropertyName(), procSymbolNameEvent);
PropertyDefinition procSymbolIdSource = new PropertyDefinition("symbolIdSource",
PropertyType.String, "", "SymbolId Source", "Source of SymbolId Value", true, false);
procSymbolIdSource.addAllowedValue("Event");
propertyDefinitions.put(procSymbolIdSource.getPropertyName(), procSymbolIdSource);
PropertyDefinition procSymbolIdEvent = new PropertyDefinition("symbolIdEvent",
PropertyType.String, "", "SymbolId Event Field", "Geoevent field containing SymbolId data", true, false);
procSymbolIdEvent.setDependsOn("symbolIdSource=Event");
SetGeoEventAllowedFields(procSymbolIdEvent);
propertyDefinitions.put(procSymbolIdEvent.getPropertyName(), procSymbolIdEvent);
}
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:27,代码来源:SymbolNameToIdProcessorDefinition.java
示例3: UpdateOnlyProcessorDefinition
import com.esri.ges.core.property.PropertyType; //导入依赖的package包/类
public UpdateOnlyProcessorDefinition()
{
try
{
// When defining properties, first create the property definition.
// The first parameter is the internal name of the property and is not exposed to the user.
// The second parameter is the property type, and allows the server to validate property values provided by the user (e.g. "hello" is not a valid integer value).
// The third parameter is the default value, and is shown to the user as a suggested value. This is optional.
// The fourth parameter is the name shown to users when the look at a list of properties for your processor.
// The fifth parameter is the Detailed description, which is shown to users when they hover over the property.
// The sixth parameter specifies if the property is mandatory (must be provided by the user)
// The seventh parameter specifies if the property is read-only, meaning it is shown to the user but cannot be modified.
// Additional parameters can be added to the constructor as a list of allowed values.
PropertyDefinition clearCacheProperty = new PropertyDefinition( CLEAR_CACHE_PROPERTY, PropertyType.Boolean, false, "Clear Cache", "Set this property to clear the cache. For example, if anything has gone wrong in GeoEvent Processing, such that outputs have not been reached their destination(s), then this Processor may prevent those outputs from being re-processed immediately unless the cache is cleared. ", false, false );
// after creating the property definition, put it in the base class's "propertyDefinitions" structure. These definitions will be provided to the
// server when the processor is installed, and provided to client applications on-demand
propertyDefinitions.put( CLEAR_CACHE_PROPERTY, clearCacheProperty );
}
catch (PropertyException e)
{
;
}
}
示例4: setManager
import com.esri.ges.core.property.PropertyType; //导入依赖的package包/类
public void setManager(GeoEventDefinitionManager m) throws PropertyException {
this.manager = m;
/*PropertyDefinition procSymbolIdSource = new PropertyDefinition("symbolIdSource",
PropertyType.String, "", "SymbolId Source", "Source of SymbolId Value", true, false);
procSymbolIdSource.addAllowedValue("Event");
propertyDefinitions.put(procSymbolIdSource.getPropertyName(), procSymbolIdSource);*/
PropertyDefinition procSymbolIdEvent = new PropertyDefinition("symbolIdEvent",
PropertyType.String, "", "${com.esri.geoevent.solutions.processor.symbol-lookup.symbol-lookup-processor.LBL_SYMBOL_ID_FIELD}", "${com.esri.geoevent.solutions.processor.geomessage.geomessage-processor.DESC_SYMBOL_ID_FIELD}", true, false);
//procSymbolIdEvent.setDependsOn("symbolIdSource=Event");
propertyDefinitions.put(procSymbolIdEvent.getPropertyName(), procSymbolIdEvent);
/*PropertyDefinition procSymbolNameSource = new PropertyDefinition("symbolNameSource",
PropertyType.String, "", "SymbolName Source", "Source of SymbolName Value", true, false);
procSymbolNameSource.addAllowedValue("Event");
propertyDefinitions.put(procSymbolNameSource.getPropertyName(), procSymbolNameSource);*/
PropertyDefinition procSymbolNameEvent = new PropertyDefinition("symbolNameEvent",
PropertyType.String, "", "${com.esri.geoevent.solutions.processor.symbol-lookup.symbol-lookup-processor.LBL_SYMBOL_NAME_FIELD}", "${com.esri.geoevent.solutions.processor.geomessage.geomessage-processor.DESC_SYMBOL_NAME_FIELD}", true, false);
//procSymbolNameEvent.setDependsOn("symbolNameSource=Event");
propertyDefinitions.put(procSymbolNameEvent.getPropertyName(), procSymbolNameEvent);
}
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:27,代码来源:SymbolIdToNameProcessorDefinition.java
示例5: setManager
import com.esri.ges.core.property.PropertyType; //导入依赖的package包/类
public void setManager(GeoEventDefinitionManager m) throws PropertyException {
this.manager = m;
/*PropertyDefinition procSymbolNameSource = new PropertyDefinition("symbolNameSource",
PropertyType.String, "", "SymbolName Source", "Source of SymbolName Value", true, false);
procSymbolNameSource.addAllowedValue("Event");
propertyDefinitions.put(procSymbolNameSource.getPropertyName(), procSymbolNameSource);*/
PropertyDefinition procSymbolNameEvent = new PropertyDefinition("symbolNameEvent",
PropertyType.String, "", "${com.esri.geoevent.solutions.processor.symbol-lookup.symbol-lookup-processor.LBL_SYMBOL_NAME_FIELD}", "${com.esri.geoevent.solutions.processor.geomessage.geomessage-processor.DESC_SYMBOL_NAME_FIELD}", true, false);
//procSymbolNameEvent.setDependsOn("symbolNameSource=Event");
//SetGeoEventAllowedFields(procSymbolNameEvent);
propertyDefinitions.put(procSymbolNameEvent.getPropertyName(), procSymbolNameEvent);
/*PropertyDefinition procSymbolIdSource = new PropertyDefinition("symbolIdSource",
PropertyType.String, "", "SymbolId Source", "Source of SymbolId Value", true, false);
procSymbolIdSource.addAllowedValue("Event");
propertyDefinitions.put(procSymbolIdSource.getPropertyName(), procSymbolIdSource);*/
PropertyDefinition procSymbolIdEvent = new PropertyDefinition("symbolIdEvent",
PropertyType.String, "", "${com.esri.geoevent.solutions.processor.symbol-lookup.symbol-lookup-processor.LBL_SYMBOL_ID_FIELD}", "${com.esri.geoevent.solutions.processor.geomessage.geomessage-processor.DESC_SYMBOL_ID_FIELD}", true, false);
//procSymbolIdEvent.setDependsOn("symbolIdSource=Event");
//SetGeoEventAllowedFields(procSymbolIdEvent);
propertyDefinitions.put(procSymbolIdEvent.getPropertyName(), procSymbolIdEvent);
}
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:27,代码来源:SymbolNameToIdProcessorDefinition.java
示例6: EVCProcessorDefinition
import com.esri.ges.core.property.PropertyType; //导入依赖的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();
}
}
示例7: AddXYZProcessorDefinition
import com.esri.ges.core.property.PropertyType; //导入依赖的package包/类
public AddXYZProcessorDefinition() throws PropertyException {
PropertyDefinition pdGeometryFieldName = new PropertyDefinition("geofield", PropertyType.String, "", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.LBL_GEO_FIELD}", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.DESC_GEO_FIELD}", true, false);
propertyDefinitions.put(pdGeometryFieldName.getPropertyName(), pdGeometryFieldName);
PropertyDefinition pdGEDName = new PropertyDefinition("gedName", PropertyType.String, "AddXYZDef", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.LBL_GEOEVENT_DEFINITION_NAME}", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.DESC_GEOEVENT_DEFINITION_NAME}", true, false);
propertyDefinitions.put(pdGEDName.getPropertyName(), pdGEDName);
PropertyDefinition pdXField = new PropertyDefinition("xfield", PropertyType.String, "x", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.LBL_X_FIELD}", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.DESC_X_FIELD}", true, false);
propertyDefinitions.put(pdXField.getPropertyName(), pdXField);
PropertyDefinition pdYField = new PropertyDefinition("yfield", PropertyType.String, "y", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.LBL_Y_FIELD}", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.DESC_Y_FIELD}", true, false);
propertyDefinitions.put(pdYField.getPropertyName(), pdYField);
PropertyDefinition pdZField = new PropertyDefinition("zfield", PropertyType.String, "z", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.LBL_Z_FIELD}", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.DESC_Z_FIELD}", false, false);
propertyDefinitions.put(pdZField.getPropertyName(), pdZField);
}
示例8: EventJoinerProcessorDefinition
import com.esri.ges.core.property.PropertyType; //导入依赖的package包/类
public EventJoinerProcessorDefinition() throws PropertyException{
PropertyDefinition pdJoin = new PropertyDefinition("join", PropertyType.String, "TRACK_ID", lblJoinField, descJoinField, true, false);
propertyDefinitions.put(pdJoin.getPropertyName(), pdJoin);
PropertyDefinition pdInDefs = new PropertyDefinition(
"indefs",
PropertyType.String,
2, lblInDefs,
descInDefs,
true, false);
propertyDefinitions.put(pdInDefs.getPropertyName(), pdInDefs);
PropertyDefinition pdOutDef = new PropertyDefinition(
"outdef", PropertyType.String, "", lblOutDef,
descOutDef, true, false);
propertyDefinitions.put(pdOutDef.getPropertyName(),
pdOutDef);
}
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:18,代码来源:EventJoinerProcessorDefinition.java
示例9: IncrementalPointProcessorDefinition
import com.esri.ges.core.property.PropertyType; //导入依赖的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
示例10: TcpSquirtOutboundTransportDefinition
import com.esri.ges.core.property.PropertyType; //导入依赖的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
示例11: KafkaInboundTransportDefinition
import com.esri.ges.core.property.PropertyType; //导入依赖的package包/类
public KafkaInboundTransportDefinition()
{
super(TransportType.INBOUND);
try
{
propertyDefinitions.put("zkConnect", new PropertyDefinition("zkConnect", PropertyType.String, "localhost:2181", "${com.esri.geoevent.transport.kafka-transport.ZKCONNECT_LBL}", "${com.esri.geoevent.transport.kafka-transport.ZKCONNECT_DESC}", true, false));
propertyDefinitions.put("numThreads", new PropertyDefinition("numThreads", PropertyType.Integer, "1", "${com.esri.geoevent.transport.kafka-transport.NUM_THREADS_LBL}", "${com.esri.geoevent.transport.kafka-transport.NUM_THREADS_DESC}", true, false));
propertyDefinitions.put("topic", new PropertyDefinition("topic", PropertyType.String, "", "${com.esri.geoevent.transport.kafka-transport.TOPIC_LBL}", "${com.esri.geoevent.transport.kafka-transport.TOPIC_DESC}", true, false));
propertyDefinitions.put("groupId", new PropertyDefinition("groupId", PropertyType.String, "", "${com.esri.geoevent.transport.kafka-transport.GROUOP_ID_LBL}", "${com.esri.geoevent.transport.kafka-transport.GROUOP_ID_DESC}", true, false));
}
catch (PropertyException e)
{
String errorMsg = LOGGER.translate("TRANSPORT_IN_INIT_ERROR", e.getMessage());
LOGGER.error(errorMsg, e);
throw new RuntimeException(errorMsg, e);
}
}
示例12: KafkaOutboundTransportDefinition
import com.esri.ges.core.property.PropertyType; //导入依赖的package包/类
KafkaOutboundTransportDefinition() {
super(TransportType.OUTBOUND);
try {
propertyDefinitions.put("zkConnect", new PropertyDefinition("zkConnect", PropertyType.String, "localhost:2181", "${com.esri.geoevent.transport.kafka-transport.ZKCONNECT_LBL}", "${com.esri.geoevent.transport.kafka-transport.ZKCONNECT_DESC}", true, false));
propertyDefinitions.put("bootstrap", new PropertyDefinition("bootstrap", PropertyType.String, "localhost:9092", "${com.esri.geoevent.transport.kafka-transport.BOOTSTRAP_LBL}", "${com.esri.geoevent.transport.kafka-transport.BOOTSTRAP_DESC}", true, false));
propertyDefinitions.put("topic", new PropertyDefinition("topic", PropertyType.String, "", "${com.esri.geoevent.transport.kafka-transport.TOPIC_LBL}", "${com.esri.geoevent.transport.kafka-transport.TOPIC_DESC}", true, false));
propertyDefinitions.put("partitions", new PropertyDefinition("partitions", PropertyType.Integer, "1", "${com.esri.geoevent.transport.kafka-transport.PARTITIONS_LBL}", "${com.esri.geoevent.transport.kafka-transport.PARTITIONS_DESC}", true, false));
propertyDefinitions.put("replicas", new PropertyDefinition("replicas", PropertyType.Integer, "0", "${com.esri.geoevent.transport.kafka-transport.REPLICAS_LBL}", "${com.esri.geoevent.transport.kafka-transport.REPLICAS_DESC}", true, false));
}
catch (PropertyException e)
{
String errorMsg = LOGGER.translate("TRANSPORT_OUT_INIT_ERROR", e.getMessage());
LOGGER.error(errorMsg, e);
throw new RuntimeException(errorMsg, e);
}
}
示例13: ReverseGeocoderProcessorDefinition
import com.esri.ges.core.property.PropertyType; //导入依赖的package包/类
public ReverseGeocoderProcessorDefinition()
{
try
{
PropertyDefinition agolSearchDistanceProperty = new PropertyDefinition(AGOL_SEARCHDISTANCE_PROPERTY, PropertyType.Integer, 100, "ArcGIS Online Reverse Geocoder Search Radius (m)", "The distance from the geoevent's location within which a matching address should be searched.", true, false);
propertyDefinitions.put(AGOL_SEARCHDISTANCE_PROPERTY, agolSearchDistanceProperty);
PropertyDefinition newGeoEventDefinitionNameProperty = new PropertyDefinition(NEWGEOEVENTDEFINITION_PROPERTY, PropertyType.String, "NewGeoEventDefinition", "Resulting GeoEvent Definition", "The incoming GeoEvent will be augmented with the address fields from the reverse geocode and a new GeoEvent Definition will be created.", true, false);
propertyDefinitions.put(NEWGEOEVENTDEFINITION_PROPERTY, newGeoEventDefinitionNameProperty);
}
catch (PropertyException ex)
{
;
}
catch (Exception error)
{
LOGGER.error("INIT_ERROR", error.getMessage());
LOGGER.info(error.getMessage(), error);
}
}
示例14: ServiceAreaCalculatorDefinition
import com.esri.ges.core.property.PropertyType; //导入依赖的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
示例15: ServiceAreaCalculatorDefinition
import com.esri.ges.core.property.PropertyType; //导入依赖的package包/类
public ServiceAreaCalculatorDefinition()
{
try
{
propertyDefinitions.put(SERVICE_AREA_TYPE_PROPERTY, new PropertyDefinition(SERVICE_AREA_TYPE_PROPERTY, PropertyType.String, SERVICE_AREA_TYPE_BUFFER, "Service Area Type", "Create service area either by buffer with a distance or by drive time.", true, false, SERVICE_AREA_TYPE_BUFFER, SERVICE_AREA_TYPE_DRIVE_TIME));
propertyDefinitions.put(BUFFER_DISTANCE_PROPERTY, new PropertyDefinition(BUFFER_DISTANCE_PROPERTY, PropertyType.Double, 500, "Buffer Distance (feet)", "Radius of a buffer around a point.", SERVICE_AREA_TYPE_PROPERTY + "=" + SERVICE_AREA_TYPE_BUFFER, false, false));
propertyDefinitions.put(NA_CONNECTION_PROPERTY, new PropertyDefinition(NA_CONNECTION_PROPERTY, PropertyType.ArcGISConnection, null, "ArcGIS ServerConnection Name", "The ArcGIS Server Connection to use when contacing Network Analyst", SERVICE_AREA_TYPE_PROPERTY + "=" + SERVICE_AREA_TYPE_DRIVE_TIME, false, false));
propertyDefinitions.put(NA_PATH_PROPERTY, new PropertyDefinition(NA_PATH_PROPERTY, PropertyType.String, "rest/services/Network/USA/NAServer/Route/solve", "Path to Network Analyst Route solver", "Path to Network Analyst Route solver relative to AGS Connection", SERVICE_AREA_TYPE_PROPERTY + "=" + SERVICE_AREA_TYPE_DRIVE_TIME, false, false));
propertyDefinitions.put(DRIVE_TIME_PROPERTY, new PropertyDefinition(DRIVE_TIME_PROPERTY, PropertyType.Integer, 2, "Drive Time Limit (minutes)", "Drive time limit of the service area", SERVICE_AREA_TYPE_PROPERTY + "=" + SERVICE_AREA_TYPE_DRIVE_TIME, false, false));
}
catch(Exception e)
{
;
}
}