Table of Contents

Class CGModuleOutputSlot

Class defining a module's output slot

[Serializable]
public class CGModuleOutputSlot : CGModuleSlot
Inheritance
CGModuleOutputSlot
Inherited Members

Fields

LastRequestParameters

The request parameters used the last time the IOnRequestProcessing module returned data.

[CanBeNull]
public CGDataRequestParameter[] LastRequestParameters

Field Value

CGDataRequestParameter[]

Properties

Data

The output data. Can contain either:

[NotNull]
[ItemNotNull]
public CGData[] Data { get; set; }

Property Value

CGData[]

OutputInfo

Information about the output slot

[CanBeNull]
public OutputSlotInfo OutputInfo { get; }

Property Value

OutputSlotInfo

Methods

CanLinkTo(CGModuleSlot)

Can a link be established between this slot and the other link?

public override bool CanLinkTo(CGModuleSlot other)

Parameters

other CGModuleSlot

Returns

bool

ClearData()

Sets Data to an empty array.

public void ClearData()

LinkTo(CGModuleSlot)

public override void LinkTo(CGModuleSlot inputSlot)

Parameters

inputSlot CGModuleSlot

LoadLinkedSlots()

protected override void LoadLinkedSlots()

SetDataToCollection<T>(T[])

Set Data to a collection of elements.

public void SetDataToCollection<T>(T[] elements) where T : CGData

Parameters

elements T[]

A non null collection that contains non null elements

Type Parameters

T

A type inheriting from CGData

Exceptions

ArgumentNullException

If elements is null, or has elements that are null

SetDataToElement<T>(T)

Set Data to a single element.

public void SetDataToElement<T>(T element) where T : CGData

Parameters

element T

A non null element

Type Parameters

T

A type inheriting from CGData

Exceptions

ArgumentNullException

If element is null

UnlinkFrom(CGModuleSlot)

Unlink the current slot from the specified other slot.

public override void UnlinkFrom(CGModuleSlot inputSlot)

Parameters

inputSlot CGModuleSlot