Table of Contents

Interface INode

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

Represents a kind of node inside a INodeScript

public interface INode : IBreakableModel, IPluginFeatureDependent
Inherited Members
Extension Methods

Properties

Description

Gets the description of the node

string Description { get; set; }

Property Value

string

HelpUrl

Gets or sets the help URL of the node

string HelpUrl { get; set; }

Property Value

string

Id

Gets or sets the ID of the node.

Guid Id { get; set; }

Property Value

Guid

IsDefaultNode

Gets a boolean indicating whether the node is a default node that connot be removed

bool IsDefaultNode { get; }

Property Value

bool

IsExitNode

Gets a boolean indicating whether the node is the exit node of the script

bool IsExitNode { get; }

Property Value

bool

IsLoading

Gets a boolean indicating whether the node is currently loading, use this to disable pin type changes etc.

bool IsLoading { get; set; }

Property Value

bool

Name

Gets the name of the node

string Name { get; set; }

Property Value

string

NodeData

Gets or sets the node data with information about this node

NodeData? NodeData { get; set; }

Property Value

NodeData

PinCollections

Gets a read-only collection of the pin collections on this node

IReadOnlyCollection<IPinCollection> PinCollections { get; }

Property Value

IReadOnlyCollection<IPinCollection>

Pins

Gets a read-only collection of the pins on this node

IReadOnlyCollection<IPin> Pins { get; }

Property Value

IReadOnlyCollection<IPin>

X

Gets or sets the X-position of the node

double X { get; set; }

Property Value

double

Y

Gets or sets the Y-position of the node

double Y { get; set; }

Property Value

double

Methods

Reset()

Resets the node causing all pins to re-evaluate the next time TryEvaluate() is called

void Reset()

TryEvaluate()

Attempts to evaluate the value of the output pins of this node

void TryEvaluate()

TryInitialize(INodeScript)

Attempts to initialize the node.

void TryInitialize(INodeScript script)

Parameters

script INodeScript

The script the node is contained in

Events

PinAdded

Occurs when a pin was added to the node

event EventHandler<SingleValueEventArgs<IPin>> PinAdded

Event Type

EventHandler<SingleValueEventArgs<IPin>>

PinCollectionAdded

Occurs when a pin collection was added to the node

event EventHandler<SingleValueEventArgs<IPinCollection>> PinCollectionAdded

Event Type

EventHandler<SingleValueEventArgs<IPinCollection>>

PinCollectionRemoved

Occurs when a pin was removed from the node

event EventHandler<SingleValueEventArgs<IPinCollection>> PinCollectionRemoved

Event Type

EventHandler<SingleValueEventArgs<IPinCollection>>

PinRemoved

Occurs when a pin was removed from the node

event EventHandler<SingleValueEventArgs<IPin>> PinRemoved

Event Type

EventHandler<SingleValueEventArgs<IPin>>

Resetting

Called when the node resets

event EventHandler Resetting

Event Type

EventHandler