Class InPin<T>
Class representing incoming pins to nodes.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Xirkit
Assembly: Fusee.Xirkit.dll
Syntax
public class InPin<T> : Pin, IInPin
Type Parameters
Name | Description |
---|---|
T | The type of the values transmitted over this pin. |
Constructors
InPin(Node, String, IMemberAccessor<T>)
Initializes a new instance of the InPin<T> class.
Declaration
public InPin(Node n, string member, IMemberAccessor<T> memberAccessor)
Parameters
Type | Name | Description |
---|---|---|
Node | n | The node this pin should belong to. |
System.String | member | The name of the member or the member chain within the object hosted by the node n. |
IMemberAccessor<T> | memberAccessor | The member accessor used to deliver incoming values from the in-pin to the specified member of the node. |
Properties
MemberAccessor
Gets and sets the member accessor.
Declaration
public IMemberAccessor<T> MemberAccessor { get; set; }
Property Value
Type | Description |
---|---|
IMemberAccessor<T> | The member accessor. |
Methods
GetPinType()
Retrieves the type description of the pin.
Declaration
public Type GetPinType()
Returns
Type | Description |
---|---|
System.Type | The pin's type |
SetValue(T)
Sets the value. Triggers the ReceivedValue event.
Declaration
public void SetValue(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value. |
Events
ReceivedValue
Occurs when this pin received a value.
Declaration
public event ReceivedValueHandler ReceivedValue
Event Type
Type | Description |
---|---|
ReceivedValueHandler |