docs.unity.cn
    Show / Hide Table of Contents

    Class PortInterConnect

    Generic port interconnect implementation.

    Inheritance
    Object
    IPortType
    IPortTypeConverter
    PortInterConnect
    Inherited Members
    IPortTypeConverter.driverSide
    IPortTypeConverter.rawFirstField
    IPortTypeConverter.rawSecondField
    IPortTypeConverter.IsCompatible()
    IPortType.globalId
    IPortType.uniqueId
    IPortType.synchronizeAfterLinking
    IPortType.Clock
    IPortType.ChangeEvent
    IPortType.Batching
    IPortType.SignalBatch
    IPortType.Connected
    IPortType.Driver
    IPortType.SetConnected(Boolean)
    IPortType.SetSynchronizeAfterLinking(Boolean)
    IPortType.CreateFieldBox()
    IPortType.TrySetValue(Object)
    IPortType.TryGetValue()
    IPortType.Synchronize()
    IPortType.Propagate(Double)
    IPortType.SetOnChangeClockRisingEdge(Boolean)
    IPortType.SetAsDriver(Object)
    IPortType.BeginBatch()
    IPortType.EndBatch()
    IPortType.TypeNiceName(Type)
    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.

    Overrides
    IPortTypeConverter.RebindPorts(IPortTypeConverter.DriverSide)
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, October 18, 2022
    Terms of use