Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CurrentStateClone.cs
1using System;
2
4{
8 public class CurrentStateClone
9 {
15 {
16 this.State = State.State;
17 this.HasEnded = State.HasEnded;
18 this.IsRunning = State.IsRunning;
19 this.Expires = State.Expires;
20
21 int i, c = State.VariableValues?.Length ?? 0;
22
23 this.VariableValues = new CurrentStateVariable[c];
24
25 for (i = 0; i < c; i++)
26 this.VariableValues[i] = State.VariableValues[i].Clone();
27 }
28
33 public string State { get; }
34
38 public bool HasEnded { get; }
39
43 public bool IsRunning { get; }
44
49
53 public DateTime Expires { get; }
54 }
55}
Class containing a clone of the current state of a state machine.
CurrentStateClone(CurrentState State)
Class containing a clone of the current state of a state machine.
string State
ID of current state in state-machine. Empty State = State-machine has ended.
CurrentStateVariable[] VariableValues
Current variable values.
Class representing the current state of a state machine.
Definition: CurrentState.cs:20
Class representing a persisted state-machine variable value.