Class IPortTypeConverter
Base class for all port converters.
Inherited Members
Namespace: Mechatronics.SystemGraph
Syntax
[Serializable]
public class IPortTypeConverter : IPortType
Fields
driverSide
Describes which side of the converter is taking priority.
Declaration
public IPortTypeConverter.DriverSide driverSide
Field Value
| Type | Description |
|---|---|
| IPortTypeConverter.DriverSide |
rawFirstField
The source side of the converter.
Declaration
public object rawFirstField
Field Value
| Type | Description |
|---|---|
| Object |
rawSecondField
The target side of the converter.
Declaration
public object rawSecondField
Field Value
| Type | Description |
|---|---|
| Object |
Methods
IsCompatible()
Whether the two types are convertible.
Declaration
public virtual bool IsCompatible()
Returns
| Type | Description |
|---|---|
| Boolean | True if convertible. |
RebindPorts(IPortTypeConverter.DriverSide)
Called when the converter is used by the linker. Any initialization can go here, the fields are properly set.
Declaration
public virtual void RebindPorts(IPortTypeConverter.DriverSide pDriverSide)
Parameters
| Type | Name | Description |
|---|---|---|
| IPortTypeConverter.DriverSide | pDriverSide | Describes which side of the converter has priority if any. |