Class PortConverter<FirstType, SecondType>
Generic port converter implementation to override.
Inherited Members
Namespace: Mechatronics.SystemGraph
Assembly: solution.dll
Syntax
public class PortConverter<FirstType, SecondType> : IPortTypeConverter
Type Parameters
| Name | Description |
|---|---|
| FirstType | Source Type |
| SecondType | Target Type |
Constructors
| Name | Description |
|---|---|
| PortConverter() | Default init. |
Fields
| Name | Description |
|---|---|
| firstVar | Where the source port is connected to in the converter. |
| reentrant | The reentrant state |
| secondVar | Where the target port is connected to in the converter. |
Methods
| Name | Description |
|---|---|
| ConvertFirstToSecond() | Implement to convert from source to target. |
| ConvertSecondToFirst() | Implement to convert from target to source. |
| IsCompatible() | Whether the two types are convertible. |
| RebindPorts(DriverSide) | Called when the converter is used by the linker. Any initialization can go here, the fields are properly set. |