close Warning: Can't synchronize with repository "(default)" (/var/svn/mms does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 14 years ago

Last modified 11 years ago

#745 new enhancement

Herencia de atributos

Reported by: atorre Owned by: Pedro Gea
Priority: major Milestone: Future
Component: General Keywords: atributos, herencia
Cc:

Description

Hola MMS,
Actualmente, ningún objeto principal de MMS "hereda" los atributos de los objetos principales que contiene. Por ejemplo, si un modelo tiene unos atributos, sería razonable que una estimación creada a partir de él, los "heredara"/contuviera automáticamente.

Gracias por adelantado

Change History (2)

comment:1 Changed 14 years ago by atorre

sigue una función que lo hace para las estimaciones:

//////////////////////////////////////////////////////////////////////////////
Real MMS_Est_HieModelAttribute(NameBlock est)
//////////////////////////////////////////////////////////////////////////////
{
  Set modAtb = est::GetModel(?)::GetAttributes(?);
  Set estAtbRes = EvalSet(modAtb, Real(Text atb)
  { est::SetAttribute(Name(atb), atb) });
  EQ(Card(estAtbRes), SetSum(estAtbRes))
};
//////////////////////////////////////////////////////////////////////////////
PutDescription("
Hereda los atributos del modelo a la estimacion que lo contiene.
", MMS_Est_HieModelAttribute);
//////////////////////////////////////////////////////////////////////////////

comment:2 Changed 11 years ago by Pedro Gea

Milestone: Development 1BFuture
Note: See TracTickets for help on using tickets.