Package Modeling :: Module ModelSet
[show private | hide private]
[frames | no frames]

Module Modeling.ModelSet

A ModelSet holds a set of models that can co-exist and/or co-operate at runtime.

The framework'core can only handle one ModelSet at a time: the one returned by defaultModelSet(). The module & class main responsabilities are:

  1. making sure that all the entities defined in a ModelSet instance have distinct names: a ModelSet identifies its models and entities by name. Hence, object defaultModelSet() can be asked at runtime for models and entities, given their names
  2. registering the object returned by defaultModelSet() as the default receiver for the notification ClassDescriptionNeededForEntityNameNotification posted by ClassDescription.classDescriptionForName().

CVS informations:

$Id: ModelSet.py,v 1.15 2005/05/03 15:12:06 sbigaret Exp $

Classes
ModelSet Holds a set of Modeling.Models that can co-exist at runtime

Function Summary
  defaultModelGroup()
Returns the model set to use globally in an application There can be only one such ModelSet.
  defaultModelSet()
Returns the model set to use globally in an application There can be only one such ModelSet.
  setDefaultModelGroup(aModelSet)
Sets the model set to use globally in an application There can be only one such ModelSet.
  setDefaultModelSet(aModelSet)
Sets the model set to use globally in an application There can be only one such ModelSet.
  updateModelWithCFG(model, cfg_path)
Deprecated: use Model.updateModelWithCFG instead.

Function Details

defaultModelGroup()

Returns the model set to use globally in an application There can be only one such ModelSet.

defaultModelSet()

Returns the model set to use globally in an application There can be only one such ModelSet.

setDefaultModelGroup(aModelSet)

Sets the model set to use globally in an application There can be only one such ModelSet.

setDefaultModelSet(aModelSet)

Sets the model set to use globally in an application There can be only one such ModelSet.

updateModelWithCFG(model, cfg_path)

Deprecated: use Model.updateModelWithCFG instead. This method will be removed in v0.9.1

Generated by Epydoc 2.1 on Sat Mar 4 13:36:23 2006 http://epydoc.sf.net