ModelInfo

Description

sealed class Tinman.Engine.Models.ModelInfo

Derived from

Disposable abstract

This is a helper that generates human-readable pseudo code that describes a IModel hierarchy.

Public / Constructors

Model​Info


public constructor ModelInfo → (3)

stream in : ITextStream own

[not-null]
The text output stream to use.

toConfig opt : bool = true

Include result of IConfigurable.ToConfig, where applicable?

toString opt : bool = true

Include result of object.ToString, where applicable?

Creates a new instance of ModelInfo.

Public / Methods

Consume


public method Consume → (1)

model in : IModel

[not-null]
The model to consume.

Consumes the given model.

IOException

If an I/O error has occurred.

For


public static method For → (3)

model in : IModel

[not-null]
The model for which to generate pseudo-code.

toConfig opt : bool = true

Include result of IConfigurable.ToConfig, where applicable?

toString opt : bool = true

Include result of object.ToString, where applicable?

returns → string

The human-readable pseudo-code.

Generates pseudo-code for the given model in.

The generated code is human-readable and describes the all aspects of a model hierarchy, excluding the following data:

The model info code is supposed to be used during development, for quick inspection and verification.