Class AbstractGraphElement
This class provides an abstract implementation for all graph
elements used for the ISpatialGraphEnvironment.
Implements
System.Collections.Generic.IEqualityComparer<IGraphEntity>
System.IEquatable<AbstractGraphElement>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Components.Environments
Assembly: Mars.Components.dll
Syntax
public abstract class AbstractGraphElement : IGraphEntity, IEqualityComparer<IGraphEntity>, IEquatable<AbstractGraphElement>
Properties
| Improve this Doc View SourceAttributes
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 |
---|---|
System.Collections.Generic.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
| Improve this Doc View SourceEquals(AbstractGraphElement)
Equality implementation for each graph element.
Declaration
public bool Equals(AbstractGraphElement other)
Parameters
Type | Name | Description |
---|---|---|
AbstractGraphElement | other | Another graph element or the same |
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)
This class provides an abstract implementation for all graph
elements used for the ISpatialGraphEnvironment.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Returns the index as the hash key used to identify this edge.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
GetHashCode(IGraphEntity)
This class provides an abstract implementation for all graph
elements used for the ISpatialGraphEnvironment.
Declaration
public int GetHashCode(IGraphEntity obj)
Parameters
Type | Name | Description |
---|---|---|
IGraphEntity | obj |
Returns
Type | Description |
---|---|
System.Int32 |
Implements
System.Collections.Generic.IEqualityComparer<T>
System.IEquatable<T>