Examples of initialise()


Examples of ise.mace.agents.PoliticalAgentGroup.initialise()

  String createGroupAgent(double food, double economic, double social,
          String name)
  {
    AbstractAgent a = new PoliticalAgentGroup(food, 0, AgentType.R, economic,
            social, name);
    a.initialise(new EnvironmentConnector(this));
    sim.addParticipant(a.getId(), a);
    sim.activateParticipant(a.getId());
    return a.getId();
  }
View Full Code Here

Examples of ise.mace.participants.AbstractAgent.initialise()

  String createGroupAgent(double food, double economic, double social,
          String name)
  {
    AbstractAgent a = new PoliticalAgentGroup(food, 0, AgentType.R, economic,
            social, name);
    a.initialise(new EnvironmentConnector(this));
    sim.addParticipant(a.getId(), a);
    sim.activateParticipant(a.getId());
    return a.getId();
  }
View Full Code Here

Examples of ise.mace.participants.AbstractGroupAgent.initialise()

   */
  String createGroup(Class<? extends AbstractGroupAgent> type,
          GroupDataInitialiser init)
  {
    AbstractGroupAgent g = dmodel.createGroup(type, init);
    g.initialise(new EnvironmentConnector(this));
    sim.addParticipant(g.getId(), g);
    sim.activateParticipant(g.getId());
    return g.getId();
  }

View Full Code Here

Examples of jsprit.core.algorithm.ruin.RuinRadial.JobNeighborhoodsImpl.initialise()

  }
 
  @Test
  public void whenRequestingNeighborhoodOfTargetJob_sizeShouldBe4(){
    JobNeighborhoodsImpl jn = new JobNeighborhoodsImpl(vrp, jobDistance);
    jn.initialise();
    Iterator<Job> iter = jn.getNearestNeighborsIterator(4, target);
    List<Service> services = new ArrayList<Service>();
    while(iter.hasNext()){
      services.add((Service) iter.next());
    }
View Full Code Here

Examples of jsprit.core.algorithm.ruin.RuinRadial.JobNeighborhoodsImplWithCapRestriction.initialise()

  }
 
  @Test
  public void whenRequestingNeighborhoodOfTargetJob_nNeighborsShouldBeTwo(){
    JobNeighborhoodsImplWithCapRestriction jn = new JobNeighborhoodsImplWithCapRestriction(vrp, jobDistance, 2);
    jn.initialise();
    Iterator<Job> iter = jn.getNearestNeighborsIterator(2, target);
    List<Service> services = new ArrayList<Service>();
    while(iter.hasNext()){
      services.add((Service) iter.next());
    }
View Full Code Here

Examples of net.sf.ehcache.Cache.initialise()

      zeroThresholdPolicy.setThreshold(0);
     
      // Test case #1
      // Valid certificate on valid CRL data
      cache = new Cache("crlCache-1", 100, false, false, 20, 10);
      cache.initialise();
      params.add(new Object[] {
          new CRLDistributionPointRevocationChecker(cache),
          defaultPolicy,
          new String[] {"user-valid-distcrl.crt"},
         "userCA-valid.crl",
View Full Code Here

Examples of org.apache.cxf.ws.policy.EffectivePolicyImpl.initialise()

                engine.setClientEndpointPolicy(ei, epi);
            } else {
                engine.setServerEndpointPolicy(ei, epi);
            }
            EffectivePolicyImpl effectiveOutbound = new EffectivePolicyImpl();
            effectiveOutbound.initialise(epi, engine, false, false, message);
            EffectivePolicyImpl effectiveInbound = new EffectivePolicyImpl();
            effectiveInbound.initialise(epi, engine, true, false, message);
           
            BindingInfo bi = ei.getBinding();
            Collection<BindingOperationInfo> bois = bi.getOperations();
View Full Code Here

Examples of org.apache.hadoop.fs.shell.find.And.initialise()

    children.add(second);
    children.add(first);
    and.addChildren(children);
   
    FindOptions options = mock(FindOptions.class);
    and.initialise(options);
    verify(first).initialise(options);
    verify(second).initialise(options);
    verifyNoMoreInteractions(first);
    verifyNoMoreInteractions(second);
  }
View Full Code Here

Examples of org.apache.hadoop.fs.shell.find.Atime.initialise()

    Atime atime = new Atime();
    addArgument(atime, "5");
   
    FindOptions options = new FindOptions();
    options.setStartTime(NOW);
    atime.initialise(options);
   
    assertEquals(Result.FAIL, atime.apply(fourDays));
    assertEquals(Result.FAIL, atime.apply(fiveDaysMinus));
    assertEquals(Result.PASS, atime.apply(fiveDays));
    assertEquals(Result.PASS, atime.apply(fiveDaysPlus));
View Full Code Here

Examples of org.apache.hadoop.fs.shell.find.Blocksize.initialise()

  @Test
  public void applyEquals() throws IOException {
    Blocksize blocksize = new Blocksize();
    addArgument(blocksize, "3");
    blocksize.initialise(new FindOptions());

    assertEquals(Result.FAIL, blocksize.apply(one));
    assertEquals(Result.FAIL, blocksize.apply(two));
    assertEquals(Result.PASS, blocksize.apply(three));
    assertEquals(Result.FAIL, blocksize.apply(four));
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.