Changes the state of this to the desired one.
a Switch
true if this should be active, and false otherwise