DOFObjectProviderset Method OpenDOF Object Access Library
Process a set request.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
void set(
	DOFOperationProvide operation,
	DOFRequestSet request,
	DOFInterfaceProperty property,
	DOFValue value
)

Parameters

operation
Type: org.opendof.core.oalDOFOperationProvide
Information about the corresponding provide operation. This will never be null.
request
Type: org.opendof.core.oalDOFRequestSet
Information about the request. This will never be null. Call one of the Get.respond(DOFValue) methods to indicate 'Set' complete or to throw exceptions.

DOFProviderException should be thrown for any error condition that is defined as an exception in the DOFInterface.

DOFErrorException should be thrown for any error condition that falls outside of the exceptions defined in the DOFInterface.

property
Type: org.opendof.core.oalDOFInterfaceProperty
The property on which the 'Set' was requested. This will never be null.
value
Type: org.opendof.core.oalDOFValue
The value to assign to the property. This will never be null.
Remarks

Process a set request. This method is called when a 'Set' Property is requested. It is not necessary to call DOFObject.changed(Property) to update subscriptions. The library does this automatically.

NOTE: You MUST call one of the Set.respond() methods when you have finished processing the request. The request is kept in a "pending" status until one of these calls is made. This means that you may spawn a thread which could finish processing this request after returning from this method.

See Also

Reference

Set.respond()
Set.respond(DOFProviderException)
Set.respond(DOFErrorException)