|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGPEnvironmentManager
Provides access to the properties/methods of a geoprocessing environment management object.
The IGPEnvironmentManager interface provides access to the properties and method of the GPEnvironmentManager object. The GPEnvironmentManager is the managing object for all environments and settings used by the Geoprocessor and its tools. It is passed to each tool for use during Validate() and Execute().
Method Summary | |
---|---|
void |
addEnvironment(IGPEnvironment env)
Adds the given geoprocessing environment to the environment manager. |
IGPEnvironment |
findEnvironment(String name)
Locates and returns the environment with the specified name. |
IArray |
getEnvironments()
Returns the environments of the environment manager as an array. |
Object |
getEnvVariant(IGPEnvironment env)
Returns the value of the given environment as a variant. |
IArray |
getLocalEnvironments()
Returns an array of the environments that have been updated locally. |
IGPEnvironmentManager |
getParent()
Returns the parent environment manager. |
void |
putEnvVariant(IGPEnvironment env,
Object value)
Sets the value of the given environment to the given variant. |
void |
removeEnvironment(IGPEnvironment env)
Removes the given geoprocessing environment from the environment manager. |
void |
removeEnvironments()
Removes all environments from the environment manager. |
void |
setParentByRef(IGPEnvironmentManager parent)
Returns the parent environment manager. |
void |
setPersistAll(boolean rhs1)
Indicates whether all environments or only local environments are persisted. |
void |
substituteEnvironments(IArray pParams)
Substitues the values of the given array of parameters with the current environment values. |
Method Detail |
---|
IGPEnvironmentManager getParent() throws IOException, AutomationException
The Parent property returns a reference to the root environment manager, i.e., ArcToolbox.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setParentByRef(IGPEnvironmentManager parent) throws IOException, AutomationException
parent
- A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addEnvironment(IGPEnvironment env) throws IOException, AutomationException
The AddEnvironment methods adds a given environment to the environments array.
env
- A reference to a com.esri.arcgis.geoprocessing.IGPEnvironment (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeEnvironment(IGPEnvironment env) throws IOException, AutomationException
env
- A reference to a com.esri.arcgis.geoprocessing.IGPEnvironment (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void substituteEnvironments(IArray pParams) throws IOException, AutomationException
pParams
- A reference to a com.esri.arcgis.system.IArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeEnvironments() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IArray getEnvironments() throws IOException, AutomationException
The GetEnvironments method returns all possible environments of an environment manager as an array. Use this method to access a complete environments list of a GPEnviornmentManager object.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IArray getLocalEnvironments() throws IOException, AutomationException
The GetLocalEnvironments method returns the environments [as an IArray object] defined for an object such as a model process or a model.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPEnvironment findEnvironment(String name) throws IOException, AutomationException
The FindEnvironment method returns the specified environment as string. Use this method to access a specific environment.
A code snippet on how to use this method is included below.
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void putEnvVariant(IGPEnvironment env, Object value) throws IOException, AutomationException
env
- A reference to a com.esri.arcgis.geoprocessing.IGPEnvironment (in)value
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getEnvVariant(IGPEnvironment env) throws IOException, AutomationException
env
- A reference to a com.esri.arcgis.geoprocessing.IGPEnvironment (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPersistAll(boolean rhs1) throws IOException, AutomationException
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |