Class PortInterConnect
Generic port interconnect implementation.
Inherited Members
Namespace: Mechatronics.SystemGraph
Syntax
public class PortInterConnect : IPortTypeConverter
Constructors
PortInterConnect()
Default init.
Declaration
public PortInterConnect()
Fields
firstVar
Where the source port is connected to.
Declaration
[Field("firstVar", PortDirection.Left, FieldExtra.Read | FieldExtra.Write)]
[SerializeField]
public IPortType firstVar
Field Value
| Type | Description |
|---|---|
| IPortType |
reentrant
The reentrant
Declaration
public bool reentrant
Field Value
| Type | Description |
|---|---|
| Boolean |
secondVar
Where the target port is connected to.
Declaration
[Field("secondVar", PortDirection.Left, FieldExtra.Read | FieldExtra.Write)]
[SerializeField]
public IPortType secondVar
Field Value
| Type | Description |
|---|---|
| IPortType |
Methods
ConvertSecondToFirst()
Implement to convert from target to source.
Declaration
public virtual void ConvertSecondToFirst()
ForwardFirstToSecond()
Implement to convert from source to target.
Declaration
public virtual void ForwardFirstToSecond()
RebindPorts(IPortTypeConverter.DriverSide)
Called when the converter is used by the linker. Any initialization can go here, the fields are properly set.
Declaration
public override void RebindPorts(IPortTypeConverter.DriverSide pDriverSide)
Parameters
| Type | Name | Description |
|---|---|---|
| IPortTypeConverter.DriverSide | pDriverSide | Describes which side of the converter has priority if any. |