int 
Sim_Init(
  Tcl_Interp * interp, 
  Main_Manager_t * manager 
)
This function is needed by tcl/tk to initialize this package. Initialization includes registering of commands and initialization of internal data structures used by this package.

Side Effects SimManagerInit() is called and a "global" data structure, namely the simulation manager is created.

See Also optional

void 
Sim_SimAtomArrayFree(
  array_t * simAtomArray 
)
This routine frees an array of simAtoms. This is useful to free the array returned by Sim_SimAtomReturnSortedArray.

Side Effects required

See Also optional

Atm_Atom_t* 
Sim_SimAtomReadAtom(
  Sim_Atom_t* simAtom 
)
This function returns a pointer to the atom that is represented by this simAtom.

Side Effects User should not free the returned pointer.

See Also optional

boolean 
Sim_SimAtomReadIsUserAtom(
  Sim_Atom_t* simAtom 
)
This function returns true if the simAtom is an user atom, i.e. atom controlled by the user.

Side Effects required

See Also optional

char* 
Sim_SimAtomReadName(
  Sim_Atom_t* simAtom 
)
This function returns the name of the simAtom.

Side Effects User should not free the returned string.

See Also optional

array_t * 
Sim_SimAtomReturnSortedArray(
  Mdl_Module_t * module, 
  array_t * atomArray, 
  int  isUserAtom 
)
Given a module, an array of users atoms (Atm_Atom_t *), and the type of the atoms (are they userAtoms?), this routine creates the simAtoms for the module and returns an array of topologically sorted simAtoms. Note that the non-user atoms will come as late as possible in the linearization so that the user will have the least knowledge of how the non-user atom behaves.

Side Effects The atomDependencyInfo will be updated. The sorted array will be returned. User should free the array (Sim_SimAtomArrayFree) after use.

See Also Sim_SimAtomArrayFree

Last updated on 980624 22h11