Package de.fzi.herakles.commons

Examples of de.fzi.herakles.commons.Result


   * @see de.fzi.herakles.strategy.ExecutionStrategy#execute(de.fzi.herakles.util.cache.Query)
   */
  @Override
  public void execute( Query query, Result result ) throws HeraklesException {

    Result currentResult = (Result) execute( query.getTask(), query.getParamTypes(), query.getParams() );
//    result.setSerialisedResult(currentResult.getSerializedResult());
    result.setResult(currentResult.getResult());

  }
View Full Code Here


  @Override
  @Deprecated
  public Object execute( String taskName, Class<?>[] paramTypes,
      Object[] params ) throws HeraklesException {

        Result result = null;
    Query query;
        try {
            query = QueryFactory.getQuery( taskName, paramTypes, params );
            this.execute( query, result );
        } catch( IllegalArgumentException e ) {
View Full Code Here

  @Override
  @Deprecated
  public Object execute( String taskName, Class<?>[] paramTypes,
      Object[] params ) throws HeraklesException {

        Result result = null;
    Query query;
        try {
            query = QueryFactory.getQuery( taskName, paramTypes, params );
            this.execute( query, result );
        } catch( IllegalArgumentException e ) {
View Full Code Here

  @Override
  @Deprecated
  public Object execute( String taskName, Class<?>[] paramTypes, Object[] params )
      throws HeraklesException {

      Result result = null;
    Query query;
        try {
            query = QueryFactory.getQuery( taskName, paramTypes, params );
            this.execute( query, result );
        } catch( IllegalArgumentException e ) {
View Full Code Here

    Object result = method.invoke(owlReasoner, task.getParams());
    t5 = System.currentTimeMillis();
    t6 = System.currentTimeMillis();
    recordTime();
     
    Result r = new Result();
    try {
      r.setResult(Class.forName(method.getReturnType().getName()).cast(result));
    } catch (ClassNotFoundException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of de.fzi.herakles.commons.Result

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.