ACOP.NET API
Public Member Functions | Protected Member Functions | Properties | Events | List of all members
AcopLink Class Reference
Inheritance diagram for AcopLink:
AcopComponent

Public Member Functions

int Attach ()
 Attaches a transport link to the link target contained in the LinkAddress and LinkProperty fields. Will attempt to discover and use the default output data object More...
 
int Attach (object reference)
 Attaches a transport link to the link target contained in the LinkAddress and LinkProperty fields. Will attempt to discover and use the default output data object More...
 
int Attach (object DataOut, object DataIn, int Flags, int interval, object reference)
 Attaches a transport link to the link target contained in the LinkAddress and LinkProperty fields. More...
 
int Attach (object DataOut, object DataIn, string Flags, int interval, object reference)
 Attaches a transport link to the link target contained in the LinkAddress and LinkProperty fields. More...
 
int Attach (object DataOut, int Offset, int Length, object DataIn, int Flags, int interval, object reference)
 Attaches a transport link to the link target contained in the LinkAddress and LinkProperty fields. More...
 
int Attach (object DataOut, int Offset, int Length, object DataIn, string Flags, int interval, object reference)
 Attaches a transport link to the link target contained in the LinkAddress and LinkProperty fields. More...
 
int Detach (String Protocol, String Address, String Property, object DataOut, object DataIn)
 Detaches the link specifed by the link parameters from the acop control. More...
 
int Detach (String Address, String Property, object DataOut, object DataIn)
 Detaches the link specifed by the link parameters from the acop control. More...
 
int Detach (String Protocol, String Address, String Property)
 Detaches the link specifed by the link parameters from the acop control. More...
 
int Detach (String Address, String Property)
 Detaches the link specifed by the link parameters from the acop control. More...
 
int Detach ()
 Detaches all links attached to the acop control. More...
 
int Execute ()
 Executes a single synchronous transport call to the link target contained in the LinkAddress and LinkProperty fields. Will attempt to discover and use the default output data object More...
 
int Execute (object DataOut, object DataIn, int Flags, int timeout)
 Executes a single synchronous transport call to the link target contained in the LinkAddress and LinkProperty fields.
More...
 
int Execute (object DataOut, object DataIn, string Flags, int timeout)
 Executes a single synchronous transport call to the link target contained in the LinkAddress and LinkProperty fields.
More...
 
int Execute (object DataOut, int Offset, int Length, object DataIn, int Flags, int timeout)
 Executes a single synchronous transport call to the link target contained in the LinkAddress and LinkProperty fields.
More...
 
int Execute (object DataOut, int Offset, int Length, object DataIn, string Flags, int timeout)
 Executes a single synchronous transport call to the link target contained in the LinkAddress and LinkProperty fields.
More...
 
int GetDataTag ()
 Gets the last data tag (if any) associated with the output data. More...
 
int GetFlags (String flags)
 Gets the integer flag representation of the input flags string More...
 
object GetLinkOutput ()
 Returns the output data object bound to the default transport link More...
 
String [] GetLinkOutputChannelNames ()
 Returns a list of discovered channel names for the data bound to the default transport link (In case the transport link is bound to a multi-channel array). More...
 
double [] GetLinkOutputXAxis ()
 Returns the appropriate X-Axis for the data bound to the default transport link (for use in the chart) More...
 
double [] GetLinkOutputYAxis ()
 Returns the appropriate Y-Axis for the data bound to the default transport link (for use in the chart) More...
 
int GetOutputCompletionLength ()
 Gets the last delivered link output completion length. More...
 
Int32 GetOutputDataAsInteger ()
 get the last transfered data as an integer More...
 
double GetOutputDataAsNumber ()
 get the last transfered data as a number More...
 
string GetOutputDataAsString ()
 get the last transfered data as a string More...
 
string [] GetOutputDataAsStringArray ()
 get the last transfered data as a string array More...
 
object GetOutputDataObject ()
 Returns the output data object appropriate to the current link address More...
 
object GetOutputDataObject (int instance)
 Returns the output data object appropriate to the current link address and given overload preference More...
 
int GetStatus ()
 Gets the current link status as an integer value More...
 
String GetStatusString ()
 Gets the current transport link status as a string More...
 
double GetTimeStamp ()
 Get the last link timestamp (as a UTC double). More...
 
void LinkUpdateInvoker (Control control, acopUpdate updater, object sender, Link lnk)
 An invoker helper for cases where InvokeRequired is needed More...
 
int Reassign (String Address, String Property)
 Reassigns the current bound default link to the address parameters given. More...
 
int Reassign (String Context, String Server, String Device, String Property)
 Reassigns the current bound default link to the address parameters given. More...
 
void Reset ()
 Closes all monitored links. If AutoAttachLink is 'true' then the link currently bound to the component will re-link. More...
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used. More...
 

Properties

bool AutoLinkAttach [get, set]
 if set to true, instructs ACOP to automatically monitor the data provided by LinkAddress and LinkProperty More...
 
int AutoLinkCapacity [get, set]
 if non-zero, provides the requested data size to use when AutoLinkUpdate is set to true More...
 
int DefaultMonitorInterval [get, set]
 the default monitoring interval in msec More...
 
String LinkAddress [get, set]
 identifies the transport link target. The target end point is given by the LinkAddress and the LinkProperty. More...
 
String LinkContext [get, set]
 the design-time browseable link context (part of the link address) More...
 
int LinkDelay [get, set]
 gives a delay time in milliseconds to suspend the current thread following an auto attach More...
 
String LinkDevice [get, set]
 the design-time browseable/editable link device (part of the link address) More...
 
String LinkFlags [get, set]
 an optional design-time browseable flags set which can be applied to the underlying link More...
 
bool LinkGrouped [get, set]
 if set to true, then multiple assigned links will fire a single receive event when all links have completed their update cycle More...
 
String LinkInputValue [get, set]
 optional value to use as input for automatic links More...
 
String LinkProperty [get, set]
 the design-time browseable/editable link property (suppliments the link address) More...
 
String LinkProtocol [get, set]
 the link control system protocol More...
 
String LinkServer [get, set]
 the design-time browseable link server (part of the link address) More...
 
String LinkSubSystem [get, set]
 the design-time browseable link subsystem More...
 

Events

acopUpdate acopLinkUpdate
 Occurs when the underlying monitored link has updated its data More...
 

Member Function Documentation

◆ Attach() [1/6]

int Attach ( )
inlineinherited

Attaches a transport link to the link target contained in the LinkAddress and LinkProperty fields. Will attempt to discover and use the default output data object

Returns
A positive link ID or -1 if the link cannot be established.

References AcopComponent.GetFlags().

Referenced by AcopComponent.Attach(), and AcopComponent.Reassign().

◆ Attach() [2/6]

int Attach ( object  reference)
inlineinherited

Attaches a transport link to the link target contained in the LinkAddress and LinkProperty fields. Will attempt to discover and use the default output data object

Parameters
referenceAny reference which should be returned in the link's update event
Returns
A positive link ID or -1 if the link cannot be established.

References AcopComponent.Attach(), and AcopComponent.GetFlags().

◆ Attach() [3/6]

int Attach ( object  DataOut,
object  DataIn,
int  Flags,
int  interval,
object  reference 
)
inlineinherited

Attaches a transport link to the link target contained in the LinkAddress and LinkProperty fields.

Parameters
DataOutA reference to the output data object which is to be filled
DataInA reference to an input data object to be sent to the link address
FlagsAny optional link flags
intervalAn update interval (or timeout) in milliseconds
referenceAny reference which should be returned in the link's update event
Returns
A positive link ID or -1 if the link cannot be established.

References Link.GetLinkId().

◆ Attach() [4/6]

int Attach ( object  DataOut,
object  DataIn,
string  Flags,
int  interval,
object  reference 
)
inlineinherited

Attaches a transport link to the link target contained in the LinkAddress and LinkProperty fields.

Parameters
DataOutA reference to the output data object which is to be filled
DataInA reference to an input data object to be sent to the link address
FlagsAny optional link flags string (i.e. one of the values in the property grid)
intervalAn update interval (or timeout) in milliseconds
referenceAny reference which should be returned in the link's update event
Returns
A positive link ID or -1 if the link cannot be established.

References AcopComponent.Attach(), and AcopComponent.GetFlags().

◆ Attach() [5/6]

int Attach ( object  DataOut,
int  Offset,
int  Length,
object  DataIn,
int  Flags,
int  interval,
object  reference 
)
inlineinherited

Attaches a transport link to the link target contained in the LinkAddress and LinkProperty fields.

Parameters
DataOutA reference to the output data object which is to be filled
OffsetA specific offset into the output data object (array) reference. Output data will begin filling at this offset.
LengthThe length of the output data object (array) which is to be filled in.
DataInA reference to an input data object to be sent to the link address
FlagsAny optional link flags
intervalAn update interval (or timeout) in milliseconds
referenceAny reference which should be returned in the link's update event
Returns
A positive link ID or -1 if the link cannot be established.

References Link.GetLinkId().

◆ Attach() [6/6]

int Attach ( object  DataOut,
int  Offset,
int  Length,
object  DataIn,
string  Flags,
int  interval,
object  reference 
)
inlineinherited

Attaches a transport link to the link target contained in the LinkAddress and LinkProperty fields.

Parameters
DataOutA reference to the output data object which is to be filled
OffsetA specific offset into the output data object (array) reference. Output data will begin filling at this offset.
LengthThe length of the output data object (array) which is to be filled in.
DataInA reference to an input data object to be sent to the link address
FlagsAny optional link flags string (i.e. one of the values in the property grid)
intervalAn update interval (or timeout) in milliseconds
referenceAny reference which should be returned in the link's update event
Returns
A positive link ID or -1 if the link cannot be established.

References AcopComponent.Attach(), and AcopComponent.GetFlags().

◆ Detach() [1/5]

int Detach ( String  Protocol,
String  Address,
String  Property,
object  DataOut,
object  DataIn 
)
inlineinherited

Detaches the link specifed by the link parameters from the acop control.

Parameters
ProtocolControl system protocol
AddressThe link address
PropertyThe link property
DataOutThe output data object
DataInThe input data object
Returns
0 upon success or -1 on error

Referenced by AcopMagnet.Dispose().

◆ Detach() [2/5]

int Detach ( String  Address,
String  Property,
object  DataOut,
object  DataIn 
)
inlineinherited

Detaches the link specifed by the link parameters from the acop control.

Parameters
AddressThe link address
PropertyThe link property
DataOutThe output data object
DataInThe input data object
Returns
0 upon success or -1 on error

References AcopComponent.Detach().

◆ Detach() [3/5]

int Detach ( String  Protocol,
String  Address,
String  Property 
)
inlineinherited

Detaches the link specifed by the link parameters from the acop control.

Parameters
ProtocolControl system protocol
AddressThe link address
PropertyThe link property
Returns
0 upon success or -1 on error

References AcopComponent.Detach().

◆ Detach() [4/5]

int Detach ( String  Address,
String  Property 
)
inlineinherited

Detaches the link specifed by the link parameters from the acop control.

Parameters
AddressThe link address
PropertyThe link property
Returns
0 upon success or -1 on error

References AcopComponent.Detach().

◆ Detach() [5/5]

int Detach ( )
inlineinherited

Detaches all links attached to the acop control.

Returns
0 upon success or -1 on error

Referenced by AcopComponent.Detach().

◆ Dispose()

override void Dispose ( bool  disposing)
inlineprotected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.

◆ Execute() [1/5]

int Execute ( )
inlineinherited

Executes a single synchronous transport call to the link target contained in the LinkAddress and LinkProperty fields. Will attempt to discover and use the default output data object

Returns
0 upon success or -1 if there is a link error.

References AcopComponent.GetFlags().

Referenced by AcopComponent.Execute().

◆ Execute() [2/5]

int Execute ( object  DataOut,
object  DataIn,
int  Flags,
int  timeout 
)
inlineinherited

Executes a single synchronous transport call to the link target contained in the LinkAddress and LinkProperty fields.

Parameters
DataOutA reference to the output data object which is to be filled
DataInA reference to an input data object to be sent to the link address
FlagsAny optional link flags
timeouttimeout in milliseconds
Returns
0 upon success or -1 if there is a link error.

◆ Execute() [3/5]

int Execute ( object  DataOut,
object  DataIn,
string  Flags,
int  timeout 
)
inlineinherited

Executes a single synchronous transport call to the link target contained in the LinkAddress and LinkProperty fields.

Parameters
DataOutA reference to the output data object which is to be filled
DataInA reference to an input data object to be sent to the link address
FlagsAny optional link flags string (i.e. one of the values shown in the property grid)
timeouttimeout in milliseconds
Returns
0 upon success or -1 if there is a link error.

References AcopComponent.Execute(), and AcopComponent.GetFlags().

◆ Execute() [4/5]

int Execute ( object  DataOut,
int  Offset,
int  Length,
object  DataIn,
int  Flags,
int  timeout 
)
inlineinherited

Executes a single synchronous transport call to the link target contained in the LinkAddress and LinkProperty fields.

Parameters
DataOutA reference to the output data object which is to be filled
OffsetA specific offset into the output data object (array) reference. Output data will begin filling at this offset.
LengthThe length of the output data object (array) which is to be filled in.
DataInA reference to an input data object to be sent to the link address
FlagsAny optional link flags
timeouttimeout in milliseconds
Returns
0 upon success or -1 if there is a link error.

◆ Execute() [5/5]

int Execute ( object  DataOut,
int  Offset,
int  Length,
object  DataIn,
string  Flags,
int  timeout 
)
inlineinherited

Executes a single synchronous transport call to the link target contained in the LinkAddress and LinkProperty fields.

Parameters
DataOutA reference to the output data object which is to be filled
OffsetA specific offset into the output data object (array) reference. Output data will begin filling at this offset.
LengthThe length of the output data object (array) which is to be filled in.
DataInA reference to an input data object to be sent to the link address
FlagsAny optional link flags string (i.e. one of the values shown in the property grid)
timeouttimeout in milliseconds
Returns
0 upon success or -1 if there is a link error.

References AcopComponent.Execute(), and AcopComponent.GetFlags().

◆ GetDataTag()

int GetDataTag ( )
inlineinherited

Gets the last data tag (if any) associated with the output data.

Returns
The last data tag (if any) associated with the output data.

References Link.GetDataTag().

◆ GetFlags()

int GetFlags ( String  flags)
inlineinherited

Gets the integer flag representation of the input flags string

Parameters
flags
Returns
the integer flag representation of the input flags string

Referenced by AcopComponent.Attach(), and AcopComponent.Execute().

◆ GetLinkOutput()

object GetLinkOutput ( )
inlineinherited

Returns the output data object bound to the default transport link

Returns
the output data object bound to the default transport link

References Link.GetOutputDataObject().

◆ GetLinkOutputChannelNames()

String [] GetLinkOutputChannelNames ( )
inlineinherited

Returns a list of discovered channel names for the data bound to the default transport link (In case the transport link is bound to a multi-channel array).

Returns
a list of discovered channel names for the data bound to the default transport link

References Link.GetOutputChannelNames().

◆ GetLinkOutputXAxis()

double [] GetLinkOutputXAxis ( )
inlineinherited

Returns the appropriate X-Axis for the data bound to the default transport link (for use in the chart)

Returns
the appropriate X-Axis for the data bound to the default transport link

References Link.GetOutputXAxis().

◆ GetLinkOutputYAxis()

double [] GetLinkOutputYAxis ( )
inlineinherited

Returns the appropriate Y-Axis for the data bound to the default transport link (for use in the chart)

Returns
the appropriate Y-Axis for the data bound to the default transport link

References Link.GetOutputYAxis().

◆ GetOutputCompletionLength()

int GetOutputCompletionLength ( )
inlineinherited

Gets the last delivered link output completion length.

Returns
The last delivered link output completion length.

References Link.GetOutputCompletionLength().

◆ GetOutputDataAsInteger()

Int32 GetOutputDataAsInteger ( )
inlineinherited

get the last transfered data as an integer

Returns
the last transfered data as an integer

References Link.GetOutputDataAsInteger().

◆ GetOutputDataAsNumber()

double GetOutputDataAsNumber ( )
inlineinherited

get the last transfered data as a number

Returns
the last transfered data as a number

◆ GetOutputDataAsString()

string GetOutputDataAsString ( )
inlineinherited

get the last transfered data as a string

Returns
the last transfered data as a string

References Link.GetOutputDataAsString().

◆ GetOutputDataAsStringArray()

string [] GetOutputDataAsStringArray ( )
inlineinherited

get the last transfered data as a string array

Returns
the last transfered data as a string array

References Link.GetOutputDataAsString().

◆ GetOutputDataObject() [1/2]

object GetOutputDataObject ( )
inlineinherited

Returns the output data object appropriate to the current link address

Returns
the output data object appropriate to the current link address

◆ GetOutputDataObject() [2/2]

object GetOutputDataObject ( int  instance)
inlineinherited

Returns the output data object appropriate to the current link address and given overload preference

Parameters
instancethe desired overload
Returns
the output data object appropriate to the current link address

◆ GetStatus()

int GetStatus ( )
inlineinherited

Gets the current link status as an integer value

Returns
The current link status as an integer value

References Link.GetStatus().

◆ GetStatusString()

String GetStatusString ( )
inlineinherited

Gets the current transport link status as a string

Returns
The current transport link status as a string

References Link.GetStatusString().

◆ GetTimeStamp()

double GetTimeStamp ( )
inlineinherited

Get the last link timestamp (as a UTC double).

Returns
The last link timestamp (as a UTC double).

References Link.GetTimeStamp().

◆ LinkUpdateInvoker()

void LinkUpdateInvoker ( Control  control,
acopUpdate  updater,
object  sender,
Link  lnk 
)
inlineinherited

An invoker helper for cases where InvokeRequired is needed

Parameters
controlthe parent control of this AcopLink
updateris the delegate to invoke
senderis the sender object
lnkis the Link object

◆ Reassign() [1/2]

int Reassign ( String  Address,
String  Property 
)
inlineinherited

Reassigns the current bound default link to the address parameters given.

Parameters
Addressthe desired new target link address
Propertythe desired new target link property
Returns
a positive link handle to the new link upon success, otherwise -1.

References AcopComponent.Attach().

Referenced by AcopComponent.Reassign().

◆ Reassign() [2/2]

int Reassign ( String  Context,
String  Server,
String  Device,
String  Property 
)
inlineinherited

Reassigns the current bound default link to the address parameters given.

Parameters
Contextthe desired new target link context
Serverthe desired new target link server
Devicethe desired new target link device
Propertythe desired new target link property
Returns
a positive link handle to the new link upon success, otherwise -1.

References AcopComponent.Reassign().

◆ Reset()

void Reset ( )
inlineinherited

Closes all monitored links. If AutoAttachLink is 'true' then the link currently bound to the component will re-link.

Referenced by AcopUtils.ResetAcopLinks().

Property Documentation

◆ AutoLinkAttach

bool AutoLinkAttach
getsetinherited

if set to true, instructs ACOP to automatically monitor the data provided by LinkAddress and LinkProperty

◆ AutoLinkCapacity

int AutoLinkCapacity
getsetinherited

if non-zero, provides the requested data size to use when AutoLinkUpdate is set to true

◆ DefaultMonitorInterval

int DefaultMonitorInterval
getsetinherited

the default monitoring interval in msec

◆ LinkAddress

String LinkAddress
getsetinherited

identifies the transport link target. The target end point is given by the LinkAddress and the LinkProperty.

◆ LinkContext

String LinkContext
getsetinherited

the design-time browseable link context (part of the link address)

◆ LinkDelay

int LinkDelay
getsetinherited

gives a delay time in milliseconds to suspend the current thread following an auto attach

◆ LinkDevice

String LinkDevice
getsetinherited

the design-time browseable/editable link device (part of the link address)

◆ LinkFlags

String LinkFlags
getsetinherited

an optional design-time browseable flags set which can be applied to the underlying link

◆ LinkGrouped

bool LinkGrouped
getsetinherited

if set to true, then multiple assigned links will fire a single receive event when all links have completed their update cycle

◆ LinkInputValue

String LinkInputValue
getsetinherited

optional value to use as input for automatic links

◆ LinkProperty

String LinkProperty
getsetinherited

the design-time browseable/editable link property (suppliments the link address)

◆ LinkProtocol

String LinkProtocol
getsetinherited

the link control system protocol

◆ LinkServer

String LinkServer
getsetinherited

the design-time browseable link server (part of the link address)

◆ LinkSubSystem

String LinkSubSystem
getsetinherited

the design-time browseable link subsystem

Event Documentation

◆ acopLinkUpdate

acopUpdate acopLinkUpdate
inherited

Occurs when the underlying monitored link has updated its data


The documentation for this class was generated from the following files:

Datenschutzerklaerung   -   Data Privacy Policy
Generated for ACOP.NET API by  doxygen 1.5.8