Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ScriptOptionNode.cs
1using System.Threading.Tasks;
6
8{
13 {
18 : base()
19 {
20 }
21
25 [Page(2, "Script", 100)]
26 [Header(75, "Value:")]
27 [ToolTip(85, "Value of parameter option.")]
28 [Required]
29 public string Value { get; set; }
30
34 [Page(2, "Script", 100)]
35 [Header(38, "Label:")]
36 [ToolTip(86, "Label shown when option is presented.")]
37 [Required]
38 public string Label { get; set; }
39
45 public override Task<string> GetTypeNameAsync(Language Language)
46 {
47 return Language.GetStringAsync(typeof(ScriptNode), 87, "Selectable option");
48 }
49
55 public override Task<bool> AcceptsChildAsync(INode Child)
56 {
57 return Task.FromResult(false);
58 }
59
65 public override Task<bool> AcceptsParentAsync(INode Parent)
66 {
67 return Task.FromResult(Parent is ScriptParameterNodeWithOptions);
68 }
69
70 }
71}
Class managing a page in a data form layout.
Definition: Page.cs:11
Contains information about a language.
Definition: Language.cs:17
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
Definition: Language.cs:209
Represents a string-valued option.
override Task< bool > AcceptsParentAsync(INode Parent)
If the node accepts a presumptive parent, i.e. can be added to that parent (if that parent accepts th...
ScriptOptionNode()
Represents a string-valued option.
override Task< bool > AcceptsChildAsync(INode Child)
If the node accepts a presumptive child, i.e. can receive as a child (if that child accepts the node ...
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
Represents a parameter with possible options on a command.
Node defined by script.
Definition: ScriptNode.cs:19
Virtual node, that can be used as a placeholder for services.
Definition: VirtualNode.cs:28
Interface for nodes that are published through the concentrator interface.
Definition: INode.cs:49
INode Parent
Parent Node, or null if a root node.
Definition: INode.cs:116