org.gcube.searchsystem.planning.maxsubtree
Class MaxSubtreePlanner

java.lang.Object
  extended by org.gcube.searchsystem.planning.maxsubtree.MaxSubtreePlanner
All Implemented Interfaces:
Planner

public class MaxSubtreePlanner
extends java.lang.Object
implements Planner


Field Summary
static java.lang.String DEFAULTPRIORITY
           
 
Constructor Summary
MaxSubtreePlanner(java.util.ArrayList<java.lang.String> priorities, EnvironmentAdaptor environmentAdaptor)
           
 
Method Summary
 void clearWarnings()
           
 java.util.ArrayList<java.lang.String> getPriorities()
           
 java.util.ArrayList<java.lang.String> getWarnings()
           
static void main(java.lang.String[] args)
           
 gr.uoa.di.madgik.workflow.adaptor.search.searchsystemplan.PlanNode plan(search.library.util.cql.query.tree.GCQLNode root)
          Receives the root of a CQL tree, creates a plan for the workflow layer, and returns the root of this plan
 void setPriorities(java.util.ArrayList<java.lang.String> priorities)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULTPRIORITY

public static final java.lang.String DEFAULTPRIORITY
See Also:
Constant Field Values
Constructor Detail

MaxSubtreePlanner

public MaxSubtreePlanner(java.util.ArrayList<java.lang.String> priorities,
                         EnvironmentAdaptor environmentAdaptor)
Method Detail

main

public static void main(java.lang.String[] args)

getPriorities

public java.util.ArrayList<java.lang.String> getPriorities()

setPriorities

public void setPriorities(java.util.ArrayList<java.lang.String> priorities)

getWarnings

public java.util.ArrayList<java.lang.String> getWarnings()

clearWarnings

public void clearWarnings()

plan

public gr.uoa.di.madgik.workflow.adaptor.search.searchsystemplan.PlanNode plan(search.library.util.cql.query.tree.GCQLNode root)
                                                                        throws CQLTreeSyntaxException,
                                                                               CQLUnsupportedException
Receives the root of a CQL tree, creates a plan for the workflow layer, and returns the root of this plan

Specified by:
plan in interface Planner
Parameters:
root - - the CQL tree root
Returns:
the root of the plan for the workflow layer
Throws:
CQLTreeSyntaxException - - when the input tree is not in a valid state (this case is possible when a chain of proprocessors is applied sequentially, before planning)
CQLUnsupportedException