public class UaMethodImpl extends UaNodeImpl implements UaMethod
UaMethod.
It keeps all attributes in memory. Additionally, it manages the
UaNode.ParametersaddressSpace, logger, references, supportedAttributesMapINPUT_ARGUMENTS, OUTPUT_ARGUMENTS| Modifier | Constructor and Description |
|---|---|
|
UaMethodImpl(AddressSpace addressSpace,
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName) |
|
UaMethodImpl(AddressSpace addressSpace,
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
AttributeWriteMask writeMask,
AttributeWriteMask userWriteMask,
UaClientReference[] references,
UaProperty[] properties,
Boolean executable,
Boolean userExecutable) |
|
UaMethodImpl(AddressSpace addressSpace,
NodeId nodeId,
String name,
Locale locale) |
protected |
UaMethodImpl(UaNode.Parameters parameters) |
| Modifier and Type | Method and Description |
|---|---|
NodeAttributes |
getAttributes()
Returns the current attribute values of the node in a NodeAttributes structure.
|
protected NodeAttributes |
getAttributes(MethodAttributes attributes) |
protected void |
getAttributesMap(Map<UnsignedInteger,Object> map) |
Boolean |
getExecutable()
The Executable Attribute indicates if the Method is currently executable ('False' means not
executable, 'True' means executable).
|
Argument[] |
getInputArguments()
The InputArguments Property is used to specify the arguments that shall be used by a client
when calling the Method.
|
NodeClass |
getNodeClass()
The NodeClass Attribute identifies the NodeClass of a Node.
|
Argument[] |
getOutputArguments()
The OutputArguments Property specifies the result returned from the Method call.
|
Boolean |
getUserExecutable()
The UserExecutable Attribute indicates if the Method is currently executable taking user access
rights into account ('False' means not executable, 'True' means executable).
|
protected void |
initSupportedAttributes(List<UnsignedInteger> l) |
protected void |
readAttributeValue(UnsignedInteger attributeId,
DataValue dataValue)
Read the value of an attribute.
|
void |
setAttributes(MethodAttributes methodAttributes) |
void |
setExecutable(Boolean executable) |
void |
setUserExecutable(Boolean userExecutable) |
String |
toString() |
protected void |
writeAttributeValue(UnsignedInteger attributeId,
Object value,
StatusCode statusCode,
DateTime sourceTime,
UnsignedShort sourcePicoseconds) |
addComponent, addProperties, addProperty, addReference, addReference, addReference, addReference, afterAddReference, afterDeleteReference, assertTypeSupport, assertTypeSupport, beforeAddReference, deleteReference, deleteReference, deleteReference, deleteReference, deleteReferences, doAddProperty, equals, findPlaceholders, getAddressSpace, getAttributes, getAttributesMap, getBrowseName, getComponent, getComponents, getDescription, getDescription, getDisplayName, getDisplayName, getMethod, getNodeId, getNodeVersion, getNodeVersionNode, getProperties, getProperty, getPropertyValue, getReference, getReferenceList, getReferences, getSupportedAttributes, getUaNodeId, getUserWriteMask, getWriteMask, hashCode, hasProperty, hasTypeDefinition, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, referenceTypeInherits, removeComponent, removeProperty, setAttribute, setAttributes, setBrowseName, setDescription, setDisplayName, setNodeVersion, setPropertyValue, setReferences, setUserWriteMask, setWriteMask, supportsAttribute, writeAttributegetForwardReferences, getInverseReferences, getReferences, getReferences, getReferencesAsList, getUserData, referenceTypeInherits, setUserDataclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddComponent, addOrganizes, addProperty, addReference, addReference, addReference, addReference, addReference, addReference, deleteReference, deleteReference, deleteReference, deleteReference, getAddressSpace, getAttributesMap, getBrowseName, getBrowsePaths, getComponent, getComponents, getDescription, getDisplayName, getForwardReferences, getInverseReferences, getMethod, getNodeId, getNodeVersionNode, getOrganizedNode, getOrganizedNodes, getProperties, getProperty, getReference, getReferences, getReferences, getSupportedAttributes, getUaBrowsePaths, getUaNodeId, getUserData, getUserWriteMask, getWriteMask, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, removeComponent, removeProperty, setAttribute, setAttributes, setBrowseName, setDescription, setDisplayName, setReferences, setUserData, setUserWriteMask, setWriteMask, supportsAttribute, writeAttributepublic UaMethodImpl(AddressSpace addressSpace, NodeId nodeId, QualifiedName browseName, LocalizedText displayName)
public UaMethodImpl(AddressSpace addressSpace, NodeId nodeId, QualifiedName browseName, LocalizedText displayName, LocalizedText description, AttributeWriteMask writeMask, AttributeWriteMask userWriteMask, UaClientReference[] references, UaProperty[] properties, Boolean executable, Boolean userExecutable)
public UaMethodImpl(AddressSpace addressSpace, NodeId nodeId, String name, Locale locale)
nodeId - name - locale - protected UaMethodImpl(UaNode.Parameters parameters)
public NodeAttributes getAttributes()
UaNodegetAttributes in interface UaNodepublic Boolean getExecutable()
UaMethodgetExecutable in interface UaMethodpublic Argument[] getInputArguments() throws MethodArgumentException
UaMethodgetInputArguments in interface UaMethodMethodArgumentException - if the property does not contain valid argument valuespublic final NodeClass getNodeClass()
UaNodegetNodeClass in interface UaNodegetNodeClass in class UaNodeImplpublic Argument[] getOutputArguments() throws MethodArgumentException
UaMethodgetOutputArguments in interface UaMethodMethodArgumentException - if the property does not contain valid argument valuespublic Boolean getUserExecutable()
UaMethodgetUserExecutable in interface UaMethodpublic void setAttributes(MethodAttributes methodAttributes)
public void setExecutable(Boolean executable)
setExecutable in interface UaMethodexecutable - value to set for executableUaMethod.getExecutable()public void setUserExecutable(Boolean userExecutable)
setUserExecutable in interface UaMethoduserExecutable - value to set for user executableUaMethod.getUserExecutable()public String toString()
toString in class UaNodeImplprotected NodeAttributes getAttributes(MethodAttributes attributes)
protected void getAttributesMap(Map<UnsignedInteger,Object> map)
getAttributesMap in class UaNodeImplprotected void initSupportedAttributes(List<UnsignedInteger> l)
initSupportedAttributes in class UaNodeImplprotected void readAttributeValue(UnsignedInteger attributeId, DataValue dataValue) throws StatusException
UaNodeImplreadAttributeValue in class UaNodeImplattributeId - the ID of the attribute to read.dataValue - the DataValue structure in which the value is set.StatusException - on failureprotected void writeAttributeValue(UnsignedInteger attributeId, Object value, StatusCode statusCode, DateTime sourceTime, UnsignedShort sourcePicoseconds) throws StatusException
writeAttributeValue in class UaNodeImplStatusExceptionCopyright © 2026. All rights reserved.