Click or drag to resize

IAttributeBearer Interface

An interface to IBaseObject (thus IObject, ITransientObject) and IGraphElement (thus INode and IEdge) types, all bearing attributes

Namespace:  de.unika.ipd.grGen.libGr
Assembly:  libGr (in libGr.dll) Version: GrGen.NET 7.2
Syntax
C#
public interface IAttributeBearer : ITyped, 
	IDeepEqualityComparer, ICallable

The IAttributeBearer type exposes the following members.

Properties
  NameDescription
Public propertyItem
Indexer that gives access to the attributes of the attribute bearer.
Public propertyType
The InheritanceType of the typed object
(Inherited from ITyped.)
Top
Methods
  NameDescription
Public methodApplyFunctionMethod
Executes the function method given by its name. Throws an exception if the method does not exists or the parameters are of wrong types.
(Inherited from ICallable.)
Public methodApplyProcedureMethod
Executes the procedure method given by its name. Throws an exception if the method does not exists or the parameters are of wrong types.
(Inherited from ICallable.)
Public methodGetAttribute
Returns the attribute with the given attribute name. If the attribute bearer (type) doesn't have an attribute with this name, a NullReferenceException is thrown.
Public methodInstanceOf
Returns true, if the typed object is compatible to the given type
(Inherited from ITyped.)
Public methodIsDeeplyEqual
Returns whether this and that are deeply equal, which means the scalar attributes are equal, the container attributes are memberwise deeply equal, and object attributes are deeply equal. (If types are unequal the result is false.) Visited objects are/have to be stored in the visited objects dictionary in order to detect shortcuts and cycles. TODO: extend to structures including shortcuts and cycles, but excluding aliasing, with a visited objects map instead of a set.
(Inherited from IDeepEqualityComparer.)
Public methodResetAllAttributes
Resets all attribute bearer attributes to their initial values.
Public methodSetAttribute
Sets the attribute with the given attribute name to the given value. If the attribute bearer (type) doesn't have an attribute with this name, a NullReferenceException is thrown.
Top
See Also