Class OutPin<T>
Class representing outgoing pins to nodes.
Implements
Inherited Members
Namespace: Fusee.Xirkit
Assembly: Fusee.Xirkit.dll
Syntax
public class OutPin<T> : Pin, IOutPin
Type Parameters
Name | Description |
---|---|
T | The type of the values transmitted over this pin. |
Constructors
OutPin(Node, String, IMemberAccessor<T>)
Initializes a new instance of the OutPin<T> class.
Declaration
public OutPin(Node n, string member, IMemberAccessor<T> memberAccessor)
Parameters
Type | Name | Description |
---|---|---|
Node | n | The node this out-pin should be connected to. |
System.String | member | The member (property or field) exposed by this out-pin. |
IMemberAccessor<T> | memberAccessor | The member accessor used to write data to the member. |
Properties
InPins
Gets the in-pins connected to this out-pin.
Declaration
public IEnumerable<IInPin> InPins { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IInPin> | The in-pins. |
MemberAccessor
Gets and sets the member accessor.
Declaration
public IMemberAccessor<T> MemberAccessor { get; set; }
Property Value
Type | Description |
---|---|
IMemberAccessor<T> | The member accessor. |
Methods
Attach(IInPin)
Attaches the specified in-pin to this out-pin.
Declaration
public void Attach(IInPin other)
Parameters
Type | Name | Description |
---|---|---|
IInPin | other | The in in-pin to attach to. |
Detach(IInPin)
Detaches the specified (and previously attached) in-pin from this out-pin
Declaration
public void Detach(IInPin other)
Parameters
Type | Name | Description |
---|---|---|
IInPin | other | The in-pin to detach from. |
GetPinType()
Retrieves the type description of the pin.
Declaration
public Type GetPinType()
Returns
Type | Description |
---|---|
System.Type | The pin's type |
GetValue()
Retrieves the value currently stored in the member (field or property) connected to this out-pin.
Declaration
public T GetValue()
Returns
Type | Description |
---|---|
T |
Propagate()
Propagates the value connected to this out-pin to all connected in-pins
Declaration
public void Propagate()