XORGate
XORGate
Xor Gate implementation class. Also know as the inequality detector, returns true when only one of the inputs is a 1.
Constructor
public XORGate
new XORGate(not)
Construtor for the XORgate with a min of 2 inputs and max of 8 inputs and loads svg file with (60,50) size.
Parameters
-
not: false | true
– True for XNOR gate, false for XOR gate.
Properties
No publicly accessible properties on XORGate
Methods
public activate
activate() => void
Activates the XOR gate only when one of the inputs is true but not when both inputs are true.
public getOffset
getOffset() => Vector
Returns a vector which helps position the component's inputs when more inputs are added.
Returns
-
Vector
– A vector representing the clickable offset.
public getDisplayName
getDisplayName() => string
Returns the name of the gate.
Returns
-
string
– The display name of the gate.
public getImageName
getImageName() => string
Returns the name of the image used to display in the frontend.
Returns
-
string
– The name of the image to use to represent this gate.
Static Methods
No static methods for XORGate
XNORGate
Overview needed
Constructor
public XNORGate
new XNORGate()
Calls the constructor of XORGate with the parameter as false, indicating this is a XNOR gate.
Properties
No publicly accessible properties on XNORGate
Methods
No methods for XNORGate
Static Methods
No static methods for XNORGate