public void SetState(IStatelike newState) { _myState = newState; }
/** * 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(IStatelike newState) { myState = newState; }