Impact Acquire SDK Java
|
A base class to implement access to internal driver components. More...
Public Member Functions | |
long | changedCounter () |
Returns the current changed counter for the component referenced by this object. | |
long | changedCounterAttr () |
Returns the current attribute changed counter for the component referenced by this object. | |
Component () | |
Constructs a new unbound access object. | |
Component (Component src) | |
Constructs a new mvIMPACT.acquire.Component from an existing one. | |
Component (int hObj) | |
Constructs a new access object to a driver object. | |
synchronized void | delete () |
String | displayName () |
Returns the display name of the component referenced by this object. | |
String | docString () |
Returns a string containing general information about the component referenced by this object. | |
Component | firstChild () |
Moves to the first child of this component(moves down one level). | |
Component | firstSibling () |
Moves to the first sibling(the first feature in the current list of features). | |
int | flags () |
Returns the flags associated with this component. | |
String | flagsAsString () |
Returns the flags associated with this component as a string. | |
String | flagsAsString (String separator) |
Returns the flags associated with this component as a string. | |
int | hObj () |
Returns a unique identifier for the component referenced by this object. | |
boolean | isDefault () |
Checks if this component is currently referencing the default for this component. | |
boolean | isList () |
Checks if this component is of type mvIMPACT.acquire.ComponentList. | |
boolean | isMeth () |
Checks if this component is of type mvIMPACT.acquire.Method. | |
boolean | isProp () |
Checks if this component is of type mvIMPACT.acquire.Property or a derived type. | |
boolean | isValid () |
Checks if the internal component referenced by this object is still valid. | |
boolean | isVisible () |
Checks if the component is currently shadowed due to a settings made elsewhere or not. | |
boolean | isWriteable () |
Checks if the caller has write/modify access to the component. | |
Component | lastSibling () |
Moves to the last sibling(the last feature in the current list of features). | |
String | name () |
Returns the name of the component referenced by this object. | |
Component | nextSibling () |
Moves to the next sibling(the next feature in the current list of features). | |
Component | parent () |
Moves to the parent of this component(moves up one level). | |
int | representation () |
Returns the recommended representation for this component. | |
String | representationAsString () |
Returns the recommended representation of the referenced component as a string. | |
Component | restoreDefault () |
Restores the default for the referenced component. | |
Component | selectedFeature (long index) |
Retrieves a component that is selected by the current one. | |
long | selectedFeatureCount () |
Returns the number of features selected by the current one. | |
long | selectedFeatures (ComponentVector v) |
Retrieves the list of components that are selected by the current one. | |
Component | selectingFeature (long index) |
Retrieves a component that is selecting the current one. | |
long | selectingFeatureCount () |
Returns the number of features selecting the current one. | |
long | selectingFeatures (ComponentVector v) |
Retrieves the list of components that are selecting the current one. | |
int | type () |
Returns the type of the referenced component. | |
String | typeAsString () |
Returns the type of the referenced component as a string. | |
int | visibility () |
Returns the recommended visibility for this component. | |
String | visibilityAsString () |
Returns the recommended visibility of the referenced component as a string. | |
Static Public Member Functions | |
static String | representationAsString (int representation) |
Returns the recommended representation converted to a string. | |
static int | type (int hObj) |
Returns the type of the component referenced by hObj. | |
static String | visibilityAsString (int visibility) |
Returns the recommended visibility converted to a string. | |
Protected Member Functions | |
Component (long cPtr, boolean cMemoryOwn) | |
void | finalize () |
Static Protected Member Functions | |
static long | swigRelease (Component obj) |
static long | swigRelease (ComponentAccess obj) |
Protected Attributes | |
transient boolean | swigCMemOwn |
A base class to implement access to internal driver components.
Objects of this class can be constructed directly even if nothing is known about the type of driver object we are referring to. This class acts as a base class to provide access to internal properties, methods and component lists offered by the driver.
This object can be used to navigate through component lists of unknown content.
Consider the following structure:
Where the prefix 'L' means this is a list, 'P' that this is a property. Assuming that we have and iterator referencing list 'C', calling mvIMPACT.acquire.Component.firstChild e.g. would return a new iterator referencing object 'PE', while calling mvIMPACT.acquire.Component.nextSibling would have returned a reference to 'PD' and mvIMPACT.acquire.Component.parent would have returned a reference to object 'LA'.
"EXAMPLE 1":
A new mvIMPACT.acquire.Component is created with the ID of list 'C':
"EXAMPLE 2":
Iterate over a complete list including sub lists. This will result in a list of all lists and properties that reside in the list the iterator currently is moving through to be written to the standard output. The name of the component and every parent component will be printed into the standard output:
|
protected |
Component | ( | int | hObj | ) |
Constructs a new access object to a driver object.
hObj | [in] A valid handle to a component object |
Component | ( | ) |
Constructs a new unbound access object.
Constructs a new mvIMPACT.acquire.Component from an existing one.
src | [in] A constant reference to the mvIMPACT.acquire.Component object, this object shall be created from |
|
inherited |
Returns the current changed counter for the component referenced by this object.
This changed counter is incremented internally each time the component is modified. To check if this component has been modified since the last time, this check has been performed, keep track of the last return value of this function and compare it with the new value. This can be helpful e.g. to keep a GUI up to date. The value returned by this function will always be larger than or equal to the value returned by mvIMPACT.acquire.ComponentAccess.changedCounterAttr (except in case of a wrap around) when called at the same time for the same object as it's always incremented when the component has been modified in any way while the latter one will only be incremented if the attributes (e.g. the flags) but NOT if e.g. the value(s) of a property has been modified.
|
inherited |
Returns the current attribute changed counter for the component referenced by this object.
This changed counter is incremented internally each time the components attributes have been modified. To check if this components attributes have been modified since the last time, this check has been performed, keep track of the last return value of this function and compare it with the new value. This can be helpful e.g. to keep a GUI up to date.
synchronized void delete | ( | ) |
Reimplemented from ComponentAccess.
Reimplemented in ComponentList, Method, Property, PropertyF, PropertyI, PropertyI64, PropertyPtr, and PropertyS.
|
inherited |
Returns the display name of the component referenced by this object.
String docString | ( | ) |
Returns a string containing general information about the component referenced by this object.
|
protected |
Reimplemented from ComponentAccess.
Reimplemented in ComponentList, Method, Property, PropertyF, PropertyI, PropertyI64, PropertyPtr, and PropertyS.
Component firstChild | ( | ) |
Moves to the first child of this component(moves down one level).
Calling this function will only succeed, if the current mvIMPACT.acquire.Component references a list.
Component firstSibling | ( | ) |
Moves to the first sibling(the first feature in the current list of features).
int flags | ( | ) |
Returns the flags associated with this component.
String flagsAsString | ( | ) |
Returns the flags associated with this component as a string.
String flagsAsString | ( | String | separator | ) |
Returns the flags associated with this component as a string.
separator | [in] A user definable string to separate the individual flags. The default value is ' | ' resulting in the string to look e.g. like this: 'cfWriteAccess | cfReadAccess' |
|
inherited |
Returns a unique identifier for the component referenced by this object.
boolean isDefault | ( | ) |
Checks if this component is currently referencing the default for this component.
This function will return true only for derived components that have not been modified.
boolean isList | ( | ) |
Checks if this component is of type mvIMPACT.acquire.ComponentList.
boolean isMeth | ( | ) |
Checks if this component is of type mvIMPACT.acquire.Method.
boolean isProp | ( | ) |
Checks if this component is of type mvIMPACT.acquire.Property or a derived type.
boolean isValid | ( | ) |
Checks if the internal component referenced by this object is still valid.
This function can be used to verify whether a referenced component is still valid or not. When e.g. referencing a driver property after mvIMPACT.acquire.Device.close has been called this function would return false. Calling any other function that tries to access the referenced component in that case would raise an exception.
boolean isVisible | ( | ) |
Checks if the component is currently shadowed due to a settings made elsewhere or not.
Settings applied to certain components might affect the behaviour of others. For example an activated automatic gain control might shadow the value written to the gain property by the user as the gain is calculated internally. In order to check if modifying the actual component will affect the behaviour of the system this function may be used. When it returns true, the mvIMPACT.acquire.Component will have an impact on the system, if false is returned, the feature might be modified, but this will currently NOT influence the acquisition process or the overall behaviour of the device or driver.
This is what is called visibility. The user still might modify or read the current mvIMPACT.acquire.Component when it's not visible however the actual data will be used only if the Component is visible (mvIMPACT.acquire.TComponentFlag.cfInvisible must NOT be set).
The visibility of a mvIMPACT.acquire.Component object will change only if other mvIMPACT.acquire.Component objects are modified and NEVER when a program runs but does not change any mvIMPACT.acquire.Component.
boolean isWriteable | ( | ) |
Checks if the caller has write/modify access to the component.
Component lastSibling | ( | ) |
Moves to the last sibling(the last feature in the current list of features).
|
inherited |
Returns the name of the component referenced by this object.
Component nextSibling | ( | ) |
Moves to the next sibling(the next feature in the current list of features).
Component parent | ( | ) |
Moves to the parent of this component(moves up one level).
int representation | ( | ) |
Returns the recommended representation for this component.
The representation can be used e.g. to develop a GUI that creates convenient controls for certain features.
Valid values for this property are defined by the enumeration mvIMPACT.acquire.TComponentRepresentation.
String representationAsString | ( | ) |
Returns the recommended representation of the referenced component as a string.
|
static |
Returns the recommended representation converted to a string.
representation | [in] The representation to query the string representation for |
Component restoreDefault | ( | ) |
Restores the default for the referenced component.
Calling this function will restore the default value for the component referenced by this object.
If this function is called for an object of type mvIMPACT.acquire.ComponentList every component in that list is restored to the default value.
Component selectedFeature | ( | long | index | ) |
Retrieves a component that is selected by the current one.
This function retrieves a component that is selected by the current one. This information is mainly useful for GUI applications that want to arrange features in a way that dependencies between features can easily been spotted.
When a component 'selects' other components, this indicates that selected components may change whenever the selecting component changes. An example for a selector might be a property defining the index within a LUT while the value of a particular LUT entry could be a selected feature. Assuming 2 properties LUTIndex and LUTValue then changing LUTIndex will invalidate and possibly change LUTValue.
To find out how many mvIMPACT.acquire.Component objects are selected by the current one call mvIMPACT.acquire.Component.selectedFeatureCount. This value minus 1 will also be the max. value for index.
index | [in] The index for the component to query. |
long selectedFeatureCount | ( | ) |
Returns the number of features selected by the current one.
long selectedFeatures | ( | ComponentVector | v | ) |
Retrieves the list of components that are selected by the current one.
This function retrieves the list of components that are selected by the current one. This information is mainly useful for GUI applications that want to arrange features in a way that dependencies between features can easily been spotted.
When a component 'selects' other components, this indicates that selected components may change whenever the selecting component changes. An example for a selector might be a property defining the index within a LUT while the value of a particular LUT entry could be a selected feature. Assuming 2 properties LUTIndex and LUTValue then changing LUTIndex will invalidate and possibly change LUTValue.
v | [out] An array that will retrieve the list of components that are selected by the current one. |
Component selectingFeature | ( | long | index | ) |
Retrieves a component that is selecting the current one.
This function retrieves a component that is selecting the current one. This information is mainly useful for GUI applications that want to arrange features in a way that dependencies between features can easily been spotted.
When a component 'selects' other components, this indicates that selected components may change whenever the selecting component changes. An example for a selector might be a property defining the index within a LUT while the value of a particular LUT entry could be a selected feature. Assuming 2 properties LUTIndex and LUTValue then changing LUTIndex will invalidate and possibly change LUTValue.
To find out how many mvIMPACT.acquire.Component objects are selecting the current one call mvIMPACT.acquire.Component.selectingFeatureCount. This value minus 1 will also be the max. value for index.
index | [in] The index for the component to query. |
long selectingFeatureCount | ( | ) |
Returns the number of features selecting the current one.
long selectingFeatures | ( | ComponentVector | v | ) |
Retrieves the list of components that are selecting the current one.
This function retrieves the list of components that are selecting the current one. This information is mainly useful for GUI applications that want to arrange features in a way that dependencies between features can easily been spotted.
When a component 'selects' other components, this indicates that selected components may change whenever the selecting component changes. An example for a selector might be a property defining the index within a LUT while the value of a particular LUT entry could be a selected feature. Assuming 2 properties LUTIndex and LUTValue then changing LUTIndex will invalidate and possibly change LUTValue.
v | [out] An array that will retrieve the list of components that are selecting the current one. |
|
staticprotected |
|
staticprotectedinherited |
int type | ( | ) |
Returns the type of the referenced component.
|
static |
Returns the type of the component referenced by hObj.
hObj | [in] The component the type shall be retrieved for |
String typeAsString | ( | ) |
Returns the type of the referenced component as a string.
int visibility | ( | ) |
Returns the recommended visibility for this component.
The visibility can be used e.g. to develop a GUI that displays a crucial subset of features only.
Valid values for this property are defined by the enumeration mvIMPACT.acquire.TComponentVisibility.
String visibilityAsString | ( | ) |
Returns the recommended visibility of the referenced component as a string.
|
static |
Returns the recommended visibility converted to a string.
visibility | [in] The visibility to query the string representation for |
|
protectedinherited |