Class NodePort
Runtime class that stores all info about one port that is needed for the processing
Inheritance
System.Object
NodePort
Namespace: GraphProcessor
Assembly: com.alelievr.NodeGraphProcessor.Runtime.dll
Syntax
public class NodePort
Constructors
| Improve this Doc View SourceNodePort(BaseNode, String, PortData)
Constructor
Declaration
public NodePort(BaseNode owner, string fieldName, PortData portData)
Parameters
Type | Name | Description |
---|---|---|
BaseNode | owner | owner node |
System.String | fieldName | the C# property name |
PortData | portData | Data of the port |
Fields
| Improve this Doc View SourcefieldInfo
The fieldInfo from the fieldName
Declaration
public FieldInfo fieldInfo
Field Value
Type | Description |
---|---|
System.Reflection.FieldInfo |
fieldName
The actual name of the property behind the port (must be exact, it is used for Reflection)
Declaration
public string fieldName
Field Value
Type | Description |
---|---|
System.String |
owner
The node on which the port is
Declaration
public BaseNode owner
Field Value
Type | Description |
---|---|
BaseNode |
portData
Data of the port
Declaration
public PortData portData
Field Value
Type | Description |
---|---|
PortData |
Methods
| Improve this Doc View SourceAdd(SerializableEdge)
Connect an edge to this port
Declaration
public void Add(SerializableEdge edge)
Parameters
Type | Name | Description |
---|---|---|
SerializableEdge | edge |
GetEdges()
Get all the edges connected to this port
Declaration
public List<SerializableEdge> GetEdges()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<SerializableEdge> |
PullData()
Pull values from the edge (in case of a custom convertion method) This method can only be called on input ports
Declaration
public void PullData()
PushData()
Push the value of the port through the edges This method can only be called on output ports
Declaration
public void PushData()
Remove(SerializableEdge)
Disconnect an Edge from this port
Declaration
public void Remove(SerializableEdge edge)
Parameters
Type | Name | Description |
---|---|---|
SerializableEdge | edge |