6 [Obsolete(
"Deprecated with the SimulationStatusMonitor.")]
9 #region Constants / Types
24 #endregion Constants / Types
26 #region Private Fields
29 private double _timeRemaining;
30 #endregion Private Fields
32 #region Public Properties
39 get {
return _timeRemaining; }
42 if (!(Math.Abs(value - _timeRemaining) > Double.Epsilon))
return;
43 _timeRemaining = value;
44 InvokeSimulationStatusChanged();
51 get {
return _state; }
54 if (value == _state)
return;
56 InvokeSimulationStatusChanged();
63 get {
return _exception; }
76 public string Id {
get;
private set; }
80 #endregion Public Properties
91 private void InvokeSimulationStatusChanged()
96 #endregion Public Events
107 #endregion Constructor
Describes the status of a simulation being monitored.
SimulationStatus(string id, string description=null)
Creates a new SimulationStatus object.
delegate void SimulationStatusChangedHandler(object sender, EventArgs e)
A handler that can respond to a SimulationStatusChanged event.
bool BeingPolled
Determines whether the associated simulation is actively being polled.
string Description
The description of the resource being simulated.
string Id
The id of the resource being simulated.
Exception Exception
The exception associated with this simulation, if it is in an error state.
SimulationState
The running state of a simulation represented by a SimulationStatus object.
@ Running
Simulation is being run.
@ Queued
Simulation request has been submitted, but simulation has not been run.
@ Unknown
SimulationStatus is not properly initialized.
@ Error
Simulation is done running and has failed. Results will not be ready.
@ Complete
Simulation is done running and results should be ready.
DateTime LastUpdate
The time the server last responded to a poll request.
SimulationStatusChangedHandler SimulationStatusChanged
An event that fires whenever this SimulationStatus is updated.
SimulationState State
The running state of the simulation represented by this SimulationStatus object.
double TimeRemaining
Returns the estimated time remaining as of the last polled update from the server.