RAMEN Core
    Preparing search index...

    Class ModelFactory

    Creates RMF model elements with stable identifiers and empty extension data.

    Index
    • Generates a random 16-character identifier for a new model element.

      Returns string

    • Creates a named data type literal with optional serialised and numeric values.

      Parameters

      • name: string
      • Optionalliteral: string
      • Optionalvalue: number
      • Optionaldescription: string

      Returns Literal

    • Creates a relation whose end bounds are copied from a base relation.

      Parameters

      Returns Relation

      When the selected base relation does not exist in the supplied model.

    • Creates a relation end for a node and cardinality.

      Parameters

      • nodeId: string
      • bounds: Bounds

      Returns RelationEnd

    • Duplicates a node and every local relation connected to it.

      Parameters

      • model: Model
      • sourceNodeId: string

      Returns ConnectedNode

      When the source node does not exist in the supplied model.

    • Deeply duplicates a node and assigns new identifiers to its owned elements.

      Parameters

      Returns Node