Skip to main content

ICData

ICData

Overview needed


Constructor

public ICData

new ICData(collection)

The sole constructor for ICData, it is recommended to use the Create function instead.

Parameters

  •  collection: DigitalObjectSet – The circuit to create an instance of ICData of.

Properties

No publicly accessible properties on ICData

private name: string

Description needed

private transform: Transform

Description needed

private collection: DigitalObjectSet

Description needed

private inputPorts: InputPort[]

Description needed

private outputPorts: OutputPort[]

Description needed


Methods

private calculateSize

calculateSize() => void

Description needed

private createPorts

createPorts(type, ports, arr, side) => void

Description needed

Parameters

  •  type: InputPort | OutputPortDescription needed

  •  ports: Port[]Description needed

  •  arr: IOObject[]Description needed

  •  side: 1 | -1Description needed

public positionPorts

positionPorts() => void

Description needed

public setName

setName(name) => void

Description needed

Parameters

  •  name: stringDescription needed

public setSize

setSize(v) => void

Description needed

Parameters

  •  v: VectorDescription needed

public getName

getName() => string

Description needed

Returns

  •   stringDescription needed

public getInputCount

getInputCount() => number

Description needed

Returns

  •   numberDescription needed

public getOutputCount

getOutputCount() => number

Description needed

Returns

  •   numberDescription needed

public getSize

getSize() => Vector

Description needed

Returns

  •   VectorDescription needed

public getInputPortCount

getInputPortCount() => number

Description needed

Returns

  •   numberDescription needed

public getOutputPortCount

getOutputPortCount() => number

Description needed

Returns

  •   numberDescription needed

public getInputPort

getInputPort(i) => InputPort

Description needed

Parameters

  •  i: numberDescription needed

Returns

public getOutputPort

getOutputPort(i) => OutputPort

Description needed

Parameters

  •  i: numberDescription needed

Returns

public getPorts

getPorts() => Port[]

Description needed

Returns

  •   Port[]Description needed

public getGroup

getGroup() => DigitalObjectSet

Description needed

Returns

public copy

copy() => DigitalObjectSet

Description needed

Returns


Static Methods

private CreateSet

CreateSet(objs) => DigitalObjectSet

Description needed

Parameters

  •  objs: IOObject[]Description needed

Returns

public IsValid

IsValid(objects) => false | true

Description needed

Parameters

Returns

  •   false | trueDescription needed

public Create

Create(objects) => ICData

This function is the preferred way to create an instance of ICData.

Parameters

  •  objects: IOObject | DigitalObjectSet[] – The circuit to create the ICData from. If it is an IOObject[], then the objects are copied. If it is a DigitalObjectSet, then the objects input will be modified so that Switch and Button are considered as the only inputs.

Returns

  •   ICData – The newly created ICData.