Class ConsumerNode
The base node for any node that consumes (takes) data. In other words, any node that has one more in ports.
Inheritance
object
ConsumerNode
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Syntax
[Serializable]
public abstract class ConsumerNode : ScriptNode, IConsumerNode, IScriptNode, INode
Properties
InPorts
Declaration
public ReadOnlyCollection<InPort> InPorts { get; }
Property Value
Type |
Description |
System.Collections.ObjectModel.ReadOnlyCollection<T><InPort> |
|
Node
In case of proxy classes (such as ProcessorNode uses) it's useful to explicitly set the node's type.
Declaration
protected virtual IConsumerNode Node { get; }
Property Value
Methods
AddIn(string, Type, IScriptNode, InPort)
Adds an in port with the given name of the given type.
Declaration
public InPort AddIn(string name, Type type, IScriptNode owner = null, InPort port = null)
Parameters
Type |
Name |
Description |
string |
name |
The port's name.
|
System.Type |
type |
The port's data type.
|
IScriptNode |
owner |
The node that is marked as the owner. If this is null that will be this node
(which is probably what you want).
|
InPort |
port |
The existing port.
|
Returns
Type |
Description |
InPort |
The new in port.
|
AddIn<T>(string, IScriptNode)
Declaration
public InPort AddIn<T>(string name, IScriptNode owner = null)
Parameters
Returns
Type Parameters
ClearPorts()
Declaration
GetInPort(string)
Declaration
public InPort GetInPort(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
MoveIn(int, int)
Declaration
public void MoveIn(int oldIndex, int newIndex)
Parameters
Type |
Name |
Description |
int |
oldIndex |
|
int |
newIndex |
|
Declaration
public virtual void OnLoadInputPorts()
RemoveIn(string)
Declaration
public void RemoveIn(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
RenameIn(string, string)
Declaration
public void RenameIn(string oldName, string newName)
Parameters
Type |
Name |
Description |
string |
oldName |
|
string |
newName |
|
Events
OnInPortAdded
Declaration
public event Action<InPort> OnInPortAdded
Event Type
Type |
Description |
System.Action<T><InPort> |
|
OnInPortMoved
Declaration
public event Action<InPort, int> OnInPortMoved
Event Type
Type |
Description |
System.Action<T1, T2><InPort, int> |
|
OnInPortRemoved
Declaration
public event Action<InPort> OnInPortRemoved
Event Type
Type |
Description |
System.Action<T><InPort> |
|
OnInPortRenamed
Declaration
public event Action<InPort, string, string> OnInPortRenamed
Event Type
Type |
Description |
System.Action<T1, T2, T3><InPort, string, string> |
|
Implements