Ejemplo n.º 1
0
 /// <summary>
 /// Default function for a state-transition.
 /// </summary>
 /// <param name="session">Corresponding Surface protocol run.</param>
 /// <param name="state">Next state.</param>
 internal virtual void changeState(Session session, State state)
 {
     session.changeState(state);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// The constructor.
 /// </summary>
 protected Session()
 {
     state = Start.Instance(this);
     _running = true;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Changes the state of the protocol run.
 /// </summary>
 /// <param name="to">State to transition to.</param>
 internal void changeState(State to)
 {
     Logger.log(TLogLevel.logEverything, "Info: Bottom protocol state: " + to.name);
     state = to;
 }