ElegantJCharts Java API Specification v2.0

com.elegantj.data.comp.computedfield
Interface Computable

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ComputableField

public interface Computable
extends java.io.Serializable

A Computable interface which provides the functionality for computation


Field Summary
static long serialVersionUID
           
 
Method Summary
 java.lang.Object executeExp()
          Executes the expression
 java.util.Hashtable getCatagorizedMethods()
          Returns the valid methods to use in the expression
 java.util.Vector getColumnData(int colIndex)
          Returns the column values of the column at colIndex
 java.util.Vector getColumnData(java.lang.String name)
          Fetches the specified column's data
 java.util.Vector getColumnData(java.lang.String summaryColumn, java.lang.String groupColumn)
          Returns the crosstab column values of the column at colIndex for given column
 java.util.Vector getColumnNames()
          Returns the column names
 java.util.Vector getColumnTypes()
          Returns the column types
 int getCurrentIndex()
          Returns the current index
 java.util.Vector getCurrentRecord()
          Returns the current record
 java.util.Vector getData()
          Returns the data for computation
 java.lang.String getExpression()
          Gets the expression string to be executed
 java.util.Vector getGroupConditions()
          Returns the vector of group bands
 java.lang.String[] getMethods()
          Returns the valid methods to use in the expression
 java.lang.String[] getOperators()
          Returns the valid operators to use in the expression
 java.util.Vector getVariables()
          Returns the used variables
 void setColumnNames(java.util.Vector columnNames)
          Sets the column names
 void setColumnTypes(java.util.Vector columnTypes)
          Sets the column types
 void setCurrentIndex(int index)
          Sets the current index
 void setData(java.util.Vector data)
          Sets the data for computation
 void setExpression(java.lang.String exp)
          Sets the expression string to be executed
 void setGroupConditions(java.util.Vector sCondition)
          Sets the vector of group bands
 boolean verifyExp()
          Checks the expression whether it is valid or not
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

setExpression

public void setExpression(java.lang.String exp)
Sets the expression string to be executed

Parameters:
exp - the expression string

getExpression

public java.lang.String getExpression()
Gets the expression string to be executed

Returns:
the expression string

verifyExp

public boolean verifyExp()
Checks the expression whether it is valid or not

Returns:
true, if an expression is valid, otherwise false

executeExp

public java.lang.Object executeExp()
Executes the expression

Returns:
the result of the expression

setData

public void setData(java.util.Vector data)
Sets the data for computation

Parameters:
data - the vector contains the data

getData

public java.util.Vector getData()
Returns the data for computation

Returns:
the vector contains the data

setGroupConditions

public void setGroupConditions(java.util.Vector sCondition)
Sets the vector of group bands

Parameters:
sCondition - the vector contains the group bands

getGroupConditions

public java.util.Vector getGroupConditions()
Returns the vector of group bands

Returns:
Vector the vector contains the group bands

setColumnTypes

public void setColumnTypes(java.util.Vector columnTypes)
Sets the column types

Parameters:
columnTypes - the vector contains the column Types

getColumnTypes

public java.util.Vector getColumnTypes()
Returns the column types

Returns:
the vector contains the column types

setColumnNames

public void setColumnNames(java.util.Vector columnNames)
Sets the column names

Parameters:
columnNames - the vector contains the column names

getColumnNames

public java.util.Vector getColumnNames()
Returns the column names

Returns:
the vector contains the column names

setCurrentIndex

public void setCurrentIndex(int index)
Sets the current index

Parameters:
index - the index of the record ,being proccessed

getCurrentIndex

public int getCurrentIndex()
Returns the current index

Returns:
the index of the record ,being proccessed

getCurrentRecord

public java.util.Vector getCurrentRecord()
Returns the current record

Returns:
the vector containing the current record values

getColumnData

public java.util.Vector getColumnData(java.lang.String name)
Fetches the specified column's data

Parameters:
name - a column name
Returns:
the vector contains the column's data

getColumnData

public java.util.Vector getColumnData(int colIndex)
Returns the column values of the column at colIndex

Parameters:
colIndex - the column index
Returns:
the vector of the column values

getColumnData

public java.util.Vector getColumnData(java.lang.String summaryColumn,
                                      java.lang.String groupColumn)
Returns the crosstab column values of the column at colIndex for given column

Parameters:
summaryColumn - the column on which the computation is performed
groupColumn - the column for which the computation is performed
Returns:
the vector of the column values

getOperators

public java.lang.String[] getOperators()
Returns the valid operators to use in the expression

Returns:
the array of the operators

getMethods

public java.lang.String[] getMethods()
Returns the valid methods to use in the expression

Returns:
the array of the method names

getCatagorizedMethods

public java.util.Hashtable getCatagorizedMethods()
Returns the valid methods to use in the expression

Returns:
the Hashtable with the method names and its Catagory.

getVariables

public java.util.Vector getVariables()
Returns the used variables

Returns:
Vector the all used variables

ElegantJCharts Java API Specification v2.0

For any feedback, suggestion, or query, please revert back to support@elegantcharts.com

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjcharts.com
All Rights Reserved.