DigitalComponent
DigitalComponent
Overview needed
Constructor
protected DigitalComponent
new DigitalComponent(inputPortCount, outputPortCount, size, inputPositioner, outputPositioner, initialProps)
*Description needed*Parameters
inputPortCount: ClampedValue
– Description neededoutputPortCount: ClampedValue
– Description neededsize: Vector
– Description neededinputPositioner: Positioner<InputPort>
– Description neededoutputPositioner: Positioner<OutputPort>
– Description neededinitialProps: Record
– Description needed
Properties
No publicly accessible properties on DigitalComponent
protected designer: DigitalCircuitDesigner
Description needed
protected inputs: PortSet<InputPort>
Description needed
protected outputs: PortSet<OutputPort>
Description needed
Methods
public activate
activate(signal, i) => void
Activates this component with the given signal through the output port at index i.
Parameters
signal: false | true
– The signal (on or off).i: number
– The index of the output port, must be .
public setDesigner
setDesigner(designer) => void
Description needed
Parameters
-
designer: DigitalCircuitDesigner
– Description needed
public setInputPortCount
setInputPortCount(val) => void
Description needed
Parameters
-
val: number
– Description needed
public setOutputPortCount
setOutputPortCount(val) => void
Description needed
Parameters
-
val: number
– Description needed
public getInputPort
getInputPort(i) => InputPort
Description needed
Parameters
-
i: number
– Description needed
Returns
-
InputPort
– Description needed
public getInputPortPos
getInputPortPos(i) => Vector
Description needed
Parameters
-
i: number
– Description needed
Returns
-
Vector
– Description needed
public getInputPorts
getInputPorts() => InputPort[]
Description needed
Returns
-
InputPort[]
– Description needed
public getInputPortCount
getInputPortCount() => ClampedValue
Description needed
Returns
-
ClampedValue
– Description needed
public getInputs
getInputs() => DigitalWire[]
Description needed
Returns
-
DigitalWire[]
– Description needed
public getOutputPort
getOutputPort(i) => OutputPort
Description needed
Parameters
-
i: number
– Description needed
Returns
-
OutputPort
– Description needed
public getOutputPortPos
getOutputPortPos(i) => Vector
Description needed
Parameters
-
i: number
– Description needed
Returns
-
Vector
– Description needed
public getOutputPorts
getOutputPorts() => OutputPort[]
Description needed
Returns
-
OutputPort[]
– Description needed
public getOutputPortCount
getOutputPortCount() => ClampedValue
Description needed
Returns
-
ClampedValue
– Description needed
public getOutputs
getOutputs() => DigitalWire[]
Description needed
Returns
-
DigitalWire[]
– Description needed
public getConnections
getConnections() => DigitalWire[]
Description needed
Returns
-
DigitalWire[]
– Description needed
public getDesigner
getDesigner() => DigitalCircuitDesigner
Description needed
Returns
-
DigitalCircuitDesigner
– Description needed
Static Methods
No static methods for DigitalComponent