eta.lf.Domain

class Domain(individuals=[])[source]

Bases: object

Defines a domain of individuals.

Parameters:

individuals (list[Individual], optional) – A list of initial individuals to add to the domain.

domain

A dict mapping the canonical names of an individual to that individual object.

Type:

dict

Notes

TODO: currently incomplete and unused.

Methods

add

Add an individual to the domain.

add_aliases

Add a list of aliases (strings) to the individual denoted by the given canonical name.

add(individual)[source]

Add an individual to the domain.

add_aliases(name, aliases)[source]

Add a list of aliases (strings) to the individual denoted by the given canonical name.