using System;
namespace Artemis.Core;
///
/// Represents a collection of output pins containing values of type
///
/// The type of value the pins in this collection hold
public sealed class OutputPinCollection : PinCollection
{
#region Constructors
internal OutputPinCollection(INode node, string name, int initialCount)
: base(node, name)
{
// Can't do this in the base constructor because the type won't be set yet
for (int i = 0; i < initialCount; i++)
Add(CreatePin());
}
#endregion
#region Methods
///
public override IPin CreatePin()
{
return new OutputPin(Node, string.Empty);
}
#endregion
#region Properties & Fields
///
public override PinDirection Direction => PinDirection.Output;
///
public override Type Type => typeof(T);
#endregion
}