Skip to main content

BUFGate

BUFGate

Super class for gates that take one input and have one output, Buffer Gates and Not Gates.


Constructor

public BUFGate

new BUFGate(not)

Creates a Buffer Gate.

Parameters

  •  not: false | true – Determines whether the gate is a Buffer gate or a Not gate.

Properties

No publicly accessible properties on BUFGate


Methods

public activate

activate() => void

Activate function, passes the input port state to the parent class activate function.

public getDisplayName

getDisplayName() => string

Returns a string the name of the gate.

Returns

  •   string – The display name ("NOT Gate" or "Buffer Gate").

public getImageName

getImageName() => string

Returns the file name for the image used to represent the BUFGate.

Returns

  •   string – The string "buf.svg".

Static Methods

No static methods for BUFGate


NOTGate

Not Gate.

A gate that outputs the inverse of the signal that it is given.


Constructor

public NOTGate

new NOTGate()

Initializes a NOT gate.


Properties

No publicly accessible properties on NOTGate


Methods

No methods for NOTGate


Static Methods

No static methods for NOTGate