2using System.Collections.Generic;
3using System.Threading.Tasks;
Contains information about a language.
Tokens available in request.
Interface for nodes that are published through the concentrator interface.
Task< IEnumerable< Parameter > > GetDisplayableParametersAsync(Language Language, RequestOrigin Caller)
Gets displayable parameters.
Task< bool > MoveUpAsync(RequestOrigin Caller)
Tries to move the node up.
Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
Task AddAsync(INode Child)
Adds a new child to the node.
bool IsControllable
If the node can be controlled.
Task DestroyAsync()
Destroys the node. If it is a child to a parent node, it is removed from the parent first.
bool IsReadable
If the node can be read.
Task< bool > CanEditAsync(RequestOrigin Caller)
If the node can be edited by the caller.
bool HasCommands
If the node has registered commands or not.
DateTime LastChanged
When the node was last updated.
Task UpdateAsync()
Updates the node (in persisted storage).
NodeState State
Current overall state of the node.
bool HasChildren
If the source has any child sources.
Task< IEnumerable< INode > > ChildNodes
Child nodes. If no child nodes are available, null is returned.
Task< bool > RemoveAsync(INode Child)
Removes a child from the node.
INode Parent
Parent Node, or null if a root node.
Task< IEnumerable< Message > > GetMessagesAsync(RequestOrigin Caller)
Gets messages logged on the node.
string LogId
If provided, an ID for the node, as it would appear or be used in system logs. Can be null,...
Task< IEnumerable< ICommand > > Commands
Available command objects. If no commands are available, null is returned.
string LocalId
If provided, an ID for the node, but unique locally between siblings. Can be null,...
Task< bool > CanAddAsync(RequestOrigin Caller)
If the node can be added to by the caller.
bool ChildrenOrdered
If the children of the node have an intrinsic order (true), or if the order is not important (false).
Task< bool > CanViewAsync(RequestOrigin Caller)
If the node is visible to the caller.
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...
Task< bool > CanDestroyAsync(RequestOrigin Caller)
If the node can be destroyed to by the caller.
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 ...
Task< bool > MoveDownAsync(RequestOrigin Caller)
Tries to move the node down.
Interface for thing references.
NodeState
State of a node.