Impact Acquire SDK Java
|
A class to locate components within the driver. More...
Public Member Functions | |
boolean | bindComponent (Component access, String name) |
Binds an access object to an internal driver object. | |
boolean | bindComponent (Component access, String name, int searchMode) |
Binds an access object to an internal driver object. | |
boolean | bindComponent (Component access, String name, int searchMode, int maxSearchDepth) |
Binds an access object to an internal driver object. | |
int | bindSearchBase (int baselist) |
Assign a new search base to the locator. | |
int | bindSearchBase (int baselist, String pathToSearchBase) |
Assign a new search base to the locator. | |
int | bindSearchBaseList (Device pDev, int deviceListType) |
Assign a new search base to the locator. | |
int | bindSearchBaseList (Device pDev, int deviceListType, String sublistName) |
Assign a new search base to the locator. | |
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. | |
synchronized void | delete () |
DeviceComponentLocator () | |
Constructs a new unbound locator. | |
DeviceComponentLocator (Device pDev, int deviceListType) | |
Constructs a new locator and bind the search base to the specified list type of the device. | |
DeviceComponentLocator (Device pDev, int deviceListType, String sublistName) | |
Constructs a new locator and bind the search base to the specified list type of the device. | |
DeviceComponentLocator (int baselist) | |
Constructs a new bound to the specified base list locator. | |
DeviceComponentLocator (int baselist, String pathToSearchBase) | |
Constructs a new locator and searches the search base list. | |
String | displayName () |
Returns the display name of the component referenced by this object. | |
int | findComponent (String name) |
Tries to locate a certain component in a hierarchy of components. | |
int | findComponent (String name, int searchMode) |
Tries to locate a certain component in a hierarchy of components. | |
int | findComponent (String name, int searchMode, int maxSearchDepth) |
Tries to locate a certain component in a hierarchy of components. | |
int | hObj () |
Returns a unique identifier for the component referenced by this object. | |
String | name () |
Returns the name of the component referenced by this object. | |
int | searchbase_id () |
Returns the unique identifier of the base list from where to start searching for a component. | |
Protected Member Functions | |
DeviceComponentLocator (long cPtr, boolean cMemoryOwn) | |
void | finalize () |
Static Protected Member Functions | |
static long | swigRelease (ComponentAccess obj) |
static long | swigRelease (ComponentLocatorBase obj) |
static long | swigRelease (DeviceComponentLocator obj) |
Protected Attributes | |
transient boolean | swigCMemOwn |
A class to locate components within the driver.
Every driver will offer a set of properties, methods and component lists. mvIMPACT.acquire.Property objects contain data such as the current gain in dB, the state of a digital input, etc.. mvIMPACT.acquire.Method objects can be executed like a normal function and mvIMPACT.acquire.ComponentList objects are used to group certain objects together to form a logical unit.
When it's necessary to locate one or more of these objects without knowing exactly where to look for them this locator class can be used to look for the component.
In general the properties interesting for the user can be found in one of the classes offered by this interface, but when a special property is needed or a new property that hasn't been embedded into the C++ interface, this class offers a way to get hold of its handle.
|
protected |
Constructs a new unbound locator.
DeviceComponentLocator | ( | int | baselist | ) |
Constructs a new bound to the specified base list locator.
baselist | [in] A unique identifier to the base list from where to start to search for the search base. |
DeviceComponentLocator | ( | int | baselist, |
String | pathToSearchBase ) |
Constructs a new locator and searches the search base list.
baselist | [in] A unique identifier to the base list from where to start to search for the search base. |
pathToSearchBase | [in] The name or path ('/' separated) to the search base. |
DeviceComponentLocator | ( | Device | pDev, |
int | deviceListType, | ||
String | sublistName ) |
Constructs a new locator and bind the search base to the specified list type of the device.
pDev | [in] A pointer to a mvIMPACT.acquire.Device object obtained from a mvIMPACT.acquire.DeviceManager object. |
deviceListType | [in] The type list to locate |
sublistName | [in] A string that can contain the name of the list if there is more than one candidate (e.g. when looking for settings) |
DeviceComponentLocator | ( | Device | pDev, |
int | deviceListType ) |
Constructs a new locator and bind the search base to the specified list type of the device.
pDev | [in] A pointer to a mvIMPACT.acquire.Device object obtained from a mvIMPACT.acquire.DeviceManager object. |
deviceListType | [in] The type list to locate is more than one candidate (e.g. when looking for settings) |
|
inherited |
Binds an access object to an internal driver object.
access | [in,out] The access object to bind to the driver object. |
name | [in] The path and/or name of the object to be located. are:
|
|
inherited |
Binds an access object to an internal driver object.
access | [in,out] The access object to bind to the driver object. |
name | [in] The path and/or name of the object to be located. |
searchMode | [in] Specifies how and what to search for. Valid flags(these flags can be combined using the '|' operator) for this parameter are:
|
|
inherited |
Binds an access object to an internal driver object.
access | [in,out] The access object to bind to the driver object. |
name | [in] The path and/or name of the object to be located. |
searchMode | [in] Specifies how and what to search for. Valid flags(these flags can be combined using the '|' operator) for this parameter are:
|
maxSearchDepth | [in] The maximum depth (in lists) where to search for the component. By e.g. setting this value to 2, the current list and all its sub lists will be searched for the object, but no sublists of sub lists. -1 will search in ALL sub lists. |
|
inherited |
Assign a new search base to the locator.
This new search base will be searched starting from the base list specified.
baselist | [in] A unique identifier for the base list used to start searching the search base. |
|
inherited |
Assign a new search base to the locator.
This new search base will be searched starting from the base list specified.
baselist | [in] A unique identifier for the base list used to start searching the search base. |
pathToSearchBase | [in] The name or path to the search base. |
int bindSearchBaseList | ( | Device | pDev, |
int | deviceListType ) |
Assign a new search base to the locator.
This new search base will be search starting from the base list specified.
pDev | [in] A pointer to a mvIMPACT.acquire.Device object obtained from a mvIMPACT.acquire.DeviceManager object. |
deviceListType | [in] The type list to locate |
int bindSearchBaseList | ( | Device | pDev, |
int | deviceListType, | ||
String | sublistName ) |
Assign a new search base to the locator.
This new search base will be search starting from the base list specified.
pDev | [in] A pointer to a mvIMPACT.acquire.Device object obtained from a mvIMPACT.acquire.DeviceManager object. |
deviceListType | [in] The type list to locate |
sublistName | [in] The name or path to the search base. |
|
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 ComponentLocatorBase.
|
inherited |
Returns the display name of the component referenced by this object.
|
protected |
Reimplemented from ComponentLocatorBase.
|
inherited |
Tries to locate a certain component in a hierarchy of components.
name | [in] The path and/or name of the object to be located. are:
|
|
inherited |
Tries to locate a certain component in a hierarchy of components.
name | [in] The path and/or name of the object to be located. |
searchMode | [in] Specifies how and what to search for. Valid flags(these flags can be combined using the '|' operator) for this parameter are:
|
|
inherited |
Tries to locate a certain component in a hierarchy of components.
name | [in] The path and/or name of the object to be located. |
searchMode | [in] Specifies how and what to search for. Valid flags(these flags can be combined using the '|' operator) for this parameter are:
|
maxSearchDepth | [in] The maximum depth (in lists) where to search for the component. By e.g. setting this value to 2, the current list and all its sub lists will be searched for the object, but no sublists of sub lists. -1 will search in ALL sub lists. |
|
inherited |
Returns a unique identifier for the component referenced by this object.
|
inherited |
Returns the name of the component referenced by this object.
|
inherited |
Returns the unique identifier of the base list from where to start searching for a component.
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotected |
|
protectedinherited |