Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Waher.Things.ThingReference Class Reference

Contains a reference to a thing More...

Inheritance diagram for Waher.Things.ThingReference:
Waher.Things.IThingReference Waher.Things.ThingError

Public Member Functions

 ThingReference ()
 Contains a reference to a thing More...
 
 ThingReference (string NodeId)
 Contains a reference to a thing More...
 
 ThingReference (string NodeId, string SourceId)
 Contains a reference to a thing More...
 
 ThingReference (string NodeId, string SourceId, string Partition)
 Contains a reference to a thing More...
 
 ThingReference (IThingReference Reference)
 Contains a reference to a thing More...
 
bool SameThing (IThingReference Ref)
 Checks if the thing reference is equal to other thing reference. 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 ()
 

Properties

string ObjectId [get, set]
 Persisted object ID. Is null if object not persisted. More...
 
string NodeId [get, set]
 ID of node. More...
 
string SourceId [get, set]
 Optional ID of source containing node. More...
 
string Partition [get, set]
 Optional partition in which the Node ID is unique. More...
 
bool IsEmpty [get]
 If the reference is an empty reference. More...
 
string Key [get]
 Key for thing reference: [NodeId[, SourceId[, Partition]]] More...
 
static ThingReference Empty [get]
 Empty thing reference. Can be used by sensors that are not part of a concentrator during readout. More...
 

Detailed Description

Contains a reference to a thing

Definition at line 12 of file ThingReference.cs.

Constructor & Destructor Documentation

◆ ThingReference() [1/5]

Waher.Things.ThingReference.ThingReference ( )

Contains a reference to a thing

Definition at line 24 of file ThingReference.cs.

◆ ThingReference() [2/5]

Waher.Things.ThingReference.ThingReference ( string  NodeId)

Contains a reference to a thing

Parameters
NodeIdID of node.

Definition at line 33 of file ThingReference.cs.

◆ ThingReference() [3/5]

Waher.Things.ThingReference.ThingReference ( string  NodeId,
string  SourceId 
)

Contains a reference to a thing

Parameters
NodeIdID of node.
SourceIdOptional ID of source containing node.

Definition at line 43 of file ThingReference.cs.

◆ ThingReference() [4/5]

Waher.Things.ThingReference.ThingReference ( string  NodeId,
string  SourceId,
string  Partition 
)

Contains a reference to a thing

Parameters
NodeIdID of node.
SourceIdOptional ID of source containing node.
PartitionOptional partition in which the Node ID is unique.

Definition at line 54 of file ThingReference.cs.

◆ ThingReference() [5/5]

Waher.Things.ThingReference.ThingReference ( IThingReference  Reference)

Contains a reference to a thing

Parameters
ReferenceThing reference interface.

Definition at line 65 of file ThingReference.cs.

Member Function Documentation

◆ Equals()

override bool Waher.Things.ThingReference.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 165 of file ThingReference.cs.

◆ GetHashCode()

override int Waher.Things.ThingReference.GetHashCode ( )

Serves as the default hash function.

Returns
A hash code for the current object.

Definition at line 177 of file ThingReference.cs.

◆ SameThing()

bool Waher.Things.ThingReference.SameThing ( IThingReference  Ref)

Checks if the thing reference is equal to other thing reference.

Parameters
RefSecond thing reference.
Returns
If they point to the same thing.

Definition at line 155 of file ThingReference.cs.

◆ ToString()

override string Waher.Things.ThingReference.ToString ( )

Definition at line 190 of file ThingReference.cs.

Property Documentation

◆ Empty

ThingReference Waher.Things.ThingReference.Empty
staticget

Empty thing reference. Can be used by sensors that are not part of a concentrator during readout.

Definition at line 187 of file ThingReference.cs.

◆ IsEmpty

bool Waher.Things.ThingReference.IsEmpty
get

If the reference is an empty reference.

Definition at line 115 of file ThingReference.cs.

◆ Key

string Waher.Things.ThingReference.Key
get

Key for thing reference: [NodeId[, SourceId[, Partition]]]

Definition at line 123 of file ThingReference.cs.

◆ NodeId

string Waher.Things.ThingReference.NodeId
getset

ID of node.

Implements Waher.Things.IThingReference.

Definition at line 86 of file ThingReference.cs.

◆ ObjectId

string Waher.Things.ThingReference.ObjectId
getset

Persisted object ID. Is null if object not persisted.

Definition at line 76 of file ThingReference.cs.

◆ Partition

string Waher.Things.ThingReference.Partition
getset

Optional partition in which the Node ID is unique.

Implements Waher.Things.IThingReference.

Definition at line 106 of file ThingReference.cs.

◆ SourceId

string Waher.Things.ThingReference.SourceId
getset

Optional ID of source containing node.

Implements Waher.Things.IThingReference.

Definition at line 96 of file ThingReference.cs.


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