com.ge.grc.acuity.scriptprocessing
Class ValueListProcessor

java.lang.Object
  extended bycom.ge.grc.acuity.scriptprocessing.AcuityScriptProcessor
      extended bycom.ge.grc.acuity.scriptprocessing.ValueListProcessor

public class ValueListProcessor
extends AcuityScriptProcessor

Author:
200005201 TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
ValueListProcessor()
           
 
Method Summary
 InteractionContent analyze(AcuityController ac, com.hp.hpl.jena.ontology.Individual script, InteractionContent ic)
          This method is called to analyze a script to determine, if possible, the subject and predicate of of an InteractionContent.
static java.lang.Object parseValueList(java.lang.String l)
           
 java.lang.Object process(AcuityController ac, com.hp.hpl.jena.ontology.Individual script)
          Call this method to process a Script represented by an Individual in the model.
 java.lang.Object process(AcuityController ac, com.hp.hpl.jena.ontology.Individual script, java.util.List filters)
          Call this method to process a Script represented by an Individual in the model.
 java.lang.Object process(AcuityController ac, java.lang.String val)
          Call this method to process any SPARQL query.
 
Methods inherited from class com.ge.grc.acuity.scriptprocessing.AcuityScriptProcessor
combineResultsOfMultipleQueries, convertQueryColumnsToStandardDataTableListArray, tryNumericReduction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueListProcessor

public ValueListProcessor()
Method Detail

process

public java.lang.Object process(AcuityController ac,
                                java.lang.String val)
                         throws AcuityException
Call this method to process any SPARQL query.

Returns:
- an array of Lists of results in standard ACUITy data table format: List[2] where 0th element is a List of variable names (data table column headers) 1st element is a List of Lists, one for row of data. Each row will contain the same number of elements as there are variables in the query and represent a set of variable values satisfying the query.
Throws:
AcuityException

analyze

public InteractionContent analyze(AcuityController ac,
                                  com.hp.hpl.jena.ontology.Individual script,
                                  InteractionContent ic)
Description copied from class: AcuityScriptProcessor
This method is called to analyze a script to determine, if possible, the subject and predicate of of an InteractionContent. This subject and predicate can allow, for certain kinds of scripts, the construction of a getter and/or a setter statement for an ontology triple.

Specified by:
analyze in class AcuityScriptProcessor
Parameters:
ac -
ic -
Returns:

process

public java.lang.Object process(AcuityController ac,
                                com.hp.hpl.jena.ontology.Individual script)
                         throws AcuityException
Description copied from class: AcuityScriptProcessor
Call this method to process a Script represented by an Individual in the model.

Specified by:
process in class AcuityScriptProcessor
Parameters:
ac - - the AcuityController instance asking for the script processing
script - - the Individual of type Script to be processed
Returns:
- an array of Lists of results in standard ACUITy data table format: List[2] where 0th element is a List of variable names (data table column headers) 1st element is a List of Lists, one for row of data. Each row will contain the same number of elements as there are variables in the query and represent a set of variable values satisfying the query.
Throws:
AcuityException

parseValueList

public static java.lang.Object parseValueList(java.lang.String l)
                                       throws AcuityException
Throws:
AcuityException

process

public java.lang.Object process(AcuityController ac,
                                com.hp.hpl.jena.ontology.Individual script,
                                java.util.List filters)
                         throws AcuityException
Description copied from class: AcuityScriptProcessor
Call this method to process a Script represented by an Individual in the model.

Specified by:
process in class AcuityScriptProcessor
Parameters:
ac - - the AcuityController instance asking for the script processing
script - - the Individual of type Script to be processed
filters - - any filters which are to be applied to the returned data
Returns:
- an array of Lists of results in standard ACUITy data table format: List[2] where 0th element is a List of variable names (data table column headers) 1st element is a List of Lists, one for row of data. Each row will contain the same number of elements as there are variables in the query and represent a set of variable values satisfying the query.
Throws:
AcuityException