Skip to main content

DigitalCircuitDesigner

DigitalCircuitDesigner

Overview needed


Constructor

public DigitalCircuitDesigner

new DigitalCircuitDesigner(propagationTime)

*Description needed*

Parameters

  •  propagationTime: numberDescription needed

Properties

No publicly accessible properties on DigitalCircuitDesigner

private ics: ICData[]

Description needed

private objects: DigitalComponent[]

Description needed

private wires: DigitalWire[]

Description needed

private propagationQueue: Propagation[]

Description needed

private updateRequests: number

Description needed

private propagationTime: number

Description needed

private paused: false | true

Description needed

private updateCallbacks: DigitalEvent[]

Description needed

private timeout: number

Description needed


Methods

public reset

reset() => void

Description needed

public addCallback

addCallback(callback) => void

Description needed

Parameters

public removeCallback

removeCallback(callback) => void

Description needed

Parameters

private callback

callback(ev) => void

Description needed

Parameters

public forceUpdate

forceUpdate() => void

Method to call when you want to force an update Used when something changed but isn't propagated (i.e. Clock updated but wasn't connected to anything).

public propagate

propagate(receiver, signal) => void

Add a propagation request to the queue. Also checks if there are currently no requests and starts the cycle if there aren't.

Parameters

private update

update() => false | true

Description needed

Returns

  •   false | trueDescription needed

public pause

pause() => void

Description needed

public resume

resume() => void

Description needed

public createWire

createWire(p1, p2) => DigitalWire

Description needed

Parameters

  •  p1: OutputPortDescription needed

  •  p2: InputPortDescription needed

Returns

createWire(p2, p1) => DigitalWire

Description needed

Parameters

  •  p2: InputPortDescription needed

  •  p1: OutputPortDescription needed

Returns

public addICData

addICData(data) => void

Description needed

Parameters

  •  data: ICDataDescription needed

public removeICData

removeICData(data) => void

Description needed

Parameters

  •  data: ICDataDescription needed

public addObjects

addObjects(objects) => void

Description needed

Parameters

public addObject

addObject(obj) => void

Description needed

Parameters

public addWire

addWire(wire) => void

Description needed

Parameters

public remove

remove(o) => void

Description needed

Parameters

public removeObject

removeObject(obj) => void

Description needed

Parameters

public removeWire

removeWire(wire) => void

Description needed

Parameters

public replace

replace(designer) => void

Description needed

Parameters

public shift

shift(obj, i) => number

Description needed

Parameters

Returns

  •   numberDescription needed

public getGroup

getGroup() => DigitalObjectSet

Description needed

Returns

public getObjects

getObjects() => DigitalComponent[]

Description needed

Returns

public getWires

getWires() => DigitalWire[]

Description needed

Returns

public getICData

getICData() => ICData[]

Description needed

Returns

  •   ICData[]Description needed

Static Methods

No static methods for DigitalCircuitDesigner