Show / Hide Table of Contents

Class DefaultModelSpace

The default implementation of the model space.

Inheritance
System.Object
System.Dynamic.DynamicObject
ExpandoBase
Expando
NamedElementBase<IModelSpace>
ModelElementBase<IModelSpace>
DefaultModelSpace
Implements
IModelSpace
IModelElement
INamedElement
IAggregatedElementInfo
IElementInfo
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
IAttributeProvider
Inherited Members
ModelElementBase<IModelSpace>.Members
ModelElementBase<IModelSpace>.Annotations
ModelElementBase<IModelSpace>.GetMember(String, Boolean)
ModelElementBase<IModelSpace>.AddMember(INamedElement)
NamedElementBase<IModelSpace>.Logger
NamedElementBase<IModelSpace>.Name
NamedElementBase<IModelSpace>.IElementInfo.DeclaringContainer
NamedElementBase<IModelSpace>.IElementInfo.Annotations
NamedElementBase<IModelSpace>.IAggregatedElementInfo.Parts
NamedElementBase<IModelSpace>.QualifiedFullName
NamedElementBase<IModelSpace>.FullName
NamedElementBase<IModelSpace>.DeclaringContainer
NamedElementBase<IModelSpace>.IsInherited
NamedElementBase<IModelSpace>.ConstructionMonitor
NamedElementBase<IModelSpace>.Parts
NamedElementBase<IModelSpace>.ToString()
NamedElementBase<IModelSpace>.GetAttributes<TAttribute>()
NamedElementBase<IModelSpace>.AddPart(Object)
ExpandoBase.Item[String]
ExpandoBase.GetDynamicMemberNames()
ExpandoBase.HasDynamicMember(String)
ExpandoBase.TryGetMember(GetMemberBinder, Object)
ExpandoBase.TrySetMember(SetMemberBinder, Object)
ExpandoBase.TryInvokeMember(InvokeMemberBinder, Object[], Object)
ExpandoBase.ToDictionary(Func<String, String>, Func<Object, Object>)
ExpandoBase.GetInnerObjectTypeInfo()
ExpandoBase.GetThisTypeInfo()
ExpandoBase.TryGetValue(String, Object)
ExpandoBase.TrySetValue(String, Object)
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Kephas.Model.Elements
Assembly: Kephas.Model.dll
Syntax
public class DefaultModelSpace : ModelElementBase<IModelSpace>, IConstructibleElement, IModelSpace, IModelElement, INamedElement, IAggregatedElementInfo, IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProvider

Constructors

| Improve this Doc View Source

DefaultModelSpace(IModelConstructionContext)

Initializes a new instance of the DefaultModelSpace class.

Declaration
public DefaultModelSpace(IModelConstructionContext constructionContext)
Parameters
Type Name Description
IModelConstructionContext constructionContext

Context for the construction.

Fields

| Improve this Doc View Source

ClassifierDependencyComparer

Compares two classifiers to get a priority in handling them. A classifier is "greater" than another classifier if the other one is contained in its INamedElementBase{T}.Parts. Otherwise they are not comparable.

Declaration
public static readonly Func<KeyValuePair<IClassifier, IEnumerable<IElementInfo>>, KeyValuePair<IClassifier, IEnumerable<IElementInfo>>, int? > ClassifierDependencyComparer
Field Value
Type Description
System.Func<System.Collections.Generic.KeyValuePair<IClassifier, System.Collections.Generic.IEnumerable<IElementInfo>>, System.Collections.Generic.KeyValuePair<IClassifier, System.Collections.Generic.IEnumerable<IElementInfo>>, System.Nullable<System.Int32>>

A value used to compare the two classifiers.

Properties

| Improve this Doc View Source

Classifiers

Gets the classifiers.

Declaration
public IEnumerable<IClassifier> Classifiers { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<IClassifier>

The classifiers.

| Improve this Doc View Source

ConstructionContext

Gets the context for construction.

Declaration
public IModelConstructionContext ConstructionContext { get; }
Property Value
Type Description
IModelConstructionContext

The construction context.

| Improve this Doc View Source

Dimensions

Gets the dimensions.

Declaration
public IReadOnlyList<IModelDimension> Dimensions { get; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyList<IModelDimension>

The dimensions.

| Improve this Doc View Source

ModelSpace

Gets the model space.

Declaration
public override IModelSpace ModelSpace { get; }
Property Value
Type Description
IModelSpace

The model space.

Overrides
Kephas.Model.Elements.NamedElementBase<Kephas.Model.IModelSpace>.ModelSpace
| Improve this Doc View Source

Projections

Gets the projections.

Declaration
public IEnumerable<IModelProjection> Projections { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<IModelProjection>

The projections.

Methods

| Improve this Doc View Source

ComputeClassifiers(IModelConstructionContext)

Enumerates compute classifiers in this collection.

Declaration
protected virtual IEnumerable<IClassifier> ComputeClassifiers(IModelConstructionContext constructionContext)
Parameters
Type Name Description
IModelConstructionContext constructionContext

Context for the construction.

Returns
Type Description
System.Collections.Generic.IEnumerable<IClassifier>

An enumerator that allows foreach to be used to process compute classifiers in this collection.

| Improve this Doc View Source

ComputeDimensions(IModelConstructionContext)

Calculates the dimensions.

Declaration
protected virtual IModelDimension[] ComputeDimensions(IModelConstructionContext constructionContext)
Parameters
Type Name Description
IModelConstructionContext constructionContext

Context for the construction.

Returns
Type Description
IModelDimension[]

The calculated dimensions.

| Improve this Doc View Source

ComputeProjections(IModelConstructionContext, IReadOnlyList<IModelDimension>)

Calculates the projections.

Declaration
protected virtual IList<IModelProjection> ComputeProjections(IModelConstructionContext constructionContext, IReadOnlyList<IModelDimension> dimensions)
Parameters
Type Name Description
IModelConstructionContext constructionContext

Context for the construction.

System.Collections.Generic.IReadOnlyList<IModelDimension> dimensions

The dimensions.

Returns
Type Description
System.Collections.Generic.IList<IModelProjection>

The calculated projections.

| Improve this Doc View Source

OnCompleteConstruction(IModelConstructionContext)

Called when the construction is complete.

Declaration
protected override void OnCompleteConstruction(IModelConstructionContext constructionContext)
Parameters
Type Name Description
IModelConstructionContext constructionContext

Context for the construction.

Overrides
Kephas.Model.Elements.ModelElementBase<Kephas.Model.IModelSpace>.OnCompleteConstruction(Kephas.Model.Construction.IModelConstructionContext)
| Improve this Doc View Source

TryGetClassifier(ITypeInfo, IContext)

Tries to get the classifier associated to the provided ITypeInfo.

Declaration
public IClassifier TryGetClassifier(ITypeInfo typeInfo, IContext findContext = null)
Parameters
Type Name Description
ITypeInfo typeInfo

The ITypeInfo.

IContext findContext

Context to control the finding of classifiers.

Returns
Type Description
IClassifier

The classifier, or null if the classifier was not found.

Implements

IModelSpace
IModelElement
INamedElement
IAggregatedElementInfo
IElementInfo
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
IAttributeProvider

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
ModelElementExtensions.GetDeclaredMembers(IModelElement)
RuntimeTypeInfoExtensions.IsExcludedFromModel(IAttributeProvider)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX