Class AbstractGraphElement
Inheritance
System.Object
AbstractGraphElement
Assembly: Mars.Components.dll
Syntax
public abstract class AbstractGraphElement : object, IGraphEntity, IEqualityComparer<IGraphEntity>, IEquatable<AbstractGraphElement>
Properties
Attributes
Gets all all data associated to this edge get out by the importer from the provided source
Declaration
public IDictionary<string, object> Attributes { get; set; }
Property Value
Type |
Description |
IDictionary<System.String, System.Object> |
|
Index
Gets the unique index number for to identify this data-object within the environment-network.
Declaration
public int Index { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Equals(AbstractGraphElement)
Equality implementation for each graph element.
Declaration
public bool Equals(AbstractGraphElement other)
Parameters
Returns
Type |
Description |
System.Boolean |
Returns true when this is exactly the same object or both Ids are the same. |
Equals(IGraphEntity, IGraphEntity)
Determines whether the specified objects are equal.
Declaration
public bool Equals(IGraphEntity x, IGraphEntity y)
Parameters
Type |
Name |
Description |
IGraphEntity |
x |
The first object of type T to compare. |
IGraphEntity |
y |
The second object of type T to compare. |
Returns
Type |
Description |
System.Boolean |
true if the specified objects are equal; otherwise, false. |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Returns the index as the hash key used to identify this edge.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
GetHashCode(IGraphEntity)
Declaration
public int GetHashCode(IGraphEntity obj)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Implements
IEqualityComparer<>
IEquatable<>