Sample code in Java and Jython :
// Jython
from herschel.ia.task import ParameterGroups, Group
def getGroups(self):
return ParameterGroups(self, [
Group("Pool", "Export a pool", ["input"]),
Group("Observations", "Export Observations to HSA Directory format", ["input2"])])
// Java
@Override
public ParameterGroups getGroups() {
Group g1 = new Group("Basic", "Basic interface for simple table data", FILE, TABLE_TYPE,
PARSER_SKIP);
Group g2 = new Group("Advanced", "Comprehensive interface for complex table data",
ADVANCED_NAMES);
return new ParameterGroups(this, g1, g2);
}
|