Projectors#

The policyengine_core.projectors module contains classes that allow formulas to ask relational questions about entities. For example, a formula for a child benefit for a particular child might require the earnings of said child’s parent.

Projector#

class policyengine_core.projectors.Projector[source]#

EntityToPersonProjector#

class policyengine_core.projectors.EntityToPersonProjector(entity: Population, parent: Projector = None)[source]#

For instance person.family.

FirstPersonToEntityProjector#

class policyengine_core.projectors.FirstPersonToEntityProjector(entity: GroupPopulation, parent: Projector = None)[source]#

For instance famille.first_person.

UniqueRoleToEntityProjector#

class policyengine_core.projectors.UniqueRoleToEntityProjector(entity, role, parent=None)[source]#

For instance famille.declarant_principal.