cz.cuni.amis.pogamut.shady
Class QueryCall

Package class diagram package QueryCall
java.lang.Object
  extended by cz.cuni.amis.pogamut.shady.QueryCall
All Implemented Interfaces:
IQuery

public class QueryCall
extends Object
implements IQuery

Query call is used to call some function in outside of engine with some parameters and return the value. NodeCall just descend further into a tree. TODO: explain, how target is determined

Author:
Honza
See Also:
NodeCall

Constructor Summary
QueryCall(String name, List<IArgument> args)
           
 
Method Summary
 BigDecimal execute(IWorkExecutor executor)
          Execute the primitive with name and proper arguments and return value.
 List<IArgument> getArgs()
          Get arguments passed to the called entity
 String getName()
          Get name of called entity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryCall

public QueryCall(String name,
                 List<IArgument> args)
Method Detail

getName

public String getName()
Get name of called entity

Returns:
name of called entity, whatever IWorkExecutor will make out of it.

getArgs

public List<IArgument> getArgs()
Get arguments passed to the called entity

Returns:
unmodifiable list of arguments

execute

public BigDecimal execute(IWorkExecutor executor)
Execute the primitive with name and proper arguments and return value.

Specified by:
execute in interface IQuery
Returns:
the value that query returned


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.