Show / Hide Table of Contents

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 Source

NodePort(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 Source

fieldInfo

The fieldInfo from the fieldName

Declaration
public FieldInfo fieldInfo
Field Value
Type Description
System.Reflection.FieldInfo
| Improve this Doc View Source

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
| Improve this Doc View Source

owner

The node on which the port is

Declaration
public BaseNode owner
Field Value
Type Description
BaseNode
| Improve this Doc View Source

portData

Data of the port

Declaration
public PortData portData
Field Value
Type Description
PortData

Methods

| Improve this Doc View Source

Add(SerializableEdge)

Connect an edge to this port

Declaration
public void Add(SerializableEdge edge)
Parameters
Type Name Description
SerializableEdge edge
| Improve this Doc View Source

GetEdges()

Get all the edges connected to this port

Declaration
public List<SerializableEdge> GetEdges()
Returns
Type Description
System.Collections.Generic.List<SerializableEdge>
| Improve this Doc View Source

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()
| Improve this Doc View Source

PushData()

Push the value of the port through the edges This method can only be called on output ports

Declaration
public void PushData()
| Improve this Doc View Source

Remove(SerializableEdge)

Disconnect an Edge from this port

Declaration
public void Remove(SerializableEdge edge)
Parameters
Type Name Description
SerializableEdge edge
  • Improve this Doc
  • View Source
Back to top Generated by DocFX