Table of Contents

Interface IPinCollection

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

Represents a collection of IPins on a INode

public interface IPinCollection : IEnumerable<IPin>, IEnumerable
Inherited Members

Properties

Direction

Gets the direction of the pin collection and all its pins

PinDirection Direction { get; }

Property Value

PinDirection

Name

Gets the name of the pin collection

string Name { get; }

Property Value

string

Node

Gets the node the pin collection belongs to

INode Node { get; }

Property Value

INode

Type

Gets the type of values the pin collection and all its pins holds

Type Type { get; }

Property Value

Type

Methods

Add(IPin)

Adds the provided pin to the collection

void Add(IPin pin)

Parameters

pin IPin

CreatePin()

Creates a new pin compatible with this collection

IPin CreatePin()

Returns

IPin

The newly created pin

Remove(IPin)

Removes the provided pin from the collection

bool Remove(IPin pin)

Parameters

pin IPin

The pin to remove

Returns

bool

Reset()

Resets the pin collection, causing its pins to re-evaluate the next time its value is requested

void Reset()

Events

PinAdded

Occurs when a pin was added to the collection

event EventHandler<SingleValueEventArgs<IPin>> PinAdded

Event Type

EventHandler<SingleValueEventArgs<IPin>>

PinRemoved

Occurs when a pin was removed from the collection

event EventHandler<SingleValueEventArgs<IPin>> PinRemoved

Event Type

EventHandler<SingleValueEventArgs<IPin>>