Examples of Result


Examples of marauroa.common.game.Result

          logger.warn("invalid create character event (client unknown, not logged in or wrong ip-address)");
          return;
        }
        int maxNumberOfCharacters = Configuration.getConfiguration().getInt("limit_characters_per_account", Integer.MAX_VALUE);
        if (entry.characterCounter >= maxNumberOfCharacters) {
          Result result = Result.FAILED_TOO_MANY;
          MessageS2CCreateCharacterNACK msgCreateCharacterNACK = new MessageS2CCreateCharacterNACK(channel, result);
          msgCreateCharacterNACK.setClientID(clientid);
          msgCreateCharacterNACK.setProtocolVersion(protocolVersion);
          netMan.sendMessage(msgCreateCharacterNACK);
          return;
View Full Code Here

Examples of mfinder.annotation.Result

            res = invocation.invoke(params);
            //result is string
            if (res instanceof String) {
                String resInfo = res.toString();
                ActionProxy ap = invocation.getActionProxy();
                Result result = null;

                //如果action中存在相应的结果映射
                if ((result = ap.getResults().get(resInfo)) != null) {
                    //调用结果对象相应的结果类型
                    Object rr = invokeByResult(invocation, result);
                    if (rr != null)
                        res = rr;
                } //如果Action调用结果的路径信息中包含':'可省略Action中的@Result(name = "*"...)
                else if ((result = ap.getResults().get(match)) != null || resInfo.indexOf(':') != -1) {
                    //非完全匹配字符串路径的调用
                    Object rr = invokeByString(invocation, result, resInfo);
                    if (rr != null)
                        res = rr;
                } //如果全局结果对象集合中存在相应的结果映射
                else if (results.containsKey(resInfo)) {
                    ResultProxy rp = results.get(resInfo);
                    Object rr = rp.invoke(rp.isRequireAction() ? invocation : null);
                    if (rr != null)
                        res = rr;

                    result = rp.getResult();
                    //当Result的type值不为空时,执行相应的ResultType
                    if (StringUtil.isNotNull(result.type())) {
                        rr = invokeByResult(invocation, result);
                        if (rr != null)
                            res = rr;
                    }
                } else {
View Full Code Here

Examples of mondrian.olap.Result

   * @return the result of the query as table model.
   * @throws ReportDataFactoryException if an error occured while performing the query.
   */
  public TableModel queryData(final String queryName, final DataRow parameters) throws ReportDataFactoryException
  {
    final Result cellSet = performQuery(queryName, parameters);
    return new BandedMDXTableModel(cellSet, extractQueryLimit(parameters));
  }
View Full Code Here

Examples of net.flexmojos.oss.compiler.command.Result

    }

    protected Result executeCompiler( CFG cfg, boolean synchronize )
        throws MojoExecutionException, MojoFailureException
    {
        Result result;
        try
        {
            result = doCompile( cfg, synchronize );
        }
        catch ( Exception e )
View Full Code Here

Examples of net.geco.model.Result

 
  public List<Result> buildResultForCategoryByCourses(Category cat) {
    Map<Course, List<Runner>> runnersMap = registry().getRunnersByCourseFromCategory(cat.getName());
    List<Result> results = new Vector<Result>();
    for (Entry<Course, List<Runner>> entry : runnersMap.entrySet()) {
      Result result = factory().createResult();
      result.setIdentifier(cat.getShortname() + " - " + entry.getKey().getName()); //$NON-NLS-1$
      results.add(sortResult(result, entry.getValue()));
    }
    return results;
  }
View Full Code Here

Examples of net.mindlee.concurrent.activeobject.ao.Result

  public void run() {
    try {
      for (int i = 0; true; i++) {
        // û�д���ֵ�ĺ���
        Result result = activeObject.makeString(i, fillchar);
        Thread.sleep(10);
        String value = (String) result.getResultValue();
        System.out.println(Thread.currentThread().getName()
            + ": value = " + value);
      }
    } catch (InterruptedException e) {
    }
View Full Code Here

Examples of net.roarsoftware.lastfm.Result

  }

  public void processBan() throws Exception {
    if (isPlaying && currentTrack != null) {
      Session session = login(Config.getValue(Config.USER), Config.getValue(Config.PASSWORD));
      Result result = Track.ban(currentTrack.getArtist(), currentTrack.getName(), session);
      if (result.isSuccessful()) {
        LOGGER.debug("LOVE IT!");
        setShowStatuswMessage("BANNED");
      } else {
        LOGGER.debug("Not possible to set BAN: " + result.getErrorMessage());
      }
      processSkip();
    }
  }
View Full Code Here

Examples of net.sf.javailp.Result

    problem.setObjective(constructObjective(), OptType.MIN);
   
    //TODO Relaxations relax = new Relaxations();
   
    final Solver solver = factory.get();
    final Result result = solver.solve(problem);
   
    if (result == null) {
      System.out.println("[ERROR]: cannot enforce constraints, no result for LP");
    } else {
     
      /* apply elevation values */
     
      FaultTolerantIterationUtil.iterate(variables, new Operation<LPVariablePair>() {
        @Override public void perform(LPVariablePair v) {
         
          VectorXYZ posXYZ = v.getPosXYZ().addY(
              + result.get(v.posVar()).doubleValue()
              - result.get(v.negVar()).doubleValue());
         
          v.setPosXYZ(posXYZ);
         
        }
      });
View Full Code Here

Examples of net.sf.urlchecker.commands.Result

        public Set<Result> process(Context input) throws ConfigurationException {
            final Iterator<Result> iter = input.getResults().iterator();
            final Context tempCtx = new StandardContext(input);

            while (iter.hasNext()) {
                final Result res = iter.next();
                if (!AVOID.equals(res.getTarget())) {
                    tempCtx.getResults().add(res);
                }
            }
            return super.process(tempCtx);
        }
View Full Code Here

Examples of net.sourceforge.ganttproject.task.algorithm.ProjectBoundsAlgorithm.Result

    public TaskLength getProjectLength() {
        if (myTaskMap.isEmpty()) {
            return createLength(getConfig().getTimeUnitStack()
                    .getDefaultTimeUnit(), 0);
        }
        Result result = getAlgorithmCollection().getProjectBoundsAlgorithm()
                .getBounds(Arrays.asList(myTaskMap.getTasks()));
        return createLength(
                getConfig().getTimeUnitStack().getDefaultTimeUnit(),
                result.lowerBound, result.upperBound);
    }
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.