org.opendof.core.oalDOFObject
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
public sealed class DOFObject
The DOFObject type exposes the following members.
Name | Description | |
---|---|---|
![]() | advertise(DOFInterfaceID) | Used by a Provider to advertise that the specified interface can be provided.
|
![]() | advertise(DOFInterfaceID, DOFOperationControl) | Used by a Provider to advertise that the specified interface can be provided, specifying a
Control
for this operation. This call is beneficial at startup to notify potentially interested nodes of this provider's
capability. The advertise solicits matching
DOFInterestLevel.WATCH
,
DOFInterestLevel.ACTIVATE
, and
DOFInterestLevel.CONNECT
interest.
NOTE: This advertise will be sent to all security compatible nodes and timeout after 5 seconds. For a long-term advertise use
beginAdvertise(DOFInterfaceID, int)
.
|
![]() | beginAdvertise(DOFInterfaceID, Int32) | Used by a Provider to advertise that the specified interface can be provided, specifying a timeout
for this operation.
|
![]() | beginAdvertise(DOFInterfaceID, DOFOperationControl, Int32) | Used by a Provider to advertise that the specified interface can be provided, specifying a
Control
and a timeout for this operation. While the operation timeout has not been reached the operation will be retried periodically as
well as be sent over new connections as they come up. This call is beneficial at startup to notify potentially
interested nodes of this provider's capability. The advertise solicits matching
DOFInterestLevel.WATCH
,
DOFInterestLevel.ACTIVATE
, and
DOFInterestLevel.CONNECT
interest.
|
![]() | beginDefine(DOFInterfaceID, Int32, DOFObjectDefineOperationListener, Object) | Used by a Requestor to obtain an interface definition asynchronously.
|
![]() | beginDefine(DOFInterfaceID, DOFOperationControl, Int32, DOFObjectDefineOperationListener, Object) | Used by a Requestor to obtain an interface definition asynchronously.
|
![]() | beginGet(DOFInterfaceProperty, Int32) | Used by a Requestor to get a property's value asynchronously or to request a property's
value from multiple providers using an object with the
DOFObjectID.BROADCAST
ID.
Note: Since no GetOperationListener is defined the initial result can only be obtained by calling Get.waitResult(int) on the returned operation. If the number of responders is unknown -- as is typically the case when making requests on an object with the DOFObjectID.BROADCAST ID -- then:
|
![]() | beginGet(DOFInterfaceProperty, Int32, DOFObjectGetOperationListener) | Used by a Requestor to get a property's value asynchronously or to request a property's
value from multiple providers using an object with the
DOFObjectID.BROADCAST
ID.
|
![]() | beginGet(DOFInterfaceProperty, Int32, DOFObjectGetOperationListener, Object) | Used by a Requestor to get a property's value asynchronously or to request a property's
value from multiple providers using an object with the
DOFObjectID.BROADCAST
ID.
|
![]() | beginGet(DOFInterfaceProperty, DOFOperationControl, Int32, DOFObjectGetOperationListener, Object) | Used by a Requestor to get a property's value asynchronously as specified using a
Control
or to request a property's
value from multiple providers using an object with the
DOFObjectID.BROADCAST
ID.
|
![]() | beginInvoke(DOFInterfaceMethod, IListDOFValue, Int32) | Used by a Requestor to invoke (or call) a method asynchronously or to invoke a method
on multiple providers using an object with the
DOFObjectID.BROADCAST
ID.
Note: Since no InvokeOperationListener is defined the initial result can only be obtained by calling
Invoke.waitResult(int)
.
*
|
![]() | beginInvoke(DOFInterfaceMethod, Int32, DOFValue) | Used by a Requestor to invoke (or call) a method asynchronously or to invoke a method
on multiple providers using an object with the
DOFObjectID.BROADCAST
ID.
Note: Since no SetOperationListener is defined the initial result can only be obtained by calling
Invoke.waitResult(int)
.
*
|
![]() | beginInvoke(DOFInterfaceMethod, IListDOFValue, Int32, DOFObjectInvokeOperationListener) | Used by a Requestor to invoke (or call) a method asynchronously or to invoke a method
on multiple providers using an object with the
DOFObjectID.BROADCAST
ID.
|
![]() | beginInvoke(DOFInterfaceMethod, Int32, DOFObjectInvokeOperationListener, DOFValue) | Used by a Requestor to invoke (or call) a method asynchronously or to invoke a method
on multiple providers using an object with the
DOFObjectID.BROADCAST
ID.
|
![]() | beginInvoke(DOFInterfaceMethod, IListDOFValue, Int32, DOFObjectInvokeOperationListener, Object) | Used by a Requestor to invoke (or call) a method asynchronously or to invoke a method
on multiple providers using an object with the
DOFObjectID.BROADCAST
ID.
|
![]() | beginInvoke(DOFInterfaceMethod, Int32, DOFObjectInvokeOperationListener, Object, DOFValue) | Used by a Requestor to invoke (or call) a method asynchronously or to invoke a method
on multiple providers using an object with the
DOFObjectID.BROADCAST
ID.
|
![]() | beginInvoke(DOFInterfaceMethod, DOFOperationControl, Int32, DOFObjectInvokeOperationListener, Object, DOFValue) | Used by a Requestor to invoke (or call) a method asynchronously as specified using a
Control
. Or to invoke
a method on multiple providers using an object with the
DOFObjectID.BROADCAST
ID.
|
![]() | beginInvoke(DOFInterfaceMethod, IListDOFValue, DOFOperationControl, Int32, DOFObjectInvokeOperationListener, Object) | Used by a Requestor to invoke (or call) a method asynchronously as specified using a
Control
. Or to invoke
a method on multiple providers using an object with the
DOFObjectID.BROADCAST
ID.
|
![]() | beginProvide(DOFInterface, DOFObjectProvider) | Used by a Provider to begin providing the specified interface indefinitely (equivalent to specifying a timeout of
DOF.TIMEOUT_NEVER
).
To quit providing use
DOFOperation.cancel()
.
|
![]() | beginProvide(DOFInterface, Int32, DOFObjectProvider) | Used by a Provider to begin providing the specified interface. |
![]() | beginProvide(DOFInterface, Int32, DOFObjectProvider, Object) | Used by a Provider to begin providing the specified interface. |
![]() | beginRegister(DOFInterfaceEvent, Int32, DOFObjectEventOperationListener, Object) | Obsolete. Used by a Requestor to register an event handler to be notified whenever an event occurs.
|
![]() | beginRegister(DOFInterfaceEvent, DOFOperationControl, Int32, DOFObjectEventOperationListener, Object) | Obsolete. Used by a Requestor to register an event handler, as specified using a
Control
, to be notified whenever an event occurs.
NOTE: Interest is required (through
DOFSystem.beginInterest(DOFObjectID, DOFInterestLevel)
for this operation in order to determine the primary provider.
If no interest is specified, then this operation will result in a
DOFErrorException.TIMEOUT
exception.
NOTE: If the primary provider changes during the lifetime of this operation, and the
Control
response level
includes exceptions, then see
EventOperationListener.eventSignaled(Register, DOFProviderInfo, System.Collections.Generic.IList<E>, DOFException)
for what to do.
|
![]() | beginSession(DOFInterface, DOFInterfaceID) | Used by a Requestor to begin a session with an indefinite duration (equivalent to specifying a timeout of
DOF.TIMEOUT_NEVER
).
A session is an object provided exclusively for a requestor. No other requestor is allowed to access the session object.
Use
Session.waitSession(int)
to ensure that the session object is available.
Use
DOFSystem.waitProvider(DOFInterfaceID, int)
to make sure there's a route to the provider.
The session ends when its timeout expires or when the session operation is cancelled. Attempting to open a session
on a "session object" (an object returned by
Session.waitSession(int)
) is not supported.
NOTE: It is not necessary to call destroy() |
![]() | beginSession(DOFInterface, DOFInterfaceID, DOFObjectSessionOperationListener) | Used by a Requestor to begin a session with an indefinite duration (equivalent to specifying a timeout of
DOF.TIMEOUT_NEVER
).
A session is an object provided exclusively for a requestor. No other requestor is allowed to access the session object.
Use
Session.waitSession(int)
to ensure that the session object is available.
Use
DOFSystem.waitProvider(DOFInterfaceID, int)
to make sure there's a route to the provider. The session ends when its timeout
expires or when the session operation is cancelled. Attempting to open a session on a "session object" (an object
returned by
Session.waitSession(int)
) is not supported.
NOTE: It is not necessary to call destroy() |
![]() | beginSession(DOFInterface, DOFInterfaceID, Int32, DOFObjectSessionOperationListener) | Used by a Requestor to begin a session. |
![]() | beginSession(DOFInterface, DOFInterfaceID, Int32, DOFObjectSessionOperationListener, Object) | Used by a Requestor to begin a session. |
![]() | beginSession(DOFInterface, DOFInterfaceID, DOFOperationControl, Int32, DOFObjectSessionOperationListener, Object) | Used by a Requestor to begin a session. |
![]() | beginSet(DOFInterfaceProperty, DOFValue, Int32) | Used by a Requestor to set a property's value asynchronously or to set a property's value on multiple
providers using an object with the
DOFObjectID.BROADCAST
ID.
Note: Since no SetOperationListener is defined the initial result may be obtained by calling Set.waitResult(int) . If the number of responders is unknown -- as is typically the case when making requests on an object with the DOFObjectID.BROADCAST ID -- then:
|
![]() | beginSet(DOFInterfaceProperty, DOFValue, Int32, DOFObjectSetOperationListener) | Used by a Requestor to set a property's value asynchronously or to set a property's value on multiple
providers using an object with the
DOFObjectID.BROADCAST
ID.
|
![]() | beginSet(DOFInterfaceProperty, DOFValue, Int32, DOFObjectSetOperationListener, Object) | Used by a Requestor to set a property's value asynchronously or to set a property's value on multiple
providers using an object with the
DOFObjectID.BROADCAST
ID.
|
![]() | beginSet(DOFInterfaceProperty, DOFValue, DOFOperationControl, Int32, DOFObjectSetOperationListener, Object) | Used by a Requestor to set a property's value asynchronously as specified using a
Control
or to set a property's value on multiple providers using an object with the
DOFObjectID.BROADCAST
ID.
|
![]() | beginSubscribe(DOFInterfaceProperty, Int32, Int32, DOFObjectSubscribeOperationListener, Object) | Obsolete. Used by a Requestor to begin a subscription, to be notified of changes to a property's value.
|
![]() | beginSubscribe(DOFInterfaceProperty, Int32, DOFOperationControl, Int32, DOFObjectSubscribeOperationListener, Object) | Obsolete. Used by a Requestor to begin a subscription, as specified using a
Control
, to be notified of changes to a
property's value.
NOTE: The Property's current value is always returned when the subscription is started.
NOTE: Intermediate changes that occur more frequently than minPeriod may be dropped to save bandwidth, but the
most current value of the Property is always returned.
NOTE: Interest is required (through
DOFSystem.beginInterest(DOFObjectID, DOFInterestLevel)
for this operation in order to determine the primary provider.
If no interest is specified, then this operation will result in a
DOFErrorException.TIMEOUT
exception.
NOTE: If the primary provider changes during the lifetime of this operation, and the
Control
response level
includes exceptions, then see
SubscribeOperationListener.propertyChanged(Subscribe, DOFProviderInfo, DOFValue, DOFException)
for what to do.
|
![]() | changed | Used by a Provider to notify all subscribers that a property's value has changed.
|
![]() | define(DOFInterfaceID, Int32) | Used by a Requestor to get the definition of an interface. |
![]() | define(DOFInterfaceID, DOFOperationControl, Int32) | Used by a Requestor to get the definition of an interface. |
![]() | destroy | Destroy an object that has been created by the system. |
![]() | Equals | (Overrides ObjectEquals(Object).) |
![]() | get(DOFInterfaceProperty, Int32) | Used by a Requestor to get a property's value. |
![]() | get(DOFInterfaceProperty, DOFOperationControl, Int32) | Used by a Requestor to get a property's value as specified using a
Control
.
|
![]() | GetHashCode | (Overrides ObjectGetHashCode.) |
![]() | getInterfaces | Get the set of interfaces currently being provided on the object. |
![]() | getObjectID | Get this provider's object identifier. |
![]() | getSystem | Get this provider's system. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | invoke(DOFInterfaceMethod, IListDOFValue, Int32) | Used by a Requestor to invoke (or call) a method. |
![]() | invoke(DOFInterfaceMethod, Int32, DOFValue) | Used by a Requestor to invoke (or call) a method. |
![]() | invoke(DOFInterfaceMethod, DOFOperationControl, Int32, DOFValue) | Used by a Requestor to invoke (or call) a method as specified using a
Control
.
|
![]() | invoke(DOFInterfaceMethod, IListDOFValue, DOFOperationControl, Int32) | Used by a Requestor to invoke (or call) a method as specified using a
Control
.
|
![]() | isInterestRequested | Used by a Provider to determine if interest currently requested for the specified interface.
|
![]() | isSignalRequired | Used by a Provider to determine whether or not calling signal is necessary when a specified event occurs.
|
![]() | set(DOFInterfaceProperty, DOFValue, Int32) | Used by a Requestor to set a property's value. |
![]() | set(DOFInterfaceProperty, DOFValue, DOFOperationControl, Int32) | Used by a Requestor to set a property's value as specified using a
Control
.
|
![]() | signal(DOFInterfaceEvent, DOFValue) | Used by a Provider to notify all registered event handlers that an event has occurred.
|
![]() | signal(DOFInterfaceEvent, IListDOFValue) | Used by a Provider to notify all registered event handlers that an event has occurred.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
- A Provider being provided by this application.
- A Provider being provided somewhere on the network (in this case, the application will be accessing the Provider in the role of Requestor).