Examples of Model


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

    IStructuredSelection selection =
      (IStructuredSelection)mainWindow.getProblemBrowserTree().getTreeViewer().getSelection();
     
    if (!selection.isEmpty()) {
      Model model = (Model)selection.getFirstElement();
           
          if (model instanceof ResourceAllocation) {
            ResourceAllocation raProblem = (ResourceAllocation)model;
           
            fileDialog.setFileName(raProblem.getName() + "_" + raProblem.getAlgorithm());
View Full Code Here

Examples of it.eng.spagobi.kpi.model.bo.Model

    logger.debug("IN");

    SbiKpi sbiKpi = null;
    Kpi kpi = null;
    SbiKpiModel sbiKpiModel = null;
    Model modelNode = null;
    boolean isKpi = false;
    if(family.equalsIgnoreCase("KPI")){
      isKpi = true;
      sbiKpi = (SbiKpi)sbiObject;
      kpi = (Kpi)object;
      logger.debug("kpi udp attributes");
    }
    else if(family.equalsIgnoreCase("MODEL")){
      isKpi = false;
      sbiKpiModel = (SbiKpiModel)sbiObject;
      modelNode = (Model)object;
      logger.debug("model udp attributes");
    }
    else {
      logger.debug("family not recognied "+ family);
      return;
    }

    // if there are values associated
    List<UdpValue> udpValues = null;
    Integer idObject = null;
    if(isKpi){
      udpValues = kpi.getUdpValues();
      idObject = sbiKpi.getKpiId();
    }
    else{
      udpValues = modelNode.getUdpValues();     
      idObject = sbiKpiModel.getKpiModelId();
    }   
    if(udpValues != null){
      // an udp value is never erased for a kpi once memorized, that is because by user interface integer have no null value and boolean too
      // these are current UdpValues; for each:
View Full Code Here

Examples of kameleon.gui.model.Model

   
    final JButton button = new JButton(refreshIcon) ;
    button.setContentAreaFilled(false) ;
    button.setBorder(null) ;
    button.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)) ;
    final Model fViewModel = this.model ;
    button.addActionListener(new ActionListener() {       
      @Override
      public void actionPerformed(ActionEvent e) {
        button.setEnabled(false) ;
        fViewModel.fastGeneration(gMessage) ;
      }// actionPerformed(ActionEvent)
    }) ;

    constraints = new GridBagConstraints() ;
    constraints.gridwidth = 2 ;
View Full Code Here

Examples of kiss.model.Model

        // check null
        if (input == null) {
            return null;
        }

        Model inputModel = Model.load(input.getClass());
        Model outputModel = Model.load(output);

        // no conversion
        if (inputModel == outputModel) {
            return (M) input;
        }

        Codec inputCodec = inputModel.getCodec();
        Codec<M> outputCodec = outputModel.getCodec();

        // check whether each model are attribute model or not
        if (inputCodec == null && outputCodec == null) {
            // we should copy property values
View Full Code Here

Examples of model.Model

public class Controller extends HttpServlet {

  private static final long serialVersionUID = 1L;

  public void init() throws ServletException {
    Model model = new Model(getServletConfig());
    //user identification.
    Action.add(new LoginAction(model));
    Action.add(new LogoutAction(model));
    Action.add(new RegisterAction(model));
    //user medication management.
View Full Code Here

Examples of modelet.model.Model

  }
 
  @Test
  public void test2() {
   
    Model model = ApplicationContextHelper.getBean("modelFindBeforeProxy");
    PagingElement pagingElement = ApplicationContextHelper.getBean("pagingElement");
    model.find("select * from sysusers", null);
    model.findWithPaging("select * from sysusers", null, pagingElement);
  }
View Full Code Here

Examples of multididdy_model.Model

    public Server myServer;
    public Client myClient;
   
    public Controller(){
       
        model = new Model();
        /*
        ConfigReader cr = new ConfigReader("./data/weapons/RocketLauncher/weapon.ini");
       
        Debug.p(""+cr.getInt("speed"));
        Debug.p(""+cr.getBool("explosion"));
View Full Code Here

Examples of my.home.dsl.deepClone.Model

      _builder.append("-paragraph");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      final String code = _builder.toString();
      final Model model = this.parseHelper.parse(code);
      StringConcatenation _builder_1 = new StringConcatenation();
      String _string = _builder_1.toString();
      MyValidationHelper.ValidationResult _validate = this.myValidationHelper.validate(model);
      String _issuesToString = _validate.issuesToString();
      String _trim = _issuesToString.trim();
      Assert.assertEquals(_string, _trim);
      InMemoryFileSystemAccess _inMemoryFileSystemAccess = new InMemoryFileSystemAccess();
      final InMemoryFileSystemAccess fsa = _inMemoryFileSystemAccess;
      Resource _eResource = model.eResource();
      this.generatorDslToJava.doGenerate(_eResource, fsa);
      Map<String,CharSequence> _textFiles = fsa.getTextFiles();
      int _size = _textFiles.size();
      Assert.assertEquals(3, _size);
      final String bookCloner = (IFileSystemAccess.DEFAULT_OUTPUT + "a/b/m/BookCloner.java");
View Full Code Here

Examples of net.fortytwo.ripple.model.Model

        URIMap uriMap = new URIMap();
        SailConfiguration sailConfig = new SailConfiguration(uriMap);
        Sail sail = sailConfig.getSail();

        // Attach a Ripple model to the repository.
        Model model = new SesameModel(sail);

        // Attach a query engine to the model.
        StackEvaluator evaluator = new LazyStackEvaluator();
        QueryEngine qe
                = new QueryEngine(model, evaluator, out, err);

        // Attach an interpreter to the query engine and let it query from
        // standard input.
        RippleCommandLine r = new RippleCommandLine(qe, in);
        r.run();

        // Shut down.
        model.shutDown();
    }
View Full Code Here

Examples of net.mygwt.ui.client.data.Model

   * @param model the model
   */
  public static void buildTree(Tree tree, Model model) {
    TreeItem root = tree.getRootItem();
    for (int i = 0; i < model.getChildCount(); i++) {
      Model m = model.getChild(i);
      TreeItem item = new TreeItem();
      item.setText(m.toString());
      root.add(item);
      process(item, m);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.