RAMEN Core
    Preparing search index...

    Class ModelAdvisor

    Provides generic modelling suggestions from the same graph used by validation.

    Hierarchy (View Summary)

    Index
    • Lists all inherited and local attributes visible on one node.

      Parameters

      • modelId: string
      • nodeId: string

      Returns readonly AttributeInfo[]

    • Finds one selected node that refines every other selected node.

      Parameters

      • modelId: string
      • refs: readonly string[]

      Returns NodeLineageItem | undefined

      When a selected node reference cannot be resolved.

    • Returns the base-first refinement lineage of one local or imported node.

      Parameters

      • modelId: string
      • nodeId: string

      Returns readonly NodeLineageItem[]

    • Lists existing relationships with exactly these endpoint types, including permitted predecessor definitions. Returns an empty list when no relationship matches. Unknown nodes are invalid inputs. Does not create relationships or choose between parallel definitions.

      Parameters

      • modelId: string
      • from: string
      • to: string

      Returns readonly RelationSelection[]

    • Lists possible incoming and outgoing connections for one local or imported node.

      Parameters

      • modelId: string
      • nodeId: string

      Returns readonly NodeRelationSuggestion[]

    • Lists primitive and reachable declared data types available to an attribute.

      Parameters

      • modelId: string

      Returns readonly DataTypeSuggestion[]

    • Lists local and imported node types that a new node can refine.

      Parameters

      • modelId: string

      Returns readonly NodeSuggestion[]

    • Lists local and permitted predecessor relations compatible with both selected node types.

      Parameters

      • modelId: string
      • fromNodeId: string
      • toNodeId: string

      Returns readonly RelationSuggestion[]

    • Checks inherited attributes before an attribute is created.

      Parameters

      • modelId: string
      • nodeId: string
      • name: string

      Returns AttributeNameResult