Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CurrentStateVariable.cs
2using Waher.Script;
3
5{
9 [TypeName(TypeNameSerialization.None)]
11 {
16 {
17 }
18
24 public CurrentStateVariable(string Name, object Value)
26 {
27 }
28
35 public CurrentStateVariable(string Name, object Value, string InitExpression)
36 {
37 this.Name = Name;
38 this.Value = Value;
39 this.InitExpression = InitExpression;
40 }
41
47 {
48 return new CurrentStateVariable(this.Name, this.Value, this.InitExpression);
49 }
50
54 [DefaultValueStringEmpty]
55 public string Name { get; set; }
56
60 [DefaultValueNull]
61 public object Value { get; set; }
62
66 [DefaultValueNull]
67 public string InitExpression { get; set; }
68
70 public override string ToString()
71 {
72 return this.Name + "=" + this.Value?.ToString();
73 }
74 }
75}
Class managing a script expression.
Definition: Expression.cs:39
Class representing a persisted state-machine variable value.
string InitExpression
Initialization expression, for reference.
CurrentStateVariable()
Class representing a persisted state-machine variable value.
CurrentStateVariable Clone()
Clones the state variable.
CurrentStateVariable(string Name, object Value, string InitExpression)
Class representing a persisted state-machine variable value.
CurrentStateVariable(string Name, object Value)
Class representing a persisted state-machine variable value.
TypeNameSerialization
How the type name should be serialized.