com.greenpepper.interpreter.column.Column Maven / Gradle / Ivy
/**
* Abstract Column class.
*
* @author oaouattara
* @version $Id: $Id
*/
package com.greenpepper.interpreter.column;
import com.greenpepper.Example;
import com.greenpepper.ExecutionContext;
import com.greenpepper.Statistics;
import com.greenpepper.Variables;
public abstract class Column
{
protected ExecutionContext context = new Variables();
/**
* bindTo.
*
* @param context a {@link com.greenpepper.ExecutionContext} object.
*/
public void bindTo(ExecutionContext context)
{
this.context = context;
}
/**
* doCell.
*
* @param cell a {@link com.greenpepper.Example} object.
* @return a {@link com.greenpepper.Statistics} object.
* @throws java.lang.Exception if any.
*/
public abstract Statistics doCell(Example cell) throws Exception;
}