Class Connection
Inheritance
System.Object
Connection
Implements
System.IComparable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Experior.Core.dll
Syntax
public abstract class Connection : Connection, IComparable, IConnection, IConnection
Constructors
Connection(ConnectionInfo)
Declaration
public Connection(ConnectionInfo info)
Parameters
Properties
Conversion
Declaration
[Browsable(false)]
public abstract Conversions Conversion { get; }
Property Value
EnableSource
Declaration
[Browsable(false)]
public virtual bool EnableSource { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
[Browsable(false)]
public SortedDictionary<string, IBufferInput> InputBuffer { get; }
Property Value
Type |
Description |
System.Collections.Generic.SortedDictionary<System.String, IBufferInput> |
|
Declaration
[Browsable(false)]
public ByteEditorWindow InputForm { get; }
Property Value
OutputBuffer
Declaration
[Browsable(false)]
public SortedDictionary<string, IBufferOutput> OutputBuffer { get; }
Property Value
Type |
Description |
System.Collections.Generic.SortedDictionary<System.String, IBufferOutput> |
|
Declaration
[Browsable(false)]
public ByteEditorWindow OutputForm { get; }
Property Value
Size
Declaration
[Browsable(false)]
public virtual Units Size { get; set; }
Property Value
SourceDescription
Declaration
[Browsable(false)]
public virtual string SourceDescription { get; }
Property Value
Type |
Description |
System.String |
|
SourceIdentification
Declaration
[Browsable(false)]
public virtual string SourceIdentification { get; }
Property Value
Type |
Description |
System.String |
|
Symbols
Declaration
[Browsable(false)]
public IList<Symbol> Symbols { get; }
Property Value
Type |
Description |
System.Collections.Generic.IList<Symbol> |
|
UnusedImportedSymbols
Declaration
[Browsable(false)]
public List<Symbol> UnusedImportedSymbols { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<Symbol> |
|
Methods
Active(IRegister)
Declaration
public virtual bool Active(IRegister register)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public void AddSource(IBufferInput input)
Parameters
AddSource(IBufferOutput)
Declaration
public void AddSource(IBufferOutput output)
Parameters
AddSymbol(Symbol)
Declaration
public void AddSymbol(Symbol symbol)
Parameters
Type |
Name |
Description |
Symbol |
symbol |
|
AddSymbol(Symbol, Boolean)
Declaration
protected void AddSymbol(Symbol symbol, bool silent)
Parameters
Type |
Name |
Description |
Symbol |
symbol |
|
System.Boolean |
silent |
|
BeforeSerialization()
Declaration
public override void BeforeSerialization()
Overrides
Experior.Core.Communication.Connection.BeforeSerialization()
Cleanup(Connection)
Declaration
public static void Cleanup(Connection connection)
Parameters
Declaration
public void ClearInputSources()
ClearOutputSources()
Declaration
public void ClearOutputSources()
ClearSymbols()
Declaration
public void ClearSymbols()
Declaration
public void CloseInputForm()
CloseLog()
Declaration
public override void CloseLog()
Overrides
ConnectionEstablished()
Declaration
protected override void ConnectionEstablished()
Overrides
ConnectionLost()
Declaration
protected override void ConnectionLost()
Overrides
CreateLog(Int32)
Declaration
protected override void CreateLog(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Overrides
CreateS5Fetch(Boolean)
Declaration
public static Connection CreateS5Fetch(bool server)
Parameters
Type |
Name |
Description |
System.Boolean |
server |
|
Returns
CreateS5Write(Boolean)
Declaration
public static Connection CreateS5Write(bool server)
Parameters
Type |
Name |
Description |
System.Boolean |
server |
|
Returns
CreateS7Function(Boolean)
Declaration
public static Connection CreateS7Function(bool server)
Parameters
Type |
Name |
Description |
System.Boolean |
server |
|
Returns
CreateXComTCP()
Declaration
public static Connection CreateXComTCP()
Returns
CreateXComUDP()
Declaration
public static Connection CreateXComUDP()
Returns
DataReceived(String, Byte[])
Declaration
public virtual byte[] DataReceived(string source, byte[] data)
Parameters
Type |
Name |
Description |
System.String |
source |
|
System.Byte[] |
data |
|
Returns
Type |
Description |
System.Byte[] |
|
DefaultSourceName(Registers)
Declaration
public virtual string DefaultSourceName(Registers register)
Parameters
Returns
Type |
Description |
System.String |
|
Disconnect()
Declaration
public override void Disconnect()
Overrides
Dispose(Boolean)
Declaration
public override bool Dispose(bool force)
Parameters
Type |
Name |
Description |
System.Boolean |
force |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Export()
Declaration
protected virtual void Export()
GetBuffer(IRegister)
Declaration
public IBuffer GetBuffer(IRegister register)
Parameters
Returns
Import()
Declaration
protected virtual void Import()
InvokeAddAlarm(String, String)
Declaration
public static void InvokeAddAlarm(string plc, string alarmDescription)
Parameters
Type |
Name |
Description |
System.String |
plc |
|
System.String |
alarmDescription |
|
IODataReceived(UInt32, String, Byte[], Boolean)
Declaration
protected virtual void IODataReceived(uint offset, string source, byte[] data, bool established)
Parameters
Type |
Name |
Description |
System.UInt32 |
offset |
|
System.String |
source |
|
System.Byte[] |
data |
|
System.Boolean |
established |
|
Output(Int32, Int16, String, Boolean)
Declaration
public void Output(int byteno, short bitno, string source, bool state)
Parameters
Type |
Name |
Description |
System.Int32 |
byteno |
|
System.Int16 |
bitno |
|
System.String |
source |
|
System.Boolean |
state |
|
Declaration
public void RemoveSource(Input input)
Parameters
Type |
Name |
Description |
Input |
input |
|
RemoveSource(Output)
Declaration
public void RemoveSource(Output output)
Parameters
Type |
Name |
Description |
Output |
output |
|
Send(IRegister, Object)
Declaration
public virtual void Send(IRegister output, object data)
Parameters
Type |
Name |
Description |
IRegister |
output |
|
System.Object |
data |
|
Send(Byte[], Int32)
Declaration
public virtual void Send(byte[] data, int offset)
Parameters
Type |
Name |
Description |
System.Byte[] |
data |
|
System.Int32 |
offset |
|
Declaration
public override void ShowContextMenu(List<Environment.UI.Toolbar.BarItem> menuitems)
Parameters
Overrides
Declaration
protected void ShowInputsDialog()
ShowOutputsDialog()
Declaration
protected void ShowOutputsDialog()
Sources(IRegister)
Declaration
[Browsable(false)]
public virtual List<string> Sources(IRegister io)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
|
TruncateLog()
Declaration
public override void TruncateLog()
Overrides
UseBitNumber(String)
Declaration
public virtual bool UseBitNumber(string source)
Parameters
Type |
Name |
Description |
System.String |
source |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public bool ValidateUserInput(ref string errormessage)
Parameters
Type |
Name |
Description |
System.String |
errormessage |
|
Returns
Type |
Description |
System.Boolean |
|
Events
AddAlarmEvent
Declaration
public static event Connection.AlarmDelegate AddAlarmEvent
Event Type
OnBufferSourceAdded
Declaration
public event BufferSourceAddedEvent OnBufferSourceAdded
Event Type
Declaration
public event InputDataReceivedEvent OnInputDataReceived
Event Type
Declaration
public event InputReceivedEvent OnInputReceived
Event Type
OnValidate
Declaration
public event ValidateUserInputEvent OnValidate
Event Type
Implements
System.IComparable