|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.geoprocessing.MdModel
public class MdModel
A collection of model variables and processes, used to execute multiple geoprocessing tools in some order.
| Constructor Summary | |
|---|---|
MdModel()
Constructs a MdModel using ArcGIS Engine. |
|
MdModel(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. MdModel theMdModel = (MdModel) obj; |
|
| Method Summary | |
|---|---|
void |
addElement(IMdElement element)
Adds the given element to the model. |
void |
addElements(IArray elements)
Adds the collection of elements to the model. |
void |
addIMdModelEventsListener(IMdModelEvents theListener)
addIMdModelEventsListener. |
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
boolean |
canAddElement(IMdElement pElement)
Returns whether or not the given model element can be added to the model. |
String |
createUniqueElementName(String name)
Generates a new unique name that may be used for adding a new model element to the model. |
void |
deleteElement(IMdElement element)
Removes the given element from the model. |
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
void |
disconnectElements(IMdElement pFromElement,
IMdElement pToElement,
int connectionType)
Removes the connection/dependency between two model elements. |
void |
empty()
Removes all model elements from the model. |
void |
enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
enumConnectionPoints |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
void |
execute(ITrackCancel trackCancel,
boolean reset,
IGPEnvironmentManager pEnvMgr,
IGPMessages messages,
boolean stopOnFirstFailure)
Executes all the processes in the model. |
void |
executeProcess(IMdProcess pMdProcess,
ITrackCancel trackCancel,
boolean reset,
IGPEnvironmentManager pEnvMgr,
IGPMessages messages,
boolean stopOnFirstFailure)
Executes a single process in the model. |
void |
findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
findConnectionPoint |
IEnumMdElement |
findDependents(IMdElement pMdElement,
int direction,
int connectionType)
Returns all the model elements dependent on the given model element in the given direction of the given connection type. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
int |
getCurrentIteration()
Current model iteration. |
IMdElement |
getElement(String name)
Returns the model element with the given name. |
IMdElement |
getElementByID(int identifier)
Returns the model element with the given identifier. |
IEnumMdElement |
getElements()
Returns all of the model elements in the model. |
IGPEnvironmentManager |
getEnvironmentManager()
The set of overriding environment values used when validating/executing the model. |
int |
getIterationCount()
Number of times to iterate the model. |
IMdElement |
getIterationElement()
Model iteration element. |
int |
getIterationType()
Indicates model iteration type. |
IMdVariable |
getIterationVariable()
Model iteration variable. |
String |
getName()
Name of the model. |
IEnumMdProcess |
getProcesses()
Returns all of the processes in the model. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
IEnumMdVariable |
getVariables()
Returns all of the variables in the model. |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
boolean |
isLicensed()
Returns whether or not all the processes in the model are licensed. |
boolean |
isValid()
Returns whether or not all the model elements in the model are valid. |
void |
load(IStream pstm)
load |
void |
mergeElements(IEnumMdElement pElements)
Merges the given enumeration of model elements, commonly from another model, into the current model. |
void |
readExternal(ObjectInput in)
|
void |
removeIMdModelEventsListener(IMdModelEvents theListener)
removeIMdModelEventsListener. |
void |
save(IStream pstm,
int fClearDirty)
save |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
void |
setEnvironmentManagerByRef(IGPEnvironmentManager ppEnvMgr)
The set of overriding environment values used when validating/executing the model. |
void |
setIterationCount(int count)
Number of times to iterate the model. |
void |
setIterationElementByRef(IMdElement ppElement)
Model iteration element. |
void |
setIterationType(int type)
Indicates model iteration type. |
void |
setIterationVariableByRef(IMdVariable ppVariable)
Model iteration variable. |
void |
setName(String name)
Name of the model. |
IEnumMdElement |
sortElements()
Returns all the model elements in the model in sorted order. |
IEnumMdElement |
traceDependents(IMdElement pMdElement,
int direction,
int depth)
Returns all the model elements dependent on the given model element in the given direction. |
IGPMessages |
validate(boolean reset,
IGPEnvironmentManager pEnvMgr)
Validates all model elements in the model. |
boolean |
verifyUniqueElementName(String name)
Returns whether or not the model already contains a model element by the given name. |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public MdModel()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public MdModel(Object obj)
throws IOException
MdModel theMdModel = (MdModel) obj;
obj to MdModel.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void addIMdModelEventsListener(IMdModelEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.geoprocessing.IMdModelEvents interface.
IOException - If there are communications problems.
public void removeIMdModelEventsListener(IMdModelEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.geoprocessing.IMdModelEvents interface.
IOException - If there are communications problems.
public String getName()
throws IOException,
AutomationException
getName in interface IMdModelIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setName(String name)
throws IOException,
AutomationException
setName in interface IMdModelname - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addElement(IMdElement element)
throws IOException,
AutomationException
addElement in interface IMdModelelement - A reference to a com.esri.arcgis.geoprocessing.IMdElement (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addElements(IArray elements)
throws IOException,
AutomationException
addElements in interface IMdModelelements - A reference to a com.esri.arcgis.system.IArray (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMdElement getElement(String name)
throws IOException,
AutomationException
getElement in interface IMdModelname - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMdElement getElementByID(int identifier)
throws IOException,
AutomationException
getElementByID in interface IMdModelidentifier - The identifier (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumMdElement getElements()
throws IOException,
AutomationException
getElements in interface IMdModelIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumMdVariable getVariables()
throws IOException,
AutomationException
getVariables in interface IMdModelIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumMdProcess getProcesses()
throws IOException,
AutomationException
getProcesses in interface IMdModelIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deleteElement(IMdElement element)
throws IOException,
AutomationException
deleteElement in interface IMdModelelement - A reference to a com.esri.arcgis.geoprocessing.IMdElement (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void empty()
throws IOException,
AutomationException
empty in interface IMdModelIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGPMessages validate(boolean reset,
IGPEnvironmentManager pEnvMgr)
throws IOException,
AutomationException
validate in interface IMdModelreset - The reset (in)pEnvMgr - A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void execute(ITrackCancel trackCancel,
boolean reset,
IGPEnvironmentManager pEnvMgr,
IGPMessages messages,
boolean stopOnFirstFailure)
throws IOException,
AutomationException
execute in interface IMdModeltrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)reset - The reset (in)pEnvMgr - A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)messages - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)stopOnFirstFailure - The stopOnFirstFailure (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void executeProcess(IMdProcess pMdProcess,
ITrackCancel trackCancel,
boolean reset,
IGPEnvironmentManager pEnvMgr,
IGPMessages messages,
boolean stopOnFirstFailure)
throws IOException,
AutomationException
executeProcess in interface IMdModelpMdProcess - A reference to a com.esri.arcgis.geoprocessing.IMdProcess (in)trackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)reset - The reset (in)pEnvMgr - A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)messages - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)stopOnFirstFailure - The stopOnFirstFailure (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumMdElement sortElements()
throws IOException,
AutomationException
sortElements in interface IMdModelIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumMdElement traceDependents(IMdElement pMdElement,
int direction,
int depth)
throws IOException,
AutomationException
traceDependents in interface IMdModelpMdElement - A reference to a com.esri.arcgis.geoprocessing.IMdElement (in)direction - A com.esri.arcgis.geoprocessing.esriMdDirection constant (in)depth - The depth (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumMdElement findDependents(IMdElement pMdElement,
int direction,
int connectionType)
throws IOException,
AutomationException
findDependents in interface IMdModelpMdElement - A reference to a com.esri.arcgis.geoprocessing.IMdElement (in)direction - A com.esri.arcgis.geoprocessing.esriMdDirection constant (in)connectionType - A com.esri.arcgis.geoprocessing.esriMdConnectionType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void mergeElements(IEnumMdElement pElements)
throws IOException,
AutomationException
mergeElements in interface IMdModelpElements - A reference to a com.esri.arcgis.geoprocessing.IEnumMdElement (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean verifyUniqueElementName(String name)
throws IOException,
AutomationException
verifyUniqueElementName in interface IMdModelname - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean canAddElement(IMdElement pElement)
throws IOException,
AutomationException
canAddElement in interface IMdModelpElement - A reference to a com.esri.arcgis.geoprocessing.IMdElement (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGPEnvironmentManager getEnvironmentManager()
throws IOException,
AutomationException
getEnvironmentManager in interface IMdModelIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setEnvironmentManagerByRef(IGPEnvironmentManager ppEnvMgr)
throws IOException,
AutomationException
setEnvironmentManagerByRef in interface IMdModelppEnvMgr - A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isValid()
throws IOException,
AutomationException
isValid in interface IMdModelIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isLicensed()
throws IOException,
AutomationException
isLicensed in interface IMdModelIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void disconnectElements(IMdElement pFromElement,
IMdElement pToElement,
int connectionType)
throws IOException,
AutomationException
disconnectElements in interface IMdModelpFromElement - A reference to a com.esri.arcgis.geoprocessing.IMdElement (in)pToElement - A reference to a com.esri.arcgis.geoprocessing.IMdElement (in)connectionType - A com.esri.arcgis.geoprocessing.esriMdConnectionType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String createUniqueElementName(String name)
throws IOException,
AutomationException
createUniqueElementName in interface IMdModelname - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void isDirty()
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty in interface IPersistStreamIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void load(IStream pstm)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void save(IStream pstm,
int fClearDirty)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)fClearDirty - The fClearDirty (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax in interface IPersistStreampcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getClassID(GUID[] pClassID)
throws IOException,
AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID in interface IPersistpClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void serialize(IXMLSerializeData data)
throws IOException,
AutomationException
serialize in interface IXMLSerializedata - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deserialize(IXMLSerializeData data)
throws IOException,
AutomationException
deserialize in interface IXMLSerializedata - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IClone esri_clone()
throws IOException,
AutomationException
esri_clone in interface ICloneIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void assign(IClone src)
throws IOException,
AutomationException
assign in interface IClonesrc - A reference to a com.esri.arcgis.system.IClone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isEqual(IClone other)
throws IOException,
AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual in interface ICloneother - A reference to a com.esri.arcgis.system.IClone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isIdentical(IClone other)
throws IOException,
AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical in interface ICloneother - A reference to a com.esri.arcgis.system.IClone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
throws IOException,
AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
enumConnectionPoints in interface IConnectionPointContainerppEnum - A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
throws IOException,
AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
findConnectionPoint in interface IConnectionPointContainerriid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)ppCP - A reference to a com.esri.arcgis.display.IConnectionPoint (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getIterationType()
throws IOException,
AutomationException
getIterationType in interface IMdModelIterationgetIterationType in interface IMdModelIteration2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setIterationType(int type)
throws IOException,
AutomationException
setIterationType in interface IMdModelIterationsetIterationType in interface IMdModelIteration2type - A com.esri.arcgis.geoprocessing.esriMdIterationType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getIterationCount()
throws IOException,
AutomationException
getIterationCount in interface IMdModelIterationgetIterationCount in interface IMdModelIteration2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setIterationCount(int count)
throws IOException,
AutomationException
setIterationCount in interface IMdModelIterationsetIterationCount in interface IMdModelIteration2count - The count (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMdVariable getIterationVariable()
throws IOException,
AutomationException
getIterationVariable in interface IMdModelIterationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setIterationVariableByRef(IMdVariable ppVariable)
throws IOException,
AutomationException
setIterationVariableByRef in interface IMdModelIterationppVariable - A reference to a com.esri.arcgis.geoprocessing.IMdVariable (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getCurrentIteration()
throws IOException,
AutomationException
getCurrentIteration in interface IMdModelIterationgetCurrentIteration in interface IMdModelIteration2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMdElement getIterationElement()
throws IOException,
AutomationException
getIterationElement in interface IMdModelIteration2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setIterationElementByRef(IMdElement ppElement)
throws IOException,
AutomationException
setIterationElementByRef in interface IMdModelIteration2ppElement - A reference to a com.esri.arcgis.geoprocessing.IMdElement (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||