EntitySource

semagrams.EntitySource
case class EntitySource[A](entities: (A, EntityMap) => Seq[(Entity, Sprite, ACSet)])

A wrapper around a function which extracts a sequence of entity, sprite, acset tuples from data of type A and an EntityMap with previously-extracted entities. The reason we have both something of type A and an EntityMap is that we might want to query, for instance, the boundary of a previously extracted vertex while constructing an edge.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Inherited
  • Not inherited
  • Product

Members list

Concise view

Value members

Concrete methods

def addEntities(a: A, m: EntityMap): Map[Entity, (Sprite, ACSet)]

Use the EntitySource to add entities with their sprites/acsets to an EntityMap

Use the EntitySource to add entities with their sprites/acsets to an EntityMap

Attributes

Construct a new EntitySource which uses f to make new properties to add to every acset produced by this EntitySource.

Construct a new EntitySource which uses f to make new properties to add to every acset produced by this EntitySource.

Attributes

Construct a new EntitySource by using f to update every entity and acset produced by this EntitySource, while keeping the sprites the same.

Construct a new EntitySource by using f to update every entity and acset produced by this EntitySource, while keeping the sprites the same.

Attributes

Construct a new EntitySource which adds the properties in props to every acset produced by this EntitySource.

Construct a new EntitySource which adds the properties in props to every acset produced by this EntitySource.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product