Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ScriptableTimeSpanAttribute.cs
1
using
System;
2
3
namespace
Waher.Service.IoTBroker.StateMachines.Model.Attributes
4
{
8
public
class
ScriptableTimeSpanAttribute
:
ScriptableAttribute
<TimeSpan>
9
{
15
public
ScriptableTimeSpanAttribute
(
string
Definition
,
StateMachineNode
Node)
16
: base(
Definition
, Node)
17
{
18
}
19
25
public
override
TimeSpan
ParseValue
(
string
s)
26
{
27
if
(TimeSpan.TryParse(s, out TimeSpan t))
28
return
t;
29
else
30
throw
new
ArgumentException(
"Invalid TimeSpan value."
, nameof(s));
31
}
32
}
33
}
Waher.Service.IoTBroker.StateMachines.Model.Attributes.ScriptableAttribute
Abstract base class for scriptable attributes.
Definition:
ScriptableAttribute.cs:14
Waher.Service.IoTBroker.StateMachines.Model.Attributes.ScriptableAttribute< TimeSpan >::Definition
string Definition
Attribute definition
Definition:
ScriptableAttribute.cs:37
Waher.Service.IoTBroker.StateMachines.Model.Attributes.ScriptableTimeSpanAttribute
Scriptable string attribute.
Definition:
ScriptableTimeSpanAttribute.cs:9
Waher.Service.IoTBroker.StateMachines.Model.Attributes.ScriptableTimeSpanAttribute.ScriptableTimeSpanAttribute
ScriptableTimeSpanAttribute(string Definition, StateMachineNode Node)
Scriptable string attribute.
Definition:
ScriptableTimeSpanAttribute.cs:15
Waher.Service.IoTBroker.StateMachines.Model.Attributes.ScriptableTimeSpanAttribute.ParseValue
override TimeSpan ParseValue(string s)
Parses a string representation of a value.
Definition:
ScriptableTimeSpanAttribute.cs:25
Waher.Service.IoTBroker.StateMachines.Model.StateMachineNode
Abstract base class for State-Machine nodes.
Definition:
StateMachineNode.cs:24
Waher.Service.IoTBroker.StateMachines.Model.Attributes
Definition:
ExpressionAttribute.cs:9
Waher.Service.IoTBroker
StateMachines
Model
Attributes
ScriptableTimeSpanAttribute.cs
Generated by
1.9.5