Model

reqt.Model
See theModel companion object
final case class Model(elems: Vector[Elem]) extends ModelMembers

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ModelMembers
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def +(e: Elem): Model

Attributes

Inherited from:
ModelMembers
def ++(other: Model): Model

A new Model with each elem of other Model added to elems of this Model. Same as m.addAll(other) *

A new Model with each elem of other Model added to elems of this Model. Same as m.addAll(other) *

Attributes

Inherited from:
ModelMembers
def +:(e: Elem): Model

A new Model with elem e prepended to the elems of this Model. Same as m.prepend(e)

A new Model with elem e prepended to the elems of this Model. Same as m.prepend(e)

Attributes

Inherited from:
ModelMembers
def -(l: Link): Model

Attributes

Inherited from:
ModelMembers
def -(t: ElemType): Model

Attributes

Inherited from:
ModelMembers
def -(e: Elem): Model

Attributes

Inherited from:
ModelMembers
def /[T](p: EntTypePath): Vector[String]

Attributes

Inherited from:
ModelMembers
def /[T](p: EntPath): Boolean

Attributes

Inherited from:
ModelMembers
def /[T](p: AttrPath[T]): Boolean

Attributes

Inherited from:
ModelMembers
def /[T](p: AttrTypePath[T]): Vector[T]

Attributes

Inherited from:
ModelMembers
def /(ut: Undefined.type): Vector[Undefined[_]]

Attributes

Inherited from:
ModelMembers
def /[T](u: Undefined[T]): Vector[Undefined[T]]

Attributes

Inherited from:
ModelMembers
def /(et: EntType): Vector[String]

Attributes

Inherited from:
ModelMembers
def /(e: Ent): Boolean

Attributes

Inherited from:
ModelMembers
def /[T](at: AttrType[T]): Vector[T]

Attributes

Inherited from:
ModelMembers
def /[T](a: Attr[T]): Boolean

Attributes

Inherited from:
ModelMembers
def /(p: LinkPath): Model

A deep sub-model recursing into a sequence of links in a LinkPath. *

A deep sub-model recursing into a sequence of links in a LinkPath. *

Attributes

Inherited from:
ModelMembers
def /(link: Link): Model

A sub-model of Link *

A sub-model of Link *

Attributes

Inherited from:
ModelMembers
def :+(e: Elem): Model

A new Model with elem e appended to the elems of this Model. Same as m.append(e)

A new Model with elem e appended to the elems of this Model. Same as m.append(e)

Attributes

Inherited from:
ModelMembers
def :++(other: Model): Model

Attributes

Inherited from:
ModelMembers
def add(e: Elem): Model

Append an elem if not already exists at top level. Relations are merged using mergeFirst.

Append an elem if not already exists at top level. Relations are merged using mergeFirst.

Attributes

Inherited from:
ModelMembers
def addAll(other: Model): Model

Attributes

Inherited from:
ModelMembers
def addAll(es: Vector[Elem]): Model

Attributes

Inherited from:
ModelMembers
def addAll(es: Elem*): Model

Attributes

Inherited from:
ModelMembers
def append(other: Model): Model

A new Model with other Model's elems appended to elems. Same as: m :++ other NOTE: Different from m ++ other

A new Model with other Model's elems appended to elems. Same as: m :++ other NOTE: Different from m ++ other

Attributes

Inherited from:
ModelMembers
def append(e: Elem): Model

A new Model with elem e appended to the elems of this Model. Same as m :+ e

A new Model with elem e appended to the elems of this Model. Same as m :+ e

Attributes

Inherited from:
ModelMembers

Attributes

Inherited from:
ModelMembers
def atoms: Vector[Elem]

Attributes

Inherited from:
ModelMembers
def attrs: Vector[Attr[_]]

Attributes

Inherited from:
ModelMembers
def attrsOfType(iat: IntAttrType): Vector[IntAttr]

Attributes

Inherited from:
ModelMembers
def attrsOfType(sat: StrAttrType): Vector[StrAttr]

Attributes

Inherited from:
ModelMembers
def bottom(n: Int): Model

Attributes

Inherited from:
ModelMembers

Attributes

Inherited from:
ModelMembers
def cut(depth: Int): Model

Cut all relations so that no relations is deeper than depth. cut(0) == tip, cut(1) == top *

Cut all relations so that no relations is deeper than depth. cut(0) == tip, cut(1) == top *

Attributes

Inherited from:
ModelMembers

A new model constructed by adding all elems using add one by one giving no duplicates per level.

A new model constructed by adding all elems using add one by one giving no duplicates per level.

Attributes

Inherited from:
ModelMembers

A new Model with recursive de-duplication of its attributes by type on all levels. *

A new Model with recursive de-duplication of its attributes by type on all levels. *

Attributes

Inherited from:
ModelMembers

A new Model with recursive de-duplication of its elems on all levels. *

A new Model with recursive de-duplication of its elems on all levels. *

Attributes

Inherited from:
ModelMembers

A new Model that is distinct by top-level attribute type (non-recursive). *

A new Model that is distinct by top-level attribute type (non-recursive). *

Attributes

Inherited from:
ModelMembers

A new Model with distinct top-level elems (non-recursive). *

A new Model with distinct top-level elems (non-recursive). *

Attributes

Inherited from:
ModelMembers
def entTypes: Vector[EntType]

Attributes

Inherited from:
ModelMembers
def entTypesOfId(id: String): Set[EntType]

Attributes

Inherited from:
ModelMembers
def ents: Vector[Ent]

Attributes

Inherited from:
ModelMembers
def entsOfId(id: String): Vector[Ent]

Attributes

Inherited from:
ModelMembers
def entsOfType(et: EntType): Vector[Ent]

Attributes

Inherited from:
ModelMembers
def expand: Model

Attributes

Inherited from:
ModelMembers
def firstEntOfId(id: String): Option[Ent]

Attributes

Inherited from:
ModelMembers
def intAttrs: Vector[IntAttr]

Attributes

Inherited from:
ModelMembers
def intValues: Vector[Int]

Attributes

Inherited from:
ModelMembers
def isIdTypeDistinct: Boolean

Attributes

Inherited from:
ModelMembers
def isNormal: Boolean

True if this model is in normal form.

True if this model is in normal form.

Attributes

Inherited from:
ModelMembers
infix def keep(s: Expr): Model

A Model with elems deeply filtered according to a selection expression. *

A Model with elems deeply filtered according to a selection expression. *

Attributes

Inherited from:
ModelMembers

Attributes

Inherited from:
ModelMembers
def leafRelsOf[T](at: AttrType[T]): Model

Attributes

Inherited from:
ModelMembers
def linkMapOf(et: EntType): Map[Link, Model]

Submodels with same link are merged *

Submodels with same link are merged *

Attributes

Inherited from:
ModelMembers
def md: String

Attributes

Inherited from:
ModelMembers
def mergeFirst(r: Rel): Model

merge sub model of r with the sub model of first relations with the same link or append r to elems

merge sub model of r with the sub model of first relations with the same link or append r to elems

Attributes

Inherited from:
ModelMembers
def nodes: Vector[Node]

Attributes

Inherited from:
ModelMembers
def nonTypeDistinctIds: Map[String, Set[EntType]]

Attributes

Inherited from:
ModelMembers

A Model in normal form: elems are added one by one replacing same nodes and then sorted. *

A Model in normal form: elems are added one by one replacing same nodes and then sorted. *

Attributes

Inherited from:
ModelMembers
def paths: Vector[Path]

Attributes

Inherited from:
ModelMembers
def pathsOf[T](at: AttrType[T]): Vector[AttrPath[T]]

Attributes

Inherited from:
ModelMembers
def prepend(e: Elem): Model

A new Model with elem e prepended to the elems of this Model. Same as e +: m

A new Model with elem e prepended to the elems of this Model. Same as e +: m

Attributes

Inherited from:
ModelMembers
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def prune: Model

Attributes

Inherited from:
ModelMembers
def relTypes: Vector[RelType]

Attributes

Inherited from:
ModelMembers
def rels: Vector[Rel]

Attributes

Inherited from:
ModelMembers

All empty relations at any depth are replaced by its entity.

All empty relations at any depth are replaced by its entity.

Attributes

Inherited from:
ModelMembers
def showCompact: String

Attributes

Inherited from:
ModelMembers
def showLines: String

Attributes

Inherited from:
ModelMembers
def size: Int

The number of elems at top level plus the sum of sizes of all sub models *

The number of elems at top level plus the sum of sizes of all sub models *

Attributes

Inherited from:
ModelMembers
def sortLeafRelsBy[T](iat: IntAttrType, rt: RelType): Vector[Ent]

Attributes

Inherited from:
ModelMembers
def sorted(using Ordering[Elem]): Model

Recursively sort elems alphabetically.

Recursively sort elems alphabetically.

Attributes

Inherited from:
ModelMembers
def strAttrs: Vector[StrAttr]

Attributes

Inherited from:
ModelMembers
def strValues: Vector[String]

Attributes

Inherited from:
ModelMembers
def sub: Model

Attributes

Inherited from:
ModelMembers
def tip: Model

A Model with the nodes but not relations at the top of this Model.

A Model with the nodes but not relations at the top of this Model.

Attributes

Inherited from:
ModelMembers
def toMarkdown: String

Attributes

Inherited from:
ModelMembers
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
ModelMembers -> Any
Inherited from:
ModelMembers
def top: Model

A Model with the tip of this Model and the tip of its sub-models.

A Model with the tip of this Model and the tip of its sub-models.

Attributes

Inherited from:
ModelMembers
def trim: Model

Attributes

Inherited from:
ModelMembers
def undefined: Vector[Undefined[_]]

Attributes

Inherited from:
ModelMembers
def updated[T](a: Attr[T]): Model

A new model first attribute of same type updated to a or appended to elems if not in elems.tip.

A new model first attribute of same type updated to a or appended to elems if not in elems.tip.

Attributes

Inherited from:
ModelMembers
def withRank(iat: IntAttrType, rt: RelType): Vector[Rel]

Attributes

Inherited from:
ModelMembers
def withRankDistinct(et: EntType, iat: IntAttrType, rt: RelType): Vector[Rel]

Attributes

Inherited from:
ModelMembers

Inherited fields

lazy val idMap: Map[String, Vector[Ent]]

Attributes

Inherited from:
ModelMembers
lazy val idTypeMap: Map[String, Set[EntType]]

Attributes

Inherited from:
ModelMembers
lazy val ids: Vector[String]

Attributes

Inherited from:
ModelMembers
lazy val leafRels: Model

Attributes

Inherited from:
ModelMembers
lazy val leafs: Model

Attributes

Inherited from:
ModelMembers