Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Waher.Groups.GroupNode Class Referenceabstract

Base class for all group nodes. More...

Inheritance diagram for Waher.Groups.GroupNode:
Waher.Groups.IGroupNode Waher.Things.INode Waher.Things.IThingReference Waher.Groups.Metering.NodeTypes.MeteringGroupReference Waher.Groups.Metering.NodeTypes.MeteringNodeReference Waher.Groups.NodeTypes.Group Waher.Groups.NodeTypes.NodeReference Waher.Groups.NodeTypes.Root Waher.Groups.Metering.NodeTypes.MeteringGroup

Public Member Functions

 GroupNode ()
 Base class for all group nodes. More...
 
override bool Equals (object obj)
 Determines whether the specified object is equal to the current object. More...
 
override int GetHashCode ()
 Serves as the default hash function. More...
 
override string ToString ()
 
virtual Task LogErrorAsync (string Body)
 Logs an error message on the node. More...
 
virtual Task LogErrorAsync (string EventId, string Body)
 Logs an error message on the node. More...
 
virtual Task LogWarningAsync (string Body)
 Logs an warning message on the node. More...
 
virtual Task LogWarningAsync (string EventId, string Body)
 Logs an warning message on the node. More...
 
virtual Task LogInformationAsync (string Body)
 Logs an informational message on the node. More...
 
virtual Task LogInformationAsync (string EventId, string Body)
 Logs an informational message on the node. More...
 
virtual Task LogMessageAsync (MessageType Type, string Body)
 Logs a message on the node. More...
 
virtual async Task LogMessageAsync (MessageType Type, string EventId, string Body)
 Logs a message on the node. More...
 
virtual Task< bool > RemoveErrorAsync ()
 Removes error messages with an empty event ID from the node. More...
 
virtual Task< bool > RemoveErrorAsync (string EventId)
 Removes error messages with a given event ID from the node. More...
 
virtual Task< bool > RemoveWarningAsync ()
 Removes warning messages with an empty event ID from the node. More...
 
virtual Task< bool > RemoveWarningAsync (string EventId)
 Removes warning messages with a given event ID from the node. More...
 
virtual Task< bool > RemoveInformationAsync ()
 Removes warning messages with an empty event ID from the node. More...
 
virtual Task< bool > RemoveInformationAsync (string EventId)
 Removes an informational message on the node. More...
 
virtual Task< bool > RemoveMessageAsync (MessageType Type)
 Removes messages with empty event IDs from the node. More...
 
virtual async Task< bool > RemoveMessageAsync (MessageType Type, string EventId)
 Logs a message on the node. More...
 
abstract Task< string > GetTypeNameAsync (Language Language)
 Gets the type name of the node. More...
 
async Task< INodeGetParent ()
 Gets the parent of the node. More...
 
async Task< T > GetAncestor< T > ()
 Tries to get an ancestor node of a given type, if one exists. More...
 
virtual Task< bool > CanViewAsync (RequestOrigin Caller)
 If the node is visible to the caller. More...
 
virtual Task< bool > CanEditAsync (RequestOrigin Caller)
 If the node can be edited by the caller. More...
 
virtual Task< bool > CanAddAsync (RequestOrigin Caller)
 If the node can be added to by the caller. More...
 
virtual Task< bool > CanDestroyAsync (RequestOrigin Caller)
 If the node can be destroyed to by the caller. More...
 
virtual async Task< IEnumerable< Parameter > > GetDisplayableParametersAsync (Language Language, RequestOrigin Caller)
 Gets displayable parameters. More...
 
async Task< Parameter[]> GetDisplayableParameterAraryAsync (Language Language, RequestOrigin Caller)
 Gets displayable parameters. More...
 
virtual async Task< IEnumerable< Message > > GetMessagesAsync (RequestOrigin Caller)
 Gets messages logged on the node. More...
 
async Task< Message[]> GetMessageArrayAsync (RequestOrigin Caller)
 Gets messages logged on the node. More...
 
virtual async Task< bool > MoveUpAsync (RequestOrigin Caller)
 Tries to move the node up. More...
 
virtual async Task< bool > MoveDownAsync (RequestOrigin Caller)
 Tries to move the node down. More...
 
virtual async Task< bool > MoveUpAsync (GroupNode Child, RequestOrigin Caller)
 Tries to move the child node up. More...
 
virtual async Task< bool > MoveDownAsync (GroupNode Child, RequestOrigin Caller)
 Tries to move the child node down. More...
 
abstract Task< bool > AcceptsParentAsync (INode Parent)
 If the node accepts a presumptive parent, i.e. can be added to that parent (if that parent accepts the node as a child). More...
 
abstract 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 as a parent). More...
 
virtual async Task AddAsync (INode Child)
 Adds a new child to the node. More...
 
virtual async Task UpdateAsync ()
 Updates the node (in persisted storage). More...
 
virtual async Task< bool > RemoveAsync (INode Child)
 Removes a child from the node. More...
 
virtual async Task DestroyAsync ()
 Destroys the node. If it is a child to a parent node, it is removed from the parent first. More...
 

Static Public Member Functions

static implicit operator ThingReference (GroupNode Node)
 Converts a GroupNode to a ThingReference object. More...
 
static async Task< string > GetUniqueGroupId (string GroupId)
 Gets a Group ID, based on GroupId that is not already available in the database. More...
 

Protected Member Functions

virtual GroupNode[] SortChildrenAfterLoadLocked (List< GroupNode > Children)
 Method that allows the node to sort its children, after they have been loaded. More...
 
virtual GroupNode[] CheckOrderLocked (List< GroupNode > Children)
 Checks the ordering of children. More...
 
virtual async Task NodeUpdated ()
 Persists changes to the node, and generates a node updated event. More...
 

Properties

Guid ObjectId [get, set]
 Object ID in persistence layer. More...
 
Guid ParentId [get, set]
 Object ID of parent node in persistence layer. More...
 
DateTime Created [get, set]
 When node was created. More...
 
DateTime Updated [get, set]
 When node was last updated. If it has not been updated, value will be DateTime.MinValue. More...
 
int SiblingOrdinal [get, set]
 Sibling ordinal, used to order siblings when ordered. More...
 
string NodeId [get, set]
 ID of node. More...
 
string SourceId [get]
 Optional ID of source containing node. More...
 
string Partition [get]
 Optional partition in which the Node ID is unique. More...
 
virtual string LocalId [get]
 If provided, an ID for the node, but unique locally between siblings. Can be null, if Local ID equal to Node ID. More...
 
virtual string LogId [get]
 If provided, an ID for the node, as it would appear or be used in system logs. Can be null, if Log ID equal to Node ID. More...
 
bool HasChildren [get]
 If the source has any child sources. More...
 
virtual bool ChildrenOrdered [get]
 If the children of the node have an intrinsic order (true), or if the order is not important (false). More...
 
virtual bool IsReadable [get]
 If the node can be read. More...
 
virtual bool IsControllable [get]
 If the node can be controlled. More...
 
virtual bool HasCommands [get]
 If the node has registered commands or not. More...
 
INode Parent [get]
 Parent Node, or null if a root node. More...
 
DateTime LastChanged [get]
 When the node was last updated. More...
 
NodeState State [get, set]
 Current overall state of the node. More...
 
Task< IEnumerable< INode > > ChildNodes [get]
 Child nodes. If no child nodes are available, null is returned. More...
 
virtual Task< IEnumerable< ICommand > > Commands [get]
 Available command objects. If no commands are available, null is returned. More...
 

Events

EventHandlerAsync OnUpdate = null
 Event raised when node has been updated. More...
 

Detailed Description

Base class for all group nodes.

Definition at line 28 of file GroupNode.cs.

Constructor & Destructor Documentation

◆ GroupNode()

Waher.Groups.GroupNode.GroupNode ( )

Base class for all group nodes.

Definition at line 47 of file GroupNode.cs.

Member Function Documentation

◆ AcceptsChildAsync()

abstract Task< bool > Waher.Groups.GroupNode.AcceptsChildAsync ( INode  Child)
pure virtual

If the node accepts a presumptive child, i.e. can receive as a child (if that child accepts the node as a parent).

Parameters
ChildPresumptive child node.
Returns
If the child is acceptable.

Implements Waher.Things.INode.

Implemented in Waher.Groups.Metering.NodeTypes.MeteringGroup, Waher.Groups.Metering.NodeTypes.MeteringGroupReference, Waher.Groups.Metering.NodeTypes.MeteringNodeReference, Waher.Groups.NodeTypes.Group, Waher.Groups.NodeTypes.NodeReference, and Waher.Groups.NodeTypes.Root.

◆ AcceptsParentAsync()

abstract Task< bool > Waher.Groups.GroupNode.AcceptsParentAsync ( INode  Parent)
pure virtual

If the node accepts a presumptive parent, i.e. can be added to that parent (if that parent accepts the node as a child).

Parameters
ParentPresumptive parent node.
Returns
If the parent is acceptable.

Implements Waher.Things.INode.

Implemented in Waher.Groups.Metering.NodeTypes.MeteringGroup, Waher.Groups.Metering.NodeTypes.MeteringGroupReference, Waher.Groups.Metering.NodeTypes.MeteringNodeReference, Waher.Groups.NodeTypes.Group, Waher.Groups.NodeTypes.NodeReference, and Waher.Groups.NodeTypes.Root.

◆ AddAsync()

virtual async Task Waher.Groups.GroupNode.AddAsync ( INode  Child)
virtual

Adds a new child to the node.

Parameters
ChildNew child to add.

Implements Waher.Things.INode.

Definition at line 1093 of file GroupNode.cs.

◆ CanAddAsync()

virtual Task< bool > Waher.Groups.GroupNode.CanAddAsync ( RequestOrigin  Caller)
virtual

If the node can be added to by the caller.

Parameters
CallerInformation about caller.
Returns
If the node can be added to by the caller.

Implements Waher.Things.INode.

Definition at line 834 of file GroupNode.cs.

◆ CanDestroyAsync()

virtual Task< bool > Waher.Groups.GroupNode.CanDestroyAsync ( RequestOrigin  Caller)
virtual

If the node can be destroyed to by the caller.

Parameters
CallerInformation about caller.
Returns
If the node can be destroyed to by the caller.

Implements Waher.Things.INode.

Reimplemented in Waher.Groups.NodeTypes.Root.

Definition at line 844 of file GroupNode.cs.

◆ CanEditAsync()

virtual Task< bool > Waher.Groups.GroupNode.CanEditAsync ( RequestOrigin  Caller)
virtual

If the node can be edited by the caller.

Parameters
CallerInformation about caller.
Returns
If the node can be edited by the caller.

Implements Waher.Things.INode.

Reimplemented in Waher.Groups.NodeTypes.Root.

Definition at line 824 of file GroupNode.cs.

◆ CanViewAsync()

virtual Task< bool > Waher.Groups.GroupNode.CanViewAsync ( RequestOrigin  Caller)
virtual

If the node is visible to the caller.

Parameters
CallerInformation about caller.
Returns
If the node is visible to the caller.

Implements Waher.Things.INode.

Definition at line 814 of file GroupNode.cs.

◆ CheckOrderLocked()

virtual GroupNode[] Waher.Groups.GroupNode.CheckOrderLocked ( List< GroupNode Children)
protectedvirtual

Checks the ordering of children.

Parameters
ChildrenChild nodes.
Returns
Child nodes that need to be updated, or null if no such nodes.

Definition at line 771 of file GroupNode.cs.

◆ DestroyAsync()

virtual async Task Waher.Groups.GroupNode.DestroyAsync ( )
virtual

Destroys the node. If it is a child to a parent node, it is removed from the parent first.

Implements Waher.Things.INode.

Definition at line 1278 of file GroupNode.cs.

◆ Equals()

override bool Waher.Groups.GroupNode.Equals ( object  obj)

Determines whether the specified object is equal to the current object.

Parameters
objThe object to compare with the current object.
Returns
true if the specified object is equal to the current object; otherwise, false.

Definition at line 67 of file GroupNode.cs.

◆ GetAncestor< T >()

async Task< T > Waher.Groups.GroupNode.GetAncestor< T > ( )

Tries to get an ancestor node of a given type, if one exists.

Returns
Ancestor Node of given type, if found, null otherwise.
Type Constraints
T :INode 

Definition at line 647 of file GroupNode.cs.

◆ GetDisplayableParameterAraryAsync()

async Task< Parameter[]> Waher.Groups.GroupNode.GetDisplayableParameterAraryAsync ( Language  Language,
RequestOrigin  Caller 
)

Gets displayable parameters.

Parameters
LanguageLanguage to use.
CallerInformation about caller.
Returns
Set of displayable parameters.

Definition at line 909 of file GroupNode.cs.

◆ GetDisplayableParametersAsync()

virtual async Task< IEnumerable< Parameter > > Waher.Groups.GroupNode.GetDisplayableParametersAsync ( Language  Language,
RequestOrigin  Caller 
)
virtual

Gets displayable parameters.

Parameters
LanguageLanguage to use.
CallerInformation about caller.
Returns
Set of displayable parameters.

Implements Waher.Things.INode.

Definition at line 855 of file GroupNode.cs.

◆ GetHashCode()

override int Waher.Groups.GroupNode.GetHashCode ( )

Serves as the default hash function.

Returns
A hash code for the current object.

Definition at line 79 of file GroupNode.cs.

◆ GetMessageArrayAsync()

async Task< Message[]> Waher.Groups.GroupNode.GetMessageArrayAsync ( RequestOrigin  Caller)

Gets messages logged on the node.

Returns
Array of messages.

Definition at line 936 of file GroupNode.cs.

◆ GetMessagesAsync()

virtual async Task< IEnumerable< Message > > Waher.Groups.GroupNode.GetMessagesAsync ( RequestOrigin  Caller)
virtual

Gets messages logged on the node.

Returns
Set of messages.

Implements Waher.Things.INode.

Definition at line 920 of file GroupNode.cs.

◆ GetParent()

async Task< INode > Waher.Groups.GroupNode.GetParent ( )

Gets the parent of the node.

Returns
Parent instance.
Exceptions
ExceptionIf parent is not found.

Implements Waher.Groups.IGroupNode.

Definition at line 628 of file GroupNode.cs.

◆ GetTypeNameAsync()

abstract Task< string > Waher.Groups.GroupNode.GetTypeNameAsync ( Language  Language)
pure virtual

◆ GetUniqueGroupId()

static async Task< string > Waher.Groups.GroupNode.GetUniqueGroupId ( string  GroupId)
static

Gets a Group ID, based on GroupId that is not already available in the database.

Parameters
GroupIdDesired Group ID
Returns
A Group ID that does not exist in the database.

Definition at line 536 of file GroupNode.cs.

◆ LogErrorAsync() [1/2]

virtual Task Waher.Groups.GroupNode.LogErrorAsync ( string  Body)
virtual

Logs an error message on the node.

Parameters
BodyMessage body.

Implements Waher.Groups.IGroupNode.

Definition at line 192 of file GroupNode.cs.

◆ LogErrorAsync() [2/2]

virtual Task Waher.Groups.GroupNode.LogErrorAsync ( string  EventId,
string  Body 
)
virtual

Logs an error message on the node.

Parameters
EventIdOptional Event ID.
BodyMessage body.

Implements Waher.Groups.IGroupNode.

Definition at line 202 of file GroupNode.cs.

◆ LogInformationAsync() [1/2]

virtual Task Waher.Groups.GroupNode.LogInformationAsync ( string  Body)
virtual

Logs an informational message on the node.

Parameters
BodyMessage body.

Implements Waher.Groups.IGroupNode.

Definition at line 230 of file GroupNode.cs.

◆ LogInformationAsync() [2/2]

virtual Task Waher.Groups.GroupNode.LogInformationAsync ( string  EventId,
string  Body 
)
virtual

Logs an informational message on the node.

Parameters
EventIdOptional Event ID.
BodyMessage body.

Implements Waher.Groups.IGroupNode.

Definition at line 240 of file GroupNode.cs.

◆ LogMessageAsync() [1/2]

virtual Task Waher.Groups.GroupNode.LogMessageAsync ( MessageType  Type,
string  Body 
)
virtual

Logs a message on the node.

Parameters
TypeType of message.
BodyMessage body.

Implements Waher.Groups.IGroupNode.

Definition at line 250 of file GroupNode.cs.

◆ LogMessageAsync() [2/2]

virtual async Task Waher.Groups.GroupNode.LogMessageAsync ( MessageType  Type,
string  EventId,
string  Body 
)
virtual

Logs a message on the node.

Parameters
TypeType of message.
EventIdOptional Event ID.
BodyMessage body.

Implements Waher.Groups.IGroupNode.

Definition at line 261 of file GroupNode.cs.

◆ LogWarningAsync() [1/2]

virtual Task Waher.Groups.GroupNode.LogWarningAsync ( string  Body)
virtual

Logs an warning message on the node.

Parameters
BodyMessage body.

Implements Waher.Groups.IGroupNode.

Definition at line 211 of file GroupNode.cs.

◆ LogWarningAsync() [2/2]

virtual Task Waher.Groups.GroupNode.LogWarningAsync ( string  EventId,
string  Body 
)
virtual

Logs an warning message on the node.

Parameters
EventIdOptional Event ID.
BodyMessage body.

Implements Waher.Groups.IGroupNode.

Definition at line 221 of file GroupNode.cs.

◆ MoveDownAsync() [1/2]

virtual async Task< bool > Waher.Groups.GroupNode.MoveDownAsync ( GroupNode  Child,
RequestOrigin  Caller 
)
virtual

Tries to move the child node down.

Parameters
ChildChild node to move.
CallerInformation about caller.
Returns
If the child node was moved down.

Definition at line 1029 of file GroupNode.cs.

◆ MoveDownAsync() [2/2]

virtual async Task< bool > Waher.Groups.GroupNode.MoveDownAsync ( RequestOrigin  Caller)
virtual

Tries to move the node down.

Parameters
CallerInformation about caller.
Returns
If the node was moved down.

Implements Waher.Things.INode.

Definition at line 964 of file GroupNode.cs.

◆ MoveUpAsync() [1/2]

virtual async Task< bool > Waher.Groups.GroupNode.MoveUpAsync ( GroupNode  Child,
RequestOrigin  Caller 
)
virtual

Tries to move the child node up.

Parameters
ChildChild node to move.
CallerInformation about caller.
Returns
If the child node was moved up.

Definition at line 978 of file GroupNode.cs.

◆ MoveUpAsync() [2/2]

virtual async Task< bool > Waher.Groups.GroupNode.MoveUpAsync ( RequestOrigin  Caller)
virtual

Tries to move the node up.

Parameters
CallerInformation about caller.
Returns
If the node was moved up.

Implements Waher.Things.INode.

Definition at line 951 of file GroupNode.cs.

◆ NodeUpdated()

virtual async Task Waher.Groups.GroupNode.NodeUpdated ( )
protectedvirtual

Persists changes to the node, and generates a node updated event.

Definition at line 1174 of file GroupNode.cs.

◆ operator ThingReference()

static implicit Waher.Groups.GroupNode.operator ThingReference ( GroupNode  Node)
static

Converts a GroupNode to a ThingReference object.

Parameters
NodeMetering node.

Definition at line 55 of file GroupNode.cs.

◆ RemoveAsync()

virtual async Task< bool > Waher.Groups.GroupNode.RemoveAsync ( INode  Child)
virtual

Removes a child from the node.

Parameters
ChildChild to remove.
Returns
If the Child node was found and removed.

Implements Waher.Things.INode.

Definition at line 1223 of file GroupNode.cs.

◆ RemoveErrorAsync() [1/2]

virtual Task< bool > Waher.Groups.GroupNode.RemoveErrorAsync ( )
virtual

Removes error messages with an empty event ID from the node.

Implements Waher.Groups.IGroupNode.

Definition at line 357 of file GroupNode.cs.

◆ RemoveErrorAsync() [2/2]

virtual Task< bool > Waher.Groups.GroupNode.RemoveErrorAsync ( string  EventId)
virtual

Removes error messages with a given event ID from the node.

Parameters
EventIdOptional Event ID.

Implements Waher.Groups.IGroupNode.

Definition at line 366 of file GroupNode.cs.

◆ RemoveInformationAsync() [1/2]

virtual Task< bool > Waher.Groups.GroupNode.RemoveInformationAsync ( )
virtual

Removes warning messages with an empty event ID from the node.

Implements Waher.Groups.IGroupNode.

Definition at line 391 of file GroupNode.cs.

◆ RemoveInformationAsync() [2/2]

virtual Task< bool > Waher.Groups.GroupNode.RemoveInformationAsync ( string  EventId)
virtual

Removes an informational message on the node.

Parameters
EventIdOptional Event ID.

Implements Waher.Groups.IGroupNode.

Definition at line 400 of file GroupNode.cs.

◆ RemoveMessageAsync() [1/2]

virtual Task< bool > Waher.Groups.GroupNode.RemoveMessageAsync ( MessageType  Type)
virtual

Removes messages with empty event IDs from the node.

Parameters
TypeType of message.

Implements Waher.Groups.IGroupNode.

Definition at line 409 of file GroupNode.cs.

◆ RemoveMessageAsync() [2/2]

virtual async Task< bool > Waher.Groups.GroupNode.RemoveMessageAsync ( MessageType  Type,
string  EventId 
)
virtual

Logs a message on the node.

Parameters
TypeType of message.
EventIdOptional Event ID.

Implements Waher.Groups.IGroupNode.

Definition at line 419 of file GroupNode.cs.

◆ RemoveWarningAsync() [1/2]

virtual Task< bool > Waher.Groups.GroupNode.RemoveWarningAsync ( )
virtual

Removes warning messages with an empty event ID from the node.

Implements Waher.Groups.IGroupNode.

Definition at line 374 of file GroupNode.cs.

◆ RemoveWarningAsync() [2/2]

virtual Task< bool > Waher.Groups.GroupNode.RemoveWarningAsync ( string  EventId)
virtual

Removes warning messages with a given event ID from the node.

Parameters
EventIdOptional Event ID.

Implements Waher.Groups.IGroupNode.

Definition at line 383 of file GroupNode.cs.

◆ SortChildrenAfterLoadLocked()

virtual GroupNode[] Waher.Groups.GroupNode.SortChildrenAfterLoadLocked ( List< GroupNode Children)
protectedvirtual

Method that allows the node to sort its children, after they have been loaded.

Parameters
ChildrenLoaded children.
Returns
Child nodes that need to be updated, or null if no such nodes.

Definition at line 752 of file GroupNode.cs.

◆ ToString()

override string Waher.Groups.GroupNode.ToString ( )

Definition at line 167 of file GroupNode.cs.

◆ UpdateAsync()

virtual async Task Waher.Groups.GroupNode.UpdateAsync ( )
virtual

Updates the node (in persisted storage).

Implements Waher.Things.INode.

Definition at line 1210 of file GroupNode.cs.

Property Documentation

◆ ChildNodes

Task<IEnumerable<INode> > Waher.Groups.GroupNode.ChildNodes
get

Child nodes. If no child nodes are available, null is returned.

Implements Waher.Things.INode.

Definition at line 694 of file GroupNode.cs.

◆ ChildrenOrdered

virtual bool Waher.Groups.GroupNode.ChildrenOrdered
get

If the children of the node have an intrinsic order (true), or if the order is not important (false).

Implements Waher.Things.INode.

Definition at line 596 of file GroupNode.cs.

◆ Commands

virtual Task<IEnumerable<ICommand> > Waher.Groups.GroupNode.Commands
get

Available command objects. If no commands are available, null is returned.

Implements Waher.Things.INode.

Definition at line 1337 of file GroupNode.cs.

◆ Created

DateTime Waher.Groups.GroupNode.Created
getset

When node was created.

Definition at line 108 of file GroupNode.cs.

◆ HasChildren

bool Waher.Groups.GroupNode.HasChildren
get

If the source has any child sources.

Implements Waher.Things.INode.

Definition at line 582 of file GroupNode.cs.

◆ HasCommands

virtual bool Waher.Groups.GroupNode.HasCommands
get

If the node has registered commands or not.

Implements Waher.Things.INode.

Definition at line 614 of file GroupNode.cs.

◆ IsControllable

virtual bool Waher.Groups.GroupNode.IsControllable
get

If the node can be controlled.

Implements Waher.Things.INode.

Definition at line 608 of file GroupNode.cs.

◆ IsReadable

virtual bool Waher.Groups.GroupNode.IsReadable
get

If the node can be read.

Implements Waher.Things.INode.

Definition at line 602 of file GroupNode.cs.

◆ LastChanged

DateTime Waher.Groups.GroupNode.LastChanged
get

When the node was last updated.

Implements Waher.Things.INode.

Definition at line 669 of file GroupNode.cs.

◆ LocalId

virtual string Waher.Groups.GroupNode.LocalId
get

If provided, an ID for the node, but unique locally between siblings. Can be null, if Local ID equal to Node ID.

Implements Waher.Things.INode.

Definition at line 563 of file GroupNode.cs.

◆ LogId

virtual string Waher.Groups.GroupNode.LogId
get

If provided, an ID for the node, as it would appear or be used in system logs. Can be null, if Log ID equal to Node ID.

Implements Waher.Things.INode.

Definition at line 569 of file GroupNode.cs.

◆ NodeId

string Waher.Groups.GroupNode.NodeId
getset

ID of node.

Implements Waher.Groups.IGroupNode.

Definition at line 141 of file GroupNode.cs.

◆ ObjectId

Guid Waher.Groups.GroupNode.ObjectId
getset

Object ID in persistence layer.

Definition at line 90 of file GroupNode.cs.

◆ Parent

INode Waher.Groups.GroupNode.Parent
get

Parent Node, or null if a root node.

Implements Waher.Things.INode.

Definition at line 621 of file GroupNode.cs.

◆ ParentId

Guid Waher.Groups.GroupNode.ParentId
getset

Object ID of parent node in persistence layer.

Definition at line 99 of file GroupNode.cs.

◆ Partition

string Waher.Groups.GroupNode.Partition
get

Optional partition in which the Node ID is unique.

Implements Waher.Things.IThingReference.

Definition at line 164 of file GroupNode.cs.

◆ SiblingOrdinal

int Waher.Groups.GroupNode.SiblingOrdinal
getset

Sibling ordinal, used to order siblings when ordered.

Definition at line 128 of file GroupNode.cs.

◆ SourceId

string Waher.Groups.GroupNode.SourceId
get

Optional ID of source containing node.

Implements Waher.Things.IThingReference.

Definition at line 158 of file GroupNode.cs.

◆ State

NodeState Waher.Groups.GroupNode.State
getset

Current overall state of the node.

Implements Waher.Things.INode.

Definition at line 684 of file GroupNode.cs.

◆ Updated

DateTime Waher.Groups.GroupNode.Updated
getset

When node was last updated. If it has not been updated, value will be DateTime.MinValue.

Definition at line 118 of file GroupNode.cs.

Event Documentation

◆ OnUpdate

EventHandlerAsync Waher.Groups.GroupNode.OnUpdate = null

Event raised when node has been updated.

Definition at line 524 of file GroupNode.cs.


The documentation for this class was generated from the following file: