Esempio n. 1
0
void 
setAllProjections( AlphaList **projection,
		   AlphaList prev_alpha_list ) 
{
  /*
    Makes all the projected alpha vector lists, which amounts to a
    projected list for each action-observation pair. Stores this as a
    two dimensional array of lists where the first index is the action
    and the other is the observation.
    
    The 'impossible_obs_epsilon' specifies the tolerance to use when
    trying to determine whether or not a particulat observation is at
    all feabile.
  */
  int a, z;

  for ( a = 0; a < gNumActions; a++ ) {
    for ( z = 0; z < gNumObservations; z++ ) {
    
      projection[a][z] = projectList( prev_alpha_list, a, z );
    
    } /* for z */
  } /* for a */

}  /* setAllProjections */
Esempio n. 2
0
void DoBuildMenu()
{
  ModalDialog modal;

  ProjectList projectList(g_build_project);

  GtkWindow* window = BuildMenuDialog_construct(modal, projectList);

  if(modal_dialog_show(window, modal) == eIDCANCEL)
  {
    build_commands_clear();
    LoadBuildMenu();

    Build_refreshMenu(g_bsp_menu);
  }
  else if(projectList.m_changed)
  {
    g_build_changed = true;
  }

  gtk_widget_destroy(GTK_WIDGET(window));
}