Interface INode
Represents a kind of node inside a INodeScript
Inherited Members
Namespace: Artemis.Core
Assembly: Artemis.Core.dll
Syntax
public interface INode : IBreakableModel
Properties
Description
Gets the description of the node
Declaration
string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HelpUrl
Gets or sets the help URL of the node
Declaration
string HelpUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Id
Gets or sets the ID of the node.
Declaration
Guid Id { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
IsDefaultNode
Gets a boolean indicating whether the node is a default node that connot be removed
Declaration
bool IsDefaultNode { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsExitNode
Gets a boolean indicating whether the node is the exit node of the script
Declaration
bool IsExitNode { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
Gets the name of the node
Declaration
string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PinCollections
Gets a read-only collection of the pin collections on this node
Declaration
IReadOnlyCollection<IPinCollection> PinCollections { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyCollection<IPinCollection> |
Pins
Gets a read-only collection of the pins on this node
Declaration
IReadOnlyCollection<IPin> Pins { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyCollection<IPin> |
X
Gets or sets the X-position of the node
Declaration
double X { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Y
Gets or sets the Y-position of the node
Declaration
double Y { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
Reset()
Resets the node causing all pins to re-evaluate the next time TryEvaluate() is called
Declaration
void Reset()
TryEvaluate()
Attempts to evaluate the value of the output pins of this node
Declaration
void TryEvaluate()
TryInitialize(INodeScript)
Attempts to initialize the node.
Declaration
void TryInitialize(INodeScript script)
Parameters
| Type | Name | Description |
|---|---|---|
| INodeScript | script | The script the node is contained in |
Events
PinAdded
Occurs when a pin was added to the node
Declaration
event EventHandler<SingleValueEventArgs<IPin>> PinAdded
Event Type
| Type | Description |
|---|---|
| EventHandler<SingleValueEventArgs<IPin>> |
PinCollectionAdded
Occurs when a pin collection was added to the node
Declaration
event EventHandler<SingleValueEventArgs<IPinCollection>> PinCollectionAdded
Event Type
| Type | Description |
|---|---|
| EventHandler<SingleValueEventArgs<IPinCollection>> |
PinCollectionRemoved
Occurs when a pin was removed from the node
Declaration
event EventHandler<SingleValueEventArgs<IPinCollection>> PinCollectionRemoved
Event Type
| Type | Description |
|---|---|
| EventHandler<SingleValueEventArgs<IPinCollection>> |
PinRemoved
Occurs when a pin was removed from the node
Declaration
event EventHandler<SingleValueEventArgs<IPin>> PinRemoved
Event Type
| Type | Description |
|---|---|
| EventHandler<SingleValueEventArgs<IPin>> |
Resetting
Called when the node resets
Declaration
event EventHandler Resetting
Event Type
| Type | Description |
|---|---|
| EventHandler |