Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IMeteringNode.cs
1using System;
2using System.Collections.Generic;
3using System.Threading.Tasks;
6
8{
13 {
17 new string NodeId { get; set; }
18
22 [Obsolete("Use the asynchronous GetParent() method instead.")]
23 new INode Parent { get; }
24
30 Task<INode> GetParent();
31
36 Task LogErrorAsync(string Body);
37
43 Task LogErrorAsync(string EventId, string Body);
44
49 Task LogWarningAsync(string Body);
50
56 Task LogWarningAsync(string EventId, string Body);
57
62 Task LogInformationAsync(string Body);
63
69 Task LogInformationAsync(string EventId, string Body);
70
76 Task LogMessageAsync(MessageType Type, string Body);
77
84 Task LogMessageAsync(MessageType Type, string EventId, string Body);
85
89 Task<bool> RemoveErrorAsync();
90
95 Task<bool> RemoveErrorAsync(string EventId);
96
100 Task<bool> RemoveWarningAsync();
101
106 Task<bool> RemoveWarningAsync(string EventId);
107
112
117 Task<bool> RemoveInformationAsync(string EventId);
118
124
130 Task<bool> RemoveMessageAsync(MessageType Type, string EventId);
131
132 #region Momentary values
133
138 void NewMomentaryValues(params Field[] Values);
139
144 void NewMomentaryValues(IEnumerable<Field> Values);
145
146 #endregion
147 }
148}
Base class for all sensor data fields.
Definition: Field.cs:20
Interface for nodes whose life cycle can be provisioned.
Interface for nodes that are published through the concentrator interface.
Definition: INode.cs:49
Base Interface for all metering nodes.
Task< bool > RemoveMessageAsync(MessageType Type, string EventId)
Logs a message on the node.
Task LogWarningAsync(string Body)
Logs an warning message on the node.
void NewMomentaryValues(params Field[] Values)
Reports newly measured values.
Task LogMessageAsync(MessageType Type, string Body)
Logs a message on the node.
Task< bool > RemoveErrorAsync()
Removes error messages with an empty event ID from the node.
Task< bool > RemoveErrorAsync(string EventId)
Removes error messages with a given event ID from the node.
new INode Parent
Parent Node, or null if a root node.
Task< bool > RemoveMessageAsync(MessageType Type)
Removes messages with empty event IDs from the node.
Task< INode > GetParent()
Gets the parent of the node.
Task< bool > RemoveInformationAsync()
Removes warning messages with an empty event ID from the node.
Task LogInformationAsync(string EventId, string Body)
Logs an informational message on the node.
Task LogErrorAsync(string Body)
Logs an error message on the node.
Task LogMessageAsync(MessageType Type, string EventId, string Body)
Logs a message on the node.
Task< bool > RemoveWarningAsync(string EventId)
Removes warning messages with a given event ID from the node.
Task< bool > RemoveInformationAsync(string EventId)
Removes an informational message on the node.
void NewMomentaryValues(IEnumerable< Field > Values)
Reports newly measured values.
Task LogWarningAsync(string EventId, string Body)
Logs an warning message on the node.
Task LogErrorAsync(string EventId, string Body)
Logs an error message on the node.
Task< bool > RemoveWarningAsync()
Removes warning messages with an empty event ID from the node.
Task LogInformationAsync(string Body)
Logs an informational message on the node.