Esempio n. 1
0
 /// <summary>
 /// The constructor.
 /// </summary>
 protected Session()
 {
     state = Start.Instance(this);
     _running = true;
     _startedProtocol = false;
 }
Esempio n. 2
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);
 }
Esempio 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)
 {
     state = to;
 }