Package hu.u_szeged.nbo.client.model

Examples of hu.u_szeged.nbo.client.model.Problem


  public void run() {
    sqlManager = new SQLManager();
    final String username = ConfigurationManager.settings.get("username");
    final List<String> ttProblemsName = new ArrayList<String>();
    Problem treeElements = ((Problem)tree.getRoot()).getProblems().get(1);

    for (TransportationTask tt: treeElements.getTTProblems()) {
      ttProblemsName.add(tt.getName());
    }
   
    if (!sqlManager.ready()) {
      return;
View Full Code Here


  public void setElement(Object element) {
  }
 
  public Object[] getChildren(Object parentElement) {
    if (parentElement instanceof Problem) {
      Problem problem = (Problem)parentElement;

      return concat(problem.getProblems().toArray(),
              problem.getRAProblems().toArray(),
              problem.getTTProblems().toArray());
    }
   
    return new Object[0];
  }
View Full Code Here

  public void run() {
    this.tree = mainWindow.getProblemBrowserTree().getTreeViewer();
    IStructuredSelection selection = (IStructuredSelection) tree.getSelection();
   
    Problem parent = null;
    Model model = null;

    for (Iterator iterator = selection.iterator(); iterator.hasNext();) {
      if (selection.isEmpty()) return;
     
      model = (Model) iterator.next();
      parent = (Problem)model.getParent();
       
      if (model instanceof ResourceAllocation) {
        tree.remove(model);
        parent.removeRAProblem((ResourceAllocation)model);
        model.kill();
        tree.setInput(parent.getParent());
       
        mainWindow.getRAPerspective().clearSourceTables(model.getName());
        mainWindow.getRAPerspective().clearSolutionTables(model.getName());
        mainWindow.getProblemBrowserTree().getTreeViewer().expandAll();   
      }
View Full Code Here

TOP

Related Classes of hu.u_szeged.nbo.client.model.Problem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.