Click or drag to resize

DeviceConn, Proto Class

A generic Brainboxes Device
Inheritance Hierarchy
SystemObject
  Brainboxes.IODeviceConn, Proto
    Brainboxes.IOBBSerialPort
    Brainboxes.IOEDDevice
    Brainboxes.IOESDevice

Namespace:  Brainboxes.IO
Assembly:  Brainboxes.IO (in Brainboxes.IO.dll) Version: 1.5.0.0 (1.5.0.0)
Syntax
public abstract class Device<Conn, Proto> : IDevice<Conn, Proto>, 
	IDisposable
where Conn : IConnection
where Proto : IProtocol

Type Parameters

Conn
A class which implements IConnection
Proto
A class which implements IProtocol

The DeviceConn, Proto type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyConnection
The connection. If the connection is replaced and the previous connection was connected, the new connection will be connected too
Public propertyIsAvailable
Is this Brainboxes Device currently available, e.g. on line or off line (TCP), or the connection is already in use (serial)
Public propertyIsConnected
Is this Brainboxes Device currently connected
Public propertyLabel
User definable label for the Device to help identify when many devices / when debugging
Public propertyProtocol
Marking as virtual allows it to be overridden in the child class
Top
Methods
  NameDescription
Public methodConnect
Connect the Brainboxes Device
Public methodStatic memberCreate
Connects to the IP Address given and determines what kind of Brainboxes Device is there, creates the object and returns it
Public methodDescribe
Give a complete summary of the Device
Public methodDisconnect
Disconnect the Brainboxes Device
Public methodDispose
Dispose of this Brainboxes device
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString
Describe this Brainboxes Device
(Overrides ObjectToString.)
Top
Events
  NameDescription
Public eventDeviceStatusChangedEvent
Event When the status of the devices connection changes for example goes from Disconnected to Connected or from Available to Unavailable
Top
See Also