## 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)
`modules/editorElements/Gate.js`, `line 11`

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `appInstance` | App | instance of App
  `name` | string | name of the gate (and, not, xor...)

### Extends

- Box

### Members

#### static validGates :Set
`modules/editorElements/Gate.js`, `line 74`

  array of valid gate names

### Methods

#### refreshState()
`modules/editorElements/Gate.js`, `line 91`

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