/** * Setter method for the state. * Normally only called by classes implementing the State interface. * @param newState the new state of this context */ public void setState(IStateMode newState) { myState = newState; }