|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 problemspublic 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 problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public 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 IMdModel
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String name) throws IOException, AutomationException
setName
in interface IMdModel
name
- 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 IMdModel
element
- 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 IMdModel
elements
- 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 IMdModel
name
- 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 IMdModel
identifier
- 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 IMdModel
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumMdVariable getVariables() throws IOException, AutomationException
getVariables
in interface IMdModel
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumMdProcess getProcesses() throws IOException, AutomationException
getProcesses
in interface IMdModel
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deleteElement(IMdElement element) throws IOException, AutomationException
deleteElement
in interface IMdModel
element
- 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 IMdModel
IOException
- 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 IMdModel
reset
- 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 IMdModel
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 void executeProcess(IMdProcess pMdProcess, ITrackCancel trackCancel, boolean reset, IGPEnvironmentManager pEnvMgr, IGPMessages messages, boolean stopOnFirstFailure) throws IOException, AutomationException
executeProcess
in interface IMdModel
pMdProcess
- 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 IMdModel
IOException
- 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 IMdModel
pMdElement
- 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 IMdModel
pMdElement
- 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 IMdModel
pElements
- 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 IMdModel
name
- 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 IMdModel
pElement
- 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 IMdModel
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setEnvironmentManagerByRef(IGPEnvironmentManager ppEnvMgr) throws IOException, AutomationException
setEnvironmentManagerByRef
in interface IMdModel
ppEnvMgr
- 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 IMdModel
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isLicensed() throws IOException, AutomationException
isLicensed
in interface IMdModel
IOException
- 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 IMdModel
pFromElement
- 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 IMdModel
name
- 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 IPersistStream
IOException
- 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 IPersistStream
pstm
- 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 IPersistStream
pstm
- 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 IPersistStream
pcbSize
- 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 IPersist
pClassID
- 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 IXMLSerialize
data
- 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 IXMLSerialize
data
- 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 IClone
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws IOException, AutomationException
assign
in interface IClone
src
- 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 IClone
other
- 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 IClone
other
- 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 IConnectionPointContainer
ppEnum
- 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 IConnectionPointContainer
riid
- 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 IMdModelIteration
getIterationType
in interface IMdModelIteration2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIterationType(int type) throws IOException, AutomationException
setIterationType
in interface IMdModelIteration
setIterationType
in interface IMdModelIteration2
type
- 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 IMdModelIteration
getIterationCount
in interface IMdModelIteration2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIterationCount(int count) throws IOException, AutomationException
setIterationCount
in interface IMdModelIteration
setIterationCount
in interface IMdModelIteration2
count
- 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 IMdModelIteration
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIterationVariableByRef(IMdVariable ppVariable) throws IOException, AutomationException
setIterationVariableByRef
in interface IMdModelIteration
ppVariable
- 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 IMdModelIteration
getCurrentIteration
in interface IMdModelIteration2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMdElement getIterationElement() throws IOException, AutomationException
getIterationElement
in interface IMdModelIteration2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIterationElementByRef(IMdElement ppElement) throws IOException, AutomationException
setIterationElementByRef
in interface IMdModelIteration2
ppElement
- 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 Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |