Class DefaultModelSpace
The default implementation of the model space.
Inheritance
Implements
Inherited Members
Namespace: Kephas.Model.Elements
Assembly: Kephas.Model.dll
Syntax
public class DefaultModelSpace : ModelElementBase<IModelSpace>, IConstructibleElement, IModelSpace, IModelElement, INamedElement, IAggregatedElementInfo, IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProviderConstructors
| Improve this Doc View SourceDefaultModelSpace(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 SourceClassifierDependencyComparer
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? > ClassifierDependencyComparerField 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 SourceClassifiers
Gets the classifiers.
Declaration
public IEnumerable<IClassifier> Classifiers { get; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<IClassifier> | The classifiers. | 
ConstructionContext
Gets the context for construction.
Declaration
public IModelConstructionContext ConstructionContext { get; }Property Value
| Type | Description | 
|---|---|
| IModelConstructionContext | The construction context. | 
Dimensions
Gets the dimensions.
Declaration
public IReadOnlyList<IModelDimension> Dimensions { get; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.IReadOnlyList<IModelDimension> | The dimensions. | 
ModelSpace
Gets the model space.
Declaration
public override IModelSpace ModelSpace { get; }Property Value
| Type | Description | 
|---|---|
| IModelSpace | The model space. | 
Overrides
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 SourceComputeClassifiers(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. | 
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. | 
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. | 
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
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  |