|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.trackinganalyst.ActionCollection
public class ActionCollection
The Action Collection object is a container of actions.
This class is a container of tracking action objects. The Action processor object contains exactly one ActionCollection. Since this object is itself a tracking action it forwards requests to evaluate to each action object in its collection.
Constructor Summary | |
---|---|
ActionCollection()
Constructs a ActionCollection using ArcGIS Engine. |
|
ActionCollection(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. ActionCollection theActionCollection = (ActionCollection) obj; |
Method Summary | |
---|---|
boolean |
actionNameExists(String bstrName)
Checks if an action within the collection exists with the specified name. |
void |
add(IAction piAction,
int nIndex)
Adds an action to the collection. |
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
checkLayers(boolean bRebuildGeometry)
Checks for deleted Layers and disables affected actions. |
void |
clearCounts()
Clears all the internal counters for this action. |
Object |
convertToSupportedObject(int docVersion)
Convert the object to another object that is supported. |
boolean |
dependsUponFeatureClass(IFeatureClass piFeatureClass)
Indicates if a contained action depends upon the specified feature class. |
boolean |
disableActionsUsingLayer(ILayer piLayer)
Disables all action using the specified layer for location trigger. |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
void |
evaluate(Object piObject,
Object[] pvarReturnedObjects)
Takes an input object and evaluates the object based on predefined criteria. |
int |
find(IAction piAction)
Finds an action within the collection. |
IAction |
getAction(int nIndex)
Retrieves the action at the specified index. |
int |
getActionCategory()
Indicates the type of action to be applied to data. |
int |
getActionCount()
Total number of actions. |
String |
getAlias()
Allows user to specify or retrieve the alias name for this action. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
int |
getCount()
Number of objects in the collection. |
int |
getEnabledActionCount()
Number of enabled actions. |
int |
getEvaluationCount()
Number of times this action has been evaluated. |
int |
getExclusionCategory()
Action category to be excluded from processing. |
int |
getFilteredCount()
Number of times this action has returned S_ACTIONPROCESSOR_MSG_FILTERED. |
String |
getLabel()
Allows user to specify or retreive tha label name for this action. |
int |
getMaximumDepth()
Maximum number of nested action levels to be processed. |
int |
getModifiedCount()
Number of times this action has returned S_ACTIONPROCESSOR_MSG_MODIFIED. |
String |
getName()
Developer-given name of the object. |
int |
getNextActionNumber()
Gives next sequential number for assigning names to actions. |
int |
getProcessedCount()
Number of times this action has returned S_ACTIONPROCESSOR_MSG_PROCESSED. |
String |
getRulesDescription()
Describes what the action will do. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
getStopProcessingCount()
Number of times this action has returned S_ACTIONPROCESSOR_MSG_STOPPROCESSING. |
String |
getType()
Allows user to obtain a string describing the type of action object. |
double |
getVersion()
Allows user to retrieve the version number for this action. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isContinueProcessing()
Indicates whether or not the processing engine should stop processing further actions in the action list after this action finishes processing. |
void |
isDirty()
isDirty |
boolean |
isEnabled()
Indicates whether or not an action in the action list is enabled for processing. |
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 |
isStopProcessing()
Indicates if the processing engine should stop processing further actions in the action list after this action finishes processing. |
boolean |
isSupportedAtVersion(int docVersion)
Is this object valid at the given document version. |
void |
load(IStream pstm)
load |
void |
move(int nSourceIndex,
int nDestinationIndex)
Moves an action to a user-specified location in the collection. |
void |
readExternal(ObjectInput in)
|
boolean |
reenableActionsUsingLayer(ILayer piLayer)
Reenable all action using the specified layer for location trigger. |
void |
remove(int nIndex)
Removes an action from the collection. |
void |
removeAll()
Removes all actions from the index. |
void |
resetToDefaultState()
Reset the State information to default. |
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setActionCategory(int pVal)
Indicates the type of action to be applied to data. |
void |
setAlias(String pbstrAlias)
Allows user to specify or retrieve the alias name for this action. |
void |
setExclusionCategory(int pVal)
Action category to be excluded from processing. |
void |
setIsEnabled(boolean pbvarIsEnabled)
Indicates whether or not an action in the action list is enabled for processing. |
void |
setLabel(String pbstrLabel)
Allows user to specify or retreive tha label name for this action. |
void |
setMaximumDepth(int pVal)
Maximum number of nested action levels to be processed. |
void |
setNextActionNumber(int pVal)
Gives next sequential number for assigning names to actions. |
void |
setStopProcessing(boolean pbvarStopProcessing)
Indicates if the processing engine should stop processing further actions in the action list after this action finishes processing. |
void |
update()
Notify a tracking action that lookup table values have changed. |
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 ActionCollection() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic ActionCollection(Object obj) throws IOException
ActionCollection theActionCollection = (ActionCollection) obj;
obj
to ActionCollection
.
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 add(IAction piAction, int nIndex) throws IOException, AutomationException
This method allows a user to add an action to the Collection. The action will be added at the specified index. Specifying a large index value, such as 999999 will ensure the action is placed at the end of the list. This method will addref the received action before placing in the collection.
add
in interface IActionCollection
add
in interface IActionCollection2
piAction
- A reference to a com.esri.arcgis.trackinganalyst.IAction (in)nIndex
- The nIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void remove(int nIndex) throws IOException, AutomationException
This method allows a user to remove an action at the specified index. If the index specified is out of range an E_FAIL is returned otherwise a S_OK is returned on success. This method on success releases the action removed.
remove
in interface IActionCollection
remove
in interface IActionCollection2
nIndex
- The nIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void move(int nSourceIndex, int nDestinationIndex) throws IOException, AutomationException
This method allows the user to move an action in the collection. The from and to index allows the user to specify the location in the collection to move the action about. The behavior is to insert the moved action at the specified index moving the existing action at the move to index forward in the list thus adding one to its index.
move
in interface IActionCollection
move
in interface IActionCollection2
nSourceIndex
- The nSourceIndex (in)nDestinationIndex
- The nDestinationIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeAll() throws IOException, AutomationException
This method removes all actions from the index using the remove method.
removeAll
in interface IActionCollection
removeAll
in interface IActionCollection2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IAction getAction(int nIndex) throws IOException, AutomationException
getAction
in interface IActionCollection
getAction
in interface IActionCollection2
nIndex
- The nIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCount() throws IOException, AutomationException
This method returns the number of objects in the collection.
getCount
in interface IActionCollection
getCount
in interface IActionCollection2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int find(IAction piAction) throws IOException, AutomationException
This method finds the specified action in the collection and returns the index of that action.
find
in interface IActionCollection
find
in interface IActionCollection2
piAction
- A reference to a com.esri.arcgis.trackinganalyst.IAction (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getMaximumDepth() throws IOException, AutomationException
getMaximumDepth
in interface IActionCollection
getMaximumDepth
in interface IActionCollection2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMaximumDepth(int pVal) throws IOException, AutomationException
setMaximumDepth
in interface IActionCollection
setMaximumDepth
in interface IActionCollection2
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getNextActionNumber() throws IOException, AutomationException
getNextActionNumber
in interface IActionCollection
getNextActionNumber
in interface IActionCollection2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setNextActionNumber(int pVal) throws IOException, AutomationException
setNextActionNumber
in interface IActionCollection
setNextActionNumber
in interface IActionCollection2
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getExclusionCategory() throws IOException, AutomationException
getExclusionCategory
in interface IActionCollection
getExclusionCategory
in interface IActionCollection2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setExclusionCategory(int pVal) throws IOException, AutomationException
setExclusionCategory
in interface IActionCollection
setExclusionCategory
in interface IActionCollection2
pVal
- A com.esri.arcgis.trackinganalyst.enumActionCategory constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getActionCount() throws IOException, AutomationException
This property retrieves the Total number of actions in the collection.
getActionCount
in interface IActionCollection
getActionCount
in interface IActionCollection2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getEnabledActionCount() throws IOException, AutomationException
getEnabledActionCount
in interface IActionCollection
getEnabledActionCount
in interface IActionCollection2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean dependsUponFeatureClass(IFeatureClass piFeatureClass) throws IOException, AutomationException
dependsUponFeatureClass
in interface IActionCollection
dependsUponFeatureClass
in interface IActionCollection2
piFeatureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean disableActionsUsingLayer(ILayer piLayer) throws IOException, AutomationException
disableActionsUsingLayer
in interface IActionCollection
disableActionsUsingLayer
in interface IActionCollection2
piLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean reenableActionsUsingLayer(ILayer piLayer) throws IOException, AutomationException
reenableActionsUsingLayer
in interface IActionCollection
reenableActionsUsingLayer
in interface IActionCollection2
piLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void checkLayers(boolean bRebuildGeometry) throws IOException, AutomationException
checkLayers
in interface IActionCollection
checkLayers
in interface IActionCollection2
bRebuildGeometry
- The bRebuildGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean actionNameExists(String bstrName) throws IOException, AutomationException
actionNameExists
in interface IActionCollection2
bstrName
- The bstrName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getVersion() throws IOException, AutomationException
This property allows the user to retrieve the version number for this action.
getVersion
in interface IAction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
The name property is a developer-given name of the object. This property cannot be changed and should be unique, such as the company ID or some other naming convention.
getName
in interface IAction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getRulesDescription() throws IOException, AutomationException
This property describes what the action will do. This string should contain details about the configuration. This property is similar to the Microsoft Outlook rules "Rules Description" text.
getRulesDescription
in interface IAction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isContinueProcessing() throws IOException, AutomationException
This property controls whether or not the processing engine should stop processing further actions in the action list after this action processes. The internal object must control the state of this property and must allow or return VARIANT_TRUE if this action did not successfully process the current action. The action processor must call Evaluate with a data object before this property is valid.
If the object successfully processed the data and internally it has been told to stop processing further actions, then the return value should be VARIANT_FALSE signifying to the action processor to stop processing actions.
Note: This property is not a copy of the property put_StopProcessing. The StopProcessing or write version simply enables whether or not this property is processed or returns a VARIANT_FALSE. If the StopProcessing property is false then this property is always TRUE. Otherwise the last Evaluate call determines the state.
isContinueProcessing
in interface IAction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getAlias() throws IOException, AutomationException
This property allows the user to specify or retrieve the alias name for this action.
getAlias
in interface IAction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAlias(String pbstrAlias) throws IOException, AutomationException
This property allows the user to specify or retrieve the alias name for this action.
setAlias
in interface IAction
pbstrAlias
- The pbstrAlias (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getLabel() throws IOException, AutomationException
This property allows the user to specify or retrieve the label name for this action.
getLabel
in interface IAction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLabel(String pbstrLabel) throws IOException, AutomationException
This property allows the user to specify or retrieve the label name for this action.
setLabel
in interface IAction
pbstrLabel
- The pbstrLabel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getType() throws IOException, AutomationException
The type property allows a user to obtain a string describing the type of action object. This is generally a one word description.
getType
in interface IAction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEnabled() throws IOException, AutomationException
isEnabled
in interface IAction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIsEnabled(boolean pbvarIsEnabled) throws IOException, AutomationException
setIsEnabled
in interface IAction
pbvarIsEnabled
- The pbvarIsEnabled (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setStopProcessing(boolean pbvarStopProcessing) throws IOException, AutomationException
This property controls whether or not the processing engine should stop processing further actions in the action list after this action processes. This enables the ContinueProcessing property to return a VARIANT_FALSE if no further processing should take place.
setStopProcessing
in interface IAction
pbvarStopProcessing
- The pbvarStopProcessing (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void evaluate(Object piObject, Object[] pvarReturnedObjects) throws IOException, AutomationException
This method provides the entry point for the action processor to evaluate the data that is undergoing processing. This method takes a variant that is an object that implement either a IDatamessage or a IFeature interface.
evaluate
in interface IAction
piObject
- A reference to another Object (IUnknown) (in)pvarReturnedObjects
- A Variant (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isStopProcessing() throws IOException, AutomationException
This property controls whether or not the processing engine should stop processing further actions in the action list after this action processes. This enables the ContinueProcessing property to return a VARIANT_FALSE if no furtherprocessing should take place.
isStopProcessing
in interface IAction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getEvaluationCount() throws IOException, AutomationException
This property is a count of the number of times this action has been evaluated.
getEvaluationCount
in interface IAction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getStopProcessingCount() throws IOException, AutomationException
This property counts the number of times this action has returned S_ACTIONPROCESSOR_MSG_STOPPROCESSING.
getStopProcessingCount
in interface IAction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getFilteredCount() throws IOException, AutomationException
This property is a count of the number of times this action has returned S_ACTIONPROCESSOR_MSG_FILTERED.
getFilteredCount
in interface IAction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getModifiedCount() throws IOException, AutomationException
This property is a count of the number of times this action has returned S_ACTIONPROCESSOR_MSG_MODIFIED.
getModifiedCount
in interface IAction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getProcessedCount() throws IOException, AutomationException
This property is a count of the number of times this action has returned S_ACTIONPROCESSOR_MSG_PROCESSED.
getProcessedCount
in interface IAction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clearCounts() throws IOException, AutomationException
This property clears all the internal counters for this action.
clearCounts
in interface IAction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getActionCategory() throws IOException, AutomationException
getActionCategory
in interface IAction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setActionCategory(int pVal) throws IOException, AutomationException
setActionCategory
in interface IAction
pVal
- A com.esri.arcgis.trackinganalyst.enumActionCategory constant (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 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 update() throws IOException, AutomationException
update
in interface IActionUpdate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void resetToDefaultState() throws IOException, AutomationException
resetToDefaultState
in interface IActionState
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isSupportedAtVersion(int docVersion) throws IOException, AutomationException
Use IsSupportedAtVersion to identify if a particular object should be saved to the ObjectStream. This result is based on the esriArcGISVersion enumeration. In some instances, if the object is not supported at a particular ArcGIS version, the object may support conversion to another similar object; use IDocumentVersionSupportGEN::ConvertToSupportedObject to accomplish this.
isSupportedAtVersion
in interface IDocumentVersionSupportGEN
docVersion
- A com.esri.arcgis.system.esriArcGISVersion constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object convertToSupportedObject(int docVersion) throws IOException, AutomationException
This method should be used when IDocumentVersionSupportGEN::IsSupportedAtVersion returns FALSE. Calling ConvertToSupportedObject will return an IUnknown pointer to a relevant object supported at the particular ArcGIS version. Not all objects will return a supported object; in these cases a null pointer will be returned.
convertToSupportedObject
in interface IDocumentVersionSupportGEN
docVersion
- A com.esri.arcgis.system.esriArcGISVersion constant (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 |