ANRGenstar / genstar

Generation of Synthetic Populations Library
20 stars 2 forks source link

Change referent attribute to clearly denote a hierarchical relationship #17

Closed chapuisk closed 7 years ago

chapuisk commented 7 years ago

The referent attribute expresses an attribute one is binding to. The binding actually concernes values, that is values of the attribute refers to values of the referent attribute. The relationship between values can be of one to one but also a set to one, one to a set and even set to set. Make the relationship only concerne relationship of type: one to one or a set to one. Then create a new type of attribute, e.g. CorrelatedAttribute which should allowed all type of relationship. This type of binding thus would unable several estimation algorithm (because it would imply to estimate the relationship between sets of attributes without further knowledge)

chapuisk commented 7 years ago

AggregatedDemographicAttribute & MappedDemographicAttribute now denote:

  1. Aggregated attribute denotes aggregated values. Hence, each value of referent attribute is bound to at least one aggregated value
  2. Mapped attribute denotes a mapping between two set of value. Hence, value of referent attribute could be of another type, and binding could be from one to one, from several to one, one to several or several to several values.

This is only available for demographic attribute.