Examples of Proposal


Examples of at.bestsolution.efxclipse.tooling.css.extapi.Proposal

    return result;
  }

  private Proposal createProposalForPropertyDefinition(final PropertyDefinition def) {
 
    Proposal p = new Proposal() {
     
      @Override
      public String getProposal() {
        return def.getName();
      }
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.fxgraph.ui.util.JDTHelper.Proposal

    if( m != null ) {
      h = new HoverImpl(m)
    }
   
    for( String s : list ) {
      Proposal p = new Proposal(s);
      p.hover = h;
    }
    return rv;
  }
View Full Code Here

Examples of com.eclipsesource.tabris.ui.action.Proposal

  @Test
  @SuppressWarnings("unchecked")
  public void testSetProposals() {
    List<Proposal> proposals = new ArrayList<Proposal>();
    proposals.add( new Proposal( "foo" ) );
    proposals.add( new Proposal( "bar" ) );

    proposalHandler.setProposals( proposals );

    ArgumentCaptor<List> captor = ArgumentCaptor.forClass( List.class );
    verify( actionRenderer ).showProposals( captor.capture() );
View Full Code Here

Examples of com.eclipsesource.tabris.ui.action.Proposal

  public void testSendsProposals() {
    SearchAction action = spy( new TestSearchAction() );
    when( actionDescriptor.getAction() ).thenReturn( action );
    new RemoteSearchAction( ui, uiRenderer, actionDescriptor );
    List<Proposal> proposals = new ArrayList<Proposal>();
    proposals.add( new Proposal( "foo" ) );
    proposals.add( new Proposal( "bar" ) );
    JsonObject properties = new JsonObject();
    properties.add( "query", "bar" );
    environment.dispatchNotify( "Modify", properties );
    ArgumentCaptor<ProposalHandler> captor = ArgumentCaptor.forClass( ProposalHandler.class );
    verify( action ).modified( eq( "bar" ), captor.capture() );
View Full Code Here

Examples of com.eclipsesource.tabris.ui.action.Proposal

  @Test
  public void testSetsProposalsAsProperty() {
    RemoteObject remoteObject = mock( RemoteObject.class );
    ProposalHandlerImpl proposalHandler = new ProposalHandlerImpl( remoteObject );
    List<Proposal> proposals = new ArrayList<Proposal>();
    proposals.add( new Proposal( "foo" ) );
    proposals.add( new Proposal( "bar" ) );

    proposalHandler.setProposals( proposals );

    JsonArray jsonArray = new JsonArray();
    jsonArray.add( "foo" );
View Full Code Here

Examples of com.eclipsesource.tabris.ui.action.Proposal

  public static List<Proposal> findBookTitles( Display display, final String query ) {
    List<Book> books = BookProvider.getBooks( display );
    final List<Proposal> matches = new ArrayList<Proposal>();
    for( Book book : books ) {
      if( contains( book.getTitle(), query ) ) {
        matches.add( new Proposal( book.getTitle() ) );
      }
    }
    return matches;
  }
View Full Code Here

Examples of com.nr.model.Proposal

      times[i]=t;
    }

    State s=new State(1.0,3.0,100.0,1,1);
    Plog plog = new Plog(times);
    Proposal propose = new Proposal(10102,0.01);
    for (i=0;i<1000;i++) {    // Burn-in
//      if (i%10 == 0)
//        System.out.printf(s.lam1 << " %f\n", s.lam2 << " %f\n", s.k1 << " %f\n", s.k2 << " %f\n", s.tc);
      accept=Proposal.mcmcstep(1,s,plog,propose);
    }
View Full Code Here

Examples of com.nr.model.Proposal

      times[i] = j*1.0/M;
    }
   
    State s = new State(1.0,3.0,100.0,1,1);
    Plog plog = new Plog(times);
    Proposal propose = new Proposal(17,0.01);
    for (i=0;i<1000;i++) accept=Proposal.mcmcstep(1,s,plog,propose);
    for (i=0;i<10000;i++)
      accept=Proposal.mcmcstep(10,s,plog,propose);
//    System.out.printf(s.lam1 << " %f\n", s.lam2 << " %f\n", s.k1 << " %f\n", s.k2 << " %f\n", s.tc);

View Full Code Here

Examples of com.sleepycat.je.rep.elections.Proposer.Proposal

        RepNodeImpl node = group.getNode(nodeName);
        MasterValue newMaster = new MasterValue
            (node.getSocketAddress().getAddress().getHostAddress(),
             node.getSocketAddress().getPort(),
             node.getNameIdPair());
        Proposal proposal =
            new TimebasedProposalGenerator().nextProposal();
        elections.getLearner();
        Learner.informLearners
            (group.getLearnerSockets(),
             new WinningProposal(proposal, newMaster, null),
View Full Code Here

Examples of com.sleepycat.je.rep.elections.Proposer.Proposal

        throws DatabaseException {

        nameIdPair.setId(RepGroupImpl.getFirstNodeId());

        /* Master by default of a nascent group. */
        Proposal proposal = new TimebasedProposalGenerator().nextProposal();
        elections.getLearner().processResult(proposal,
                                             suggestionGenerator.get(proposal));
        LoggerUtils.info(logger, repImpl, "Nascent group. " +
                         nameIdPair.getName() +
                         " is master by virtue of being the first node.");
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.