module:Gate(appInstance, name)

Gate is a box that processes the states of its input connectors and returns the result in its output connectors.

new module:Gate(appInstance, name)

Parameters:
Name Type Description
appInstance App

instance of App

name string

name of the gate (and, not, xor...)

Extends

  • Box

Members

static validGates :Set

array of valid gate names

Methods

refreshState()

proccess the input connector states and reflect them in the output connector states according to the logic corresponding to this gate's name