Class OPCBrowseServerAddressSpace
IOPCBrowseServerAddressSpace- Author:
- Jens Reimann jens.reimann@th4-systems.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbrowse(OPCBROWSETYPE browseType, String filterCriteria, int accessRights, int dataType) browseAccessPaths(String itemID) Return the possible access paths for an itemvoidchangePosition(String position, OPCBROWSEDIRECTION direction) Direct the browser to another positionGet the complete item id from an item at the local position.Get the information how the namespace is organizedMethods inherited from class org.openscada.opc.dcom.common.impl.BaseCOMObject
getCOMObject
-
Constructor Details
-
OPCBrowseServerAddressSpace
public OPCBrowseServerAddressSpace(org.jinterop.dcom.core.IJIComObject opcServer) throws IllegalArgumentException, UnknownHostException, org.jinterop.dcom.common.JIException - Throws:
IllegalArgumentExceptionUnknownHostExceptionorg.jinterop.dcom.common.JIException
-
-
Method Details
-
queryOrganization
Get the information how the namespace is organized- Returns:
- the organization of the namespace
- Throws:
org.jinterop.dcom.common.JIException
-
changePosition
public void changePosition(String position, OPCBROWSEDIRECTION direction) throws org.jinterop.dcom.common.JIException Direct the browser to another positionDepending on the direction the new position will be set based on the provided position information. If the direction is
OPCBROWSEDIRECTION.OPC_BROWSE_TOthen the position is the item to go to. If the direction isOPCBROWSEDIRECTION.OPC_BROWSE_DOWNthe browser will descent into the tree down (not to) the branch item in position. PassingOPCBROWSEDIRECTION.OPC_BROWSE_UPwon't need a position (passnull) and will ascent in the tree one level.Passing
OPCBROWSEDIRECTION.OPC_BROWSE_TOandnullas position will go to the first root entry of the namespace.- Parameters:
position- The item position reference for the directiondirection- The direction to go based on the position- Throws:
org.jinterop.dcom.common.JIException
-
browse
public EnumString browse(OPCBROWSETYPE browseType, String filterCriteria, int accessRights, int dataType) throws org.jinterop.dcom.common.JIException, IllegalArgumentException, UnknownHostException - Throws:
org.jinterop.dcom.common.JIExceptionIllegalArgumentExceptionUnknownHostException
-
browseAccessPaths
public EnumString browseAccessPaths(String itemID) throws org.jinterop.dcom.common.JIException, IllegalArgumentException, UnknownHostException Return the possible access paths for an item- Parameters:
itemID- the item to query- Returns:
- A string enumerator for the possible access paths
- Throws:
org.jinterop.dcom.common.JIExceptionIllegalArgumentExceptionUnknownHostException
-
getItemID
Get the complete item id from an item at the local position.Browsing a hierarchical namespace the browse method will return items based on the local level in the namespace. So actually only the last part of the item ID hierarchy is returned. In order to convert this to the full item ID one can use this method. It will only work if the browser is still at the position in question.
- Parameters:
item- the local item- Returns:
- the complete item ID
- Throws:
org.jinterop.dcom.common.JIException
-