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 outputPorts: OutputPort[]
Description needed
Methods
private createPorts
createPorts(type, ports, arr, side) => void
Description needed
Parameters
type: InputPort | OutputPort
– Description neededports: Port[]
– Description neededarr: IOObject[]
– Description neededside: 1 | -1
– Description needed
public getOutputCount
getOutputCount() => number
Description needed
Returns
-
number
– Description needed
public getInputPortCount
getInputPortCount() => number
Description needed
Returns
-
number
– Description needed
public getOutputPortCount
getOutputPortCount() => number
Description needed
Returns
-
number
– Description needed
public getInputPort
getInputPort(i) => InputPort
Description needed
Parameters
-
i: number
– Description needed
Returns
-
InputPort
– Description needed
public getOutputPort
getOutputPort(i) => OutputPort
Description needed
Parameters
-
i: number
– Description needed
Returns
-
OutputPort
– Description needed
public getGroup
getGroup() => DigitalObjectSet
Description needed
Returns
-
DigitalObjectSet
– Description needed
public copy
copy() => DigitalObjectSet
Description needed
Returns
-
DigitalObjectSet
– Description needed
Static Methods
private CreateSet
CreateSet(objs) => DigitalObjectSet
Description needed
Parameters
-
objs: IOObject[]
– Description needed
Returns
-
DigitalObjectSet
– Description needed
public IsValid
IsValid(objects) => false | true
Description needed
Parameters
-
objects: IOObject | DigitalObjectSet[]
– Description needed
Returns
-
false | true
– Description 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.